I tried to assemble a file with NASM, but it pointed to this line in the file:
mov al, byte ptr es:[bx]
saying:
error: comma, colon or end of line expected
I found a page on this site saying that NASM doesn't like the word "ptr" and it would be happy if I wrote:
mov al, byte es:[bx]
instead. So I took out the word "ptr" and NASM is still not happy. Here is what NASM gives me when I leave out the word "ptr":
warning: register size specification ignored
and:
error: invalid combination of opcode and operands
It's a catch 22! NASM is angry whether or not I put in the word "ptr". Can anybody help me with this?