Advertisement
tari

Untitled

Mar 16th, 2011
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. .binarymode TI8X
  3.  
  4. CurAble = 2
  5. CurOn = 3
  6. CurLock = 4
  7. CurFlags = 12
  8.  
  9. appBackupScreen = $9872
  10. TSRcode = appBackupScreen
  11. TSRvectors = $9900
  12.  
  13. .org $9D93
  14. .db $bb,$6d
  15. start:
  16.     ld de,TSRcode
  17.     ld hl,ISR
  18.     ld bc,ISR_end - ISR
  19.     ldir
  20.    
  21.     ld hl,TSRcode
  22.     ld (TSRvectors), hl
  23.     ld hl,TSRvectors
  24.     ld de,TSRvectors + 2
  25.     ld bc, 254
  26.     ldir
  27.    
  28.     ld a, TSRvectors >> 8
  29.     ld i, a
  30.     im 2
  31.     ret
  32.    
  33. ISR:
  34.     set CurLock, (IY+CurFlags)
  35.     jp $0038
  36. ISR_end:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement