1
« en: Lunes 1 de Marzo de 2010, 17:19 »
solo tienes k agregar call WaitMsg para k no se cierre entonces tu codigo kedaria asi:
TITLE Add and Subtract (16-bit.asm)
; This program adds and subtracts 32-bit integers.
; Last update: 06/01/2006
INCLUDE Irvine16.inc
.code
main PROC
mov ax,@data
mov ds,ax
mov eax,10000h ; EAX = 10000h
add eax,40000h ; EAX = 50000h
sub eax,20000h ; EAX = 30000h
call DumpRegs
call WaitMsg
exit
main ENDP
END main