Original Post
I'm using MASM assembly (Kip R Irvine thing) and i"m using visual studio 2008 with his projects and stuff. This is what the professor recommended and wants. So I wrote a program in Assembly to add three numbers together.... but whenever I run it it just doesn't show up in the dark window. @_@ It works it has no issues but it won't show.... is there something I"m missing?
Here's the code
TITLE MASM Template (main.asm)
; Description:
;
; Revision date:
INCLUDE Irvine32.inc
.data
number1 DWORD 3
number2 DWORD 2
number3 DWORD 1
sum DWORD ?
.code
main PROC
mov eax, number1
add eax, number2
add eax, number3
mov sum, eax
mov eax, 0
ret
main ENDP
END main
Here's the code
TITLE MASM Template (main.asm)
; Description:
;
; Revision date:
INCLUDE Irvine32.inc
.data
number1 DWORD 3
number2 DWORD 2
number3 DWORD 1
sum DWORD ?
.code
main PROC
mov eax, number1
add eax, number2
add eax, number3
mov sum, eax
mov eax, 0
ret
main ENDP
END main