Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Program resets calculator on fx-9750GIII #2

Open
TextureOverload opened this issue Sep 18, 2023 · 2 comments
Open

Program resets calculator on fx-9750GIII #2

TextureOverload opened this issue Sep 18, 2023 · 2 comments

Comments

@TextureOverload
Copy link

I don't think it's compatible, but i'll take a shot in the dark. Is it compatible, or will it ever be? Thanks :)

@djpadbit
Copy link
Owner

It's not compatible with the newer calculators as one of the memory addresses I used to store some data is now used by the OS. It wouldn't be too much of a problem to modify the emulator to support them but it could impact performance quite a bit.

For reference, it's used in theses areas (I think i forgot some places too, it's been almost 3 years)

static uint8_t __attribute__((section (".magic_sec"))) buff[160*144];

fxgnuboy/gnuboy/lcd.c

Lines 31 to 33 in 9177627

struct lcd __attribute__((section (".magic_sec"))) lcd;
struct scan __attribute__((section (".magic_sec"))) scan;

memset((uint8_t*)0x88040000,0,256*1024);

fxgnuboy/gnuboy/lcd.c

Lines 68 to 69 in 9177627

static PatcacheEntry __attribute__((section (".magic_sec"))) patcache[CACHED_PATPIX_NO];
static PatcacheEntry* __attribute__((section (".magic_sec"))) patcacheptr[4096];

static uint8_t __attribute__((section (".magic_sec"))) rombanks[NO_ROMBANKS][16*1024];
static uint8_t rombanks_mapped[NO_ROMBANKS];
static unsigned int rombanks_use_ctr[NO_ROMBANKS];
static uint8_t __attribute__((section (".magic_sec"))) rombank0[16*1024];

And is defined in the "sections.ld" file.

You could just remove the attribute and reduce the sizes of the rombanks and lcd cache to try to fit everything into normal memory but i don't know if it will run any good.

@Dodecahedron7777
Copy link

Could you try?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants