Syntax Question in Assembly
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2003-09-02 6:41 AM
This discussion is locked. Please start a new topic to ask your question.
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2003-08-27 10:50 AM
Posted on August 27, 2003 at 19:50
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???Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2003-08-28 9:20 AM
Posted on August 28, 2003 at 18:20
I guess ot clarify my question, what does
(any variable)+1 mean when it is used like ld (any variable)+1, AOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2003-08-28 10:28 PM
Posted on August 29, 2003 at 07:28
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 SJOOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2003-09-02 6:41 AM
Posted on September 02, 2003 at 15:41
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