2005-02-19 00:57:26 +00:00
|
|
|
;
|
|
|
|
; Christian Groessler, February 2005
|
|
|
|
;
|
2012-10-11 18:22:49 +00:00
|
|
|
; unsigned __fastcall__ dio_query_sectsize(dhandle_t handle);
|
2005-02-19 00:57:26 +00:00
|
|
|
;
|
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.include "atari.inc"
|
|
|
|
.export _dio_query_sectsize
|
|
|
|
.importzp ptr1,tmp1
|
2022-08-28 19:52:53 +00:00
|
|
|
.import popax, ___oserror
|
2005-02-19 00:57:26 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.proc _dio_query_sectsize
|
2005-02-19 00:57:26 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
sta ptr1 ; handle
|
2022-04-17 14:06:22 +00:00
|
|
|
stx ptr1+1
|
2005-02-19 00:57:26 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
lda #0
|
2022-08-28 19:52:53 +00:00
|
|
|
sta ___oserror
|
2005-02-19 00:57:26 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
ldy #sst_sectsize+1
|
|
|
|
lda (ptr1),y
|
|
|
|
tax
|
|
|
|
dey
|
|
|
|
lda (ptr1),y
|
|
|
|
rts
|
2005-02-19 00:57:26 +00:00
|
|
|
|
|
|
|
.endproc
|