Advertisement
theinhumaneme

INTERRUPT

Dec 16th, 2021
1,584
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ORG 00H     ; SET ADRESS AS 00H
  2. LJMP MAIN   ; LONG JUMP TO MAIN
  3. ORG 0003H   ; SET ADDRESS AS 0003H
  4. MOV A, #15H ; MOVE 15h INTO A
  5. RETI        ; RETURN FROM INTERRUPT(EXIT FROM INTERRUPT)
  6. ORG 0080H   ; SET ADDRESS AS 0080H
  7. MAIN : MOV IE,#81H  ; SET IE REGISTER VALUE TO #81H
  8. MOV A, #45H         ;MOVE 45H INTO A
  9. SWAPPING: SWAP A    ; SWAPS VALUES TO 45H <-> 54H
  10. SJMP SWAPPING       ; SHORT JUMP SWAPPING
  11. END                 ; END OF PROGRAM]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement