mirror of
https://github.com/cc65/cc65.git
synced 2025-08-13 08:25:28 +00:00
New entry point to push something pointed to by ptr1 with index in Y.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5667 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -4,15 +4,16 @@
|
|||||||
; CC65 runtime: Fetch word indirect and push
|
; CC65 runtime: Fetch word indirect and push
|
||||||
;
|
;
|
||||||
|
|
||||||
.export pushw, pushwidx
|
.export pushw, pushwidx, pushptr1idx
|
||||||
.import pushax
|
.import pushax
|
||||||
.importzp ptr1
|
.importzp ptr1
|
||||||
|
|
||||||
|
|
||||||
pushw: ldy #1
|
pushw: ldy #1
|
||||||
pushwidx:
|
pushwidx:
|
||||||
sta ptr1
|
sta ptr1
|
||||||
stx ptr1+1
|
stx ptr1+1
|
||||||
|
pushptr1idx:
|
||||||
lda (ptr1),y
|
lda (ptr1),y
|
||||||
tax
|
tax
|
||||||
dey
|
dey
|
||||||
|
Reference in New Issue
Block a user