Fixed verbose output
This commit is contained in:
parent
155df7c44c
commit
263c0cfb8b
@ -50,7 +50,7 @@ func (f *Function) CompileAssign(node *ast.Assign) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
f.Assembler.MemoryNumber(asm.STORE, asm.Memory{Base: variable.Register, Offset: byte(offset), Length: 1}, num)
|
f.MemoryNumber(asm.STORE, asm.Memory{Base: variable.Register, Offset: byte(offset), Length: 1}, num)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,6 +29,11 @@ func (f *Function) Jump(mnemonic asm.Mnemonic, label string) {
|
|||||||
f.postInstruction()
|
f.postInstruction()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (f *Function) MemoryNumber(mnemonic asm.Mnemonic, a asm.Memory, b int) {
|
||||||
|
f.Assembler.MemoryNumber(mnemonic, a, b)
|
||||||
|
f.postInstruction()
|
||||||
|
}
|
||||||
|
|
||||||
func (f *Function) Register(mnemonic asm.Mnemonic, a cpu.Register) {
|
func (f *Function) Register(mnemonic asm.Mnemonic, a cpu.Register) {
|
||||||
f.Assembler.Register(mnemonic, a)
|
f.Assembler.Register(mnemonic, a)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user