works
modified: src/main.asm
This commit is contained in:
parent
50541c4666
commit
dddbaa3a9e
16
src/main.asm
16
src/main.asm
@ -12,6 +12,8 @@ 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
|
||||||
|
to_s: db ESC_CHAR, "[", 0
|
||||||
|
tt_s: db ";25Htest here", 10, 0
|
||||||
clear: db ESC_CHAR, "[2J", 0
|
clear: db ESC_CHAR, "[2J", 0
|
||||||
|
|
||||||
section .text
|
section .text
|
||||||
@ -106,7 +108,19 @@ _start:
|
|||||||
syscall
|
syscall
|
||||||
mov [heap_ptr], rax
|
mov [heap_ptr], rax
|
||||||
|
|
||||||
mov rdi, 6969
|
mov rdi, to_s
|
||||||
|
call print_str
|
||||||
|
|
||||||
|
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
|
call unsigned_int_to_acii
|
||||||
|
|
||||||
mov rdi, rax
|
mov rdi, rax
|
||||||
|
Loading…
x
Reference in New Issue
Block a user