RPCEmu bank switching crashes and/or hangs RISCOS
Nicholas (1804) 20 posts |
I’m trying to get bank switching up and running, and for some reason one of the following always happens : A) RPCEmu crashes (typically with a Bad Read CP15 error or Bad Op Code) Is this a problem with RPCEmu or a problem with RiscOS 5 ? |
Martin Bazley (331) 379 posts |
It’s difficult to judge unless you give us the code you’re using. Speaking from experience with such queries, it’s entirely possible you’re doing it wrong. |
Nicholas (1804) 20 posts |
Yes, its possible. However, I dont know why its wrong The code is thus :
|
Nicholas (1804) 20 posts |
Still trying to work out why it crashes (and the second bank is basically corrupt)… According to OS_Byte 250, the banks are switching correctly between 1 & 2 The only thing I was wondering about is whether OS_Byte 114 should be called before or after a screen resolution change. |
Nicholas (1804) 20 posts |
It does look as I’ve solved it. It appears that the cause was activating 2Mb of VRAM in the emulator – switch that off and all is okay. Unfortunately I’m now limited to a 640 × 480 display, but it will have to do… |