Best way to init SP (ROM)?

Page 3/3
1 | 2 |

Par gdx

Enlighted (6117)

Portrait de gdx

24-07-2020, 17:04

Forget what I just wrote, I wrong.

Par theNestruo

Champion (414)

Portrait de theNestruo

24-07-2020, 17:08

I'm pretty sure OP's question was about ROMs using BIOS.

In this old thread about Zombie Incident, nenefranz states that ld sp,$F380 was causing issues with the Sony HB-F500, and ld sp,(HIMEM) fixed those issues.

Par sd_snatcher

Prophet (3646)

Portrait de sd_snatcher

24-07-2020, 18:56

I remember that I had issues with ld sp,(HIMEM) too, so these days I use a fixed conservative ld sp,0xE000

If the stack can't be placed that low for whatever reason, it means that the system doesn't have enough free memory to run the software.

Par Grauw

Ascended (10717)

Portrait de Grauw

24-07-2020, 19:06

Do you remember what kind of issues? Was it that HIMEM was lower than E000H?

Par hit9918

Prophet (2927)

Portrait de hit9918

24-07-2020, 22:19

SjaaQ wrote:

I have a 256 byte table to deal with the databus problem (ok 256 bytes wasted). It contains something like #C1 for every byte so the pointer to the address will always be #C1C1.

but you need 257 byte. like for example from D800 to D900. because when the low byte is at D8FF, who knows, it does a 16bit increment to get the high byte, and then it reads D900.

Page 3/3
1 | 2 |