mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-05 20:05:15 +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
|