The error it displays: Unhandled exception at 0x0029101F in AddingAndDisplay.exe: 0xC0000005: Access violation reading location 0xFFFFFFFF. occurred
What I want to do: Add two numbers and display them.
My Code:
INCLUDE Irvine32.inc
.data
.code
main PROC
mov bl, 1
mov cl, 2
add bl, cl
add bl, 48 ;since 48 = 0 in Ascii code, we have to make it equivilant.
mov dl, bl
mov ah, 2
int 21h
mov ah, 4ch
int 21h
main ENDP
END main
User contributions licensed under CC BY-SA 3.0