fixed long standing bug in GG encoder for 8000 address
This commit is contained in:
parent
f9f35cbadb
commit
951c325cc1
|
@ -18,6 +18,33 @@
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*
|
*
|
||||||
* Family Study Box by Fukutake Shoten
|
* Family Study Box by Fukutake Shoten
|
||||||
|
*
|
||||||
|
* REG[0] R dddddddd / W ww---sss
|
||||||
|
* ddd - TAPE DATA BYTE (ready when IRQ occurs)
|
||||||
|
* sss - BRAM hi-bank
|
||||||
|
* ww - PRAM bank
|
||||||
|
* REG[1] R 0123---- / W ----PPPP
|
||||||
|
* 0 - ?
|
||||||
|
* 1 - ?
|
||||||
|
* 2 - ?
|
||||||
|
* 3 - ?
|
||||||
|
* PPPP- PROM bank
|
||||||
|
* REG[2] R -?--R--- / W A-BC-DEF
|
||||||
|
* 4 - ?
|
||||||
|
* R - sb4x power supply status (active low)
|
||||||
|
* A - ?
|
||||||
|
* B - ?
|
||||||
|
* C - ?
|
||||||
|
* D - ?
|
||||||
|
* E - ?
|
||||||
|
* F - ?
|
||||||
|
*
|
||||||
|
* BRAM0 4400-4FFF, 3K bank 0 (32K SWRAM) [hardwired]
|
||||||
|
* BRAMB 5000-5FFF, 4K banks 1-7 (32K SWRAM) [REG[0] W -----sss]
|
||||||
|
* PRAMB 6000-7FFF, 8K banks 1-3 (32K PRAM) [REG[0] W ww------]
|
||||||
|
* PROMB 8000-BFFF, 16K banks 1-15 (256K PROM)[REG[1] W ----PPPP]
|
||||||
|
* PROM0 C000-FFFF, 16K bank 0 (256K PROM) [hardwired]
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "mapinc.h"
|
#include "mapinc.h"
|
||||||
|
|
|
@ -930,7 +930,8 @@ void EncodeGG(char *str, int a, int v, int c)
|
||||||
uint8 num[8];
|
uint8 num[8];
|
||||||
static char lets[16]={'A','P','Z','L','G','I','T','Y','E','O','X','U','K','S','V','N'};
|
static char lets[16]={'A','P','Z','L','G','I','T','Y','E','O','X','U','K','S','V','N'};
|
||||||
int i;
|
int i;
|
||||||
if(a > 0x8000)a-=0x8000;
|
|
||||||
|
a&=0x7fff;
|
||||||
|
|
||||||
num[0]=(v&7)+((v>>4)&8);
|
num[0]=(v&7)+((v>>4)&8);
|
||||||
num[1]=((v>>4)&7)+((a>>4)&8);
|
num[1]=((v>>4)&7)+((a>>4)&8);
|
||||||
|
|
Loading…
Reference in New Issue