Author Topic: Memory Check.  (Read 4828 times)

0 Members and 1 Guest are viewing this topic.

Offline Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.635
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
  • Liked: 2948
Memory Check.
« on: 17:21, 22 October 11 »
Hi All,
      I'm just experimenting with some RAM expansions and was wondering whether there is a quick way to report how much RAM is connected to the CPC. It needs to be on a disk (ie: not a ROM routine) because there isn't / can't be any ROM expansion connected to the CPC while I am performing certain tests.

Bryce.

Offline SyX

  • 6128 Plus
  • ******
  • Posts: 1.095
  • Country: br
  • Liked: 994
Re: Memory Check.
« Reply #1 on: 19:44, 22 October 11 »
I have made a miniprogram that will report how many banks of expansion ram DK'Tronics compatible has your CPC, the sizes reported are 0, 64, 128, 256 or 512.

If you need page (16 KBs pages) accuracy instead of bank accuracy (64 KBs banks), only tell me ;)

PD:The DSK with the ram test is fixed now, sorry again ;)
« Last Edit: 19:38, 23 October 11 by SyX »

Offline Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.635
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
  • Liked: 2948
Re: Memory Check.
« Reply #2 on: 20:14, 22 October 11 »
Wow, thanks, "Bank acurracy" is enough for what I am doing :) I'll try it out tomorrow.

Bryce.

Offline SyX

  • 6128 Plus
  • ******
  • Posts: 1.095
  • Country: br
  • Liked: 994
Re: Memory Check.
« Reply #3 on: 20:20, 22 October 11 »
You are welcome Sir Bryce :D

Offline Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.635
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
  • Liked: 2948
Re: Memory Check.
« Reply #4 on: 17:48, 23 October 11 »
Hi SyX,
     somethings not quite right with the RAM test program. If I connect a 64K DKTronics expansion to the CPC, the program reports 512K, the same when I connect 256K. And it always crashes after reporting the RAM (strange flickering dots in top left corner of screen) except for when no expansion is connected.

Bryce.

Offline SyX

  • 6128 Plus
  • ******
  • Posts: 1.095
  • Country: br
  • Liked: 994
Re: Memory Check.
« Reply #5 on: 18:50, 23 October 11 »
Upss, ok, i'll review it, i only has tested in WinApe (with its multiples ram expansion emulation worked great) and my CPC6128s without ram expansions (that showed the message 64 KBs of ram expansion), but i don't think it would be any problem, sorry.

PD: Fixed, only worked in my CPC by pure miracle :P

PD2: I will add the support to Silicon Disk Expansions, because now it could show wrong sizes in those ;)
« Last Edit: 19:41, 23 October 11 by SyX »

Offline CanonMan

  • CPC664
  • ***
  • Posts: 137
  • Liked: 13
Re: Memory Check.
« Reply #6 on: 21:44, 23 October 11 »
I had the same problem running it on WinAPE too.
 
I had a look at the code using the debugger and noticed that the bank switching codes weren't being sent to port &7f00. I'm surprised it worked at all.
 

Offline SyX

  • 6128 Plus
  • ******
  • Posts: 1.095
  • Country: br
  • Liked: 994
Re: Memory Check.
« Reply #7 on: 22:02, 23 October 11 »
Only worked for the ghosting in the I/O ports, that is be lucky XDDD

Online arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.024
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 1918
Re: Memory Check.
« Reply #8 on: 23:00, 23 October 11 »
This is the code I used for Batman Begins:
http://www.cpctech.org.uk/source/memcheck.html

it stores a list of the configurations that can be used, so you can count these up and multiply by 16 to give the total size in extra K.
This may be useful?
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 10.103
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1966
Re: Memory Check.
« Reply #9 on: 07:13, 24 October 11 »
Hi All,
      I'm just experimenting with some RAM expansions and was wondering whether there is a quick way to report how much RAM is connected to the CPC. It needs to be on a disk (ie: not a ROM routine) because there isn't / can't be any ROM expansion connected to the CPC while I am performing certain tests.

Bryce.

Look here:
http://www.cpcwiki.eu/imgs/4/44/4_MB_E-RAM_Test.zip
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus