AFPBridge/afpinit.asm
Stephen Heumann 9d6dad03b4 Add support for soft reset.
This can occur when control-reset is pressed in P8 mode. It’s supposed to reinitialize the AppleTalk stack. In our case, we mark connections to be reset once we're back in GS/OS, since we can't call Marinetti in P8 mode.
2017-04-16 13:36:01 -05:00

32 lines
421 B
NASM

case on
dummy private
bra InitStart
end
unloadFlagPtr data
ds 4
end
* This gets called when control-reset is pressed in P8 mode.
* It's intended to basically reinitialize the whole AppleTalk stack.
resetRoutine start
jsl oldSoftReset
jml ResetAllSessions
end
oldSoftReset start
ds 4 ; to be modified
end
InitStart private
tay
tsc
clc
adc #4
sta >unloadFlagPtr
lda #0
sta >unloadFlagPtr+2
tya
end