I'm writing a boot sector code which contains the statements below:
xor cx, cx ;clear CX
cmp [cx], 'B'
I receive the error thrown by NASM:
error: operation size not specified
I modify the code like this:
cmp byte [cx], 'B'
However I receive another error:
error: invalid effective address
I'm searching on the error but I don't get to know why that is thrown