I can't get my pointers in assembly to work, I'm using nasm and trying to use pointers in real mode with 16-bit registers. Here is my code:
mov di, Pointer mov ah, 0x0e mov al, [di] int 0x10 Pointer: db "W"
This code should print out the character "W" using the DOS function 0x0e of interrupt 0x10.
I't always prints out instead, a different character that is the same no matter what I make the pointer "Pointer"'s value point to.
So what did I do wrong?