ProDOS 8 requires an page-aligned 1kB IO-buffer for every open file. The implementation using posix_memalign() is universally correct but quite expensive. There I added support for overriding this implementation with maybe limited (i.e. to one open file) but cheaper custom implementations.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4142 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
;
|
||||
|
||||
.import __dos_type
|
||||
.import iobuf_init, iobuf_done
|
||||
.export iobuf_nop
|
||||
|
||||
.include "mli.inc"
|
||||
|
||||
@@ -24,12 +26,16 @@ callmli:
|
||||
beq oserr
|
||||
|
||||
; Call MLI and return
|
||||
jsr iobuf_init
|
||||
jsr ENTRY
|
||||
call: .byte $00
|
||||
.addr mliparam
|
||||
rts
|
||||
jmp iobuf_done
|
||||
|
||||
; Load oserror code and return
|
||||
oserr: lda #$01 ; "Invalid MLI function code number"
|
||||
sec
|
||||
rts
|
||||
; Fall through
|
||||
|
||||
iobuf_nop:
|
||||
rts
|
||||
|
||||
Reference in New Issue
Block a user