mirror of
https://github.com/cc65/cc65.git
synced 2025-01-10 03:30:05 +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:
parent
08b4ed1035
commit
8087959e18
@ -4,15 +4,16 @@
|
||||
; CC65 runtime: Fetch word indirect and push
|
||||
;
|
||||
|
||||
.export pushw, pushwidx
|
||||
.export pushw, pushwidx, pushptr1idx
|
||||
.import pushax
|
||||
.importzp ptr1
|
||||
|
||||
|
||||
pushw: ldy #1
|
||||
pushwidx:
|
||||
sta ptr1
|
||||
stx ptr1+1
|
||||
sta ptr1
|
||||
stx ptr1+1
|
||||
pushptr1idx:
|
||||
lda (ptr1),y
|
||||
tax
|
||||
dey
|
||||
|
Loading…
x
Reference in New Issue
Block a user