Hello,
I have tried, using 32-bit assembly language code I found online, to write my own program. It assembled and link, but when I run it, I get a message saying the program had "encountered a problem and needs to close." It is a message that is common on Windows, asking to send a report to Microsoft. I tried using a Turbo Debugger, but I got the same message, but for the debugger. The code is the following:
As you can see, the point of the program is simply to add some values (the result would be checked through a debugger).
I'm using a pentium III processor with Windows XP. What would be the problem(s) with my code? Thank you very much
I have tried, using 32-bit assembly language code I found online, to write my own program. It assembled and link, but when I run it, I get a message saying the program had "encountered a problem and needs to close." It is a message that is common on Windows, asking to send a report to Microsoft. I tried using a Turbo Debugger, but I got the same message, but for the debugger. The code is the following:
Code:
.586
.MODEL FLAT, STDCALL
.DATA
DATA1 DB 52H
DATA2 DB 29H
SUM DB ?
.CODE
START:
MOV AL, DATA1
MOV BL, DATA2
ADD AL, BL
MOV SUM, AL
END START
I'm using a pentium III processor with Windows XP. What would be the problem(s) with my code? Thank you very much