Advertisement
MagnusArias

Escape32 | Fibonacci

Mar 15th, 2016
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 0000: 1C000800 |            | ADD  R0, R0, R1
  2. 0004: 1C001000 | a          | ADD  R0, R0, R2
  3. 0008: 1C001800 | b          | ADD  R0, R0, R3
  4. 000C: 1C002000 | offset     | ADD  R0, R0, R4
  5. 0010: 44630001 |            | ADDI R3, 0x0001, R3
  6. 0014: 04010204 |            | LDB  R1, 0x0204(R0)
  7. 0018: 48210001 | loop       | SUBI R1, 0x0001, R1
  8. 001C: 70010014 |            | BRZ  R1, wynik
  9. 0020: 44840004 |            | ADDI R4, 0x0004, R4
  10. 0024: 1C621800 |            | ADD  R3, R2, R3
  11. 0028: 20621000 |            | SUB  R3, R2, R2
  12. 002C: 10830210 |            | STB  R3, 0x0210(R4)
  13. 0030: 7000FFE4 |            | BRZ  R0, loop
  14. 0034: 7000FFFC | wynik      | BRZ  R0, wynik
  15. 0038: 00000000 |            | NOP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement