-;; vim: syntax=fasm
-
-section '.text' code readable executable
+os_code_section
macro printlen msg, len {
push rsi
mov rcx, msg
mov rdx, len
- sys_print_string
+ call os_print_string
sub rsp, 8
pop rsi
pop rdi
printlen rdi, [.length]
newline
- sys_terminate 100
+ mov rax, 100
+ call os_terminate
-section '.data' readable writable
+os_data_section
find.search_length dq ?
find.search_buffer dq ?