Adjust alternative ProDOS 8 I/O buffer allocation module to linker configs.
The Apple II linker configs don't define symbols for the STARTP segment anymore. There refer to the load/start address in the same way the executable file header does.
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
.constructor initiobuf
|
.constructor initiobuf
|
||||||
.export iobuf_alloc, iobuf_free
|
.export iobuf_alloc, iobuf_free
|
||||||
.import __STARTUP_RUN__
|
.import __MAIN_START__
|
||||||
.import incsp2, popax
|
.import incsp2, popax
|
||||||
|
|
||||||
.include "zeropage.inc"
|
.include "zeropage.inc"
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
initiobuf:
|
initiobuf:
|
||||||
; Convert end address highbyte to table index
|
; Convert end address highbyte to table index
|
||||||
lda #>__STARTUP_RUN__
|
lda #>__MAIN_START__
|
||||||
sec
|
sec
|
||||||
sbc #>$0800
|
sbc #>$0800
|
||||||
lsr
|
lsr
|
||||||
|
|||||||
Reference in New Issue
Block a user