%include "rw32-2018.inc" section .data x8 db 12 u8 db 132 i8 db -6 x16 dw 10658 u16 dw 63000 i16 dw -318 x32 dd 2 u32 dd 3100000000 i32 dd -1 x64 dq 10000000000 i64 dq -1024 section .text CMAIN: mov ebp, esp; for correct debugging ;======== x8 + 1 ======== call WriteNewLine ;======== i8 % x8 ======== call WriteNewLine ;======== x16 - i16 ======== call WriteNewLine ;======== x16 * u16 ======== call WriteNewLine ;======== x32 * 8 ======== call WriteNewLine ;======== x64 + i64 ======== call WriteNewLine ;======== u32 / i32 ======== call WriteNewLine ;======== u32 / u16 ======== call WriteNewLine ;======== u32 / i8 ======== call WriteNewLine ;======== x64 / u32 ======== call WriteNewLine ;======== x64 / x32 ======== call WriteNewLine xor eax, eax ret ; funkce pro vypis 64b cisel CEXTERN printf section .data pf_fmt_i db "%lld",0 pf_fmt_u db "%llu",0 section .text WriteInt64: push ebp mov ebp,esp push edx push eax push pf_fmt_i call printf add esp, 12 leave ret WriteUInt64: push ebp mov ebp,esp push edx push eax push pf_fmt_u call printf add esp, 12 leave ret