Continued adding 0

This commit is contained in:
2020-12-25 14:42:27 +01:00
parent 3af69db95a
commit de89a7b8fb
2 changed files with 20 additions and 22 deletions

View File

@ -395,19 +395,17 @@ viewCu model =
, p []
[ text
("Programm Counter: "
++ String.fromInt model.pc.programmCounter
++ addLeadingZero model.pc.programmCounter 3
)
]
, p []
[ text
("Instruction Register: "
++ String.fromInt model.pc.instructionReg
)
[ text "Instruction Register: "
, viewInstrEntry model.pc.instructionReg
]
, p []
[ text
("µCode Counter: "
++ String.fromInt model.pc.uCounter
++ addLeadingZero model.pc.uCounter 4
)
]
, div [ class "scroller" ]