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_verify (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_verify
|
2022-08-28 19:52:53 +00:00
|
|
|
.import dio_params, ___oserror
|
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_verify:
|
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 VerWriteBlock
|
2022-08-28 19:52:53 +00:00
|
|
|
stx ___oserror
|
2013-05-09 11:56:54 +00:00
|
|
|
txa
|
2015-08-27 09:10:01 +00:00
|
|
|
err: rts
|