daily pastebin goal
60%
SHARE
TWEET

6ix9ine.info

a guest Oct 21st, 2018 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. *
  3. * Info file for 6ix9ine.hex
  4. *
  5. * it should run the code below
  6. *
  7. * with the commands...
  8. *
  9. * ~$ (name of rvsim.exe)
  10. * >RISCV load /x 0x50 6ix9ine.hex
  11. * >RISCV run /x 0x50 2
  12. *
  13. * the assembler is intended to put 69 in register 1
  14. * and the put 69 in memory space 0x69
  15. *
  16. */
  17.  
  18. encoded assembler:
  19.  
  20.         ADDI x1 x0 69
  21.         SD   x1 69(x0)
  22.  
  23.  
  24. breakdown:
  25.  
  26.                    I = 69      RS1 = 0   f3   RD = 1   opcode
  27. ADDI x1 x0 69 : 000001000101 |  00000  | 000 | 00001 | 0100011 |
  28.                 raw bin: 0b00000100010100000000000010100011
  29.                 raw hex: 0x045000A3
  30.  
  31.  
  32.              (high7)I = 2   rs2      rs1     f3  (low5)I=5 opcode
  33. SD x1 69(x0)  : 0000010 |  00000  |  00001  | 010 | 00101 | 0100011 |
  34.                 raw bin: 0b00000100000000001010001010100011
  35.                 raw hex: 0x0400A2A3
  36.  
  37.  
  38.  
  39. command to produce:
  40.     ~$ echo -n -e  \\x04\\x50\\x00\\xa3\\x04\\x00\\xa2\\xa3 >> 6ix9ine.hex
  41.  
  42.     ~$ echo 'note to self: in the future replace that hex string with a prebuilt file'
  43.  
  44.     ~$ od -t x1 6ix9ine.bin >> 6ix9ine.hex
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top