. 386
. Model flat, stdcall
Include msvcrt. inc
Includelib msvcrt. Lib
. Code
Start:
JMP @ F
Szfmt dB '% d', 0dh, 0ah, 0
Val DD 11
Dd 22
Dd 33,44, 55
Valsum equ ($-Val)/(sizeof DWORD)
Vallen equ lengthof Val
Valt DD 2 DUP (23, 34, 45)
@@:
Invoke crt_printf, ADDR szfmt, Val
Invoke crt_printf, ADDR szfmt, Val [0]
Invoke crt_printf, ADDR szfmt, Val [4*1]
Invoke crt_printf, ADDR szfmt, Val [4*2]
Invoke crt_printf, ADDR szfmt, Val [4*3]
Invoke crt_printf, ADDR szfmt, Val [4*4]
Invoke crt_printf, ADDR szfmt, valsum
Invoke crt_printf, ADDR szfmt, vallen
Invoke crt_printf, ADDR szfmt, Valt
Invoke crt_printf, ADDR szfmt, Valt [4*1]
Invoke crt_printf, ADDR szfmt, Valt + 8
Invoke crt_printf, ADDR szfmt, Valt [4*3]
Invoke crt_printf, ADDR szfmt, Valt [4*4]
Invoke crt_printf, ADDR szfmt, Valt + 20
RET
End start
; /////////// Compile the file into a KB
; /// Ml/C/coff Add. ASM
; /// Link/subsystem: console/merge:. RDATA =. Text Add. OBJ> NUL