Original Post
Hi Im having problems with my code, I'm trying to get the argument string from the PSP at offset 81h, and a part of my code is this is not all the code, but i just wanted to clarify something for myself, what is the point of byte ptr infront of es:[81h]? When I run the code through a debugger (CodeView) it disassembles the lea instruction to lea ax, word ptr es:[81h], which is the same as if I had ommited the byte ptr in the first place. Thanks
mov ah, 62h
int 21h ;// get PSP addrs
push es
mov es, bx ;// bx contains the PSP addrs after the last 62h - 21h call
lea ax, byte ptr es:[81h] ;// loads absolute addr of a byte
pop es