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