From 34483e07a0548d32651cda4ca4282f3cf8cae870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Neuwirth?= Date: Tue, 12 May 2009 15:27:58 +0200 Subject: adding rest of files --- ue3/mycpu/test/test_prog | 13 +++++++++++++ ue3/mycpu/test/test_prog_mem | 1 + 2 files changed, 14 insertions(+) create mode 100644 ue3/mycpu/test/test_prog create mode 100644 ue3/mycpu/test/test_prog_mem (limited to 'ue3/mycpu/test') diff --git a/ue3/mycpu/test/test_prog b/ue3/mycpu/test/test_prog new file mode 100644 index 0000000..7c5f929 --- /dev/null +++ b/ue3/mycpu/test/test_prog @@ -0,0 +1,13 @@ +# set R2 = 10 +load R1, R2 + +# start of loop +label Loop: +inc R3 +sub R4, R3, R2 +test R4 +jumpz EndLoop +write WDEZ, R3 +jumpa Loop + +label EndLoop: diff --git a/ue3/mycpu/test/test_prog_mem b/ue3/mycpu/test/test_prog_mem new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/ue3/mycpu/test/test_prog_mem @@ -0,0 +1 @@ +10 -- cgit v1.2.3