danielb0andClaude Opus 5.5 47c7ecf138 Native video: the real Plus raster at 512x342, 22.25 kHz / 60.15 Hz (#26)
clk_sys moves from 32.5 to 31.3344 MHz, twice the Plus dot clock, as the
SE/30 core. The video timer produces the Plus's own 704 x 370 raster with
512 x 342 visible instead of a line-doubled 1024x768-class frame, and the
sound scan reads one word per line. The CPU clock is now 7.8336 MHz
directly, so cpu_wait's clock trim is gone. RTC, SCC baud, CD audio and
SCSI timeouts follow the new clock.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 02:03:59 +08:00
2026-06-03 21:26:53 +08:00
2018-03-06 01:40:43 +08:00
2018-03-06 01:40:43 +08:00
2019-07-12 06:22:16 +08:00
2026-06-03 21:26:53 +08:00
2020-01-22 01:13:47 +08:00

Macintosh Plus for the MiSTer Board

This is a port of the Plus Too core from MiST which is the port of the Plus Too project.

I've tried to optimize the code by converting to synchronous style and fixing some glitches and instabilities.

Usage

  • Copy the *.rbf onto the root of SD card
  • Copy boot0.rom & boot1.rom (Plus and SE ROM files) to MacPlus folder
  • To use the 128K or 512K models, also copy boot2.rom (64K ROM file) to MacPlus folder
  • Copy disk images in dsk format (e.g. Disk605.dsk) to MacPlus folder

After a few seconds, the floppy disk icon should appear. Open the on-screen display using the F12 key and select the a disk image. The disk image mounts as a block device and is available to the Mac almost immediately. If a bootable system is found on disk, a smiling Mac icon will appear. MacPlus will then begin booting into the desktop.

Models

The "Model" entry in the on-screen display selects Plus, SE, 512K, 128K or 512Ke. The selection takes effect on "Reset & Apply CPU+Memory".

Model ROM file ROM RAM Floppy drive SCSI
Plus boot0.rom 128K 1MB or 4MB 800K double-sided yes
SE boot1.rom 256K 1MB or 4MB 800K double-sided yes
512Ke boot0.rom 128K 512K 800K double-sided no
512K boot2.rom 64K 512K 400K single-sided no
128K boot2.rom 64K 128K 400K single-sided no

The "Memory" option applies to the Plus and SE only; the SCSI, CD-ROM and CD Volume entries are greyed out on models without a SCSI bus. The 128K and 512K have a single-sided drive and a ROM that predates HFS, so their disks must be 400K MFS images.

Floppy disk support

Internal and external floppy disk drives are both supported. The first and second entries in the OSD correspond to the internal and external floppy disk drives, respectively.

Floppy disk images need to be in raw disk format (a.k.a. DiskDup format) with a .dsk extension. Single-sided 400k disk images must be exactly 409,600 bytes in size. Double-sided 800k disk images must be exactly 819,200 bytes in size. Disk Copy 4.2 files are not currently supported. They are largely the same as raw disk format, but include an additional 84-byte header. A tool to convert DC42 format to dsk is available here.

Floppy disk images are writable when "Floppy Write" is set to On (the default is Off). An image marked read-only on the SD card stays write-protected. Disks can be erased and reformatted from the Mac (Special > Erase Disk), One-Sided or Two-Sided; an 800k image erased One-Sided becomes a 400k volume.

Floppy disk images cannot be loaded while the Mac accesses a floppy disk. Thus, it's recommended to wait for the desktop to appear until a second floppy can be inserted. Before loading a different disk image, it's recommended to eject the previously inserted disk image from within the OS.

Official system disk images are available from an archived Apple support page here. Under Linux these can be converted into the desired dsk format using Linux StuffIt, unar, and dc2dsk, in that order. A shell script has been provided for convenience at releases/bin2dsk.sh.

Hard disk support

The MacPlus core supports SCSI hard drive images up to 2GB (HFS) in size, with a .vhd or .img extension. The core currently implements only a subset of the SCSI commands. This is sufficient to read and write the disk, to boot from it, and to format it using the setup tools that come with System 6.0.8.

Two SCSI hard disks are supported, at SCSI IDs 6 and 5. The images to be used are selected from the "Mount SCSI-6" and "Mount SCSI-5" entries in the on-screen display (.img or .vhd). Copy the boot.vhd to MacPlus folder and it will be automatically mounted at start. The format of the disk image is the same as the one used by the SCSI2SD project, documented here.

It has been tested that System 6.0.8 can format the SCSI disk, as well as doing a full installation from floppy disk to the harddisk. However, keep in mind the core is an early work in progress and expect data loss when working with HDD images.

A matching harddisk image file can be found here. This is a 20MB harddisk image with correct partitioning information and a basic SCSI driver installed. The data partition itself is empty and unformatted. After booting the Mac will thus ask whether the disk is to be initialized. Saying yes and giving the disk a name will result in a usable file system. You don't need to use the Setup tool to format this disk as it is already formatted, but you can format it if you want to. This has only been tested with System 6.0.8.

A tool to create harddisk images (with working SCSI driver and partition table) is available here.

Apple HD20 support

An Apple HD20, the hard disk that connects to the external floppy port, is selected from the "Mount HD20" entry and takes the same .img or .vhd images as the SCSI disks. A floppy drive can be daisy-chained behind it, so the internal floppy, the HD20 and the external floppy are all usable at once. Capacity is not limited to the original's 20MB.

A Plus or 512Ke boots from the HD20 directly. A 512K needs Apple's "Hard Disk 20" startup floppy, and a 128K cannot use the drive. With an HD20 mounted, a System without the HD20 driver cannot reach the external floppy, as on real hardware.

CD-ROM support

A SCSI CD-ROM drive at ID 3 is selected from the "Mount CD-ROM" entry. ISO, TOAST, CUE/BIN and CHD images are accepted. The Mac cannot boot from CD; System 6 and 7 need Apple's CD-ROM driver installed on a hard disk before a disc will mount. Setting "CD-ROM Drive" to Disabled removes the drive from the SCSI bus.

Audio tracks play through the core's audio output, mixed with the Mac's own sound, from CUE/BIN or CHD images. "CD Volume" sets the drive's own output level.

CD-ROM support needs a Main_MiSTer that knows about the MacPlus CD-ROM slot; the change is merged and reaches users with the next MiSTer binary release.

CPU

The CPU speed can be adjusted to 8 MHz (original speed) or 16 MHz. This port implements a workaround to allow booting from SCSI when using the 16 MHz configuration.

The CPU model can be set to 68000 (the cycle-accurate fx68k), 68010 or 68020 (TG68K, which is not cycle-accurate). Changing the model takes effect on "Reset & Apply CPU+Memory".

At 8 MHz with the 68000, the core runs at the speed of a real machine: the CPU clock is 7.8336 MHz and bus accesses take the wait states of a real Plus or SE, including video's share of RAM. 16 MHz and the 68010/68020 keep the previous, faster timing.

Video

The core outputs the Mac's own 512x342 picture at the real 22.25 kHz / 60.15 Hz, and the MiSTer scaler sizes it for the display. Scale set to V-Integer gives a sharp 3x picture on a 1080p display. A VGA monitor that cannot sync to 22 kHz needs vga_scaler=1 in the [MacPlus] section of MiSTer.ini.

Memory

1MB and 4MB memory configurations are available on the Plus and the SE; the other models had their RAM soldered down and always report their own size. Cold boot with 4MB RAM selected takes some time before it starts to boot from FDD/SCSI, so be patient. Warm boot won't take as long.

Keyboard

The Alt key is mapped to the Mac's Command (⌘) key, and the Windows key is mapped to the Mac's Option (⌥) key. Core emulates keyboard with numeric keypad.

Mouse

"Mouse Speed" sets how many host mouse counts make one Mac mouse count; higher is slower. The default of 8 suits a typical mouse of about 1400 cpi. It applies to the Plus mouse and the SE's ADB mouse alike.

S
Description
Macintosh Plus for MiSTer
Readme
15 MiB
0 Stars 1 Watchers 0 Forks
Languages
Verilog 41.4%
SystemVerilog 35.9%
VHDL 21%
Tcl 1.5%