From 343d028398e382bcd206ea47c885520925605095 Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Sun, 7 Apr 2019 14:10:50 +0200 Subject: [PATCH] Update sample microprogram --- test.uc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/test.uc b/test.uc index baceced..58cba02 100644 --- a/test.uc +++ b/test.uc @@ -1,11 +1,8 @@ -lcset 16 -const 0 # Set AR to 0 +lcset 16 # Set LC to 0x10 $NEXT -bls @END -incpc; declc -add pc +bls @END; incpc; declc; add pc # Increment PC, decrement LC, add PC (pre-increment) to AR and then branch to END if LC is (pre-decrement) 0 bra @NEXT $END -halt +halt # Stop execution