2002-10-03 11:18:23 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 02.10.2002
|
|
|
|
;
|
|
|
|
; Helper function for tgi functions. Pops X/Y from stack into ptr1/ptr2
|
|
|
|
;
|
|
|
|
|
|
|
|
.include "tgi-kernel.inc"
|
|
|
|
|
2018-05-20 15:30:18 +02:00
|
|
|
.import popptr1
|
2002-10-03 11:18:23 +00:00
|
|
|
.importzp ptr1, ptr2
|
|
|
|
|
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-20 15:30:18 +02:00
|
|
|
jmp popptr1 ; X
|
2002-10-03 11:18:23 +00:00
|
|
|
|
2003-02-11 12:37:46 +00:00
|
|
|
.endproc
|
2002-10-03 11:18:23 +00:00
|
|
|
|