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