this is a simple Assembly program. I am trying to output the Emp1 And Num1 in the following format:
Jow Blow
600 763 521
i get the following output:
Jow Blow
x
Also i want to output the total of the three numbers
.386
.MODEL FLAT
ExitProcess PROTO NEAR32 stdcall, dwExitCode:DWORD
Include io.h
.STACK 4096 ; reserve 4096-byte stack
.DATA ; reserve storage for data
Emp1 byte 'Jow Blow',13,10,0
Num1 DWORD 600,763,521
.CODE ; start of main program code
_start:
mov eax, Num1 ; first number to EAX
add eax, 158 ; add 158
mov sum, eax ; sum to memory
output Emp1
output Num1
INVOKE ExitProcess, 0 ; exit with return code 0
PUBLIC _start ; make entry point public
END ; end of source code
No comments:
Post a Comment