Continued to lesson 28
This commit is contained in:
Executable
BIN
Binary file not shown.
@@ -0,0 +1,31 @@
|
||||
|
||||
; %include '../lib/fl.asm' ; local
|
||||
%include 'lib/fl.asm' ; build.sh
|
||||
|
||||
SECTION .data
|
||||
filename db 'test.txt', 0h
|
||||
contents db 'Hello world!', 0h
|
||||
|
||||
SECTION .text
|
||||
global _start
|
||||
|
||||
_start:
|
||||
mov ecx, 0777o
|
||||
mov ebx, filename
|
||||
mov eax, 8
|
||||
int 80h
|
||||
|
||||
mov edx, 12
|
||||
mov ecx, contents
|
||||
mov ebx, eax
|
||||
mov eax, 4
|
||||
int 80h
|
||||
|
||||
mov ecx, 0
|
||||
mov ebx, filename
|
||||
mov eax, 5
|
||||
int 80h
|
||||
|
||||
call iprintLF
|
||||
call quit
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user