English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 17 August 2022, 21:19   #1
mcgeezer
Registered User
 
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
Suppress System Request Prompts

I know this is going to sound like a crazy question but I'll try and explain where I'm coming from.

As my game is a bit chipram hungry I use add21k to get me a little extra back, which as I understand removes some of the Workbench bitplanes.

My game is across three disks and I use LVOLock + LVOCurrentDir to request different disks to be inserted, relying on Workbench to do the background work.

However when I tried my game on real hardware, the game crashed at the Insert Disk # prompt (not a full crash but my copper list got corrupted), when I removed add21k from the startup the problem has went away.

My theory is, that the system request prompts are not aware that the bitplanes have been removed and taking the screen shot below, and looking in ram I can see that the OS has made a copy of the bitmap data that is under the system request prompt - probably in order to restore it, that bitmap data has stomped all over my game code.

So my question is, is it possible to surpress these graphical prompts in workbench somehow?

Attached Thumbnails
Click image for larger version

Name:	diskrequest.png
Views:	62
Size:	33.3 KB
ID:	76345  
mcgeezer is offline  
Old 17 August 2022, 21:37   #2
paraj
Registered User
 
paraj's Avatar
 
Join Date: Feb 2017
Location: Denmark
Posts: 1,104
Quote:
Originally Posted by mcgeezer View Post
I know this is going to sound like a crazy question but I'll try and explain where I'm coming from.

As my game is a bit chipram hungry I use add21k to get me a little extra back, which as I understand removes some of the Workbench bitplanes.

My game is across three disks and I use LVOLock + LVOCurrentDir to request different disks to be inserted, relying on Workbench to do the background work.

However when I tried my game on real hardware, the game crashed at the Insert Disk # prompt (not a full crash but my copper list got corrupted), when I removed add21k from the startup the problem has went away.

My theory is, that the system request prompts are not aware that the bitplanes have been removed and taking the screen shot below, and looking in ram I can see that the OS has made a copy of the bitmap data that is under the system request prompt - probably in order to restore it, that bitmap data has stomped all over my game code.

So my question is, is it possible to surpress these graphical prompts in workbench somehow?

Setting ThisProc->pr_WindowPtr to -1 disables requesters if that's what you mean (info here: https://wiki.amigaos.net/wiki/AmigaDOS_Data_Structures) and if it's sufficient for your case (be sure to restore the previous value when exiting).
So maybe something like this (untested):
Code:
    move.l  $4.w,a6
    sub.l   a1,a1
    jsr     -294(a6) ; FindTask
    move.l  d0,a0
    move.l  #-1,184(a0) ;pr_WindowPtr
paraj is offline  
Old 17 August 2022, 21:53   #3
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,474
http://eab.abime.net/showpost.php?p=...3&postcount=26

Pay attention to Add21k, there are different versions and in many configurations they create problems (video corruption and possible crashes).

EDIT: if I remember correctly there is a proper tool, compatible with KS2.0+ and which does not create video corruption.
It's called WBDepth and it's in one of the Fish Disks.
It has also been used in some commercial games with slightly different names ("WB2", "PAL", "addsomething",..).
But the function is always the same: lower the number of bitplanes and free up some memory.

Last edited by ross; 17 August 2022 at 22:51.
ross is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
System Request startup Message pneron support.Other 6 11 November 2020 00:24
Filter system request rutra80 support.WinUAE 5 16 June 2020 14:32
how to suppress dopus5 lister from auto open? madlax support.Other 4 08 May 2019 16:13
WinUAE Command Line Prompts Runey support.WinUAE 18 03 February 2008 10:48
Request: System close/restore Ray Norrish Coders. General 2 26 May 2006 13:05

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:59.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.12142 seconds with 16 queries