ahope1 / BeebScott

An interpreter for playing Scott Adams text adventure games on a BBC Micro computer
3 stars 1 forks source link

Change co-pro detection method #6

Closed ahope1 closed 2 years ago

ahope1 commented 2 years ago

See https://stardot.org.uk/forums/viewtopic.php?p=349966#p349966

cmorley wrote: Wed Feb 16, 2022 5:00 am For RTool JGH gave me: MODE7:IFHIMEM>&7C00:PRINT "Must run on BBC I/O processor":END

I don't think that will distinguish between (i) a co-pro and (ii) a Master in Shadow mode (*SHADOW0) -- but in my case it doesn't matter because if I'm on a Master in Shadow mode I'll need to run the same code as if I'm on a co-pro, in this specific case, because the particular routine in my program will have to avoid reading/writing directly from/to main screen RAM (both when the program is running on a co-pro and when it's running on a Master in Shadow mode).

ahope1 commented 2 years ago

Fixed by https://github.com/ahope1/BeebScott/commit/2a075af9eda2a34c1ef9150a4ce18d47e8944903 https://github.com/ahope1/BeebScott/blob/2a075af9eda2a34c1ef9150a4ce18d47e8944903/code/terp.bas#L387