Repository navigation
z486, nand2mario's 486DX2-class PC from z486_MiSTer, on the MEGA65 R6.
v0.3 adds a Gravis Ultrasound with 512 KB of sample memory beside the Sound Blaster 16, and a faster cache: 16 KB + 16 KB of L1 instead of 8 KB + 8 KB with an L2.
What's new
Gravis Ultrasound
- A classic Gravis Ultrasound with 512 KB, at 240h, DMA 3, IRQ 11. Its GF1 chip is nukeykt's model from LPC-GUS, built from John McMaster's die shot of the real chip.
- Add
SET ULTRASND=240,3,3,11,11toAUTOEXEC.BAT. The card starts as if ULTRINIT had run with these settings, so ULTRINIT isn't needed (if you run it, give it the same settings). - Gravis' INSTALL 4.11 finds it as a classic card, and Gravis Setup's Custom Setup passes its IRQ, memory and DMA tests (240h, IRQ 11 for both lines, DMA 3 both ways). Its last "NMI test" fails: choose Ignore. The NMI is only for Gravis' Sound Blaster emulation (SBOS, MEGA-EM), and the core has a real SB16.
- DMA works both ways, into the card and back to the PC. Recording records silence, since the core has no audio input. There is no MIDI port.
- Windows 3.11 and Windows 95 work with Gravis' drivers. In Windows 95, set the Gravis driver's resources by hand to 240h, IRQ 11 and DMA 3.
Sound menu (HELP, then "Sound")
- Choose the cards in the PC: "SB16", "GUS" or "SB16 + GUS" (the default). With "GUS" alone nothing answers at 220h, so software that prefers a Sound Blaster uses the Ultrasound. Reset the PC after a change.
- "GUS volume": "Full", "-6 dB" (the default) or "-12 dB". A real card has its own line out; here both cards share one, and the Ultrasound at full scale is much louder than the Sound Blaster. If the GUS sounds harsh or too loud, lower it here. The change is heard at once.
Faster cache
- The CPU now has 16 KB + 16 KB of L1 cache (instructions and data) and no L2. The L2's block RAM holds the Ultrasound's samples, and the larger L1 is faster than the old 8 KB + 8 KB with a 256 KB L2. Dr. Hardware: 28,426 Hardstones (from 27,832), memory throughput up to +29 %. Quake: 8.0 fps (from 7.9).
Joystick
- New in the Joystick menu: "Timing". "Timed" (the default) answers as a real stick does, by time. "Count" answers by the number of reads, for games that count them in a loop and, on this fast PC, run out before the stick answers. Jazz Jackrabbit needs "Count", and TIE Fighter finds the stick with it.
- Port 2 is debounced (5 ms), so a quick tap no longer counts as two.
Settings
- The menu changed, so the menu settings start from their defaults once. The settings file's other entries, such as the hard disk image you mounted last, are kept.
Tested
On an R6 with this release's test cores:
- Through the Gravis Ultrasound: Second Reality (it needs 512 KB), DOOM, Wing Commander III (music and effects), Gabriel Knight (music, speech and effects), TIE Fighter, XTC-Play and Open Cubic Player in DOS, MOD4WIN in Windows 95, Gravis' PLAYMIDI
- Windows 3.11 with Gravis' Windows driver: plays its sounds and exits
- Windows 95: Add New Hardware finds the SB16, the Gravis Ultrasound Classic, the MPU-401 and the game port without a conflict
- Dr. Hardware and Quake's
timedemo demo1 - Jazz Jackrabbit with the joystick ("Count"): calibrated, playing, and its menus one entry a tap
- TIE Fighter finds the joystick with "Count"
- this
.corflashed with MEGAFLASH and started from flash (TIE Fighter ran from it)
Everything else listed for v0.2.2 and v0.2.2.5 holds: the rest of the PC is unchanged.
Tips:
- The
BLASTERline: Gravis' installation can leave one pointing at the Ultrasound, such asA240 I11 D1 T1, for its Sound Blaster emulation. Games then look for a Sound Blaster on the Ultrasound's port and don't find their sound card, or crash. Set it back to the SB16's:SET BLASTER=A220 I5 D1 H5 T6. - Wing Commander III: for GUS music, start its install and the game with
WC3GRAV.BATfrom the first CD (WC3GRAV -Ifor the install). It loads the game's instruments into the card first. - Gabriel Knight (and Gravis' other drivers for Sierra's 32-bit games): copy Gravis' Sierra patch into the game folder, set
soundDrv = GUSMIDI.DRVandaudioDrv = GUSDAC.DRVinRESOURCE.CFG(for a CD installation with the full path, such asC:\SIERRA\GKCD\GUSMIDI.DRV), and runLOADPATS -IGK1.INIin the game folder before every start. The instruments are gone after a reset. - Jazz Jackrabbit: set the Joystick menu's Timing to "Count" before starting the game, then calibrate in Jazz's options. A calibration made with "Timed" leaves Jazz reading the centred stick as pushed, and its menus then ignore the keys: set the Joystick menu to "Off", answer Jazz's questions with the keys, set it back, and calibrate again with "Count".
- Quake through the GUS crackles (see Known limits). Clear
ULTRASND(SET ULTRASND=) before starting it and it uses the Sound Blaster.
Getting started
- Copy
z486-R6-v0.3.corto the SD card and flash it with MEGAFLASH. It shows as "z486", versionv0.3, and can be the default core. The.bitis the same core, for loading over JTAG. - Put the BIOS files on the SD card, as for v0.2.2. They're not included here: they come with z486_MiSTer in
verilator/. - Add
SET ULTRASND=240,3,3,11,11toAUTOEXEC.BATfor the Gravis Ultrasound. Games set the card up themselves from that line. Gravis' own software (INSTALL, the patches inULTRADIR, the Windows drivers) comes on the Gravis install disks, not with the core.
Known limits
As for v0.2.2.5, and:
- The Gravis Ultrasound has 512 KB of sample memory (a classic card takes up to 1 MB). Module players fit a song's samples into it: on the biggest songs they store some samples at lower quality (XTC-Play and Open Cubic Player mark those with ½), so those songs can sound duller than on a card with 1 MB.
- Only DMA 3 is wired, and the card has no NMI, so Gravis' Sound Blaster emulation (SBOS, MEGA-EM) doesn't work. The core's own SB16 does that job.
- Quake's sound through the Gravis Ultrasound crackles: Quake's buffer holds 53 ms, and at 8 fps it only just refills it in time.
- In Gabriel Knight a few speech lines end with a click.
- The MPU-401 at 330h has no MIDI port to send to on the MEGA65: Windows 95 finds it as "MPU-401 Compatible", and music sent there is silent. Choose the Gravis or the Sound Blaster's FM synth for MIDI instead (in Windows 95: Control Panel, Multimedia, MIDI).