From c11d649c460c2fb742e536b78c75764b1e1bab5c Mon Sep 17 00:00:00 2001 From: Charles Sherk Date: Thu, 17 Mar 2022 01:40:01 -0400 Subject: [PATCH] tmp --- except-new.pdl | 3 ++- insns.hex | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/except-new.pdl b/except-new.pdl index f80bcbf3..c6e12959 100644 --- a/except-new.pdl +++ b/except-new.pdl @@ -25,6 +25,7 @@ exn-pipe cpu(pc :uint<16>)[imem :uint<8>[16], acc :uint<4>[0]] :uint<4 } case: (ex) { + cause = 4; except(); } } @@ -36,10 +37,10 @@ exn-pipe cpu(pc :uint<16>)[imem :uint<8>[16], acc :uint<4>[0]] :uint<4 call cpu(pc + 1); } end(acc); + --- commit: print("no exn here!"); except: - --- print("exception!"); } diff --git a/insns.hex b/insns.hex index f0e2be3e..f7c4dba1 100644 --- a/insns.hex +++ b/insns.hex @@ -1,4 +1,4 @@ -13 -16 -22 -00 \ No newline at end of file +13 //add 3 +16 //add 6 +22 //sub 2 +00 //terminate \ No newline at end of file