2001-07-03 20:24:28 +00:00
|
|
|
;
|
2015-08-27 09:10:01 +00:00
|
|
|
; 2001-07-02, Maciej 'YTM/Elysium' Witkowiak
|
|
|
|
; 2015-08-27, Greg King
|
2001-07-03 20:24:28 +00:00
|
|
|
;
|
|
|
|
; this file provides the _dio_write function
|
|
|
|
;
|
2012-10-11 18:22:49 +00:00
|
|
|
; unsigned char __fastcall__ dio_write (dhandle_t handle, unsigned sect_num, const void *buffer);
|
2001-07-03 20:24:28 +00:00
|
|
|
;
|
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.export _dio_write
|
|
|
|
.import dio_params, setoserror
|
2001-07-03 20:24:28 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.include "geossym.inc"
|
|
|
|
.include "jumptab.inc"
|
2001-07-03 20:24:28 +00:00
|
|
|
|
2012-02-07 22:37:13 +00:00
|
|
|
_dio_write:
|
2013-05-09 11:56:54 +00:00
|
|
|
jsr dio_params
|
2015-08-27 09:10:01 +00:00
|
|
|
tay
|
|
|
|
bne err
|
2013-05-09 11:56:54 +00:00
|
|
|
jsr WriteBlock
|
|
|
|
jmp setoserror
|
2015-08-27 09:10:01 +00:00
|
|
|
|
|
|
|
err: rts
|