Hi
I need create a program and add two variable and print out of the result of the function: WriteDec and place the result in eax before calling WriteDec.
I wonder if I'm doing right?
TITLE Add
; This program adds 32-bit unsigned
INCLUDE Irvine32.inc
.data
val1 DWORD 10000h
val2 DWORD 40000h
finalVal DWORD ?
.code
main PROC
mov eax,val1 ; start with 10000h
add eax,val2 ; add 40000h
mov finalVal,eax ; store the result
call WriteDec ; Display decimal
call Crlf ; new line
exit
main ENDP
END main