Click to See Complete Forum and Search --> : Type override


prince_kenshi
01-21-2001, 03:43 AM
Here's a simple question. I'm making a new program in assembler and I need to know how to use a type override. I'm using the command "mul 4" and I need it to multiply by register ax. I can't find anything in the tasm examples using it. I've tried stuff myself but to no avail. Also, is there an easier way to reference an offset from a variable? Basically I have a 3 byte variable and I want to change the last 2 bytes. The only way I've found to do it is to store the address of the variable in di and use "mov word ptr [si+1],bx". Is there a way I can do it without an addressing register? I tried "mov word [variable+1],bx" but it didn't work. If you can answer either of my questions, I'll appreciate it.

------------------
Prince Kenshi
Son of Bahamut