Author Topic: X-MEM, a new memory expansion for all CPC.  (Read 112223 times)

0 Members and 2 Guests are viewing this topic.

Offline Ast

  • 6128 Plus
  • ******
  • Posts: 1.017
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 807
  • Likes Given: 689
Re: X-MEM, a new memory expansion for all CPC.
« Reply #500 on: 20:50, 14 August 15 »
nothing obvious. both using asic pri.

both using expansion ram normally.

@Ast: Did you try x-mem and 464Plus?

I wonder if there is a conflict between ram on x-mem and internal 6128plus extra ram.

@gerald: I think it's a coincidence that demo doesn't work on arnold wip. It's using split screen and scroll quite heavily.
Sorry, no 464 plus.
_____________________

Ast/iMP4CT. "By the power of Grayskull, i've the power"


Amstrad Plus French Forum

All friends are welcomed !

Offline Ast

  • 6128 Plus
  • ******
  • Posts: 1.017
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 807
  • Likes Given: 689
Re: X-MEM, a new memory expansion for all CPC.
« Reply #501 on: 20:52, 14 August 15 »
I still have an unmodified 464plus. Will try this tonight.
Please tell us if it's running or not when your tests were done.
_____________________

Ast/iMP4CT. "By the power of Grayskull, i've the power"


Amstrad Plus French Forum

All friends are welcomed !

Offline CraigsBar

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.280
  • Country: ie
  • The party ain't over yet
    • index.php?action=treasury
  • Liked: 1171
  • Likes Given: 79
Re: X-MEM, a new memory expansion for all CPC.
« Reply #502 on: 21:08, 14 August 15 »
I am at a fire station open day with the little fella at the moment. Will test when I get home later.

« Last Edit: 21:21, 14 August 15 by CraigsBar »
IRC:  #Retro4All on Freenode

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.332
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2247
  • Likes Given: 3477
Re: X-MEM, a new memory expansion for all CPC.
« Reply #503 on: 21:17, 14 August 15 »
How do I set a I/O breakpoint  :-[
Open the debugger window. In the bottom right is the stack and the breakpoint windows.

(see attached picture)

Right click to bring up the menu.

Add Breakpoint->IO Breakpoint...

You will see the io breakpoint window. (see attached picture)

Here I have chosen a default and it has filled in all the details for me.

You can enter your own details here, port, port mask, data, data mask to allow capturing of any i/o read/write from any port with any specific data.

The default will capture any write to 7fxx with data bits 7,6 set. The debugger will stop *after* the instruction, so in the dissassembly window move up to see it.

In the debugger window in the top right is the hardware details panel. Z80 should be visible by default. I/O port and I/O Data tell you what the z80 saw.

My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.332
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2247
  • Likes Given: 3477
Re: X-MEM, a new memory expansion for all CPC.
« Reply #504 on: 21:21, 14 August 15 »
If it works on 464 with x-mem, then it's probably x-mem ram clashing with extra 64kb ram inside 6128 plus.

If it is still broken, then the only thing I can think of is that somehow the data bus is clashing so that the value written to the asic registers is a combination of the data in the x-mem ram and the value you write giving wrong results.

The last could be tested by keeping the ram active, writing various values into it, paging in the asic registers to setup a pri interrupt and see if it doesn't trigger correctly.
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline Ast

  • 6128 Plus
  • ******
  • Posts: 1.017
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 807
  • Likes Given: 689
Re: X-MEM, a new memory expansion for all CPC.
« Reply #505 on: 21:23, 14 August 15 »
If it works on 464 with x-mem, then it's probably x-mem ram clashing with extra 64kb ram inside 6128 plus.

If it is still broken, then the only thing I can think of is that somehow the data bus is clashing so that the value written to the asic registers is a combination of the data in the x-mem ram and the value you write giving wrong results.

The last could be tested by keeping the ram active, writing various values into it, paging in the asic registers to setup a pri interrupt and see if it doesn't trigger correctly.
So what others non amstrad plus proggy works correctly?


Edit:

I think for example asm program Orgams which works correctly on amstrad plus with 512kb x-mem ram?
I believe the problem is another thing.
« Last Edit: 21:28, 14 August 15 by Ast »
_____________________

Ast/iMP4CT. "By the power of Grayskull, i've the power"


Amstrad Plus French Forum

All friends are welcomed !

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.332
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2247
  • Likes Given: 3477
Re: X-MEM, a new memory expansion for all CPC.
« Reply #506 on: 21:25, 14 August 15 »
So what others non amstrad plus proggy works correctly?
do cartridge games work with it?

and do the normal cpc games such as chase hq or robocop work with it and the plus?

My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline Ast

  • 6128 Plus
  • ******
  • Posts: 1.017
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 807
  • Likes Given: 689
Re: X-MEM, a new memory expansion for all CPC.
« Reply #507 on: 21:29, 14 August 15 »
I also answered in my edit  :P
_____________________

Ast/iMP4CT. "By the power of Grayskull, i've the power"


Amstrad Plus French Forum

All friends are welcomed !

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.332
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2247
  • Likes Given: 3477
Re: X-MEM, a new memory expansion for all CPC.
« Reply #508 on: 21:33, 14 August 15 »
I also answered in my edit  :P
it seems like a clash between asic ram and the expansion ram.. :(

If I write a test program to test this theory please would you run it?
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline Ast

  • 6128 Plus
  • ******
  • Posts: 1.017
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 807
  • Likes Given: 689
Re: X-MEM, a new memory expansion for all CPC.
« Reply #509 on: 21:58, 14 August 15 »
Of courso, i'll do.


Edit:
I've just made some test with my c4cpc+x mem and there is no problem.
« Last Edit: 22:06, 14 August 15 by Ast »
_____________________

Ast/iMP4CT. "By the power of Grayskull, i've the power"


Amstrad Plus French Forum

All friends are welcomed !

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1976
  • Likes Given: 4650
Re: X-MEM, a new memory expansion for all CPC.
« Reply #510 on: 22:19, 14 August 15 »
You can use the FutureOS System monitor (Plus version) to check if RAM or Memory-Mapped is banked it. RAM/ROM/MM can be selected individually. No need to invent the wheel again.  :)
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.332
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2247
  • Likes Given: 3477
Re: X-MEM, a new memory expansion for all CPC.
« Reply #511 on: 22:21, 14 August 15 »
You can use the FutureOS System monitor (Plus version) to check if RAM or Memory-Mapped is banked it. RAM/ROM/MM can be selected individually. No need to invent the wheel again.  :)
My test will be different ;)
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: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1976
  • Likes Given: 4650
Re: X-MEM, a new memory expansion for all CPC.
« Reply #512 on: 22:23, 14 August 15 »
My test will be different ;)


Yes, but if it fails in that (check banking in system monitor), why do bother wasting time?
« Last Edit: 22:25, 14 August 15 by TFM »
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.332
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2247
  • Likes Given: 3477
Re: X-MEM, a new memory expansion for all CPC.
« Reply #513 on: 22:28, 14 August 15 »

Yes, but if it fails in that (check banking in system monitor), why do bother wasting time?
good point.
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline Ast

  • 6128 Plus
  • ******
  • Posts: 1.017
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 807
  • Likes Given: 689
Re: X-MEM, a new memory expansion for all CPC.
« Reply #514 on: 22:30, 14 August 15 »
Something strange, the "revival'n impact cooperation" demo seemes to work using the firmware 3.1 of x-mem, but sound and sprites hard are so buggies...
Sound use only dma to be played... It's really strange.
_____________________

Ast/iMP4CT. "By the power of Grayskull, i've the power"


Amstrad Plus French Forum

All friends are welcomed !

Offline Ast

  • 6128 Plus
  • ******
  • Posts: 1.017
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 807
  • Likes Given: 689
Re: X-MEM, a new memory expansion for all CPC.
« Reply #515 on: 22:32, 14 August 15 »
I think problem must be between asic page connection and xmem mapping connection...
_____________________

Ast/iMP4CT. "By the power of Grayskull, i've the power"


Amstrad Plus French Forum

All friends are welcomed !

Offline gerald

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.435
  • Liked: 1006
  • Likes Given: 251
Re: X-MEM, a new memory expansion for all CPC.
« Reply #516 on: 22:44, 14 August 15 »
Open the debugger window. In the bottom right is the stack and the breakpoint windows.

(see attached picture)

Fount it, thanks to your screenshot. The stack/breakpoint pannel had a zero vertical size !

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.332
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2247
  • Likes Given: 3477
Re: X-MEM, a new memory expansion for all CPC.
« Reply #517 on: 22:45, 14 August 15 »
@Ast: I agree please try the attached dsk and tell me what you see.
if all is good there will be a stable pri interrupt.

no pri = ram probably takes priority.
stable pri = asic ram takes priority
unstable pri = data potentially mixing.
« Last Edit: 22:47, 14 August 15 by arnoldemu »
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.332
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2247
  • Likes Given: 3477
Re: X-MEM, a new memory expansion for all CPC.
« Reply #518 on: 22:46, 14 August 15 »
Fount it, thanks to your screenshot. The stack/breakpoint pannel had a zero vertical size !
Hmmm.. I will reset my settings and see if I can fix it. If not I will report the fault to wxwidgets.
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline gerald

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.435
  • Liked: 1006
  • Likes Given: 251
Re: X-MEM, a new memory expansion for all CPC.
« Reply #519 on: 22:47, 14 August 15 »
I think problem must be between asic page connection and xmem mapping connection...
At least it is not xmem only related, my own interface has the same problem.
@CraigsBar, can you test with your symbiface ?

Offline Ast

  • 6128 Plus
  • ******
  • Posts: 1.017
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 807
  • Likes Given: 689
Re: X-MEM, a new memory expansion for all CPC.
« Reply #520 on: 23:17, 14 August 15 »
@Ast: I agree please try the attached dsk and tell me what you see.
if all is good there will be a stable pri interrupt.

no pri = ram probably takes priority.
stable pri = asic ram takes priority
unstable pri = data potentially mixing.
I'm going to test it and came back to tell you the result.
_____________________

Ast/iMP4CT. "By the power of Grayskull, i've the power"


Amstrad Plus French Forum

All friends are welcomed !

Offline Ast

  • 6128 Plus
  • ******
  • Posts: 1.017
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 807
  • Likes Given: 689
Re: X-MEM, a new memory expansion for all CPC.
« Reply #521 on: 23:30, 14 August 15 »
And the result is :


Stable PRI Black 2/3 and Cyan 1/3

_____________________

Ast/iMP4CT. "By the power of Grayskull, i've the power"


Amstrad Plus French Forum

All friends are welcomed !

Offline Ast

  • 6128 Plus
  • ******
  • Posts: 1.017
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 807
  • Likes Given: 689
Re: X-MEM, a new memory expansion for all CPC.
« Reply #522 on: 23:38, 14 August 15 »
It seems to be all right so what to do?  :-\ 
_____________________

Ast/iMP4CT. "By the power of Grayskull, i've the power"


Amstrad Plus French Forum

All friends are welcomed !

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.332
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2247
  • Likes Given: 3477
Re: X-MEM, a new memory expansion for all CPC.
« Reply #523 on: 23:41, 14 August 15 »
And the result is :


Stable PRI Black 2/3 and Cyan 1/3
ok. That is correct, so no problem with that test.

The test did the following:
- page in 7fc4 and keep it active.
- wait for vsync, set to black
- write a number to 6800 in ram. (1-255)
- page in asic ram (leave it active), write 128 to pri
- wait for pri
- set cyan
- repeat

Ram expansion did not cause problems with this test.

I will think of some other tests.
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline gerald

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.435
  • Liked: 1006
  • Likes Given: 251
Re: X-MEM, a new memory expansion for all CPC.
« Reply #524 on: 23:43, 14 August 15 »
It seems to be all right so what to do?  :-\
Small question, is your demo code reading from the ASIC ram while extension RAM is also selected ?