diff src/start.asm @ 608:d866684249bd

work on 2.99 stable
author heinrichsweikamp
date Mon, 07 Jan 2019 21:13:43 +0100
parents ca4556fb60b9
children 6dd6b37da7c8
line wrap: on
line diff
--- a/src/start.asm	Thu Nov 29 10:50:57 2018 +0100
+++ b/src/start.asm	Mon Jan 07 21:13:43 2019 +0100
@@ -91,6 +91,15 @@
 	cpfseq	TABLAT
 	bcf		analog_switches
 
+	; get screen type (2) from Bootloader-Info
+	bsf	screen_type2
+	movlw   0x80
+	movwf   TBLPTRL		; Only adjust low byte. High and Upper are still 0x01F7...
+	TBLRD*+			; Reads 0x83 for screen 2
+	movlw	0x83
+	cpfseq	TABLAT
+	bcf	screen_type2
+
 	; read button polarity
 	movlw	LOW  .897
 	movwf	EEADR