Hi again
I have writen an program but I do not understand the error
*Warning* movsb.asm(23) Argument needs type override
It compiles and run because it is only a warning but it still bothers me
Plees help.
MOV AH, 62h
INT 21h
MOV ES, BX
CLD
mov bx,
@data mov es, bx
lea di, buffer
mov cx , 333
rep movsb
mov [di], 30h ;** line 23 ????
mov dx,buffer
MOV AH, 09h
INT 21h
Comments
:
: I have writen an program but I do not understand the error
: *Warning* movsb.asm(23) Argument needs type override
: It compiles and run because it is only a warning but it still bothers me
: Plees help.
: MOV AH, 62h
: INT 21h
: MOV ES, BX
: CLD
:
: mov bx, @data
: mov es, bx
: lea di, buffer
: mov cx , 333
: rep movsb
: mov [di], 30h ;** line 23 ????
:
: mov dx,buffer
: MOV AH, 09h
: INT 21h
Compiler doesn't know, how is size (byte or word, if you code in MS-DOS)of variable located at [di]. You have to use one from the following:
mov byte ptr [di], 30h
mov word ptr [di], 30h ; it means actually 0030h
------------