ql superbomber and m-crunch ..and more things

Anything QL Software or Programming Related.
Martin_Head
Gold Card
Posts: 421
Joined: Tue Dec 17, 2013 1:17 pm

Re: ql superbomber and m-crunch ..and more things

Postby Martin_Head » Sat Mar 16, 2019 10:33 am

Silvester wrote:Don't forget the STOP instructions halts DSL activity and that is used by Trump Card (maybe also GC/SGC?) for DRAM refresh.
Would that also effect a Tetroid QBIDE with an on board RAM upgrade? I think that is what Nokosdoykas is using. (I don't know about Cristian)

I might try NOPing out the STOP command and see what happens (I expect the game will run a lot faster), then post it here to be tried.


User avatar
tofro
QL Wafer Drive
Posts: 1596
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: ql superbomber and m-crunch ..and more things

Postby tofro » Sat Mar 16, 2019 11:22 am

I'm pretty sure SGC DRAM refresh should work differently - I'd guess there are no /DS pulses as well when the CPU is running code from the instruction cache.

Tobias


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
User avatar
Cristian
Super Gold Card
Posts: 623
Joined: Mon Feb 16, 2015 1:40 pm
Location: Veneto

Re: ql superbomber and m-crunch ..and more things

Postby Cristian » Sat Mar 16, 2019 11:51 am

Martin_Head wrote:Would that also effect a Tetroid QBIDE with an on board RAM upgrade? I think that is what Nokosdoykas is using. (I don't know about Cristian)


I use an original TrumpCard (768K)


Martin_Head
Gold Card
Posts: 421
Joined: Tue Dec 17, 2013 1:17 pm

Re: ql superbomber and m-crunch ..and more things

Postby Martin_Head » Sat Mar 16, 2019 3:17 pm

I have tried to get rid of the STOP instruction to see if it fixes the problems seen.

In the BOOT program of the patched version of the game I uploaded, add

Code: Select all

155 FOR y=0 TO 12 STEP 2:POKE_W x+2714+y,20081
This will replace the routine with STOP in it to NOP's.

In Qemulator the game runs a lot faster.

To replace the STOP with a software delay loop, add the following

Code: Select all

155 PatchSTOP

310 DEFine PROCedure PatchSTOP
320  LOCal a$,y
325  RESTORE 370
330  FOR y=0 TO 13
340   READ a$
350   POKE x+2714+y,HEX(a$)
360  END FOR y
370  DATA "30","3C","04","4C"
380  DATA "4E","71"
390  DATA "4E","71"
400  DATA "51","C8","FF","FA"
410  DATA "4E","71"
420 END DEFine PatchSTOP
Adjust the $044C in line 370 to adjust the speed, lower=faster.

In Qemulator, it's a little slow, so may want speeding up a bit.


nikosdoykas
ROM Dongle
Posts: 41
Joined: Tue Oct 09, 2018 4:20 am

Re: ql superbomber and m-crunch ..and more things

Postby nikosdoykas » Mon Mar 18, 2019 7:28 pm

in real hard ware.... 1 screen 2 cose to quick and then black screen and nothing else...


User avatar
Cristian
Super Gold Card
Posts: 623
Joined: Mon Feb 16, 2015 1:40 pm
Location: Veneto

Re: ql superbomber and m-crunch ..and more things

Postby Cristian » Tue Mar 19, 2019 9:50 pm

First, the game couldn't enter the option menu and freezed in black screen.
Then with the modified line 155, the option menu was almost always invisible but it was possible to type "S" and start the game, which was too fast.
Now, with PatchSTOP procedure the option menu appears, the game is playable and finally it's possible to control the bat (almost) normally!
Thank you Martin! :)

QL+TrumpCard+Minerva

P.S.
Anyway, let's say this is not the best brick game ever. The ball suddenly speeds up like a bullet, and the bat acceleration is exaggerated.


Martin_Head
Gold Card
Posts: 421
Joined: Tue Dec 17, 2013 1:17 pm

Re: ql superbomber and m-crunch ..and more things

Postby Martin_Head » Wed Mar 20, 2019 10:01 am

Cristian wrote:First, the game couldn't enter the option menu and freezed in black screen.
Then with the modified line 155, the option menu was almost always invisible but it was possible to type "S" and start the game, which was too fast.
Now, with PatchSTOP procedure the option menu appears, the game is playable and finally it's possible to control the bat (almost) normally!
Thank you Martin! :)

QL+TrumpCard+Minerva

P.S.
Anyway, let's say this is not the best brick game ever. The ball suddenly speeds up like a bullet, and the bat acceleration is exaggerated.
So the game will work on on a real QL.

I was wondering if you tried doing a RES_128 on the Trump card, and then trying the game. It should make sure that the game runs in the internal RAM rather than the Trump card RAM. So if the STOP instruction causes problems with the Trump card RAM refresh, it should not be affect the game. Or could you put the game on a microdrive, and try it in an unexpanded QL.

As far as all the black screens problems go. The game does keep switching the display on and off by writing to the master status register (I think that's what it is called). I don't know if writing to this address works in Qemulator. Which might be why I don't see blank screen problems. I might try NOPing out the code that alters this register to see what happens.


User avatar
Cristian
Super Gold Card
Posts: 623
Joined: Mon Feb 16, 2015 1:40 pm
Location: Veneto

Re: ql superbomber and m-crunch ..and more things

Postby Cristian » Wed Mar 20, 2019 12:35 pm

Even if now the option menu is always visible, still the black screen problem sometimes occurs when passing to next level.
Surely I'll try both RES_128 and microdrive methods, then I'll let you know.
Thank you very much Martin.


User avatar
Cristian
Super Gold Card
Posts: 623
Joined: Mon Feb 16, 2015 1:40 pm
Location: Veneto

Re: ql superbomber and m-crunch ..and more things

Postby Cristian » Wed Mar 20, 2019 10:56 pm

I made some tests with the BOOT (without the PatchSTOP procedure).
I got the best results from microdrive, without Trumpcard and without Minerva rom.
I had to remove the splash screen because of the limited space of the cartridges :-)
Also with Trumpcard + RES_128 and JM Rom the stability seems almost perfect.
So, the blank screen problems seem connected mainly to Trumpcard RAM (and to a lesser extent to Minerva).
I reached level 5. Anyway, the racket acceleration is difficult to control even with a good joystick.


User avatar
Dave
SandySuperQDave
Posts: 2412
Joined: Sat Jan 22, 2011 6:52 am
Location: Austin, TX
Contact:

Re: ql superbomber and m-crunch ..and more things

Postby Dave » Wed Mar 20, 2019 11:55 pm

I have no idea what this game is, but what kind of compression could you do on the splash screen?



Who is online

Users browsing this forum: No registered users and 4 guests