Advertisement
STANAANDREY

risc nested functions

Nov 24th, 2024
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         MOV R0, #123
  2.         MOV R1, R0
  3.         JMS f1
  4.         HLT
  5. f1:     PSH {LR}
  6.         ADD R2, R1, R0
  7.         JMS f2
  8.         POP {PC}
  9. f2:     OUT R2
  10.         RET
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement