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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -