P
petrus bitbyter
Guest
"ian field" <dai.ode@ntlworld.com> schreef in bericht
news
wivj.2311$g81.1768@newsfe3-gui.ntli.net...
You'd better crosspost next time.
petrus bitbyter
news
Read my answer in ABSE.In a sample fragment of code (EQU section) of a program example from the
book PIC in Practice:
TMR0 EQU 1 ;TMR0 is FILE 1.
PORTA EQU 5 ;PORTA is FILE 5.
PORTB EQU 6 ;PORTB is FILE 6.
STATUS EQU 3 ;STATUS is FILE3.
ZEROBIT EQU 2 ;ZEROBIT is Bit 2.
COUNT EQU 0CH ;USER RAM LOCATION.
EEADR EQU 9 ;EEPROM address register
EEDATA EQU 8 ;EEPROM data register
EECON1 EQU 8 ;EEPROM control register1
EECON2 EQU 9 ;EEPROM control register2
RD EQU 0 ;read bit in EECON1
WR EQU 1 ;Write bit in EECON1
WREN EQU 2 ;Write enable bit in EECON1
How does the assembler tell the difference between a file and a bit?
The lines starting with ZEROBIT and WREN do not seem to have anything to
distinguish them from file EQUs.
TIA.
You'd better crosspost next time.
petrus bitbyter