Assembler Source crasht bei SUB

jkallup

Erfahrenes Mitglied
Hallo,

kann mir einer vielleicht schreiben, warum sich das script unten
nicht ausführen lässt?
es bricht bei subq ab (wenn ret entfernt wird)
ansonsten entseht kein Fehler :-(

Code:
add_menuitem:
.asciz "addCLImenuItem"

nummerv:
.quad 235

test_string:
.asciz "testitem"

para1:
.asciz "sif"

.align 16
float_num:
.float 3.14

.text

appstart_function:
ret

pushq rbp
movq rsp, rbp
subq 128, rsp

leaq add_menuitem(rip), rdi # 1. parameter
leaq para1(rip), rsi # 2.
leaq test_string(rip), rdx # 3.
movq nummerv(rip), rcx # 4.
movb 1, al
movss float_num(rip), xmm0 # 5. float?

callq *export_call(rip)
addq 128, rsp
popq rbp
ret
 

Neue Beiträge

Zurück