Mercurial > hg > Members > kono > nitros9-code
view lib/kreiderclib/abort.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 abort.r section code * OS-9 system function equates F$Exit equ $06 I$Write equ $8a abort: pshs d,x,y,u leax >L0048,pcr ldb #3 clra pshs d pshs x lbsr creat cmpd #-1 bne L001d ldd errno,y os9 F$Exit L001d leas 4,s pshs b leax 1,s ldd #$0010 bsr L004e leax _cstart,pcr ldd #etext subd #_cstart bsr L004e tfr dp,a clrb tfr d,x subd memend,x nega negb sbca #0 bsr L004e ldb #255 os9 F$Exit L0048 com 15,s fcb $72 fcb $65 bra L005b L004e pshs d,x lda 6,s leax 2,s ldy #2 os9 I$Write L005b leax ,s lda 6,s ldy #2 os9 I$Write puls y puls x cmpy #0 beq L0075 lda 2,s os9 I$Write L0075 rts endsect