summaryrefslogtreecommitdiff
path: root/software/idm/idm.asm
diff options
context:
space:
mode:
Diffstat (limited to 'software/idm/idm.asm')
-rw-r--r--software/idm/idm.asm42
1 files changed, 21 insertions, 21 deletions
diff --git a/software/idm/idm.asm b/software/idm/idm.asm
index dfef5ce..ca1233e 100644
--- a/software/idm/idm.asm
+++ b/software/idm/idm.asm
@@ -38,21 +38,21 @@ BUF_ENDL EQU 0BFh
;; I/O Pins
;; PortA
-C1m EQU .0
-C2p EQU .1
-AMP_OUT EQU .2
-ADC_IN EQU .3
-SPEAKER EQU .4
-DBG1 EQU .6
-DBG2 EQU .7
+#define C1m PORTA,0
+#define C2p PORTA,1
+#define AMP_OUT PORTA,2
+#define ADC_IN PORTA,3
+#define SPEAKER PORTA,4
+#define DBG1 PORTA,6
+#define DBG2 PORTA,7
;; PortB
-DBG0 EQU .0
-SDI EQU .1
-SDO EQU .2
-INT EQU .3
-SCK EQU .4
-CS EQU .5
-FILTER_EN EQU .7
+#define DBG0 PORTB,0
+#define SDI PORTB,1
+#define SDO PORTB,2
+#define INT PORTB,3
+#define SCK PORTB,4
+#define CS PORTB,5
+#define FILTER_EN PORTB,7
;; variables
;; all Pages
@@ -90,7 +90,7 @@ int_tmr2
retfie
int_spi
- bsf PORTA,7
+ bsf DBG2
bcf PIR1,SSP1IF
movlb b'00000100'
movf SSP1BUF,w
@@ -98,7 +98,7 @@ int_spi
movf TMP,w
movwf SSP1BUF
movlb b'00000000'
- bcf PORTA,7
+ bcf DBG2
retfie
;; -------------------------------------
@@ -246,12 +246,12 @@ init
movlw b'11000000' ; GIE,PEIE
movwf INTCON
- bcf PORTA,FILTER_EN
- bsf PORTB,INT
+ bcf FILTER_EN
+ bsf INT
- bcf PORTB,DBG0
- bcf PORTA,DBG1
- bcf PORTA,DBG2
+ bcf DBG0
+ bcf DBG1
+ bcf DBG2
;; -------------------------------------
;; MAINLOOP