2 ; Christian Groessler, October 2000
4 ; this file provides the _dio_write function
6 ; unsigned char __fastcall__ dio_write(dhandle_t handle,sectnum_t sect_num,const void *buffer);
7 ; dhandle_t - 16bit (ptr)
11 .import __sio_call,pushax
17 jsr pushax ; push buffer address
18 ldx #%10000000 ; indicate i/o direction (write)
19 lda #SIO_WRITE ; write sector command
20 jmp __sio_call ; do the call and return to the user