; This example creates simple Hello world program for Linux.
; You can run it from inside Fresh IDE, if you run Fresh from
; Linux, or have installed and configured andLinux in Windows.
;
; For detailed explanation how to properly setup Fresh IDE in
; order to develop applications for Linux and Windows in the
; same time, read the setup manual on:
; http://fresh.flatassembler.net/index.cgi?page=content/articles/0_advanced_setup.txt
; or read the corresponding help file: advanced_setup.md in the
; Fresh IDE help.

format ELF executable
entry _start

segment readable executable
_start:

        mov     eax,4
        mov     ebx,1
        mov     ecx,msg
        mov     edx,msg_size
        int     $80

        mov     eax,1
        xor     ebx,ebx
        int     $80


segment readable writeable
msg db 'Hello world!',$0a
    db 'Now Fresh can run Linux ELF executables. :)', $0a
msg_size = $-msg
