From 8087959e1882805afc7b4a5daaabb58924b81dde Mon Sep 17 00:00:00 2001 From: uz Date: Fri, 1 Jun 2012 19:19:45 +0000 Subject: [PATCH] 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 --- libsrc/runtime/pushw.s | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libsrc/runtime/pushw.s b/libsrc/runtime/pushw.s index a88ebc3d2..d78323c74 100644 --- a/libsrc/runtime/pushw.s +++ b/libsrc/runtime/pushw.s @@ -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 -- 2.39.5