Author Topic: X-Mas 2008 Special Edition !  (Read 7535 times)

0 Members and 1 Guest are viewing this topic.

Offline Ast

  • 6128 Plus
  • ******
  • Posts: 1.138
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 1048
  • Likes Given: 765
X-Mas 2008 Special Edition !
« on: 15:02, 04 May 15 »
Hello,


Since Gerald gives us the meaning to make project on cartridge, i've decided to test some cartridges possibilities. So, after many hours of debugging, you could find here the Cpr version of X-Mas 2008.


This Special edition now works on all Amstrad Plus version. 64Kb is now necessary to run this demo instead of 128Kb in the Disk version.


64KB ? Yes, this dentro runs on Gx 4000 and Amstrad 464 Plus Too!

It is time to insert your cartridge in your system now!
« Last Edit: 02:13, 06 May 15 by Ast »
_____________________

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

http://amstradplus.forumforever.com/index.php
http://impdos.wikidot.com/
http://impdraw.wikidot.com/

All friends are welcomed !

Offline CraigsBar

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.326
  • Country: ie
  • The party ain't over yet
    • index.php?action=treasury
  • Liked: 1189
  • Likes Given: 84
Re: X-Mas 2008 Special Edition !
« Reply #1 on: 15:10, 04 May 15 »
Yippee, thanks. My GX4000 is very happy.
IRC:  #Retro4All on Freenode

Offline Ast

  • 6128 Plus
  • ******
  • Posts: 1.138
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 1048
  • Likes Given: 765
Re: X-Mas 2008 Special Edition !
« Reply #2 on: 15:22, 04 May 15 »
All my tests were done on Winape and Gx 4000, so please tell me if it runs correctly on Amstrad Plus original models (464 & 6128 Plus).
Thanks!
_____________________

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

http://amstradplus.forumforever.com/index.php
http://impdos.wikidot.com/
http://impdraw.wikidot.com/

All friends are welcomed !

Offline Kris

  • 6128 Plus
  • ******
  • Posts: 563
  • Country: fr
  • Team Impact
  • Liked: 225
  • Likes Given: 863
Re: X-Mas 2008 Special Edition !
« Reply #3 on: 15:32, 04 May 15 »
Great !
Next step: Synergy ? :)

Offline Ast

  • 6128 Plus
  • ******
  • Posts: 1.138
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 1048
  • Likes Given: 765
Re: X-Mas 2008 Special Edition !
« Reply #4 on: 15:41, 04 May 15 »
why not? but i'll need more time....
_____________________

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

http://amstradplus.forumforever.com/index.php
http://impdos.wikidot.com/
http://impdraw.wikidot.com/

All friends are welcomed !

Offline Ast

  • 6128 Plus
  • ******
  • Posts: 1.138
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 1048
  • Likes Given: 765
Re: X-Mas 2008 Special Edition !
« Reply #5 on: 21:37, 04 May 15 »
Please can you tell me if the dentro works at home ? Some people report me that there is some problems. Tell me in which machine you had run it. Thank you !
_____________________

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

http://amstradplus.forumforever.com/index.php
http://impdos.wikidot.com/
http://impdraw.wikidot.com/

All friends are welcomed !

Offline Ast

  • 6128 Plus
  • ******
  • Posts: 1.138
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 1048
  • Likes Given: 765
Re: X-Mas 2008 Special Edition !
« Reply #6 on: 22:14, 04 May 15 »
Sorry but I believe the Cpr version posted here has problems of sound. I don't know why but I'll be back soon with a full running version.
_____________________

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

http://amstradplus.forumforever.com/index.php
http://impdos.wikidot.com/
http://impdraw.wikidot.com/

All friends are welcomed !

Offline remax

  • 6128 Plus
  • ******
  • Posts: 1.137
  • Country: fr
  • Liked: 420
  • Likes Given: 471
Re: X-Mas 2008 Special Edition !
« Reply #7 on: 22:49, 04 May 15 »
At least, it make MESS crash even before it make it to the driver screen  :o

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.336
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2278
  • Likes Given: 3478
Re: X-Mas 2008 Special Edition !
« Reply #8 on: 23:14, 04 May 15 »
@Ast:

The header has a bad size. :(

bytes 4,5,6,7 should be 24,00,01. The size is bad here. Arnold thinks it's a bad cpr and loads it as a binary dump.

The boot seems bad too. I don't see where you set interrupt mode 1. By default z80 restarts in interrupt moDe 0.

EDIT: I see IM1, but interrupts are enabled before it is set. that will cause a problem.

Have you set all the crtc registers? All registers are set to 0 at reset time.

EDIT: Please setup all the hardware in your boot code and please set interrupt mode 1 before enabling interrupts. I also don't see the PPI being initialised. Port A is input at startup. Please fix it so I can see it working 100%.

Edit: I see you tested it on gx4000. Did you test it through the car chooser or put it in a slot and boot it direct?
« Last Edit: 23:49, 04 May 15 by arnoldemu »
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline Ast

  • 6128 Plus
  • ******
  • Posts: 1.138
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 1048
  • Likes Given: 765
Re: X-Mas 2008 Special Edition !
« Reply #9 on: 00:15, 05 May 15 »
I keep all your comments to modify it and i'll do my best for the next version...
Thanks for advices. I didn't know i must initialize the ppi so i.d correct it too.


Can you tell me more about the size problem. You speak about 4 bits and give me 3 values only. Thanks.


Concerning Gx 4000, i simply put the cpr file in the game slot (15) and run it using the menu.
« Last Edit: 00:18, 05 May 15 by Ast »
_____________________

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

http://amstradplus.forumforever.com/index.php
http://impdos.wikidot.com/
http://impdraw.wikidot.com/

All friends are welcomed !

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.336
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2278
  • Likes Given: 3478
Re: X-Mas 2008 Special Edition !
« Reply #10 on: 10:59, 05 May 15 »
I keep all your comments to modify it and i'll do my best for the next version...
Thanks for advices. I didn't know i must initialize the ppi so i.d correct it too.
Yes, assume all hardware state is unknown and initialise all you use.


Can you tell me more about the size problem. You speak about 4 bits and give me 3 values only. Thanks.
Oops.

The size field is the size of the cpr file with 8 subtracted. It is written like z80, low byte, then next then next then high byte.
For your cart it is (including the 0 I missed out - oops):

24,00,01,00

Size of your cart file is &00010028



Concerning Gx 4000, i simply put the cpr file in the game slot (15) and run it using the menu.
it is possible the game menu doesn't initialise all hardware state when the cart is run.. i will mention this to gerald.

if you put it into another slot and activate the slot you can run it without game menu and get the correct actual initial hardware state. :)

Or, use a usb cable and download it into the cart directly - this will do the same.

The c4cpc is a great design :)

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

Offline gerald

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.515
  • Liked: 1065
  • Likes Given: 260
Re: X-Mas 2008 Special Edition !
« Reply #11 on: 11:38, 05 May 15 »
it is possible the game menu doesn't initialise all hardware state when the cart is run.. i will mention this to gerald.
The PPI, memory configuration, ASIC paging/lock, interrupt mode, r register are initialised to reset value when leaving CprSelect or the BootStrap (for big cartridge).

if you put it into another slot and activate the slot you can run it without game menu and get the correct actual initial hardware state. :)
That would be OK if the RIFF size was correct ;) , the uC only check that value to decide to use the bootstrap or not.

Or, use a usb cable and download it into the cart directly - this will do the same.
That the best method for getting the out of reset state. Load the CPR, then power on the GX/CPC

Offline Ast

  • 6128 Plus
  • ******
  • Posts: 1.138
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 1048
  • Likes Given: 765
Re: X-Mas 2008 Special Edition !
« Reply #12 on: 12:56, 05 May 15 »

The size field is the size of the cpr file with 8 subtracted. It is written like z80, low byte, then next then next then high byte.
For your cart it is (including the 0 I missed out - oops):

24,00,01,00

Size of your cart file is &00010028



Must i put #24 or #28 ?
_____________________

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

http://amstradplus.forumforever.com/index.php
http://impdos.wikidot.com/
http://impdraw.wikidot.com/

All friends are welcomed !

Offline gerald

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.515
  • Liked: 1065
  • Likes Given: 260
Re: X-Mas 2008 Special Edition !
« Reply #13 on: 13:11, 05 May 15 »

Must i put #24 or #28 ?
Size of your cart file is &00010028 (in fact &0001002C)
 size field is the size of the cpr file with 8 subtracted

= &00010024 (24 00 01 00 in little endian)

Offline Ast

  • 6128 Plus
  • ******
  • Posts: 1.138
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 1048
  • Likes Given: 765
Re: X-Mas 2008 Special Edition !
« Reply #14 on: 14:37, 05 May 15 »
Remember this is a 64kb cartridge, not 128kb one....
So is the size the same thing ?
Can you give me the way of this result? How do you do?
_____________________

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

http://amstradplus.forumforever.com/index.php
http://impdos.wikidot.com/
http://impdraw.wikidot.com/

All friends are welcomed !

Offline gerald

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.515
  • Liked: 1065
  • Likes Given: 260
Re: X-Mas 2008 Special Edition !
« Reply #15 on: 14:55, 05 May 15 »
Remember this is a 64kb cartridge, not 128kb one....
So is the size the same thing ?
Can you give me the way of this result? How do you do?
For a N 16384 page cart :
RIFF size field =
AMS! :     4
cbxx  :  + N * ( 8 + 16384)

File size will be RIFF size + 8

for a 64k cpr N=4 :
- RIFF size = 4 + 4*(8+16384) = 65572 = 0x10024
- File siez = 65580 = 0x1002C


