During my current project I found such code:
move.w (0xFFFC0C).l, d0 | read SCSR
andi.w #0x100, d0 | add 256 to d0
beq.s location | branch if LSB = 0x00
I cannot get the idea of this fragment. I guess author tried to check the status of the UART, but how does andi.w
and beq.s
serves the purpose, when SCSR may contain maximum of 9 bits?