I know the pop
instruction does this:
Loads the value from the top of the stack to the location specified with the destination operand (or explicit opcode) and then increments the stack pointer
but I can't access the data when I pop
it!
I have this code:
mov ah , 0x0e
mov bp, 0x8000
mov sp , bp
push 'A'
mov al , [0x7ffe]
int 0x10 ; print A
pop bx
mov al ,bl
int 0x10 ; print A
mov al , [0x7ffe]
int 0x10 ; **print random chare !**
jmp $
times 510-($-$$) db 0
dw 0xaa55
Why does the third int 0x10
not print 'A'?