view lib/kreiderclib/abort.as @ 3027:32a23a8c3332

Fix for all ide rbsuper descripters being set for drive 0
author chawks4
date Fri, 12 Dec 2014 20:48:42 -0600
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