When using "int 21h", on MASM Visual Studio Assembly Language, it gives me an error

0

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
visual-studio
assembly
masm
asked on Stack Overflow Oct 6, 2020 by Brookie_C

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0