Advertisement
Guest User

Untitled

a guest
Jan 4th, 2021
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. include 'include/ez80.inc'
  2. include 'include/tiformat.inc'
  3. include 'include/ti84pceg.inc'
  4. format ti executable 'HS'
  5.  
  6. _Program:
  7. call InstallStartHook
  8. ret
  9.  
  10.  
  11. _hook_start_addr:
  12. virtual at ti.pixelShadow2
  13. _hook_start:
  14. db $83
  15. ld (ti.plotSScreen),a
  16. cp ti.kPrgm ; was Prgms pressed?
  17. ret nz
  18. ;check if edit is open
  19. ;call ti.NewContext0
  20. ld hl, ShellPrgm
  21. ld de,ti.saveSScreen
  22. ld bc,7
  23. ldir
  24. ld hl,ti.saveSScreen
  25. ld (ti.rclQueue),hl
  26. ld (ti.rclQueueEnd),de
  27. set 7, (iy+0Eh)
  28. set 2, (iy+33h)
  29. ;call ti.SendKPress
  30. jp ti.JForceCmd
  31. ret
  32. NotEnoughMemory:
  33. ld hl, String_Mem
  34. call ti.PutS
  35. ret
  36. NotInEditor:
  37. ld hl, String_Editor
  38. call ti.PutS
  39. ret
  40. ShellPrgm:
  41. db ti.tProg, "VYSION"
  42. String_Mem:
  43. db "Not enough memory...", 0
  44. String_Editor:
  45. db "Not in editor...", 0
  46. load code: $-_hook_start from _hook_start
  47. end virtual
  48. db code
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement