Improved assembler performance
This commit is contained in:
parent
35cbb936a9
commit
8e36b7a7bc
37 changed files with 412 additions and 166 deletions
|
@ -2,22 +2,12 @@ package asm
|
|||
|
||||
// Comment adds a comment at the current position.
|
||||
func (a *Assembler) Comment(text string) {
|
||||
a.Instructions = append(a.Instructions, Instruction{
|
||||
Mnemonic: COMMENT,
|
||||
Data: &Label{
|
||||
Name: text,
|
||||
},
|
||||
})
|
||||
a.Label(COMMENT, text)
|
||||
}
|
||||
|
||||
// DLLCall calls a function in a DLL file.
|
||||
func (a *Assembler) DLLCall(name string) {
|
||||
a.Instructions = append(a.Instructions, Instruction{
|
||||
Mnemonic: DLLCALL,
|
||||
Data: &Label{
|
||||
Name: name,
|
||||
},
|
||||
})
|
||||
a.Label(DLLCALL, name)
|
||||
}
|
||||
|
||||
// Return returns back to the caller.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue