48 Commits
Author SHA1 Message Date
shodge12 ede23da6b0 Timing fixes, Video mode fixes, Sound cleanup, and enabling RS-232 to physical SNAC pins.
1.	Overlay support for the detection of no rom loading on power up AND misc
    debugging. [done]
2.	Fix video HSCREEN 4 mode which is used in some demos and rs-232 terminal
	programs. [done]
3.	Reworked sound output to faithfully emulate the analog muxing in the coco.
	[done]
4.	Routing RS-232 tx/rx lines to the SNAC port for initial serial debugging
	of Fuji-Net interface. [done - untested]
2026-10-02 00:49:54 -04:00
shodge12 77ee8b8c8c First Stage Timing Updates
Changed generation of PIX_CLK.  It is no longer CLK_14, instead it is created in coco3video_mister and pushed outward. (as it should be).  Video1.stp is for watching the video signals.
The ability of using a old GIMEX video file has been removed as a feature.
2026-01-13 23:54:33 -05:00
shodge12 1da70a7929 Core changes and CSAVE support.
1.	Added support for cassette save.  To use: A) You have to have a file [anyname.cas]
	which is larger than needed.  B) Select the file through the UI Menu 'Save
	Cassette'.  C)Set 'Cass Rwd=0 / Rec=1' to 1. D) Issue your 'CSAVE "NAME"'
	E) When done, set 'Cass Rwd=0 / Rec=1' to 0 to complete the write.  The file can
	now be loaded or copied.  Note a dummy file of a specific size can be created in
	the MiSTer SSH shell in the /media/fat/games/coco3 with the command:
	'truncate -s 65536 tapefileame.cas'. [Note do NOT use over 65536 file length]
2.	Fixed serial interrupt [6551] to not be functional on slot 3 [carts].
3.	Modification of sys_top.v to override use of USER_IO for HDMI - so it can be used
	for logic analyzer debug.  This will only occur when `define	Config_Debug is
	enabled in config.v.
4.	Fixed MUGS of powerup issue occurring on some MiSTer units.
5.	Fixed incorrect application of GIME_IRQ on legacy interrupts.  Fixed race condition
	on reading IRQ status vs clearing the interrupt.
6.	Improved Castle of Tharoggad.  App now loads but locks as the graphics animate.  This
	change improved mmu usage through to CARTS.
7.	Builds now keep track of multiple builds in the same date.  It shows as V240512-001 in
	the menus.  Its also exposed to BASIC and a boot.vhd which can be enabled to autorun is
	supplied in the archive to show how it works.
8.	Additionally, on the boot.vhd disk, is a program which demonstrated how to load a font -
	IBMFONT.BAS. Run it and it maps a font much like the IBM font to the 80 column format.
	Also, a file called TESTRTC.BAS pulls the MiSTer RTC values exposed in BASIC to display
	a clock.
9.	Large improvement in the Timer function.  Code closer emulates COCO3 Timer. Fixes
	Sliphead cart.
10.	In the 20231023 release the wd1773 instances were reduced to 1 for the FDC and one for
	the FDC.  This saved space but introduced a bug when using multiple drives at the same
	time - like a copy command.  This change was removed and the copy command works again.

To Do...
1.	Add Speech / Music cart
2.	Fix Castle of Tharoggad
2024-05-14 23:00:16 -04:00
shodge12 a3373d34b9 First working csave version...
Note output files do not expand.  Therefore you need a large output file before you select it, turn on record and save.
2024-03-24 17:19:52 -04:00
shodge12 06e91ee2ae Initial Baseline for feature Cassette Write
Fix 1 bit time...
2024-03-23 00:25:55 -04:00
shodge12 f940be1a2b Release 20240318
1. Changed PIA 2 addressing to align with real CoCo3 hardware and end at FF2F.
2. Re-arranged MiSTer drive LUNs to support future auto-boot from SDC drive 0.
3. Added 'Auto Run' feature. You must use slot 2 [SDC]. Take your floopy or HD
   and copy it to a file name of 'boot.vhd'. This will be auto mounted to drive 0
   on the SDC. In the menu, find a new item Auto Run:. It can be set to No, DOS or
   AUTO.BAS. Choosing dos causes the 'DOS' command to be executed on power up. Setting
   the option to 'AUTO.BAS' will cause a 'RUN"AUTO' command to be executed upon powerup.
   Save your settings to cause the changes to be remembered. The Auto Run system re-arms
   upon using the 'Cold Boot' menu item.
4.	Fixed MiSTer / CoCo3 interface preventing the joysticks ever reaching the
	max value of 63. Specifically '>' was changed to '>=' the DTOA values.
	This fixes DonPan and is verified in Diagnostics 2.0.
5.	HiRES[3] is used to enable some of the higher resolution graphics modes
	Gary Becker designed into CoCo3FPGA, and while these are not fully
	supported, the control signals such as HiRES[3] at $FF98 bit 6 affectt
	the graphics engine.  For some reason Color File II manipultes this bit
	and was causing it not to work.  This change requires the SG6 extensions
	to be enabled to set HiRES[3].  So specifically in the Video Settings
	insure CoCo3 LC is set to Yes.  Color File II now works properly.
2024-03-18 18:22:32 -04:00
shodge12 f93784660c Fix PIA2 adrs, added Auto Run
1.	Changed PIA 2 addressing to align with real CoCo3 hardware and end at FF2F.
2.	Removal of 16 bit sound extentions as they overlap speach / sound cart.  This is
	accompanied by a rework of the sound mixing to be more correct.
3.	Re-arranged MiSTer drive LUNs to support future auto-boot from SDC drive 0
4.	Added 'Auto Run' feature.  You must use slot 2 [SDC].  Take your floopy or HD
	and copy it to a file name of 'boot.vhd'.  This will be auto mounted to drive 0
	on the SDC.  In the menu, find a new item Auto Run:.  It can be set to No, DOS or
	AUTO.BAS.  Choosing dos causes the 'DOS' command to be executed on power up.  Setting
	the option to 'AUTO.BAS' will cause a 'RUN"AUTO' command to be executed upon powerup.
	Save your settings to cause the changes to be remembered.  The Auto Run system re-arms
	upon using the 'Cold Boot' menu item.

To Do...
1.	Add Speech / Music cart
2.	Fix Color File II
3.	Fic Castle of Tharoggad
2024-02-16 22:27:15 -05:00
shodge12 54420d958f Clean up...
Fixed minor change to MESS artifact function. Fixed full color bus not being driven.  Updated docs.  Updated changes.txt.  SDC size return constant changed to $404040.  Cleaned up Video Settings menu and defaults.
2024-02-05 00:42:34 -05:00
shodge12 44ffb00fb2 Added MESS artifacts along with selection
Added working MESS and artifact control.  Updated documentation and menu's although more menu work is needed.
2024-02-04 01:07:32 -05:00
shodge12 115fccc535 Artifact selection now working.
Artifacts=NONE - Works
Artifacts=Simple - Works
Artifacts=MESS - Not so much...
2024-01-29 23:53:14 -05:00
shodge12 fdb2eb533a Multiple Artifact test...
Added new switches 'art' to control artifacts.
2024-01-29 10:55:00 -05:00
shodge12 f20b0295cc First test version....
Bad results....
2024-01-28 14:26:04 -05:00
shodge12 24ba4cd5fd Fixed slash issue in verilog include files and incorrect config for release.
SDC.SV and config.v modified,
2024-01-19 10:52:35 -05:00
shodge12 57f064744e PIA Changes
1.	For cycle accurate 6809, changed PH2 to cpu_cycle_ena. (Improve timing of control register writes)
2.	Changed PIA(s) addressing to alow complete mirror through FF00-FF3F
2024-01-18 11:24:57 -05:00
shodge12 0f4a413eba Minor updates to coco3fpga.sv & README.md
Nothing significant.
2024-01-13 18:15:53 -05:00
shodge12 060ebb2dc3 Pull sync 2023-10-23 19:39:30 -04:00
shodge12 7e58577658 2023 - 5.1 init...
CTF = Compile Time Feature...

1.	Interrupt system restored to previous code - improved compadibility.
2.	Changed to cycle accurate 6809 (Greg Miller) at speeds up to 9.56Mhz. [CTF]
3.	Recoded sdc and fdc to only have one instance of the wd1773.
4.	Re-added software disable in sdc [Ext 'g'].
5.	Recoded Cartridge bank switching to only exist when MiSTer slot 3 is selected. [removed soft multipak select]
6.	Moved CoCo Hardware RS-232 from always existing to only existing in multipak slot 1.
7.	Changed ADRS (SDS sig) decoding to = FF40-FF5f per hardware.
8.	Fixed coding problem in os9 driver llcocosdc to work with MPI properly. [CTF]
9.	Set default disk size to constant $555555 to fix os9 redirect problem. [CTF]
10	Disabled GART [GIMEX hardware DMA] to prevent OS9 from detecting GIMEX. [CTF]
11	Corrected missing begin statement in master timing loop.
12.	Fixed Donkey King DAPD issue in Tom Mix program [DPAD now moved joysticks to limits under dpad
13. Fixed incorrect addressing of FE00-FEFF for CARTs which gets PITFALL and RAMPAGE working
To Do
0.	Update framework
2023-10-23 19:35:57 -04:00
Alan Steremberg 6708a8632f updated sys yc 2023-02-24 15:00:43 -08:00
shodge12 a08bbd7f12 Setting up for Multiple Config Builds.
First features setting up horz and vert ints to Mister_video correctly.
2022-04-24 09:55:52 -04:00
shodge12 86e61ca25c Addressing some int reset issues...
Now GIME.bas shows the correct number of lines....
2022-03-01 02:06:56 -05:00
shodge12 9a03739b2c Add new speeds and better GIME-X support.
Added GIME-X interface for Turbo operation including new 2.68 Mhz AND 9.54 Mhz.

Additionally - minor GIME-X code alignments in the addressing section added.
2022-02-26 17:07:09 -05:00
shodge12 7f9de829a7 Beta Release...1
Cocosdc is slot 2.
Working at 7.16Mhz [rd & wr]
EOU can access floppy in slot 4...
Menu updated.
Mouse sub for right joy including button.
2022-02-18 22:12:46 -05:00
shodge12 85b889b615 Moved cocosdc to slot 2...
Cocosdc with 2 .vhd and 2 floppies now in mpi slot 2.  Fdc stinn in slot 4 and now both run under os9.
2022-02-17 01:48:11 -05:00
shodge12 7535dc87fc Fixed drive selection bug.
Code now works coping data from one sdc drive with another...
2022-02-15 17:35:09 -05:00
shodge12 d7216d1361 Added HALT to sdc state mach to fix 7.16Mhz
Re-coded sdc state mach using typedef.  Added halt to state mach to allow for MiSTer's slow sector response and compensate for os9 timeouts.

This code works at 7.16Mhz.
2022-02-14 20:33:12 -05:00
shodge12 d93019ccbc CoCoSDC Update
20220211 Release.
CoCosdc register compatible to allow running of NitrOS9 EOU vhd modules.

Known issues: do not cause EOU (cocosdc) running at 7.16Mhz to write to the file system.  Limited testing shows it works at 3.58Mhz and lower.
2022-02-11 20:42:45 -05:00
shodge12 87e1f91177 Fixed RO dsk's after reset problem. Added working SDC.
Big change is the addition of a llcocosdc compatible sdc controller.  This can run the default .dsk superfloppy and is EOU compatible
2022-02-09 13:33:28 -05:00
shodge12 e6f5e1821d Updated Development Template
All files in the sys updated.
Fixed bug in the fdc which makes drives write protected after a reset.
Added early code for SDC LSN support.
2022-01-31 14:17:54 -05:00
shodge12 935350fd4c CoCo3_FPGA - 220124 Release
CoCo3_220124.rtf Updates:
1: Fully supports CoCo3_FPGA / GIME-X byte move transactions (GART) via addresses $FFE1-$FFE9 [see docs].
2: Fully supports CoCo3_FPGA / GIME-X font manipulation [see docs].
3: Cold Start implemented in new approach. The fixes the problem of going from Disk Basic to Extended Basic and not seeing a
difference.  The change has side effect of not being able to cold start out of OS9.  Work-around: <ctrl><alt><ins> followed by
<ctrl><alt><del>.
4: Memory size now supports 16MB.  New OSD control allows the memory selections of 512K, 1M, 2M, and 16M.
5: New OSD option to 'Force Turbo' mode.  If set the OSD turbo mode speed settings always control the coco's clock rate.
6: Tons of code cleanup including closer alignment to GIME-C and CoCo3_FPGA code. Better Cart compatibility.
7: MPI selection in the OSD has changed.  Orch90 has been removed [you can load it as a cartridge or disk].  The selections are
(Slot 3) ECB and (Slot 4) Disk.
8: RTC has been added via addresses [$FFC0 - $FFC7] - [see docs].
2022-01-24 21:28:23 -05:00
shodge12 f73e6fd93d Pre-release check-in
This is a check-in prior to release.  This version has the orch-90 rom.  The release will not.
2022-01-24 19:14:43 -05:00
shodge12 3d5b904290 Cleanup wave 2...
Removed non used de1 uart support.
2022-01-18 02:02:43 -05:00
shodge12 5acbda7396 Addressing reworked to match current CoCo3FPGA / GIME-X
More code cleanup and alignment to CoCo3FPGA and  GIME-X.
2022-01-17 21:52:42 -05:00
shodge12 159ee6a427 Fixed PIA addressing for the coco3...
Note from GIME-X:
V .30 & .31    Freed address ranges $FF10-$FF1F and $FF30-$FF3F (no longer point to PIAs).
2022-01-16 00:06:49 -05:00
shodge12 c8451c382f PS2_CLK changed to spec. Fixed keyboard <ctrl><alt><del/ins> lockup
General clean up of code.  PS2 clock now in spec.  Fixed error in keyboard reset introduced in previous build.
2022-01-14 01:58:40 -05:00
shodge12 9d1cec6855 Code Clean Up...
Updated readme.md to include ram module requirement.
2022-01-12 01:32:39 -05:00
shodge12 780527f759 Code clean up and yet another RTC fix...
Added back the core CoCo3FPGA.sdc file.  Fixes hour increment on RTC.
2022-01-11 02:24:04 -05:00
shodge12 ae77edd2f2 Small timing improvement and re-format of the RTC module. 2022-01-10 15:50:46 -05:00
shodge12 ab6c3fd914 RTC for the end of day change flip..
23:59:59 -> 00:00:00 fix.  Verified date roll over as well...
2022-01-10 14:13:45 -05:00
shodge12 2808750946 Added support for assisted data movement between pages and RTC.
Added functional support for CoCo3FPGA functions - RTC and direct data movement between pages...
2022-01-09 23:43:53 -05:00
shodge12 82b7ceafa2 Added char write to font interface to be fully comp with coco3fpga.
Also converted external 6551 clock gen to 57.2727 Mhz [/31].  Removed 50Mhz clk from cocofpga core.
2022-01-02 15:30:09 -05:00
shodge12 0b525d85bf Updated font rendering code to be in-line with GIME-X.
Updated font rom, including clocking changes.  Updated Mister_Video to Gary's latest [better font positioning calculations].
2022-01-02 01:33:33 -05:00
shodge12 1b1f59c08d Fixed cartridge paging and support for 32K rom images.
GFX football and Predator working now...
2021-12-31 18:12:38 -05:00
shodge12 03366bc955 20211229 Release. Fixed video over-scan issues.
Modified Mister_Video.v to expose VBORDER.  HBORDER delayed 2 clocks to move it away from hsync color change. VBOARDER used as is.  Both of these signals supplied to MiSTer's upscaler as HBLANK and VBLANK.
2021-12-29 20:01:53 -05:00
shodge12 b3a40ba5c4 Vertical and Horizontal Borders corrected.
Had to add VBOARDER to Mister_Video.v port def.
2021-12-29 16:55:56 -05:00
shodge12 0ec9e3d1c9 Updated HBLANK to fix cut off pixels.
Add 3 pixel clk delay to align HBKANK with RGB video.
2021-12-28 22:12:10 -05:00
Alan Steremberg 755369c3f7 fixed cassette and added dpad
CI Build / build (push) Canceled after 0s
2021-12-25 15:40:40 -08:00
Alan Steremberg f82a38d2c7 fixes 2021-12-21 17:02:28 -08:00
Alan Steremberg f00b53c0f3 first check in 2021-12-21 16:01:35 -08:00