TR-DOS
ZXNet echo conference «code.zx»
From Andrey Radziwill → To Roman Timofeeff 14 November 1999
How to do, Roman!
14 Nov 99 05:32, Kirill Frolov wrote to Roman Timofeeff:
RT>> How can a program detect (hanging on IM2) what the main. the program intends
RT>> go to Tr-dos?
KF> It just stinks of offtopic (pussy). He who knows will understand.
KF> This is impossible on the Spectrum.
Elementary, Watson ;-)
You need to see which ROM is active...
We write 9 in register I, then the address of the procedure arr. interruptions are not for
TRDOS will be 65129, for TRDOS 65535, you need to put #18(JR) there
Now for TRDOS the address will be 65524.
ORG 65129; interrupt handling
...
ORG 65524; if we are here, then we are in TRDOS ;)
PUSH HL
LD HL,15664
EX (SP),HL
JP 65129
On this bye, Andrey aka Rad -> Sinclair Super Group, SPb (SSG)
[Team SSG] [GUS] [Jungle] [Drum&Bass] [ZX] [Team 2400;]