Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .include "m2560def.inc"
- .def six = r19
- .def sixty = r20
- summa:
- lds r17, 0x291
- ldi r29, 0x99
- ldi r28, 0b01100110
- ldi six, 0b00000110
- ldi sixty, 0b01100000
- neg six
- neg sixty
- sub r29, r17
- inc r29
- add r5, r28
- add r5, r29
- brhc correcth
- brcc correctc
- end: rjmp end
- correcth:
- adc r2, r3
- add r5, six
- cpse r2,r3
- rjmp end
- clc
- rjmp correctc
- correctc:
- adc r2,r3
- add r5, sixty
- rjmp end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement