CaptainGreenhat Posted 54 minutes ago Posted 54 minutes ago I've been working through some of the more obscure gaming platforms and I recently managed to get the Hitachi MB-S1 working through LaunchBox. Given how little English-language documentation exists for this platform, I figured I'd share my findings and hopefully save someone else a little bit of troubleshooting. Also, these might seem a bit formal/technically dry, that's on purpose as I am actually writing these for a technical writing class I am taking so why not share my homework here. Emulator EmuB-S1 by Sasaji GitHub: https://github.com/bml3mk5/EmuB-S1 Executable: mbs1.exe Dedicated Hitachi MB-S1 emulator External BIOS files required Supports cassette waveform recordings and decoded cassette images MAME also has an MB-S1 driver, but its emulation status is preliminary, so I opted for the standalone emulator. Required BIOS Files The following firmware files are present in my working emulator configuration. Place them in the same directory as mbs1.exe. ROM1.ROM ROM2.ROM S1BAS1.ROM S1FONT.ROM S1ROM2.ROM S1ROMI.ROM Without the appropriate firmware, the emulator may appear functional and accept cassette images, but display a blank screen. Known Game Dumps I've currently identified three dumped games for this platform: Game Working format Tapes Mario Bros. Special L3B 1 Nuts & Milk L3B 1 Princess Tomato in the Salad Kingdom L3C 3 The three Princess Tomato tapes load independently and identify themselves as ADV1, ADV2 and ADV3 during loading. I haven't investigated how progression between the three adventure sections works. Gaming Alexandria was particularly helpful in locating preserved and converted cassette images as well as manuals and other media. Preservation article: https://www.gamingalexandria.com/wp/2019/08/4-hudson-nintendo-hitachi-s1-and-smc-777-games-preserved/ No-Intro Waveform Compatibility Unfortunately, I was unable to successfully load the No-Intro WAV recordings. The emulator recognizes the cassette and can even identify and load the initial BASIC loader, but subsequent loading fails with syntax or device I/O errors. The decoded L3B and L3C cassette images have been considerably more successful. I wouldn't necessarily conclude that the original waveform dumps are bad. This could be an emulator decoding, configuration or signal compatibility issue. For now, I'm retaining the original WAV recordings for preservation and using the decoded cassette images for playable LaunchBox entries. LaunchBox Configuration Setting Value Emulator Name EmuB-S1 Application Path Path to mbs1.exe Default Command-Line Parameters None Associated Platform Hitachi S1 Playable File Extensions L3B, L3C The emulator accepts cassette images passed directly through LaunchBox without additional command-line arguments. Once the emulator has initialized and reached the BASIC prompt, games can be loaded by entering LOAD, waiting for the Ready prompt, and then entering RUN. However, I encountered several issues when attempting to automate the process: The emulator takes several seconds to initialize. Cassettes sometimes begin at position 013 instead of 000 when launched through LaunchBox. Sending uppercase characters through AutoHotkey can cause unexpected keyboard behavior. Native fullscreen did not behave particularly well with my multi-monitor configuration. Windows DPI scaling affected the dimensions of an AutoHotkey-generated background. I was able to address these issues with the following AutoHotkey v1 running script. Running AutoHotkey Script Paste the following into the emulator's Running AutoHotkey Script section in LaunchBox. #NoEnv #SingleInstance Force SetTitleMatchMode, 2 SetKeyDelay, 150, 100 ; Wait for emulator WinWait, HITACHI MB-S1,, 20 if ErrorLevel ExitApp WinGet, Emulator, ID, HITACHI MB-S1 ; Allow BASIC to initialize Sleep, 12000 WinActivate, ahk_id %Emulator% WinWaitActive, ahk_id %Emulator%,, 5 if ErrorLevel ExitApp ; Rewind cassette SendEvent, !{F5} Sleep, 1000 ; Select optimal window size SendEvent, {Alt} Sleep, 300 SendEvent, {s} Sleep, 300 SendEvent, {w} Sleep, 300 SendEvent, {Down 6} Sleep, 300 SendEvent, {Enter} Sleep, 1000 ; Identify emulator monitor WinGetPos, X, Y, W, H, ahk_id %Emulator% SysGet, MonitorCount, MonitorCount Loop, %MonitorCount% { SysGet, Mon, Monitor, %A_Index% if (X + W/2 >= MonLeft && X + W/2 < MonRight && Y + H/2 >= MonTop && Y + H/2 < MonBottom) break } MaskW := MonRight - MonLeft MaskH := MonBottom - MonTop ; Create black background Gui, Mask: -Caption +ToolWindow -DPIScale +HwndMaskID Gui, Mask: Color, 000000 Gui, Mask: Show, NA x%MonLeft% y%MonTop% w%MaskW% h%MaskH% ; Position mask behind emulator DllCall("SetWindowPos", "Ptr", MaskID, "Ptr", Emulator , "Int", 0, "Int", 0, "Int", 0, "Int", 0 , "UInt", 0x0013) WinActivate, ahk_id %Emulator% Sleep, 500 ; Release keyboard modifiers SendEvent, {Shift up}{Ctrl up}{Alt up} ; Load cassette SendEvent, {l}{o}{a}{d} Sleep, 500 SendEvent, {Enter} ; Wait for cassette loading Sleep, 3000 ; Run game SendEvent, {r}{u}{n} Sleep, 500 SendEvent, {Enter} ; Monitor emulator closure SetTimer, CheckEmulator, 500 Return CheckEmulator: if !WinExist("ahk_id " . Emulator) ExitApp Return #IfWinActive, HITACHI MB-S1 $Esc:: WinClose, ahk_id %Emulator% Return #IfWinActive What the Script Does Waits for the emulator and BASIC environment to initialize. Automatically rewinds the cassette using Alt+F5. Selects a larger emulator window through the native Screen menu. Detects which monitor the emulator is running on. Creates a borderless black background covering that monitor. Positions the background behind the emulator, masking the desktop and other applications. Accounts for Windows DPI scaling. Automatically enters LOAD and RUN. Allows Escape to close the emulator. Automatically removes the black background when the emulator closes. The end result is a simulated fullscreen presentation without relying on the emulator's native fullscreen implementation. Display Configuration and Script Adjustments My desktop is running at 3840 × 2160 (4K) with 150% Windows display scaling. The window size selected by the script was specifically chosen for this configuration. Depending on your resolution and scaling settings, you may want to select a different window size. The following line controls how far the script navigates down the emulator's window-size menu: SendEvent, {Down 6} Adjust the number of Down key presses to suit your display. The black background automatically uses the dimensions of the monitor containing the emulator window, rather than relying on hardcoded screen dimensions. The script also uses a 12-second initialization delay and a three-second cassette loading delay. These can be adjusted if necessary for your system or cassette images. Remaining Questions Has anyone successfully loaded the original No-Intro waveform recordings? Are there additional known Hitachi MB-S1 game dumps? Has anyone successfully converted the No-Intro WAV files using WavTool? Can anyone confirm how the three Princess Tomato adventure tapes relate to one another? Hopefully this helps someone else attempting to add this rather obscure platform to their collection. Happy preserving! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.