Hi,
In assembler, how can we initialize the register to 0000? Are there some best practices to choose from? Appreicate your help.
In assembler, how can we initialize the register to 0000?
- enrico-sorichetti
- Global Moderator
- Posts: 843
- Joined: Wed Sep 11, 2013 3:57 pm
Re: In assembler, how can we initialize the register to 0000
Code: Select all
SR <your-reg>,<your-reg>
...
XR <your-reg>,<your-reg>
( when people looked at the smallest details to squeeze everything out of the CPU available )
XR was preferred for being slightly faster
nowadays the issue is probably irrelevant
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort

Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute