Update sample microprogram

This commit is contained in:
Gabriel Tofvesson 2019-04-07 14:10:50 +02:00
parent 6755bedf9a
commit 343d028398

View File

@ -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