alternative to push word

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
deus_the_programmer

alternative to push word

Post 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.
Moose

RE:alternative to push word

Post by Moose »

You have to put your word inside a register first.
Something like

mov ax, 0x100
push ax

Moose
Mara

RE:alternative to push word

Post by Mara »

You can use direct stack acces like:

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

luck.
Post Reply