My code should get a character and print the code in ASCII, but it does not work and I can not figure out where the error is. Edit: is giving the 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