master
kolaente 4 years ago
parent e06a93d89d
commit bccecc15b8
Signed by: kolaente
GPG Key ID: F40E70337AB24C9B
  1. 6
      hal/module.go

@ -28,7 +28,7 @@ func (h *Module) debug(format string, args ...interface{}) {
if !h.debugEnabled {
return
}
fmt.Printf("[DEBUG] "+format, args...)
fmt.Printf("[DEBUG] "+format+"\n", args...)
}
func (h *Module) Step() {
@ -38,9 +38,9 @@ func (h *Module) Step() {
return
}
h.debug("Instruction: %s", instruction.Instruction.Name)
h.debug("Accumulator before: %d", h.accumulator)
h.debug("Accumulator before: %f", h.accumulator)
instruction.Execute(h)
h.debug("Accumulator after: %d", h.accumulator)
h.debug("Accumulator after: %f", h.accumulator)
}
func (h *Module) Run() error {

Loading…
Cancel
Save