chiark / gitweb /
proper error handling for unknown clocks
authorian <ian>
Sat, 26 Nov 2005 16:46:02 +0000 (16:46 +0000)
committerian <ian>
Sat, 26 Nov 2005 16:46:02 +0000 (16:46 +0000)
iwjpictest/copybits.asm
iwjpictest/serialloop.asm

index ef01cf3345491b40776e9094ef4d17a3b0639a7d..c1c3eb6cfed4cfa50be6c4fbc34282f3a12ea153 100644 (file)
@@ -20,10 +20,11 @@ COUNTOUTER  equ             0x02
 
  if mclock==20000
 OUTEREXP               equ             7       ; 2^7 * 2.6ms = 332ms
- endif
+ else
  if mclock==1000
 OUTEREXP               equ             2       ; 2^2 * 52ms = 208ms
  endif
+ endif
 
 ; we always leave each loop when its counter has reached 0, so on
 ; entry we assume it's already 0.  For the loops which want to
index c9836a0e9b3e7b1f30cf566676fc7d0181be9021..64a4cd4e048b5c12139dc24d2147523bbb7f9fa2 100644 (file)
@@ -17,10 +17,11 @@ COUNTOUTER  equ             0x02
 
  if mclock==20000
 OUTEREXP               equ             7       ; 2^7 * 1.4ms = 177ms
- endif
+ else
  if mclock==1000
 OUTEREXP               equ             3       ; 2^3 * 28ms = 224ms
  endif
+ endif
 
 ; we always leave each loop when its counter has reached 0, so on
 ; entry we assume it's already 0.  For the loops which want to