2002-10-03 11:18:23 +00:00
|
|
|
;
|
2018-07-27 13:07:40 +00:00
|
|
|
; 2002-10-02, Ullrich von Bassewitz
|
|
|
|
; 2018-05-20, Christian Kruger
|
2002-10-03 11:18:23 +00:00
|
|
|
;
|
2018-07-27 13:07:40 +00:00
|
|
|
; Helper function for TGI functions. Pops X/Y from arguments into ptr1/ptr2.
|
2002-10-03 11:18:23 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
.include "tgi-kernel.inc"
|
|
|
|
|
2018-05-20 13:30:18 +00:00
|
|
|
.import popptr1
|
2018-07-27 13:07:40 +00:00
|
|
|
.importzp ptr2
|
2002-10-03 11:18:23 +00:00
|
|
|
|
2003-02-11 12:37:46 +00:00
|
|
|
.proc tgi_popxy
|
|
|
|
|
2002-10-03 11:18:23 +00:00
|
|
|
sta ptr2 ; Y
|
|
|
|
stx ptr2+1
|
2018-05-21 12:33:44 +00:00
|
|
|
jmp popptr1 ; X
|
2002-10-03 11:18:23 +00:00
|
|
|
|
2003-02-11 12:37:46 +00:00
|
|
|
.endproc
|