sieelf/CodeShowPatch/func.asm
2009-01-25 11:59:37 +00:00

72 lines
1 KiB
NASM
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "addr.h"
RSEG CODE
#ifdef SK6Cv50 //Ô­À´¿Õ¼ä²»¹»
RSEG CODE_X
#endif
CODE16
PUBLIC strlen
strlen:
PUSH {R4, LR}
LDR R4, =ADDR_strlen
BLX R4
POP {R4, PC}
PUBLIC memcmp
memcmp:
PUSH {R4, LR}
LDR R4, =ADDR_memcmp
BLX R4
POP {R4, PC}
PUBLIC atou
atou:
PUSH {R4, LR}
LDR R4, =ADDR_atou
BLX R4
POP {R4, PC}
PUBLIC WS_InitByZero
WS_InitByZero:
PUSH {R4, LR}
LDR R4, =ADDR_WS_InitByZero
BLX R4
POP {R4, PC}
PUBLIC GetCalleeNumber
GetCalleeNumber:
PUSH {R4, LR}
LDR R4, =ADDR_GetCalleeNumber
BLX R4
POP {R4, PC}
PUBLIC UpdateWndItem
UpdateWndItem:
PUSH {R4, LR}
LDR R4, =ADDR_UpdateWndItem
BLX R4
POP {R4, PC}
PUBLIC AddNewLine
AddNewLine:
PUSH {R0-R7, LR}
MOV R1, #0xD
LDR R2, =ADDR_wsAppendChar
BLX R2
POP {R0-R7, PC}
PUBLIC AllocMenuWS
AllocMenuWS
LDR R3, =AllocMenuWS_adr
BX R3
PUBLIC SetMLMenuItemText
SetMLMenuItemText
PUSH {R3}
LDR R3, =SetMLMenuItemText_adr
MOV R12, R3
POP {R3}
BX R12
END