|
Joined: May 2010
Posts: 1,051
Very Senior Member
|
OP
Very Senior Member
Joined: May 2010
Posts: 1,051 |
The '510 has a 128x176 ROM array, and I figured the '511 ROM layout would be the same but with the full 64 pages instead of just 44. And the '511 ROM *is* 128x256, but the rows and columns are transposed, so it's really 256x128. It turns out that they put two 128x128 arrays side by side, and switch sides every 8 pages. Here's pseudocode:
blockorder[]={4,5,7,6,3,2,0,1,11,10,8,9,12,13,15,14};
numpages=64;
bytesperpage=64;
bytesperrow=32;
bitsperrow=bytesperrow*8;
rowsperpage=bytesperpage/bytesperrow;
FOR(pg2=0;pg2<(numpages/16);pg++) {
FOR(pg1=0;pg1<2;pg1++) { // every eight pages, change ROM array halves
FOR(Pg0=0;pg0<8;pg++) {
FOR(i=0;i<(bytesperrow/2);i++) {
FOR(j=0; j<(rowsperpage*2);j++) {
rom[rx]=0;
FOR(b=0;b<8;b++) { // bits
ix=((pg0*4+pg2)*4+j)*bitsperrow+b*bytesperrow+blockorder[i]+16*pg1;
rom[rx]=rom[rx]*2+rawbits[ix];
}
rx++;
}
}
}
}
}
I also uploaded a top metal pic with smudges in different areas: www.seanriddle.com/tmntrom.jpg
|
|
|
|
Joined: Mar 2002
Posts: 1,368 Likes: 120
Very Senior Member
|
Very Senior Member
Joined: Mar 2002
Posts: 1,368 Likes: 120 |
|
|
|
|
Joined: Mar 2001
Posts: 17,215 Likes: 234
Very Senior Member
|
Very Senior Member
Joined: Mar 2001
Posts: 17,215 Likes: 234 |
The algorithm is for a Magic Chef microwave oven. We've *got* to get our hands on one of those chips
|
|
|
|
Joined: Mar 2001
Posts: 17,215 Likes: 234
Very Senior Member
|
Very Senior Member
Joined: Mar 2001
Posts: 17,215 Likes: 234 |
I really shouldn't underestimate Stiletto, but that result still surprised me Doubt that guy has the code though - is there a patent like there is for the game-oriented TMS1xxx chips?
|
|
|
|
Joined: Oct 2006
Posts: 1,017 Likes: 21
Very Senior Member
|
Very Senior Member
Joined: Oct 2006
Posts: 1,017 Likes: 21 |
I really shouldn't underestimate Stiletto, but that result still surprised me Heh, search "TMS 1000" + "Magic Chef" on Google and it's like the first result.
|
|
|
|
Joined: Mar 2002
Posts: 1,368 Likes: 120
Very Senior Member
|
Very Senior Member
Joined: Mar 2002
Posts: 1,368 Likes: 120 |
Sharp is pranking me, SM511 opcode documentation is incomplete (missing some opcodes), and the melody controller doc is very sparse.
Contra patent ROM code: I agree some bytes are ambigious, especially B and 8 look similar. The chance of getting an errorfree ROM from it is small.
|
|
|
|
Joined: Mar 2002
Posts: 1,368 Likes: 120
Very Senior Member
|
Very Senior Member
Joined: Mar 2002
Posts: 1,368 Likes: 120 |
Rik if you're reading, could you provide PCB photos of your Game&watch games?
|
|
|
|
Joined: May 2010
Posts: 1,051
Very Senior Member
|
OP
Very Senior Member
Joined: May 2010
Posts: 1,051 |
I started using the character widths- 0 is skinniest, then 8, then B.
I've got a Contra on the way, and just got a Star Trek 25th Anniversary. G&W Boxing is also coming.
|
|
|
Forums9
Topics9,320
Posts121,923
Members5,074
|
Most Online1,283 Dec 21st, 2022
|
|
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!
|
|
|
|