%include "rw32-2018.inc"

section .data
	sMessage db "Trust me I'm the Doctor!",EOL,0

section .text
CMAIN:
    push ebp
    mov ebp, esp

    mov esi, sMessage
    call WriteString		; vypis retezce
    call WriteNewLine

    call ReadInt32		; nacteni celeho cisla a do eax
    mov ebx, eax		; ulozeni a do ebx
    call ReadInt32		; nacteni hodnoty b do eax
    add eax, ebx		; eax = b + a
    call WriteInt32		; vypis vysledku
    call WriteNewLine
    
    pop ebp
    ret
