Skip to content

Commit

Permalink
Flesh out pgusinit README
Browse files Browse the repository at this point in the history
  • Loading branch information
polpo committed Jan 21, 2023
1 parent 5bf998d commit b271b91
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 27 deletions.
84 changes: 57 additions & 27 deletions pgusinit/README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,57 @@
# PicoGUSinit

PicoGUSinit (PGUSINIT.EXE) detects and initializes a PicoGUS card in GUS
emulation mode. It should be used instead of ULTRINIT.

## Using

PicoGUSinit requires the ULTRASND variable to be set, in the format:

`set ULTRINIT=240,1,1,5,5` where 240 is the PicoGUS's port, 1 is the DMA, and 5
is the IRQ.

Simply run `PGUSINIT.EXE`.

### Options

`/?` - shows help for PicoGUSinit.

`/a x` - sets the audio buffer size in samples. Defaults to 16 with a minimum of
8 and maximum of 256. Some programs require a different value to run properly.
See the Compatibility List wiki for notes on productions that require this to be
set: https://github.com/polpo/picogus/wiki/Compatibility-list

## Compiling

PicoGUSinit can be compiled with OpenWatcom 1.9 or 2.0. In DOS with OpenWatcom
installed, run `make` to compile.
# PicoGUSinit

PicoGUSinit (PGUSINIT.EXE) detects and initializes a PicoGUS card. In GUS
emulation mode, it should be used instead of ULTRINIT.

For more info on PicoGUS, see https://github.com/polpo/picogus.

The board must be loaded with firmware before using it for the first time. See
https://github.com/polpo/picogus/wiki/Building-your-PicoGUS#programming-the-pico
for programming instructions.

## Using

Simply run `PGUSINIT.EXE` to detect and initialize your card with default
settings. Options may be given for other settings:

### Global options

* `/?` - shows help for PicoGUSinit.
* `/f firmware.uf2` - uploads firmware in the file named firmware.uf2 to the
PicoGUS.

Firmware files that come with the releases:

* `pg-gus.uf2` - GUS emulation
* `pg-adlib.uf2` - AdLib emulation
* `pg-mpu.uf2` - MPU-401 with intelligent mode emulation

### GUS emulation mode

GUS emulation mode requires the ULTRASND variable to be set, in the format:

`set ULTRASND=240,1,1,5,5` where 240 is the PicoGUS's port, 1 is the DMA, and 5
is the IRQ. The port on the PicoGUS will be programmed to use the port
specified in ULTRASND.

* `/a n` - sets the audio buffer size to n samples. Defaults to 16 with a
minimum of 8 and maximum of 256. Some programs require a different value to
run properly.
* `/d n` - sets the DMA interval to n microseconds. Games that use streaming
audio over DMA work better with higher values. Doom, for example, runs well
with a value of 10-12. Note that increasing this will slow down sample
loading. Set to 0 to use the GUS's default DMA interval handling, where the
DMA interval is set by the program using it.

See the Compatibility List wiki for notes on programs that require these
options to be set: https://github.com/polpo/picogus/wiki/Compatibility-list

### AdLib and MPU-401 emulation modes

* `/p x` - sets the base port of the emulated card to x. Defaults to 388 for
AdLib and 330 for MPU-401.

## Compiling

PicoGUSinit can be compiled with OpenWatcom 1.9 or 2.0. In DOS with OpenWatcom
installed, run `wmake` to compile.
1 change: 1 addition & 0 deletions sw/release/create_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export INCLUDE="$WATCOM"/h
make -f Makefile-cross clean
make -f Makefile-cross
cp pgusinit.exe "$STAGING_DIR"
cp README.md "$STAGING_DIR"
cd -

# Build picogus releases
Expand Down

0 comments on commit b271b91

Please sign in to comment.