summaryrefslogtreecommitdiff
path: root/pysc-v/main.py
blob: 2d6f6a5ca55f586bcf0fe804ebaa396a12e9692e (plain)
1
2
3
4
5
# Use a generator for the execution flow
# -> PC has to be a global variable, updated by each instruction to the next val
# So user can set the PC by hand and call next(run) and make the code jump!