diff code_part1/OSTC_code_asm_part1/display_lowlevel.asm @ 687:a8a36c85e031

ignore screenshots with display1 (for now)
author heinrichsweikamp
date Sat, 26 Jan 2013 16:25:19 +0100
parents 99b3fb0ab4c7
children c04e5c18acf9
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/display_lowlevel.asm	Sat Jan 26 14:36:26 2013 +0100
+++ b/code_part1/OSTC_code_asm_part1/display_lowlevel.asm	Sat Jan 26 16:25:19 2013 +0100
@@ -764,6 +764,9 @@
 ; NOTE: you should "setf TRISD" before calling this function,
 ;       to make PortD an input port...
 DISP_DataRead:
+    movff   win_flags,WREG          ; Display1? win_flags is in bank0...
+    btfsc   WREG,1                  ; Display1?
+    return                          ; Yes, done.
 	bsf		DISPLAY_rs					; Data register.
 	bcf		DISPLAY_e_nwr              ; Read enable.
 	nop