view lib/kreiderclib/case.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 case.r

 section code

toupper: clra   
 ldb   3,s 
 leax  _chcodes,y 
 lda   d,x 
 anda  #4 
 beq   L0022 
 andb  #$df 
 clra   
 rts    
tolower: clra   
 ldb   3,s 
 leax  _chcodes,y 
 lda   d,x 
 anda  #2 
 beq   L0022 
 orb   #$20 
 clra   
 rts    
L0022 ldd   2,s 
 rts    

 endsect