From f639240b6c340415d255f7b46b1f30f4e886e14a Mon Sep 17 00:00:00 2001 From: zxq5 Date: Tue, 24 Jun 2025 18:07:33 +0100 Subject: [PATCH] progress on debugging bf.dsa --- resources/dsa/bf.dsa | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/resources/dsa/bf.dsa b/resources/dsa/bf.dsa index 801a0b7..96b2e60 100644 --- a/resources/dsa/bf.dsa +++ b/resources/dsa/bf.dsa @@ -20,6 +20,7 @@ _init_stack: start: // load the start of the program into rg0 lwi program, rg0 + lwi data, rg1 // rg0 is our instruction pointer // rg1 is our data pointer @@ -41,11 +42,11 @@ loop_start: ldb rg0, rg3 - // pusha 2 - // push rg3 - // call print::print_byte - // pop zero - // popa 2 + pusha 2 + push rg3 + call print::print_byte + pop zero + popa 2 // switch on the instruction // all cases will return to either loop_start or loop_end @@ -69,11 +70,6 @@ loop_start: jeq end // if we get here, we don't know what the instruction is - lwi error, rg0 - push rg0 - call print::print - pop zero - end: lwi error, rg2 pusha 2