SHARE
TWEET

Execute.asm

beckadam Oct 24th, 2018 104 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. include 'include/ez80.inc'
  2. include 'include/ti84pceg.inc'
  3. include 'include/tiformat.inc'
  4.  
  5.  
  6. ;Move program to UserMem
  7. ld  hl,$D1A881      ; userMem
  8. ld  de,$D1A881
  9. ld  bc,($D0118C)    ; prgm Size
  10. add hl,bc
  11. inc hl
  12. ex hl,de
  13. lddr
  14.  
  15. ld  de, $D1A881
  16. ld  hl,($D0118F)    ; prgm Ptr
  17. ld  bc,($D0118C)    ; prgm Size
  18. ldir
  19.  
  20. ;Stack Pusher
  21. ld  hl,$FFFFDA      ;-(Asm_Size+18)
  22. add hl,sp
  23. ld sp,hl
  24. push hl
  25. ex de,hl
  26. ld hl,$D03110       ;Asm_Ptr
  27. ld bc,$FFFFDA       ;-(Asm_Size+18)
  28. ldir
  29. ret
  30.  
  31. jp $D1A881      ; userMem
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top