Hi.
This seems like quite a basic question but im not sure how to do it and a basic google search didn't turn up anything.
Firstly, if I have a register called colour with the content:
0000 0101
I want to check the 2nd bit in the register, and see if it is a 0 or a 1. How do i do this in assembly language?
Furthermore, after checking the result is 0 and I then want to write a 1 to the 2nd bit in the register. How do I do this?
Thanks!
James
This seems like quite a basic question but im not sure how to do it and a basic google search didn't turn up anything.
Firstly, if I have a register called colour with the content:
0000 0101
I want to check the 2nd bit in the register, and see if it is a 0 or a 1. How do i do this in assembly language?
Furthermore, after checking the result is 0 and I then want to write a 1 to the 2nd bit in the register. How do I do this?
Thanks!
James