28.11.2014 Views

assembly_tutorial

assembly_tutorial

assembly_tutorial

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

int 0x80<br />

;call kernel<br />

section .data<br />

file_name db 'myfile.txt'<br />

msg db 'Welcome to Tutorials Point'<br />

len equ $-msg<br />

msg_done db 'Written to file', 0xa<br />

len_done equ $-msg_done<br />

section .bss<br />

fd_out resb 1<br />

fd_in resb 1<br />

info resb 26<br />

When the above code is compiled and executed, it produces following result:<br />

Written to file<br />

Welcome to Tutorials Point<br />

TUTORIALS POINT<br />

Simply Easy Learning

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!