Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/12/03 13:44
Read: times


 
#38867 - RE: Reading new SFRs (SDCC and Winbond USB)
Responding to: ???'s previous message
Javier,

I put the code in one of my projects, and this was the assembler result:-

...
...
_RXSTAT = 0x00e2
...
...

; heart.c:344: aux=RXSTAT;
; genAssign
    mov    r2,_RXSTAT
; heart.c:345: aux++;
; genPlus
; genPlusIncr
    mov    a,#0x01
; Peephole 236a
    add    a,r2
    mov    _P1,a


Which would indicate that it was functioning correctly. What version of SDCC are you using?

Take the latest nightly build of SDCC from here if you are not using it.

Chris Brooks.

List of 8 messages in thread
TopicAuthorDate
Reading new SFRs (SDCC and Winbond USB)            01/01/70 00:00      
   RE: Reading new SFRs (SDCC and Winbond USB)            01/01/70 00:00      
      RE: Reading new SFRs (SDCC and Winbond USB)            01/01/70 00:00      
         RE: Reading new SFRs (SDCC and Winbond USB)            01/01/70 00:00      
            RE: Reading new SFRs (SDCC and Winbond USB)            01/01/70 00:00      
               RE: Reading new SFRs (SDCC and Winbond USB)            01/01/70 00:00      
                  RE: Reading new SFRs (SDCC and Winbond USB)            01/01/70 00:00      
   Reading new SFRs--> solution            01/01/70 00:00      

Back to Subject List