Improved Windows DLL calls

This commit is contained in:
Eduard Urbach 2024-08-19 11:11:45 +02:00
parent fa1dce31f3
commit ed6cee0acc
Signed by: eduard
GPG key ID: 49226B848C78F6C8
12 changed files with 124 additions and 68 deletions

View file

@ -20,6 +20,16 @@ func (a *Assembler) Call(name string) {
})
}
// 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,
},
})
}
// Return returns back to the caller.
func (a *Assembler) Return() {
if len(a.Instructions) > 0 {