Improved assembler
This commit is contained in:
parent
8e193c69b6
commit
f11757d9e4
3 changed files with 22 additions and 8 deletions
|
@ -26,6 +26,7 @@ func (x *Instruction) Write(w io.ByteWriter) {
|
|||
}
|
||||
}
|
||||
|
||||
// String returns the assembler representation of the instruction.
|
||||
func (x *Instruction) String() string {
|
||||
switch x.Mnemonic {
|
||||
case MOV:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue