Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Sherk committed Mar 17, 2022
1 parent 263fed8 commit c11d649
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion except-new.pdl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ exn-pipe cpu(pc :uint<16>)[imem :uint<8>[16]<a,a>, acc :uint<4>[0]<c,s>] :uint<4
}
case: (ex)
{
cause = 4;
except();
}
}
Expand All @@ -36,10 +37,10 @@ exn-pipe cpu(pc :uint<16>)[imem :uint<8>[16]<a,a>, acc :uint<4>[0]<c,s>] :uint<4
call cpu(pc + 1);
}
end(acc);
---
commit:
print("no exn here!");
except:
---
print("exception!");
}

Expand Down
8 changes: 4 additions & 4 deletions insns.hex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
13
16
22
00
13 //add 3
16 //add 6
22 //sub 2
00 //terminate

0 comments on commit c11d649

Please sign in to comment.