Mercurial > hg > Members > kono > nitros9-code
view lib/kreiderclib/lseek.as @ 3083:f631d26d4913
level1: Rename "coco1" DriveWire modules to "38400"
Better reflects the fact that only the baud rate is different in
these modules.
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Sun, 26 Jul 2015 10:38:59 +0200 |
parents | 1647f1874cdf |
children |
line wrap: on
line source
* Disassembly by Os9disasm of lseek.r section code * OS-9 system function equates I$Seek equ $88 I$GetStt equ $8d lseek: pshs u ldd 10,s bne L000e ldu #0 ldx #0 bra L0042 L000e cmpd #1 beq L0039 cmpd #2 beq L002e ldb #247 L001c clra std errno,y ldd #-1 leax _flacc,y std ,x std 2,x puls u,pc L002e lda 5,s ldb #2 os9 I$GetStt bcs L001c bra L0042 L0039 lda 5,s ldb #5 os9 I$GetStt bcs L001c L0042 tfr u,d addd 8,s std _flacc+2,y tfr d,u tfr x,d adcb 7,s adca 6,s bmi L001c tfr d,x std _flacc,y lda 5,s os9 I$Seek bcs L001c leax _flacc,y puls u,pc endsect