From a1930543044513c7fec220f86ebb5719c2dbeb6c Mon Sep 17 00:00:00 2001 From: Kwarde Date: Sat, 5 Jul 2025 02:30:18 +0200 Subject: [PATCH] Add conditional code for tests.asm (include certain tests or not) --- src/tests.asm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/tests.asm b/src/tests.asm index 2240063..0ce111b 100644 --- a/src/tests.asm +++ b/src/tests.asm @@ -11,6 +11,7 @@ extern strlen section .rodata TEST_print equ 1 + TEST_puts equ 1 TEST_strlen equ 1 ; print() @@ -37,24 +38,30 @@ _start: ;--- ;--- print() ;--- +%if TEST_print lea rdi, [rel msgPrint] call print +%endif ;--- ;--- puts() ;--- +%if TEST_puts lea rdi, [rel msgPuts] call puts +%endif ;--- ;--- strlen() ;--- +%if TEST_strlen ; TEST 1 lea rdi, [rel strlenStr1] call strlen ; TEST 2 lea rdi, [rel strlenStr2] call strlen +%endif ;--- ;--- exit()