Cool.stephen_usher wrote: 12 May 2024 12:01 There's a new Github branch of the code now: https://github.com/gotaproblem/pistorm- ... ee/may2024
Might not get time this week to do anything again though. A lot going on in and out of Atari world.

Cool.stephen_usher wrote: 12 May 2024 12:01 There's a new Github branch of the code now: https://github.com/gotaproblem/pistorm- ... ee/may2024


Hmm, I must be misremembering what gpio[13] returns as it looks like l is 32 bits and shifted right 8 at the end to get the status.stephen_usher wrote: 11 May 2024 14:20 OK, implemented that change, though 0x1FFD is not correct, I'm using 0xFF00 as anything else fails to go get out of the loop.
The value of l is usually 0xd9xxxx6c or 0xd9xxxx7c. The xxxx values are usually 0x0000 but often 0xffff and sometimes other values such as 0x4001, 0x4081, 0x7fef or 0x5bef.
Code: Select all
inline
uint16_t ps_read_status_reg ()
{
static uint32_t l;
static uint16_t status;
do {
while ( gpio [13] & 1 );
gpio [7] = 0x4C; //(REG_STATUS << PIN_A0) | (1 << PIN_RD);
while ( gpio [13] & 1 );
l = gpio [13];
status = ( l >> 8 );
gpio [10] = TXN_END;
}while ( (status & 0x1FFD) != 0 );
return status;
}







Users browsing this forum: Amazon [bot], Baidu [Spider], ClaudeBot and 19 guests