Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;- Programmer: GARRETT MAXON
- ;- Date: 01-18-17
- ;-
- ;- This program fills reg with values then adds one, then fills two more regs that are then exored then the result is subtracted from reg 29
- ;--------------------------------------------------------------------
- ;--------------------------------------------------------------------
- .CSEG
- .ORG 0x40
- MAIN:
- MOV R29, 0xFC ;; puts 0xFC into reg 29
- ADD R29, 0x01 ;; adds 1 to FC making it FD
- MOV R30, 0xFA ;; puts 0xFA into reg 30
- MOV R31, 0x05 ;; puts 0x05 into reg 31
- EXOR R30, R31 ;; exor's r30 and r31 abd stores result in reg 30
- SUB R30, R29 ;; subtracts reg 29 from reg 30 abd stores it in reg 30
- BRNE 0x41
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement