works
modified: src/main.asm
This commit is contained in:
parent
50541c4666
commit
dddbaa3a9e
22
src/main.asm
22
src/main.asm
@ -10,9 +10,11 @@ section .bss
|
||||
heap_ptr resq 1 ; Changed 'resp' to 'resq'
|
||||
|
||||
section .data
|
||||
hello: db ESC_CHAR, "[10;15Hhello suckers! :)", 10, 0
|
||||
test: db ESC_CHAR, "[20;25Hmore txt here", 10, 0
|
||||
clear: db ESC_CHAR, "[2J", 0
|
||||
hello: db ESC_CHAR, "[10;15Hhello suckers! :)", 10, 0
|
||||
test: db ESC_CHAR, "[20;25Hmore txt here", 10, 0
|
||||
to_s: db ESC_CHAR, "[", 0
|
||||
tt_s: db ";25Htest here", 10, 0
|
||||
clear: db ESC_CHAR, "[2J", 0
|
||||
|
||||
section .text
|
||||
global _start
|
||||
@ -105,13 +107,25 @@ _start:
|
||||
mov rdi, 0
|
||||
syscall
|
||||
mov [heap_ptr], rax
|
||||
|
||||
mov rdi, to_s
|
||||
call print_str
|
||||
|
||||
mov rdi, 6969
|
||||
mov rdi, 30
|
||||
call unsigned_int_to_acii
|
||||
|
||||
mov rdi, rax
|
||||
call print_str
|
||||
|
||||
mov rdi, tt_s
|
||||
call print_str
|
||||
|
||||
mov rdi, 7888
|
||||
call unsigned_int_to_acii
|
||||
|
||||
mov rdi, rax
|
||||
call print_str
|
||||
|
||||
mov rax, SYS_EXIT
|
||||
mov rdi, 0 ; return code
|
||||
syscall
|
||||
|
Loading…
x
Reference in New Issue
Block a user