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

 section code

bsearch: pshs  d,x,y,u 
 ldu   10,s 
 clra   
 clrb   
L0006 addd  #1 
 std   2,s 
 ldd   14,s 
L000d subd  2,s 
 bmi   L003d 
 ldd   14,s 
 addd  2,s 
 lsra   
 rorb   
 std   4,s 
 addd  #-1 
 pshs  d 
 ldd   18,s 
 lbsr  ccmult 
 addd  12,s 
 std   ,s 
 pshs  u 
 jsr   [20,s] 
 std   ,s++ 
 beq   L0041 
 asla   
 ldd   4,s 
 bcc   L0006 
 addd  #-1 
 std   14,s 
 bra   L000d 
L003d clra   
 clrb   
 bra   L0043 
L0041 ldd   ,s 
L0043 leas  6,s 
 puls  u,pc 

 endsect