Update sample microprogram
This commit is contained in:
parent
6755bedf9a
commit
343d028398
9
test.uc
9
test.uc
@ -1,11 +1,8 @@
|
|||||||
lcset 16
|
lcset 16 # Set LC to 0x10
|
||||||
const 0 # Set AR to 0
|
|
||||||
|
|
||||||
$NEXT
|
$NEXT
|
||||||
bls @END
|
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
|
||||||
incpc; declc
|
|
||||||
add pc
|
|
||||||
bra @NEXT
|
bra @NEXT
|
||||||
|
|
||||||
$END
|
$END
|
||||||
halt
|
halt # Stop execution
|
||||||
|
Loading…
x
Reference in New Issue
Block a user