.486
.model flat, stdcall
option casemap :none

include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\masm32.inc
include \masm32\include\msvcrt.inc


includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\masm32.lib
includelib \masm32\lib\msvcrt.lib

include \masm32\macros\macros.asm

; -------------------------------------------
; Data segment
; -------------------------------------------
.data

x     equ  1234
y     dd   4444
Str1  db "Result = %d", 13, 10, 0


; -------------------------------------------
; Code segment
; -------------------------------------------
.code
start:

    mov  eax, x
    push eax
    push offset Str1
    call crt_printf
    add  esp, 8

    mov  eax, y
    push eax
    push offset Str1
    call crt_printf
    add  esp, 8

    mov  eax, offset y
    push eax
    push offset Str1
    call crt_printf
    add  esp, 8

    ; Exit....

    invoke ExitProcess, 0



end start