Offline Ast

  • 6128 Plus
  • ******
  • Posts: 1.138
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 1048
  • Likes Given: 765
Re: X-Mas 2008 Special Edition !
« Reply #16 on: 15:13, 05 May 15 »
Thanks a lot Gerald.


As i see, here is the good bytes you have to put :


For 64kb cartridge bit 4,5,6 and 7 must be : #24,00,01,00

For 128kb cartridge bit 4,5,6 and 7 must be : #44,00,02,00

For 256kb cartridge bit 4,5,6 and 7 must be : #84,00,04,00 <- sorry to forget this size

For 512kb cartridge, bit 4,5,6 and 7 must be : #04,01,08,00

Maybe It can help someone, who knows?
« Last Edit: 16:38, 05 May 15 by Ast »
_____________________

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

http://amstradplus.forumforever.com/index.php
http://impdos.wikidot.com/
http://impdraw.wikidot.com/

All friends are welcomed !

Offline Ast

  • 6128 Plus
  • ******
  • Posts: 1.138
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 1048
  • Likes Given: 765
Re: X-Mas 2008 Special Edition !
« Reply #17 on: 15:57, 05 May 15 »
Here is the final version. Thanks to Gerald and ArnoldEmu for their good advices. This time, dentro will run with no black screen and music...


@DevilMarkus: Please erase the first file in this topic.


@All CpcWiki readers : Please send me a comment to tell me if it works at home and which system you used to run this dentro !



_____________________

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

http://amstradplus.forumforever.com/index.php
http://impdos.wikidot.com/
http://impdraw.wikidot.com/

All friends are welcomed !

Offline gerald

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.515
  • Liked: 1065
  • Likes Given: 260
Re: X-Mas 2008 Special Edition !
« Reply #18 on: 17:43, 05 May 15 »
Woking fine on my GX4000 !

Great job  ;)

Offline Ast

  • 6128 Plus
  • ******
  • Posts: 1.138
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 1048
  • Likes Given: 765
Re: X-Mas 2008 Special Edition !
« Reply #19 on: 18:00, 05 May 15 »
Thanks!
_____________________

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

http://amstradplus.forumforever.com/index.php
http://impdos.wikidot.com/
http://impdraw.wikidot.com/

All friends are welcomed !

Offline CraigsBar

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.326
  • Country: ie
  • The party ain't over yet
    • index.php?action=treasury
  • Liked: 1189
  • Likes Given: 84
Re: X-Mas 2008 Special Edition !
« Reply #20 on: 18:16, 05 May 15 »
Will test it in my plus' and gx. Love the new scroller text tho, I read that last night.
IRC:  #Retro4All on Freenode

Offline Ast

  • 6128 Plus
  • ******
  • Posts: 1.138
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 1048
  • Likes Given: 765
Re: X-Mas 2008 Special Edition !
« Reply #21 on: 18:21, 05 May 15 »
Send me a feedback when i'll be done, please. I want to know if it runs correctly on Amstrad plus 464 & 6128.


Happy to read you love the 'new scroller'...
_____________________

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

http://amstradplus.forumforever.com/index.php
http://impdos.wikidot.com/
http://impdraw.wikidot.com/

All friends are welcomed !

Offline CraigsBar

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.326
  • Country: ie
  • The party ain't over yet
    • index.php?action=treasury
  • Liked: 1189
  • Likes Given: 84
Re: X-Mas 2008 Special Edition !
« Reply #22 on: 23:42, 05 May 15 »
Here is the final version. Thanks to Gerald and ArnoldEmu for their good advices. This time, dentro will run with no black screen and music...


@DevilMarkus: Please erase the first file in this topic.


@All CpcWiki readers : Please send me a comment to tell me if it works at home and which system you used to run this dentro !
tested on all my ASIC based hardware and it's fine on all of it :)


Many thanks the tune is as awesome as ever.
IRC:  #Retro4All on Freenode

Offline Ast

  • 6128 Plus
  • ******
  • Posts: 1.138
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 1048
  • Likes Given: 765
Re: X-Mas 2008 Special Edition !
« Reply #23 on: 00:19, 06 May 15 »
Can you tell me which hardware you used precisely ?

_____________________

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

http://amstradplus.forumforever.com/index.php
http://impdos.wikidot.com/
http://impdraw.wikidot.com/

All friends are welcomed !

Offline CraigsBar

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.326
  • Country: ie
  • The party ain't over yet
    • index.php?action=treasury
  • Liked: 1189
  • Likes Given: 84
Re: X-Mas 2008 Special Edition !
« Reply #24 on: 00:21, 06 May 15 »
Can you tell me which hardware you used precisely ?
Sure....


GX4000
464plus (Internal upgrades to 6128plus spec) with connected Xmem, Xmass, PlayCity and Mini Booster
6128plus


SO I guess you could say 2 6128plus'


Craig

IRC:  #Retro4All on Freenode