0
My code should receive a character and print the code in ASCII, but it doesn’t work and I can’t find where the error is. Edit: is giving error (41) Unexpected end of file encountered
model small
stack 100h
$AsciiToHex macro asciiChar, hexStr2
local tableHex
.data
tableHex db '0123456789ABCDEF'
.code
Main proc
mov ax, @data
mov ds, ax
mov ah,01h
int 21h
mov asciiChar, al
$AsciiToHex asciiChar, hexStr2
mov ax, word ptr [hexStr2]
mov bx, offset tableHex
mov al, [asciiChar]
mov ah, al
and al, 00001111b
xlat
mov [hexStr2 + 1], al
shr ax, 8
xlat
mov hexStr2, al
endp Main
end main
still giving error. Error: Code cannot be assembled. One or more support file for this Assembly code is Missing.
– Carlos B.Y
by the content of the message, it may be that the file "Equal-01.inc is missing"
– zentrunix
now you’re saying: (41) Unexpected end of file encountered
– Carlos B.Y