mirror of
https://github.com/cc65/cc65.git
synced 2026-04-26 13:18:31 +00:00
Added "popptr1" which is of common use to save some bytes.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
.constructor initiobuf
|
||||
.export iobuf_alloc, iobuf_free
|
||||
.import __STARTUP_RUN__
|
||||
.import incsp2, popax
|
||||
.import incsp2, popptr1
|
||||
|
||||
.include "zeropage.inc"
|
||||
.include "errno.inc"
|
||||
@@ -41,9 +41,7 @@ initiobuf:
|
||||
iobuf_alloc:
|
||||
; Get and save "memptr"
|
||||
jsr incsp2
|
||||
jsr popax
|
||||
sta ptr1
|
||||
stx ptr1+1
|
||||
jsr popptr1
|
||||
|
||||
; Search table for free entry
|
||||
ldx #$00
|
||||
|
||||
Reference in New Issue
Block a user