Fix RANGE ERROR STOPPED AT 8214
On a 48k Apple II, the BLTU2 call throws an error, even when there is nothing to copy in the LC segment. Add an alternative LC copy, based on memcpy, to an extra file that the user can link in as with iobuf-0800. This memcpy-based version allows our programs to run on Integer ROM apple2. It costs 21 bytes in binary size, plus memcpy (60 bytes in binary size + RAM use) if it wasn't already linked in.
This commit is contained in:
committed by
Oliver Schmidt
parent
02470a2343
commit
020fe4028a
9
libsrc/apple2/lc-copy-applesoft.s
Normal file
9
libsrc/apple2/lc-copy-applesoft.s
Normal file
@@ -0,0 +1,9 @@
|
||||
;
|
||||
; Oliver Schmidt, 15.09.2009
|
||||
;
|
||||
; Copy the LC segment from the end of the binary to the Language Card
|
||||
; using AppleSoft's BLTU2 routine.
|
||||
;
|
||||
.export bltu2
|
||||
|
||||
bltu2 := $D39A
|
||||
Reference in New Issue
Block a user