Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mov.w #0x2400, r9 ;r9 = #0x2400 | Set r9 to address #0x2400. This will be the address the program will run in.
- mov.w #10, r10 ;r10 = #10 | Set r10 to the decimal number 10
- mov.w #0, r11 ;r11 = #0 | Set r11 to 0
- mov.w r11, 0(r9) ;r11 = (r9 + 0) | r11 = #0x2400 offset by 0
- mov.w #1, r12 ;r12 = #1 | Set r12 to the decimal number 1
- incd r9 ;
- mov.w r12, 0(r9) ;r12 = (0 + r9) |
- loop tst r10
- jz forever ;jump if equal
- incd r9
- dec r10 ;decrement r10 by 1
- mov.w r12, r13 ;r12 = r13
- add.w r11, r12 ;r11 = r12
- mov.w r12, 0(r9) ;r12 = (0 + r9)
- mov.w r13, r11 ;r13 = r11
- jmp loop
- forever jmp forever
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement