home *** CD-ROM | disk | FTP | other *** search
RISC OS BBC BASIC V Source | 1993-02-25 | 549 b | 20 lines |
- >Prot0
- By Brian.Brunswick@uk.ac.cam.cl
- Protects 'Zero Page' (0-&8000) on the Arc from user code
- when your code locks up your machine - run Prot0, and then try again:
- odds are you'll get an address exception, and your task will die
- without taking the desktop with it.
- "OS_ReadMemMapInfo"
- pagesize,pages
- p (pages+1)*12
- I=0
- pages-1
- p!(I*12)=I
- p!(pages*12)=-1
- "OS_ReadMemMapEntries",p
- I=0
- pages-1
- p!(I*12+4)=0
- p!(I*12+8)=1
- "OS_SetMemMapEntries",p
-