flat assembler
Message board for the users of flat assembler.
Index
> DOS > compile error A2070: invalid instruction operands |
Author |
|
daluca 22 Jan 2006, 08:12
i see you are using .MODEL so are you a FASM user?
i now fasm don't give errors like "A2070" and i think that the 02H function of int 21 for character output takes the character in dl not al the code in fasm is like: Code: org 100h mov CL,0 ; initialize mov dl,CL ; output mov AH,02H int 21H START: inc CL ; incrementing mov dl,CL ; output mov AH,02H int 21H mov dl,CL ; max. 256 outputs cmp dl,255 jne START ret you see i sustitude the al for dl this works fine in my machine but your question is about the compiler giving an error if you are usin masm i think you have to use the linker too and maybe somethin like end START i realy don't have much experince with masm. |
|||
22 Jan 2006, 08:12 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.