Improved assembler

This commit is contained in:
Eduard Urbach 2023-10-27 22:14:20 +02:00
parent 8e193c69b6
commit f11757d9e4
Signed by: eduard
GPG key ID: 49226B848C78F6C8
3 changed files with 22 additions and 8 deletions

View file

@ -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: