Advertisement
NoThisIsPanman

exp7

Feb 21st, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .CSEG
  2. .ORG 0x10
  3.  
  4. MAIN:   MOV R31, 0x00
  5.         MOV R30, 0xFF
  6.         CALL PUSH_
  7.  
  8.         MOV R30, 0xAA
  9.         CALL PUSH_
  10.         CALL POP_
  11.         BRN MAIN
  12.  
  13. PUSH_:  ST  R30, (R31)
  14.         ADD R31, 0x01
  15.         RET
  16.  
  17. POP_:   LD  R30, (R31)
  18.         SUB R31, 0x01
  19.         RET
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement