Commit Graph
89 Commits
Author SHA1 Message Date
wbcbz7 4bf5631472 SB: finalize IRQ/DMA/options settings 2026-03-22 00:56:38 +07:00
Ian Scott d3ac864d9c Firmware version 3.2.1 2025-09-26 07:27:32 -06:00
Ian Scott 4466438c9b pgusinit: fix /wifistatus 2025-08-25 23:38:37 -06:00
Ian Scott e1f5b6b5dc pgusinit: actually get SB/GUS port option 2025-08-25 23:25:42 -06:00
Ian Scott 60742596ab pgusinit: restore /defaults command 2025-08-25 23:25:42 -06:00
Ian Scott a63103f70a pgusinit: fix bug where port is parsed as decimal 2025-08-25 23:08:30 -06:00
Ian Scott 2b2b995e22 v3.2.0 release 2025-08-09 15:46:00 -06:00
Ian Scott 4fc7cdedf2 Fix progress bar and extraneous newlines 2025-08-09 10:28:03 -06:00
Ian Scott bf6c52c607 More pgusinit refactor 2025-08-09 08:34:09 -06:00
Ian Scott c54450481f Refactor parseCommand and various commands
This means not having to pass the index into argv[] around, etc.
2025-08-08 22:08:41 -06:00
Ian Scott b2fc8ea00d Rename MODE_ to CMD_ to be less confusing 2025-08-07 19:50:47 -06:00
Ian Scott fb8638eca1 pgusinit quality of life improvements:
Restoration of prior pgusinit functionality:

- Case insensitive command line switches
- Bail out if there are errors detecting the card
- Bail out on firmware mismatch, but allow flashing new firmware

More QoL improvements:

- Generic paging interface that detects rows on screen
- /? and /?? are paged
- /cdlist uses new paging interface
2025-08-07 17:28:35 -06:00
Daniel Arnold 1c939997e9 Fix printUSBMode() typo 2025-07-08 06:57:32 -06:00
Daniel Arnold 93dc398b22 Consolidate all volume printf to printVolume() 2025-07-07 08:07:34 -06:00
Daniel Arnold a9892121f0 /cdlist paging 2025-07-06 19:48:30 -06:00
Daniel Arnold 77f9a05681 Add /save into command parser 2025-07-06 08:31:24 -06:00
Daniel Arnold 123247d958 Remove no commands check 2025-07-06 07:20:26 -06:00
Daniel Arnold 5f2976550e Finish main() cleanup 2025-07-05 14:52:31 -06:00
Daniel Arnold c9868f0d25 Remove unused variables 2025-07-04 11:55:59 -06:00
Daniel Arnold 95419bbfbc Use gMode for main card mode
This name might be temporary, but separating the main card mode from register modes to help remove overlap.
2025-07-04 11:53:25 -06:00
Daniel Arnold 286b7f1481 Print status functions
More clean up to main(). I am finding there is some overlap with the term "mode" which indicates the global card mode (ex. SB_MODE, GUS_MODE, etc) as well as register modes communicating with PicoGUS. The next commit I will probably spend some time distinguishing these two types for clarity.
2025-07-04 11:20:13 -06:00
Daniel Arnold 80c90a532e Add exit codes to CD load functions, fix /cdloadname, clean out void returns 2025-07-04 08:11:17 -06:00
Daniel Arnold 077fd8504c ctrlGet commands, cleanup printf feedback 2025-07-03 19:53:03 -06:00
Daniel Arnold e2fa0f75b7 Iterative command parser
Refactored the inline argument commands into functions that iterate through a command table. This should help make input commands more robust and easier to expand.

It also allows for default values when setting options. For example if the user wants a default value for the OPL port, they can use "/oplport default".

Since /sbport and /gusport always check the environment for SET BLASTER and SET ULTRASND, I added the function for pgusinit to retrieve these values from the environment directly. This could open up environment parsing for other variables in the autoexec.bat.

The commands should behave exactly as I did when they were inline to start, but can now easily be expanding.
2025-07-03 19:53:03 -06:00
Daniel Arnold 66b61eb0b2 Progress bar when flashing 2025-07-03 19:53:03 -06:00
Daniel Arnold 4dd60f8c4e Volume control tighten up 2025-07-01 10:57:53 -06:00
Daniel Arnold c84773c562 Volume control 2025-06-30 07:56:53 -06:00
Ian Scott a2904c9929 Add /loadname to pgusinit usage, update pgusinit README 2025-06-22 11:40:16 -06:00
Ian Scott 02ba99b6aa Many fixes/improvements to CD image handling:
- Fix memory leak when changing images (file handle not freed)
- Longer max file length limit (127 chars)
- Better errors when USB not present
- Fix polling of CD status register when listing images
- Add ability to load image by name
- Many weird edge cases with image loading state fixed
2025-06-21 23:46:50 -06:00
Ian Scott 8a987afcf4 Bump pgusinit and protocol version 2025-06-19 08:11:07 -06:00
Ian Scott 191ab382a2 Fix selecting wrong mode in pgusinit 2025-06-19 08:01:15 -06:00
Ian Scott 180e1db710 Consolidate Tandy and CMS into PSG mode 2025-06-18 18:30:01 -06:00
Ian Scott 23f80828b9 Better handling of CD image load errors 2025-06-17 23:55:49 -06:00
Ian Scott c968918bc3 Optionally auto-advance image on USB reinsert 2025-06-14 18:25:31 -06:00
Ian Scott e611f2672f Let pgusinit get name of loaded CD image 2025-06-12 23:10:52 -06:00
Ian Scott d0df0cdd42 CDROM checkpoint, hacky AdLib 2025-06-12 23:10:52 -06:00
Ian Scott a7484c5b04 CD image handling 2025-06-12 23:10:52 -06:00
Ian Scott 897dd3ca61 Exit pgusinit when card not detected instead of carrying on 2025-03-16 15:53:08 -06:00
Ian Scott ad96998713 Cleanup 2024-12-08 20:13:33 -07:00
Ian Scott ca91483f53 Remove debug printf 2024-12-01 16:10:34 -07:00
Ian Scott 3bb3937738 License housekeeping 2024-11-28 13:41:36 -07:00
Ian Scott 2b8e5f6947 Add NE2k help and recognize NE2000_MODE in pgusinit 2024-08-22 23:20:48 -06:00
Ian Scott 319a8a64f8 More prod-like handling of ne2000/wifi :) 2024-08-17 15:12:07 -06:00
Ian Scott 489370b026 Fix disabling ports 2024-07-30 00:05:05 -06:00
Ian Scott e1110dec76 Remove extra spaces in pgusinit help 2024-07-29 23:35:05 -06:00
Ian Scott 06d028a0b7 Updates to pgusinit for simultaneous MPU 2024-07-29 21:56:04 -06:00
Ian Scott 31b223aca9 Simultaneous MPU + SB/GUS 2024-07-24 18:32:56 -06:00
Ian Scott 6a7c1eb50a Fix bool option setting and add xinput driver install callback 2024-07-07 17:51:42 -06:00
Ian Scott afd68487c1 pgusinit: Update com port and SB blaster parsing 2024-07-07 16:33:47 -06:00
Ian Scott ab2b0e2be2 Mouse working in CMS/Tandy/AdLib modes 2024-07-07 13:00:17 -06:00