From 0f0624fb921fe349cdd6ccb5de99239712bad48a Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Sun, 26 Nov 2023 09:07:20 +0100 Subject: [PATCH] WIP: tests --- src/test.c | 8 ++++++++ src/ulas.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/test.c b/src/test.c index e96a103..1d8ebe3 100644 --- a/src/test.c +++ b/src/test.c @@ -283,6 +283,13 @@ void test_asminstr(void) { TESTEND("asminstr"); } +// tests the entire stack +void test_full(void) { + TESTBEGIN("testfull"); + + TESTEND("testend"); +} + int main(int arc, char **argv) { ulas_init(ulas_cfg_from_env()); @@ -296,6 +303,7 @@ int main(int arc, char **argv) { test_totok(); test_intexpr(); test_asminstr(); + test_full(); ulas_free(); diff --git a/src/ulas.c b/src/ulas.c index d4de43e..0b1509e 100644 --- a/src/ulas.c +++ b/src/ulas.c @@ -1713,7 +1713,7 @@ const struct ulas_instr ULASINSTRS[] = { ULAS_INSTR_PREBITR8D("res", 0xA8, '5'), ULAS_INSTR_PREBITR8D("res", 0xB0, '6'), ULAS_INSTR_PREBITR8D("res", 0xB8, '7'), - + ULAS_INSTR_PREBITR8D("set", 0xC0, '0'), ULAS_INSTR_PREBITR8D("set", 0xC8, '1'), ULAS_INSTR_PREBITR8D("set", 0xD0, '2'), -- 2.30.2