From: Lukas Krickl Date: Sun, 26 Nov 2023 08:07:20 +0000 (+0100) Subject: WIP: tests X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=0f0624fb921fe349cdd6ccb5de99239712bad48a;p=ulas%2F.git WIP: tests --- 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'),