On cardtridge RAM address space using SGDK

SGDK only sub forum

Moderator: Stef

Post Reply
masteries
Very interested
Posts: 53
Joined: Thu Jul 30, 2020 3:33 pm

On cardtridge RAM address space using SGDK

Post by masteries » Thu Sep 23, 2021 4:25 pm

Reading about Paprium hardware setup,
they used an added controller embedded into the cartridge.

Are they using the on cartridge RAM address space in order to bring orders to the added controller?

it's more of a guess than a question :)

This space was used for game save, the typical RAM chip with a button cell battery...


This approach is very interesting;
are there additional information about what and how to use this on cardtridge RAM address space using SGDK?

Thanks in advance,

Miquel
Very interested
Posts: 514
Joined: Sat Jul 30, 2016 12:33 am

Re: On cardtridge RAM address space using SGDK

Post by Miquel » Thu Sep 23, 2021 7:38 pm

A cartridge can only manage its own 4MB of address space and the !time signal.
HELP. Spanish TVs are brain washing people to be hostile to me.

masteries
Very interested
Posts: 53
Joined: Thu Jul 30, 2020 3:33 pm

Re: On cardtridge RAM address space using SGDK

Post by masteries » Mon Sep 27, 2021 8:17 am

Miquel wrote:
Thu Sep 23, 2021 7:38 pm
A cartridge can only manage its own 4MB of address space and the !time signal.
Very good answer, that solve anything, that provide solution and code samples.... xD

Assuming cartridge address space can be read and/or write.

Miquel
Very interested
Posts: 514
Joined: Sat Jul 30, 2016 12:33 am

Re: On cardtridge RAM address space using SGDK

Post by Miquel » Mon Sep 27, 2021 2:37 pm

How you manage the cartridge address space is a hardware question, software is only involved when accessing it from the cpu.

Do you want a code sample? there is one:

u16* p = <whatever_address>;
*p = 0x1234;
HELP. Spanish TVs are brain washing people to be hostile to me.

Post Reply