Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include 'include/ez80.inc'
- include 'include/ti84pceg.inc'
- include 'include/tiformat.inc'
- ;Move program to UserMem
- ld hl,$D1A881 ; userMem
- ld de,$D1A881
- ld bc,($D0118C) ; prgm Size
- add hl,bc
- inc hl
- ex hl,de
- lddr
- ld de, $D1A881
- ld hl,($D0118F) ; prgm Ptr
- ld bc,($D0118C) ; prgm Size
- ldir
- ;Stack Pusher
- ld hl,$FFFFDA ;-(Asm_Size+18)
- add hl,sp
- ld sp,hl
- push hl
- ex de,hl
- ld hl,$D03110 ;Asm_Ptr
- ld bc,$FFFFDA ;-(Asm_Size+18)
- ldir
- ret
- jp $D1A881 ; userMem
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement