|
|
@ -231,7 +231,7 @@ var InstructionDumpReg = &Instruction{ |
|
|
|
Name: "DUMPREG", |
|
|
|
Name: "DUMPREG", |
|
|
|
Execute: func(module *Module) error { |
|
|
|
Execute: func(module *Module) error { |
|
|
|
for index, content := range module.register { |
|
|
|
for index, content := range module.register { |
|
|
|
module.debug("%d:\t%d", index, content) |
|
|
|
module.debug("%d:\t%f", index, content) |
|
|
|
} |
|
|
|
} |
|
|
|
return nil |
|
|
|
return nil |
|
|
|
}, |
|
|
|
}, |
|
|
@ -241,7 +241,7 @@ var InstructionDumpProg = &Instruction{ |
|
|
|
Name: "DUMPPROG", |
|
|
|
Name: "DUMPPROG", |
|
|
|
Execute: func(module *Module) error { |
|
|
|
Execute: func(module *Module) error { |
|
|
|
for index, content := range module.programStorage { |
|
|
|
for index, content := range module.programStorage { |
|
|
|
module.debug("%d\t%s\t%d", index, content.Instruction.Name, content.Operand) |
|
|
|
module.debug("%d\t%s\t%f", index, content.Instruction.Name, content.Operand) |
|
|
|
} |
|
|
|
} |
|
|
|
return nil |
|
|
|
return nil |
|
|
|
}, |
|
|
|
}, |
|
|
|