2 ; int __fastcall__ write (int fd, const void* buf, unsigned count);
5 .import __rwsetup,__do_oserror,__inviocb,__oserror
8 jsr __rwsetup ; do common setup
9 beq write9 ; if size 0, it's a no-op
10 cpx #$FF ; invalid iocb?
16 jmp __do_oserror ; update errno
19 lda ICBLL,x ; get buf len lo
21 lda ICBLH,x ; buf len hi
24 sta __oserror ; clear system dependend error code