Author Topic: create good cpr for gx4000  (Read 768 times)

0 Members and 1 Guest are viewing this topic.

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.194
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2021
Re: create good cpr for gx4000
« Reply #10 on: 15:36, 24 September 16 »
Try this instead:

Unofficial Amstrad WWW Resource

There are some examples here that may help. They are better tested. My code here must be old and not working fully.

"single": Good for single files to be executed from ram.
The boot program copies the code into ram and executes it. You still need to initialise the h/w. Look at the example.

"fs": The cart is treated like a read only filesystem.
You can read and write files as you need in your program. See the example. This is much easier if your used to disks and loading files. It's similar to how a lot of C64 carts work.

"absolute": You take control over each 16KB cart page so you need to manage both your code and your data to work with it.

Maybe it is better to work with these?

You can freely use this code in your own game. I would like a credit if you use it please.
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline dub

  • CPC464
  • **
  • Posts: 9
  • Country: fr
  • Liked: 11
Re: create good cpr for gx4000
« Reply #11 on: 12:45, 25 September 16 »
I'm cursed or what ?  ;D

I try the arnoldemulator and the "single" example for beginning. And I had weird results.

I use the make.bat with pasmo for Windows. Everything compil. I've just add my code to see red border.
I launch arnold emu with the gx4000 configuration as you can see on the screenshot. And When I launch the cart, I have left black border and two color lines on the top.

I try my my_cart.bin and the cpr with the cprtools.

If I insert my_cart.cpr on winape emulator, I have the game working : red border and flashing in screen. (On the bottom of my screenshot).
But I need to compiling with pasmo and after use the crptools gui. Lot of manipulation.

Offline Xifos

  • CPC664
  • ***
  • Posts: 147
  • Country: fr
  • Liked: 114
Re: create good cpr for gx4000
« Reply #12 on: 19:46, 25 September 16 »
What does cprtools ?

Transform a bin file into a cpr file ?

Offline Kris

  • 464 Plus
  • *****
  • Posts: 450
  • Country: fr
  • Team Impact
  • Liked: 140
Re: create good cpr for gx4000
« Reply #13 on: 22:03, 25 September 16 »
What does cprtools ?

Transform a bin file into a cpr file ?


Exactly, in both way bin => CPR or CPR=> bin