Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;- Programmer: GARRETT MAXON
  2. ;- Date: 01-18-17
  3. ;-
  4. ;- 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
  5. ;--------------------------------------------------------------------
  6. ;--------------------------------------------------------------------
  7. .CSEG
  8. .ORG 0x40
  9. MAIN:
  10.     MOV  R29, 0xFC ;; puts 0xFC into reg 29
  11.     ADD  R29, 0x01 ;; adds 1 to FC making it FD
  12.     MOV  R30, 0xFA ;; puts 0xFA into reg 30
  13.     MOV  R31, 0x05 ;; puts 0x05 into reg 31
  14.     EXOR R30, R31  ;; exor's r30 and r31 abd stores result in reg 30
  15.     SUB  R30, R29  ;; subtracts reg 29 from reg 30 abd stores it in reg 30
  16.     BRNE 0x41
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement