Page 1 of 1

alternative to push word

Posted: Wed Jun 16, 2004 11:00 pm
by deus_the_programmer
hiya i have the following code but my compiler has a fit when it gets to the last line. here is the full code:

mov ax,es
sub ax,0x10
mov es,ax
mov ds,ax
mov ss,ax
mov sp, sp
push es
push word 0x100

is there an alternative asm instruction to push word 0x100 ?

if so can u let me know.

thanks,

ed.

RE:alternative to push word

Posted: Wed Jun 16, 2004 11:00 pm
by Moose
You have to put your word inside a register first.
Something like

mov ax, 0x100
push ax

Moose

RE:alternative to push word

Posted: Sun Jun 20, 2004 11:00 pm
by Mara
You can use direct stack acces like:

mov word [ss:sp],0x100
dec sp

luck.