TOS RAM test routine ?

News,announcements,programming,fixes,game patches & discussions.
User avatar
exxos
Site Admin
Site Admin
Posts: 28615
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: TOS RAM test routine ?

Post by exxos »

@stephen_usher and / or @Badwolf

From what I can tell the normal memory routine of "own address test" and some other tests are normally done, but all but own address are skipped in this version. So I assume this is what TOS306 is doing.

tos206uk.zip
(127.42 KiB) Downloaded 78 times

I am also not really sure it is showing the proper amount of TTram as well.

EDIT:

This one may fix the RAM amount issue.. I think there was a "typo" in the RAM detect code :shrug:

tos206uk2.zip
(127.42 KiB) Downloaded 27 times
User avatar
Badwolf
Site sponsor
Site sponsor
Posts: 3058
Joined: Tue Nov 19, 2019 12:09 pm

Re: TOS RAM test routine ?

Post by Badwolf »

exxos wrote: Sun Dec 11, 2022 9:12 pm This one may fix the RAM amount issue.. I think there was a "typo" in the RAM detect code :shrug:
tos206uk2.zip
No speed up with either this one or the 4.img.

Latter shows the correct memory count, though.

I think you're chasing your tail here. Go back to the original source, enable the cache and call it a day!

At the end of the day, hatari will not emulate the massive speed up of accessing TT-RAM in the 536 so I can only do a comparative. None is faster than the original so far.

BW
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
User avatar
exxos
Site Admin
Site Admin
Posts: 28615
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: TOS RAM test routine ?

Post by exxos »

Badwolf wrote: Mon Dec 12, 2022 11:22 am No speed up with either this one or the 4.img.
That is odd as in Hatari 1.9.0 TTram test of 10MB is the same or a fraction faster than TOS306 now.
Badwolf wrote: Mon Dec 12, 2022 11:22 am Latter shows the correct memory count, though.
Cool beans.
Badwolf wrote: Mon Dec 12, 2022 11:22 am I think you're chasing your tail here. Go back to the original source, enable the cache and call it a day!
It is enabled, has been for a while now.
Badwolf wrote: Mon Dec 12, 2022 11:22 am At the end of the day, hatari will not emulate the massive speed up of accessing TT-RAM in the 536 so I can only do a comparative. None is faster than the original so far.
It won't be faster than 306, but it's definitely not slower than 306 now. So don't know why you get those results as they differ to what I am getting here.
User avatar
Badwolf
Site sponsor
Site sponsor
Posts: 3058
Joined: Tue Nov 19, 2019 12:09 pm

Re: TOS RAM test routine ?

Post by Badwolf »

exxos wrote: Mon Dec 12, 2022 11:31 am
Badwolf wrote: Mon Dec 12, 2022 11:22 am I think you're chasing your tail here. Go back to the original source, enable the cache and call it a day!
It is enabled, has been for a while now.
Yes, but I mean I don't think there's been any improvement with all the fiddling since, so IIYW I'd just go back to known good (albeit slow) starting position and only turn on the cache.

But that's just my tuppenceworth. I get nervous when a tweak doesn't do exactly what I'm expecting and I leave it in anyway :P

BW
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
User avatar
exxos
Site Admin
Site Admin
Posts: 28615
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: TOS RAM test routine ?

Post by exxos »

Does anyone have a single image file of PAK030 TOS ?
User avatar
stephen_usher
Site sponsor
Site sponsor
Posts: 7454
Joined: Mon Nov 13, 2017 7:19 pm
Location: Oxford, UK.
Contact:

Re: TOS RAM test routine ?

Post by stephen_usher »

Here you are...
Attachments
PAKTOSUS.img.gz
(137.54 KiB) Downloaded 48 times
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
User avatar
Badwolf
Site sponsor
Site sponsor
Posts: 3058
Joined: Tue Nov 19, 2019 12:09 pm

Re: TOS RAM test routine ?

Post by Badwolf »

stephen_usher wrote: Mon Dec 12, 2022 3:18 pm Here you are...
After tweaking the version at 0x02, if I boot this in Hatari with the same configuration I used for Exxos' ROM image, it runs considerably quicker. Including the ST-RAM test, BTW.

Implies it's just performing fewer tests, to be honest.

BW
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
User avatar
exxos
Site Admin
Site Admin
Posts: 28615
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: TOS RAM test routine ?

Post by exxos »

stephen_usher wrote: Mon Dec 12, 2022 3:18 pm Here you are...
Thanks.

PAK takes 2:25mins
ST536 TOS 2:24mins.

So I don't know where Frank got 24 seconds from . He must have a patched TOS which uses a larger block size.
User avatar
Badwolf
Site sponsor
Site sponsor
Posts: 3058
Joined: Tue Nov 19, 2019 12:09 pm

Re: TOS RAM test routine ?

Post by Badwolf »

exxos wrote: Mon Dec 12, 2022 4:03 pm PAK takes 2:25mins
ST536 TOS 2:24mins.
Wow, that's interesting -- and shows why Hatari testing for hardware issues can only take you so far!

BW

EDIT: One thought, does your firmware allow caching of the TOS range?
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
User avatar
exxos
Site Admin
Site Admin
Posts: 28615
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: TOS RAM test routine ?

Post by exxos »

Badwolf wrote: Mon Dec 12, 2022 4:26 pm EDIT: One thought, does your firmware allow caching of the TOS range?
ummmm. not sure. I know Anders patched stuff to cahe ST-RAM, but not sure if that included ROM.. Will have a look.

This is the routine it runs anyway.

Basically if TP_12 is enabled, it just jumps to testzon8 and just outputs the TTram amount without doing anything else.

Code: Select all

testzone:
        moveq.l   #0,d0
#if !TP_12 /* SKIP_RAM */
        move.l    memtaddr,d1
        cmp.l     memtbot,d1
        bcs.s     testzon8
        cmp.l     memtend,d1
        bcc.s     testzon8
        move.l    #ZONESIZE/4-1,d0
        move.l    d0,d1
        movea.l   memtaddr,a0
        moveq.l   #-1,d2
testzon1:
        move.l    d2,(a0)+
        dbf       d0,testzon1
        movea.l   memtaddr,a0
        move.l    d1,d0
testzon2:
        cmp.l     (a0)+,d2
        dbne      d0,testzon2
        bne.s     testzon7
        movea.l   memtaddr,a0
        move.l    d1,d0
        moveq.l   #1,d2
testzon3:
        rol.l     #1,d2
        move.l    d2,(a0)+
        dbf       d0,testzon3
        movea.l   memtaddr,a0
        move.l    d1,d0
        moveq.l   #1,d2
testzon4:
        rol.l     #1,d2
        cmp.l     (a0)+,d2
        dbne      d0,testzon4
        bne.s     testzon7
        movea.l   memtaddr,a0
        move.l    d1,d0
        moveq.l   #0,d2
testzon5:
        move.l    d2,(a0)+
        dbf       d0,testzon5
        movea.l   memtaddr,a0
        move.l    d1,d0
testzon6:
        cmp.l     (a0)+,d2
        dbne      d0,testzon6
        bne.s     testzon7
        moveq.l   #0,d0
        bra.s     testzon8
testzon7:
        moveq.l   #-1,d0
testzon8:
#endif /* TP_12 */
        movea.l   memtaddr,a0
        adda.l    #ZONESIZE,a0
        move.l    a0,memtaddr
        rts
Post Reply

Return to “SOFTWARE PROGRAMMING & DISCUSSION”