.model small
.stack 100h
.data
num1 db 3
num2 db 5
max db 0
.code
start:
mov ax, @data
mov ds, ax
mov ah, 01h
int 21h
mov num1, al
mov ah, 01h
int 21h
mov num2, al
cmp num1, num2
jg greater
mov max, num2
jmp done
greater:
mov max, num1
done:
mov dl, max
mov ah, 02h
int 21h
mov ax, 4c00h
int 21h
end start
I get this errors:
Error 100.asm(22) Illegal memory reference Error 100.asm(24) Need register in expression Error 100.asm(27) Need register in expression
,mentioning that the name of my file is 100.asm
I wanted to take 2 numbers as input and compare them to find the maximum value but i get this: quick mention is that my file is named 100.asm