This seems like a a trivial question, but I’m lost.
In this example character is a 2 byte variable, while the register bx is a single byte. I’m trying to do cmp bx, [character], which clearly won’t work because of the difference in size.
I’m trying to compare bx to only the first byte of character. Thoughts?
bx rebister is 16 bit size and is composed from two 8 bit bl and bh!
For 16 bit cmp you can use prefix:
for 8 bit bl cmp
or 8 bit bh cmp