Re: Help With Stacks
i suppose youre programming in 8086 ASM?
if so, how big number?
if 8 bit just use AL, AH, BL, BH, CL, CH, DL, DH (whichever you find suitable) and then use the MUL instruction
if 16 bit just use AX, BX, CX, DX (whichever you find suitable) and then use the MUL instruction
if 32 bit you can just use EAX, EBX, ECX, EDX (whichever you find suitable) and then use the MUL instruction
if 64 bit youll need to use 2 registers (i believe its done by doing: EAX:EBX or something like that) still using MUL command
if your problem is in the stack, check and make sure youre using PUSH and POP right
the registers works like this (? can be A B C or D):
E?X is the 32 bit extension register
?X is a 16 bit register, and is also the lower word (16 bits) of E?X
?L is the lower byte (8 bits) of ?X
?H is the higher byte (8 bits) of ?X
hope this helps