modified:   src/main.asm
This commit is contained in:
PoliEcho 2025-03-18 18:44:52 +01:00
parent 50541c4666
commit dddbaa3a9e

View File

@ -10,9 +10,11 @@ section .bss
heap_ptr resq 1 ; Changed 'resp' to 'resq' heap_ptr resq 1 ; Changed 'resp' to 'resq'
section .data section .data
hello: db ESC_CHAR, "[10;15Hhello suckers! :)", 10, 0 hello: db ESC_CHAR, "[10;15Hhello suckers! :)", 10, 0
test: db ESC_CHAR, "[20;25Hmore txt here", 10, 0 test: db ESC_CHAR, "[20;25Hmore txt here", 10, 0
clear: db ESC_CHAR, "[2J", 0 to_s: db ESC_CHAR, "[", 0
tt_s: db ";25Htest here", 10, 0
clear: db ESC_CHAR, "[2J", 0
section .text section .text
global _start global _start
@ -105,13 +107,25 @@ _start:
mov rdi, 0 mov rdi, 0
syscall syscall
mov [heap_ptr], rax mov [heap_ptr], rax
mov rdi, to_s
call print_str
mov rdi, 6969 mov rdi, 30
call unsigned_int_to_acii call unsigned_int_to_acii
mov rdi, rax mov rdi, rax
call print_str 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 rax, SYS_EXIT
mov rdi, 0 ; return code mov rdi, 0 ; return code
syscall syscall