I am trying to determine the MSB/LSB in an 8/16 bit (currently unsigned) number as part of a larger function using assembly operations. I have done some investigating to try and determine some way to do this but I am still at a loss, could someone please point me in the right direction?
For reference, this is my code/pseudo-code that would implement it:
-------
GET LSB
cmp.b/w, LSB,#1
jeq / jne DESTINATION
___
EDIT: Would the BIT.B/W instruction suffice? The issue now becomes, how do I test the LSB and only the lsb?