1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-08 15:29:37 +00:00

Added (naive) implementation of dio_query_sectcount() and dio_query_sectsize() for GEOS 64/128.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5873 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
ol.sc 2012-10-23 19:29:40 +00:00
parent a1a3a6d151
commit 9930379665
3 changed files with 31 additions and 0 deletions

View File

@ -10,6 +10,8 @@ S_OBJS += changediskdevice.o \
dio_cts.o \
dio_openclose.o \
dio_params.o \
dio_qcount.o \
dio_qsize.o \
dio_read.o \
dio_stc.o \
dio_write.o \

View File

@ -0,0 +1,15 @@
;
; Oliver Schmidt, 2012-10-23
;
; unsigned __fastcall__ dio_query_sectcount (dhandle_t handle);
;
.export _dio_query_sectcount
.import __oserror
_dio_query_sectcount:
lda #0
sta __oserror
lda #<683
ldx #>683
rts

View File

@ -0,0 +1,14 @@
;
; Oliver Schmidt, 2012-10-23
;
; unsigned __fastcall__ dio_query_sectsize (dhandle_t handle);
;
.export _dio_query_sectsize
.import __oserror
_dio_query_sectsize:
lda #<256
ldx #>256
sta __oserror
rts