From 9aa02bebf295ce9436451e0ce85db7717a6c9f81 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sun, 4 Aug 2019 00:13:59 +1200 Subject: Add initial emulator implementation This emulator provides a rough way for binaries designed for this CPU to be executed in a virtual/emulated CPU for testing purposes. This patch also adds a small test setup for automated assembly, execution and checking of register postconditions for programs. --- test/full-pipeline/005-small-loop.asm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/full-pipeline') diff --git a/test/full-pipeline/005-small-loop.asm b/test/full-pipeline/005-small-loop.asm index 3f2dc5f..5c47e51 100644 --- a/test/full-pipeline/005-small-loop.asm +++ b/test/full-pipeline/005-small-loop.asm @@ -1,6 +1,7 @@ ldi $1, 2 -ldi $2, 100 +ldi $2, 20 ldi $3, 0 loop: add $3, $3, $1 + subi $2, $2, 1 bnz loop -- cgit v1.1