2003-09-02 06:41 AM
2003-08-27 10:50 AM
ld A,TimerA_freq1 ;PWM frequency
ld TimerA_freq,A ld A,{TimerA_freq1+1} ld {TimerA_freq+1},A what does the TimerA_freq1+1 stand for. At first I thought it was simple addition, but now I'm thinking it's some type of indexing???2003-08-28 09:20 AM
I guess ot clarify my question, what does
(any variable)+1 mean when it is used like ld (any variable)+1, A2003-08-28 10:28 PM
It is used to access the memory location + offset eg.
ld A, var ; var address 0x80 in ram (high byte of word) ld A, {var+1} ; read adr 0x81 (low byte of word) if var is declared as a 16bit word. Hope this helps SJO2003-09-02 06:41 AM
Quote:
On 2003-08-29 10:58, sjo wrote: It is used to access the memory location + offset eg. ld A, var ; var address 0x80 in ram (high byte of word) ld A, {var+1} ; read adr 0x81 (low byte of word) if var is declared as a 16bit word. Hope this helps SJO