Errors: SWI &401C5 & SWI &401C0
Errors: SWI &401C5 & SWI &401C0
Anyone know what might be causing these errors? Things that were working fine a few days ago have started not working, with these two errors being reported.
Re: Errors: SWI &401C5 & SWI &401C0
401C5 is Sound_QTempo and 401C0 is Sound_Init.
Check that the SoundScheduler module is running (it my have been unplugged).
Check that the SoundScheduler module is running (it my have been unplugged).
Re: Errors: SWI &401C5 & SWI &401C0
Thanks, now fixed. I must have run something recently that has unplugged those modules. Is there a simple way to stop RISC OS applications doing that?
Re: Errors: SWI &401C5 & SWI &401C0
There's no easy way of stopping it, but there is something you can do to ease the pain of fixing the problem when it happens.
Double-click on !Boot and then click MENU on the Configuration window that appears. This will allow you to save the current system configuration (i.e. the CMOS RAM contents) as a configuration file. Drag the file to a suitable location (e.g. a "Backups" directory). This will give you a known-good configuration for use in an emergency.
If you need to restore the configuration, double-click on the configuration file, then press Ctrl-Break to ensure that all of the configuration changes take effect.
Double-click on !Boot and then click MENU on the Configuration window that appears. This will allow you to save the current system configuration (i.e. the CMOS RAM contents) as a configuration file. Drag the file to a suitable location (e.g. a "Backups" directory). This will give you a known-good configuration for use in an emergency.
If you need to restore the configuration, double-click on the configuration file, then press Ctrl-Break to ensure that all of the configuration changes take effect.
Re: Errors: SWI &401C5 & SWI &401C0
Is there any difference between doing that and using the !Configure application to save a config backup?
Re: Errors: SWI &401C5 & SWI &401C0
I have a small utility on my page to RMReinit modules:
https://mjfoot.netlify.app/riscos
InitMod - Unplugged ROMModule ReInitialiser V1.11.
https://mjfoot.netlify.app/riscos
InitMod - Unplugged ROMModule ReInitialiser V1.11.
- IanJeffray
- Posts: 6019
- Joined: Sat Jun 06, 2020 3:50 pm
- Contact:
Re: Errors: SWI &401C5 & SWI &401C0
Link fixed now. What it does is run through all unplugged modules and either RmInserts any that are unplugged or will prompt you for each one so you can choose. Is mainly useful when there are a lot of unplugged modules and RmInsert-ing each one is tedious.
Re: Errors: SWI &401C5 & SWI &401C0
I found the culprit that was causing this issue. It's the hacked version of Bubble Fair from the arcarc.nl archive, specifically the "Bubble" BASIC file:
It's obviously doing something with the SoundScheduler. Can that be altered so it doesn't get unplugged?
Code: Select all
swREM >Bubble
REM > Hacked By Cud.
*RMREINIT SOUNDSCH.
*UNTIL SOUNDSCH.
*RMLOAD <AppRoot$Dir>.DIV.LZWD
*SET CU <AppRoot$DIR>
*DIR <CU>
*COPY PICS.MORPION RAM:MORPION ~A~C~VF
P%=&7F00:FOR pass%=0 TO 2 STEP 2:P%=&7F00:[ OPT pass%
ADR R0,name
MOV R1,#&9200
SWI "LZWD_Decompress"
B &9200
ALIGN
.name EQUS "Cuddeth"+CHR$(&0D)
]:NEXT
CALL&7F00
- IanJeffray
- Posts: 6019
- Joined: Sat Jun 06, 2020 3:50 pm
- Contact:
Re: Errors: SWI &401C5 & SWI &401C0
That's not unplugging it - quite the reverse, it's reiniting it to ensure it's not unplugged - though what the heck *UNTIL is doing, I don't know - that's not a standard RISC OS command.wmd wrote: ↑Wed Jan 03, 2024 1:18 pmIt's obviously doing something with the SoundScheduler. Can that be altered so it doesn't get unplugged?Code: Select all
*RMREINIT SOUNDSCH. *UNTIL SOUNDSCH.
Re: Errors: SWI &401C5 & SWI &401C0
Yeah, that one confused me too. I guess it must be in one of the other files where the module is unplugged.
Re: Errors: SWI &401C5 & SWI &401C0
Oh, hold on, somehow that line seems to have got mangled when copying from Arc to PC. It does in fact read as follows:
Code: Select all
*UN. SOUNDSCH.
- IanJeffray
- Posts: 6019
- Joined: Sat Jun 06, 2020 3:50 pm
- Contact:
Re: Errors: SWI &401C5 & SWI &401C0
People who publish code with stupid abbreviations like that need to be dealt a special kind of pain. It's just stupid.wmd wrote: ↑Wed Jan 03, 2024 3:24 pm Oh, hold on, somehow that line seems to have got mangled when copying from Arc to PC. It does in fact read as follows:
Code: Select all
*UN. SOUNDSCH.
Ok, that's going to be Unplug (just) with a standard RISC OS ROM.
If Bubble Fair really hates SoundScheduler, you could just change that *UN. to *RMKILL so that the SoundScheduler is killed whilst you're running Bubble Fair, but will be present again after a reboot.
Re: Errors: SWI &401C5 & SWI &401C0
OK, thanks. I just tried with the line removed and the game seems to work fine. Maybe originally it was something to do with RISC OS 2, I'm using RISC OS 3, likely with a lot more memory than was available to the person who hacked the game back in the 90s.