When I try to declare a variable with the name "name" it doesn't work, it gives me an error, this one there are errors.
with the following explanation
(22) wrong parameters: MOV BL, name
(22) probably no zero prefix for hex; or no 'h' suffix; or wrong addressing; or undefined var: name
here is my code
; multi-segment executable file template.
data segment
; add your data here!
pkey db "press any key...$"
name db "myname"
ends
stack segment
dw 128 dup(0)
ends
code segment
start:
; set segment registers:
mov ax, data
mov ds, ax
mov es, ax
; add your code here
MOV BL, name
;;;;;
lea dx, pkey
mov ah, 9
int 21h ; output string at ds:dx
; wait for any key....
mov ah, 1
int 21h
mov ax, 4c00h ; exit to operating system.
int 21h
ends
end start ; set entry point and stop the assembler.
the thing is, if I try any other name for the variable it works, namee
, nname
, name_
, but upper-case doesn't work, I tried searching all over the internet, but either I'm searching wrong, or I don't know what to search for.