view lib/kreiderclib/devtyp.as @ 3226:9749d0dfc4a2

Changed a puls PC to rts to save cycles
author David Ladd <drencor-xeen@users.sourceforge.net>
date Sat, 20 Jan 2018 19:32:22 -0600
parents 1647f1874cdf
children
line wrap: on
line source

* Disassembly by Os9disasm of devtyp.r

 section code

* OS-9 system function equates

I$GetStt equ $8d 

isatty: ldd   2,s 
 pshs  d 
 bsr   devtyp 
 std   ,s++ 
 beq   L000c 
 clrb   
 rts    
L000c incb   
 rts    
devtyp: lda   3,s 
 clrb   
 leas  -32,s 
 leax  ,s 
 os9 I$GetStt 
 lda   ,s 
 leas  32,s 
 lblo  _os9err 
 tfr   a,b 
 clra   
 rts    

 endsect