From f4c8ec9028f19fe334ecd4ae49521011fcdba012 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Sun, 14 Jul 2024 09:54:54 -0700 Subject: Single Linked List Impl --- debug.inc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'debug.inc') diff --git a/debug.inc b/debug.inc index 52a1509..230c7e8 100644 --- a/debug.inc +++ b/debug.inc @@ -6,6 +6,12 @@ %ifndef DTOS_INC %include "dtos.inc" %endif +%ifndef MONAD_INC +%include "monad.inc" +%endif + + section .data + m_make debug_register ;; TODO: Make print without newlineg %macro DEBUG_HERE 0-1 "" @@ -23,4 +29,12 @@ lea rax, [rel %%text] call print_zstring %endm + +%macro REGD 0-2 rax,h + section .text + lea rax, [%1] + m_return rel m_debug_register + m_bind data_to_zstring_m%2 + m_call print_zstring +%endm %endif -- cgit v1.2.1