comparison code_part1/OSTC_code_asm_part1/wait.asm @ 521:33abbc08f01e

Minor cleanups for TESTING=1 emulator mode.
author JeanDo
date Fri, 09 Dec 2011 20:43:39 +0100
parents c7b663939737
children e33a8ac4b660
comparison
equal deleted inserted replaced
520:acf4776eec08 521:33abbc08f01e
88 call WAITMSX 88 call WAITMSX
89 endm 89 endm
90 90
91 WAITMSX movwf waitms_temp ; Holds number of ms to wait 91 WAITMSX movwf waitms_temp ; Holds number of ms to wait
92 92
93 Ifdef TESTING
94 return ; In emulation, just skips waits
95 Endif
93 WAITMSX1: 96 WAITMSX1:
94 movf TMR1L,W 97 movf TMR1L,W
95 addlw d'66' ; 66*15,26µs ~ 1ms 98 addlw d'66' ; 66*15,26µs ~ 1ms
96 99
97 WAITMSX2 cpfseq TMR1L 100 WAITMSX2 cpfseq TMR1L