summaryrefslogtreecommitdiff
path: root/software/idm
diff options
context:
space:
mode:
Diffstat (limited to 'software/idm')
-rw-r--r--software/idm/idm.asm9
1 files changed, 4 insertions, 5 deletions
diff --git a/software/idm/idm.asm b/software/idm/idm.asm
index 9cbaf41..50a4fab 100644
--- a/software/idm/idm.asm
+++ b/software/idm/idm.asm
@@ -99,7 +99,7 @@ fsr_wraparound
movwf PTRL
inc_fsr_end
ENDM
-
+
;; -------------------------------------
;; Reset Vector
org .0
@@ -173,7 +173,7 @@ int_spi
;; other commands
bcf CMD_READ
retfie
-
+
int_spi_0
btfss CMD_READ
retfie
@@ -348,9 +348,6 @@ endif
movwf ANSELA
clrf ANSELB ; PORTB0:7 digital
- ;; BANK 2
- movlb b'00000010'
-
;; BANK 1
movlb b'00000001'
movlw b'00101111'
@@ -389,6 +386,8 @@ endif
;; -------------------------------------
;; MAINLOOP
main
+ btfsc CS
+ bcf CMD_READ
if DEBUG == 1
bcf SPEAKER
btfss DBG0