]> git.sur5r.net Git - cc65/blob - libsrc/atari/diowritev.s
5c14385d1664296fef5b0db662aca5d114a4a56e
[cc65] / libsrc / atari / diowritev.s
1 ;
2 ; Christian Groessler, October 2000
3 ;
4 ; this file provides the _dio_write function
5 ;
6 ; unsigned char __fastcall__ _dio_write_verify(_driveid_t drive_id, _sectnum_t sect_num, void *buffer);
7 ; _driveid_t - 8bit
8 ; _sectnum_t - 16bit
9 ;
10
11         .import         __sio_call,pushax
12         .export         __dio_write_verify
13         .include        "atari.inc"
14
15 .proc   __dio_write_verify
16
17         jsr     pushax          ; push buffer address
18         ldx     #%10000000      ; indicate i/o direction (write)
19         lda     #SIO_WRITEV     ; write sector command
20         jmp     __sio_call      ; do the call and return to the user
21
22 .endproc
23