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

 section code

_lshl: ldx   2,s 
 pshs  b 
 lbsr  _ltoacc 
 puls  b 
 tstb   
 beq   L0017 
L000c asl   3,x 
 rol   2,x 
 rol   1,x 
 rol   ,x 
 decb   
 bne   L000c 
L0017 puls  d 
 std   ,s 
 rts    
_lshr: ldx   2,s 
 pshs  b 
 lbsr  _ltoacc 
 puls  b 
 tstb   
 beq   L0033 
L0028 asr   ,x 
 ror   1,x 
 ror   2,x 
 ror   3,x 
 decb   
 bne   L0028 
L0033 puls  d 
 std   ,s 
 rts    

 endsect