diff code_part1/OSTC_code_asm_part1/wait.asm @ 522:e33a8ac4b660

New ASSERT_BANK1 macro for software proofing.
author JeanDo
date Fri, 09 Dec 2011 20:43:43 +0100
parents 33abbc08f01e
children c50296c3059e
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/wait.asm	Fri Dec 09 20:43:39 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/wait.asm	Fri Dec 09 20:43:43 2011 +0100
@@ -18,7 +18,7 @@
 ; ToDo: 
 	
 ; ==========================================================
-; 	WAIT 10 MICROSECONDS  -  16 MHZ
+; 	WAIT 10 MICROSECONDS  -  16 Mhz and 32 Mhz
 ; ==========================================================
 
 	IFDEF	SPEED_16MHz
@@ -88,8 +88,9 @@
 			call 	WAITMSX
 			endm
 
-WAITMSX		movwf	waitms_temp			; Holds number of ms to wait
+WAITMSX     movwf	waitms_temp			; Holds number of ms to wait
 
+            ASSERT_BANK1    .10002      ; Make sure we are in bank1
     Ifdef TESTING
             return                      ; In emulation, just skips waits
     Endif