mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-26 22:51:01 +00:00
26 lines
467 B
ArmAsm
26 lines
467 B
ArmAsm
.text
|
|
.globl PATCHEDLOADSEG
|
|
|
|
PATCHEDLOADSEG:
|
|
|
|
# Stack on Entry:
|
|
# (arguments for function)
|
|
# (return address)
|
|
# (return address from trap (== address in jt entry))
|
|
movel %sp@, %sp@-
|
|
|
|
# Stack now:
|
|
# (arguments for function)
|
|
# (return address)
|
|
# (don't care)
|
|
# (return address from trap (== address in jt entry))
|
|
|
|
jsr RETRO68LOADSEGMENT
|
|
|
|
# Stack now:
|
|
# (arguments for function)
|
|
# (return address)
|
|
# (address of loaded function)
|
|
|
|
rts
|