Improved assembler performance

This commit is contained in:
Eduard Urbach 2025-03-11 06:31:21 +01:00
parent 35cbb936a9
commit 8e36b7a7bc
Signed by: eduard
GPG key ID: 49226B848C78F6C8
37 changed files with 412 additions and 166 deletions

View file

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