Skip to content
Sharp X68000 Core for Analogue Pocket Reaches 1.0.3 Six Days After Launch

Image: Final Fight on the X68000, one of the ten games the core was developed against, screenshot via libretro-thumbnails

NewsBy Rob7 min read

Sharp X68000 Core for Analogue Pocket Reaches 1.0.3 Six Days After Launch

Frazilpop's Sharp X68000 core for the Analogue Pocket reached version 1.0.3 on 25 November, six days and three updates after its first public release. The core puts Sharp's 1987 Japanese home computer on the handheld using Puu-san's X68000 core, the same design the MiSTer core is ported from, and it plays floppy disk games with the disks swapped automatically. Version 1.0.3 stops Strider Hiryū crashing on boot and removes what the release notes call "a mysterious white line on the top left of the screen" in Heavy Nova.

Four releases in six days

Version 1.0.0 was published on GitHub on 19 November, and the openFPGA Library catalogue merged its automated "[New Core]: X68000" pull request within three minutes. The author's commit for that release says: "The ten sets the core was made with play on the card, and a folder of over two hundred more lists and loads." The tools documentation lists the ten by their MAME set names: gradius, salamand, bublbobl, akumajo, ffight, parodius, nemesis, sf2ce, ssf2 and chorensa. Other commits spell several of them out, among them Bubble Bobble, Final Fight, Street Fighter II' Champion Edition, Super Street Fighter II and Cho Ren Sha 68k.

The three updates since have each fixed named games:

  • 1.0.1, 21 November. Chase H.Q. and Heavy Nova had music but a black screen. Both set a screen mode of 62 and 65 Hz, faster than the Pocket's display accepts, so the core now holds them to 61.46 Hz, which the notes call "the fastest refresh rate possible". The commit behind the fix puts the Pocket screen's range at 47 to about 61 Hz and says Chase H.Q. runs 1.2 % slower as a result, with every slower mode unchanged.
  • 1.0.2, 24 November. Cotton now plays correctly. A user had reported it the day after launch. Frazilpop explained on the issue that Cotton's disks are in reverse of the usual order, with disk 2 the boot disk and disk 1 the data disk, and a startup fault was putting the boot disk in both drives.
  • 1.0.3, 25 November. The Strider Hiryū and Heavy Nova fixes. The commit traces the Strider crash to the text screen's raster copy being restarted while a block was still being copied, which left the 68000 waiting for a copy that never reported itself finished.
Cotton was the first game fixed after a user report: version 1.0.2 corrected a fault that loaded its boot disk into both drives, which the release commit says left the game with no scenery and no enemies. Screenshot of the X68000 version via libretro-thumbnails, not taken from the Pocket.
Cotton was the first game fixed after a user report: version 1.0.2 corrected a fault that loaded its boot disk into both drives, which the release commit says left the game with no scenery and no enemies. Screenshot of the X68000 version via libretro-thumbnails, not taken from the Pocket.

What it runs, and what it needs

The core loads floppy images in .dim, .xdf and .hdm formats, up to seven per game, and its file definitions cap each image at 2 MB. The README is plain about the rest: "Hard disk images and D88 images are not supported and won't load". No game data or boot ROM is included. The player supplies a 1 MB boot.rom in Assets/x68000/common/, and the README says the MiSTer X68000 core's boot.rom works unchanged, or one can be assembled from the cgrom.dat and iplrom.dat files in MAME's x68000.zip.

Each game gets its own folder of disk images plus a small JSON file that tells the Pocket how to handle a multi-file game. The README recommends generating those with Pupdate or Pocket Sync, and the core also ships a Python script, make_instances.py, for anyone without either.

Disk swapping is the feature the README leads with: "The core will auto change disks for you!" When a game ejects a disk and asks for another, the core inserts the next one in name order once the drive stops, or after five seconds if it keeps spinning, and wraps round to the first after the last. Drive 0 and Drive 1 can still be set by hand in Core Settings. The X68000's 16 KB of settings memory is saved per game, and a game that writes to its own disk, such as Cho Ren Sha 68k's high scores, writes to the image on the SD card.

A keyboard computer on eight buttons

The original machine was a desktop computer with a keyboard and mouse, and the core's handling of that is where the compromises sit. The D-pad, A and B act as the X68000's two-button joypad. Start doubles as F1 on the keyboard, L sends ESC, R is a rapid-fire version of A, and X and Y send SPACE and RETURN by default, switchable to 1 and 2 or Y and N for games that ask a numbered or yes/no question. The README's verdict on keyboard-driven games is that "mileage will vary per game", and it states: "Mouse input is not currently supported."

Pad type defaults to Auto, which picks between the standard two-button pad and a Mega Drive style three-button pad. The two six-button options, Capcom 6 and Magical 6, have to be chosen by hand and then selected again in the game's own configuration menu. Drive, pad type and key settings revert to their defaults every time the core starts.

Video follows whatever mode the game sets. The README gives 55.46 Hz for most games, 54.67 Hz for high-resolution titles such as Cho Ren Sha 68k, and 61.46 Hz for the 15 kHz arcade mode used by Final Fight and Street Fighter II. Arcade games at 384×224 are cropped to their own picture and shown at 4:3, and other modes are displayed at full resolution up to 768×512. The core's manifest marks the Dock as supported and sleep as unsupported.

Where it comes from

The README credits Puu-san for the X68000 core, Sorgelig for the MiSTer port and eight further contributors for fixes, along with Jorge Cwik's fx68k processor, Raki's IKAOPM for the YM2151 sound chip, agg23's Pocket utilities and the MAME team, "whose X68000 driver was the reference". Frazilpop's own part is described as a Pocket shell that reads each disk sector from the SD card as the game asks for it and writes it back. The README says the result was checked against MAME in simulation, with the boot sequence matching access for access and Bubble Bobble's sound writes byte for byte.

The timing follows a licence change upstream. The MiSTer core has been in the MiSTer-devel organisation since November 2017 but carried no licence until this autumn. On 26 October the GitHub user johansmolinski, who wanted to port it to the MEGA65, asked for one, and later reported that Puu-san had replied on 29 October that, in the translation posted on the issue, "Redistributing it under the terms of GPLv3 is no problem." Sorgelig added the GPL-3.0 licence on 2 November. Frazilpop's repository was created on 4 November and imports the MiSTer code as it stood on 2 November, under the same GPL-3.0.

The Pocket port leaves several MiSTer features behind. The licence notes list the D88 disk path, SASI and SxSI hard disk interfaces and MIDI as parts that "stayed upstream", where the MiSTer README lists D88 floppies, SASI hard disk images, a 20 MHz turbo CPU option and MT32-pi support. The Pocket README describes only the 68000 at 10 MHz. Space is the constraint: an early build commit records 15,501 of the Pocket chip's 18,480 ALMs in use, and a later one 15,598, or 84 %.

The machine itself was sold only in Japan. According to Wikipedia, the first model of 1987 had a 10 MHz 68000 and 1 MB of RAM, graphics hardware similar to late-1980s arcade boards, eight channels of FM synthesis from a Yamaha YM2151 and one ADPCM channel from an Oki MSM6258. The core's README says the computer "is known for its accurate arcade ports", and that those games suit the Pocket best because they use standard controller inputs. Cart & Pixel covered another of the company's computers arriving on FPGA hardware in the Sharp MZ-2500 core for MiSTer.

Frazilpop's GitHub account also hosts Pocket projects for the PC Engine CD, Sega Genesis, Cave's 68000 arcade board and Toaplan V2, all created since October.

What is still unknown

Hard disk support is undecided. Asked on 20 November whether .hdf images might be supported, Frazilpop replied four days later: "It's a question of how much space there is on the chip and if it can fit alongside other planned fixes and features." Mouse support is described only as not currently available, with no date. An open report from 26 November says Phalanx cannot be started after its introduction, and it has no reply yet. There is no published compatibility list beyond the ten development games and the titles named in release notes, so how much of the floppy library plays cleanly is not stated. A 24 November commit adds a tool that measures what a save state would need to hold, but no save state feature has been announced.

Setting up a Pocket for cores like this one? The Analogue Pocket openFPGA cores guide covers the SD card, updaters and installing cores.

Sources

Share:

More News