emuforge

The OBC1 and the S-RTC

Each of these chips is in one game, and is small. All that is known here of both is from Martin Korth's fullsnes ("SNES Cart OBC1" and "SNES Cart S-RTC"), with what that game does. Each is a crate of its own: crates/snes-obc1 and crates/snes-srtc.

The OBC1

Metal Combat: Falcon's Revenge has it. The picture's table of objects has 4 bytes for each object, and then two bits for each, four objects to a byte. To change these two bits in a copy in memory, a program has to take the byte apart and put it together again. The OBC1 does that for it. The copy is in the cartridge's 8 KB of RAM at $6000-$7FFF, in banks $00-$3F and $80-$BF:

Register
$7FF0-$7FF3the four bytes of the chosen object, in the RAM
$7FF4its two bits, in the RAM. A write changes only those. A read gives their whole byte, which fullsnes has with "reportedly"
$7FF5bit 0: where the table is in the RAM: 0 for $7C00, and 1 for $7800
$7FF6which object is chosen, 0 to 127
$7FF7not known. It is only kept

For example, with 1 in $7FF5 and 5 in $7FF6, $7FF4 changes bits 2 and 3 of $7A01. Object 5 is the second of the four objects of the second byte, and the two bits come after the table's 512 bytes of objects. The rest of the byte stays.

The ROM is as LoROM. The RAM is not also in $70-$7D, where LoROM boards have it. fullsnes has ROM in banks $70-$71 with a question mark. The chip needs no time and has no interrupt.

Guesses: that the last three registers give back what was written, and are 0 at power-on and after a reset. The RAM is always there: fullsnes says with a question mark that bits 5 and 7 of $7FF6 "reportedly" turn on a part of it.

What was tested: the crate's tests have each object in both tables and each value of the two bits. The two releases (Europe and the United States) were run for 3,600 frames each (2dc121c), with simple presses. They showed 1,140 and 869 different pictures and made sound. Pictures of the title and a fight, or a demonstration of one, were looked at, small, and nothing looked wrong. The game is played with a Super Scope, which is not there, so it cannot be played.

The S-RTC

Daikaijuu Monogatari II has it, with ExHiROM. It is a clock with a battery. It has two registers of four bits: $2801 is written, and $2800 is read. fullsnes has what that game sends and reads, and not what each byte means:

What the game does
Sets the timewrites $E, 4, $D, $E, 0, then twelve digits, then $D
Reads itreads $F, then thirteen digits, as often as it likes

The digits are the seconds, minutes, hours and day, each with the ones first. Then come the month (1 to $C), the year with the ones first, and the century (9 for 19xx, $A for 20xx). When read, the last one is the day of the week, 0 to 6.

For example, 1996-12-31 23:59:58 is 8 5 9 5 3 2 1 3 C 6 9 9. A test sets this, reads it, and lets two seconds go by. It then reads 0 0 0 0 0 0 1 0 1 7 9 9, and 3 for a Wednesday.

The core gives the clock no time of its own. Like the other one, it goes on with the master clock from the time that the front end gives, and its battery keeps it.

Guesses:

  • $E begins a command, and the next digit says which one. 0 sets the time, as soon as its twelfth digit is there. 4 does nothing. Any other is not known. The chip keeps the first one that a game sends, for reports.
  • $E and $D let a reading start again with $F. Its digits are of the moment at which $F was read. While a command runs, reads are 0.
  • Setting the time starts a new second. A clock that was never set shows the player's time.
  • Day 0 of the week is Sunday, and it follows from the date. A date that cannot be becomes the one that follows as many days later. A month of 0 is January, and one above 12 is December.
  • The upper four bits are 0. fullsnes says that they may be open bus, which games leave out.

What was tested: the crate's tests have dates that are known from elsewhere, leap years (1900 has none, and 2000 has), one date every 8 days over 130 years, each console's exact second, any digits at all, and damaged savestates. One release was run for 3,600 frames (2dc121c), with simple presses. It showed 594 different pictures and some sound, and asks the player for the date and the time. Nothing after that was seen. It sent no command that is not known.

From commit 019fda0af379. Edit this page