|
JP1 Remotes
|
View previous topic :: View next topic |
Author |
Message |
vickyg2003 Site Admin
Joined: 20 Mar 2004 Posts: 7073 Location: Florida |
Posted: Sun Aug 22, 2010 10:09 am Post subject: S3C8 Registers |
|
|
I was revisiting the S3C8 language and I need a crash course in registers. Obviously I knew something about this at one time, I think Bill explained it to me, but I've forgotten everything.
Does W0 have something to do with RC0?
If I have memory aids, like mneumonics, perhaps I could remember what is what. _________________ Remember to provide feedback to let us know how the problem was solved and share your upgrades.
Tip: When creating an upgrade, always include ALL functions from the oem remote, even if you never plan on assigning them to a button. Complete function lists makes an upgrade more helpful to others.
|
|
Back to top |
|
|
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21271 Location: Chicago, IL |
Posted: Sun Aug 22, 2010 10:31 am Post subject: |
|
|
W0 is a pseudonym for RC0, they are exactly the same register.
You can always refer to the scratch registers using their full names (ie, RC0, RC1, etc) but the instructions typically use more bytes of memory than the equivalent instructions (when available) that use the short names. _________________ Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help! |
|
Back to top |
|
|
mr_d_p_gumby Expert
Joined: 03 Aug 2003 Posts: 1370 Location: Newbury Park, CA |
Posted: Sun Aug 22, 2010 4:17 pm Post subject: |
|
|
In PB, W0 and RC0 are treated as equivalent and the assembly will use the shorter instructions in either case. W0 thru WF are the same as RC0 thru RCF, respectively.
Actually, this can be changed, but I have never seen the remote firmware do it (outside of an extender), so you can assume the above to be true. _________________ Mike England |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|