1 ;======================================================================
3 ; common macros & equs etc.
4 ; generally include this at the top of each file.
6 ;----------------------------------------------------------------------
7 ; COMMON INCLUDES and BOILERPLATE
8 include /usr/share/gputils/header/p18f458.inc
11 include morse+auto.inc
12 include ../iwjpictest/insn-aliases.inc
14 include ../iwjpictest/clockvaries.inc
15 include variables+vars.inc
17 ;----------------------------------------------------------------------
18 ; Common conventions for function register notation:
19 ; NOTE THAT THIS IS WRONG FIXME FIXME
23 ; STATUS Trashed Trashed
24 ; BSR Not used Not used
25 ; TBLPTR*,TABLAT Reserved for ISR/init Not used except init
26 ; FSR0 Reserved for ISR/init Reserved for ISR/init
27 ; FSR1, FSR2 Trashed Reserved for I2C/init
29 ;----------------------------------------------------------------------
32 ;----------------------------------------------------------------------
35 ; A PINSPEC is a constant 0x<bit><port> where <port> is a b c d e
36 ; and <port> is 0 1 2 3 4 5 6 7. Generally p<picno>_<subsystem>_<pin>
42 p0_booster_shutdown equ 2b
43 p0_booster_overload equ 1b
44 p0_booster_userfault equ 0b
49 pall_pt0reverse equ 7b
51 p0_booster_dirn equ 0c
56 bs_f TRISA + (TRISB-TRISA)*((pinspec-0xa) & 15), pinspec >> 4
60 bc_f TRISA + (TRISB-TRISA)*((pinspec-0xa) & 15), pinspec >> 4
64 bs_f LATA + (LATB-LATA)*((pinspec-0xa) & 15), pinspec >> 4
68 bc_f LATA + (LATB-LATA)*((pinspec-0xa) & 15), pinspec >> 4
82 bt_f_if1 PORTA + (PORTB-PORTA)*((pinspec-0xa) & 15), pinspec >> 4
86 bt_f_if0 PORTA + (PORTB-PORTA)*((pinspec-0xa) & 15), pinspec >> 4
89 ;----------------------------------------------------------------------