%include "rw32.inc" section .data sMessage db "Hello World!",EOL,0 section .text main: mov esi,sMessage call WriteString ; WriteStringASCIIZ ret
; Ze vstupu načti dvě 32b čísla (X a Y) a vypiš jejich součet (X+Y). %include "rw32.inc" section .text main: call ReadInt32 ; ReadInt32_Silent mov ebx, eax call ReadInt32 ; ReadInt32_Silent add eax, ebx call WriteInt32 ret
; Ze vstupu načti dvě 32b čísla (X a Y) a vypište hodnoty X-Y, -X+Y a -X-Y, ; každou na vlastní řádek. %include "rw32.inc" section .text main: ; ZDE TVUJ KOD call WriteNewLine ret
; Prohoď obsah registrů AL a AH (swap) %include "rw32.inc" section .text main: mov eax,0x11AA ; ZDE TVUJ KOD call WriteHex16 call WriteNewLine ret
; Ze vstupu načti čtyři 8b čísla (V, X, Y, Z) a vypiš hodnoty: ; 100-X, Y+Y+Z+Z a V+X+Y+Z (každý výsledek na vlastní řádek). %include "rw32.inc" section .text main: ; ZDE TVUJ KOD ret