assembly - Read from arg / parameter in tasm -


i have color dw ?

and

parm: mov ah, 62h int 21h  mov es, bx   mov bx, 80h   mov cl, [es:bx]  cmp cl, 2  ret   mov bx, 82h  xor ax, ax xor dx, dx  mov dl, [es:bx] sub dl, '0'      mov [col], dl inc bx 

i want read value of parameter, there error: operand types not match. why not work?

from "i have color dw ?" variable word sized.
since cleared dx register beforehand should change mov [col], dl mov [color],dx store result.

a second problem compare length of commandline fail jump if there's no argument. can replace ret jb location exits application.

mov cl, [es:bx]  cmp cl, 2 jb noarg  

Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -