OSDN Git Service

csp-qt/common_source_project-fm7.git
8 months ago[VM][FMTOWNS][SYSROM][MEMORY] Use address redirection feature to SYSTEM ROM.
K.Ohta [Mon, 4 Sep 2023 18:11:05 +0000 (03:11 +0900)]
[VM][FMTOWNS][SYSROM][MEMORY] Use address redirection feature to SYSTEM ROM.

8 months ago[VM][FMTONWS][MEMORY] Fix around TEXT VRAM and FONT ROMS @Cxxxxh.
K.Ohta [Mon, 4 Sep 2023 17:56:12 +0000 (02:56 +0900)]
[VM][FMTONWS][MEMORY] Fix around TEXT VRAM and FONT ROMS @Cxxxxh.

- Fix behaviors around ankcg_enabled.
- ANK TEXT VRAM always be accessible.
- KANJI TEXT VRAM always available to write (even ankcg_enabled).
- ankcg_enables changes via FONT <-> KANJI TEXT VRAM when reading.
- Another addresses are not accessible, returns 0xFF on reading.
- Thanks to Yamakawa-San, Tsugaru.

8 months ago[VM][FMTOWNS][MEMORY] DO not access CC000h - CFF7Fh when VRAM window is enabled.
K.Ohta [Mon, 4 Sep 2023 17:34:36 +0000 (02:34 +0900)]
[VM][FMTOWNS][MEMORY] DO not access CC000h - CFF7Fh when VRAM window is enabled.

- Thanks to Yamakawa-San, and Tsugaru.

8 months ago[VM][FMTOWNS][MEMORY] Temporally disable FOO_dma_dataXw().
K.Ohta [Mon, 4 Sep 2023 16:47:40 +0000 (01:47 +0900)]
[VM][FMTOWNS][MEMORY] Temporally disable FOO_dma_dataXw().

- For example, read_dma_data8w() calls read_data8w() and setting wait value to 0.
  This may be (or not may be) temporally testing workarounds.

8 months ago[VM][FMTOWNS][CDROM] Fix TYPO.
K.Ohta [Mon, 4 Sep 2023 16:22:31 +0000 (01:22 +0900)]
[VM][FMTOWNS][CDROM] Fix TYPO.

8 months ago[VM][FMTOWNS][SCSI] Fix some TYPOs.
K.Ohta [Mon, 4 Sep 2023 16:22:03 +0000 (01:22 +0900)]
[VM][FMTOWNS][SCSI] Fix some TYPOs.

8 months ago[VM][FMTOWNS][MEMORY] Make address tables to structure.
K.Ohta [Mon, 4 Sep 2023 16:21:03 +0000 (01:21 +0900)]
[VM][FMTOWNS][MEMORY] Make address tables to structure.

8 months ago[VM][FMTOWNS][MEMORY] Remove read_io8w() and write_io8w() .
K.Ohta [Mon, 4 Sep 2023 14:37:49 +0000 (23:37 +0900)]
[VM][FMTOWNS][MEMORY] Remove read_io8w() and write_io8w() .

8 months ago[VM][FMTOWNS][CDROM] Move I/O port accessing to FOO_io8() and FOO_io16().
K.Ohta [Mon, 4 Sep 2023 14:36:58 +0000 (23:36 +0900)]
[VM][FMTOWNS][CDROM] Move I/O port accessing to FOO_io8() and FOO_io16().

8 months ago[VM][FMTOWNS][DICTIONARY] Integrate FOO_io8w() to FOO_io8().
K.Ohta [Mon, 4 Sep 2023 14:35:57 +0000 (23:35 +0900)]
[VM][FMTOWNS][DICTIONARY] Integrate FOO_io8w() to FOO_io8().

8 months ago[VM][FMTOWNS][FONTROM] Remove read_memory_mapped_io8w(), integrate to _memory_mapped_...
K.Ohta [Mon, 4 Sep 2023 14:34:43 +0000 (23:34 +0900)]
[VM][FMTOWNS][FONTROM] Remove read_memory_mapped_io8w(), integrate to _memory_mapped_io8().

8 months ago[VM][FMTOWNS][SCSI] Move read_ioXw() and write_ioXw() to read_ioX() and write_ioX() .
K.Ohta [Mon, 4 Sep 2023 14:33:25 +0000 (23:33 +0900)]
[VM][FMTOWNS][SCSI] Move read_ioXw() and write_ioXw() to read_ioX() and write_ioX() .

8 months ago[VM][FMTOWNS][MEMORY] Temporally revert value around NMI.
K.Ohta [Mon, 4 Sep 2023 05:52:01 +0000 (14:52 +0900)]
[VM][FMTOWNS][MEMORY] Temporally revert value around NMI.

8 months ago[VM][FMTOWNS][MEMORY] Use new memory map model, this also prepares to sepaeate both...
K.Ohta [Mon, 4 Sep 2023 05:31:58 +0000 (14:31 +0900)]
[VM][FMTOWNS][MEMORY] Use new memory map model, this also prepares to sepaeate both DMA and CPU-Fetch.

8 months ago[VM][FMTOWNS] TRY: Not clear when DAC_ON has changed.
K.Ohta [Mon, 4 Sep 2023 05:31:24 +0000 (14:31 +0900)]
[VM][FMTOWNS] TRY: Not clear when DAC_ON has changed.

8 months ago[VM][FMTOWNS][TIMER] Switch sound ON/OFF of BEEP only really changed.
K.Ohta [Sun, 3 Sep 2023 17:31:15 +0000 (02:31 +0900)]
[VM][FMTOWNS][TIMER] Switch sound ON/OFF of BEEP only really changed.

8 months ago[VM][FMTONWS][MEMORY] Maybe works, but some softwares not working :-(
K.Ohta [Sun, 3 Sep 2023 17:23:53 +0000 (02:23 +0900)]
[VM][FMTONWS][MEMORY] Maybe works, but some softwares not working :-(

- Change MEMORY MAP MODEL to SWITCH-CASE model.
  This will change again due to slowdown of banking.
- Change port value of 0404h , 05c0h and 05c2h ; set bit to '1' of unused field.
  This may needs for TownsOS v1.1 L30 .

8 months ago[VM][FMTOWNS][MEMORY] Available to build, but must be implement multiple bytes R/W.
K.Ohta [Thu, 31 Aug 2023 15:36:40 +0000 (00:36 +0900)]
[VM][FMTOWNS][MEMORY] Available to build, but must be implement multiple bytes R/W.

8 months ago[VM][FMTOWNS][MEMORY][DONOTBUILD] Re-Implementing memory faster.DON't build.
K.Ohta [Sun, 27 Aug 2023 17:17:32 +0000 (02:17 +0900)]
[VM][FMTOWNS][MEMORY][DONOTBUILD] Re-Implementing memory faster.DON't build.

- This is work-in-progress. DO NOT BUILD.
- This expects to fix some issues of CDROM booting, i.e) DOUKYUSEI 1.
- Reduce usage of memory mapping table.
- Change inherits from MEMORY:: to DEVICE:: .
- Now modifying read_dataFOO() and write_dataFOO(). Still be
  imcompletely.
- Will change around banking.
- Will re-implent around bank detection.
- Will re-implement config around page 000C0000h .

8 months ago[VM][I386_NP21] Prepare to debug.This is dummy.
K.Ohta [Sun, 27 Aug 2023 17:16:48 +0000 (02:16 +0900)]
[VM][I386_NP21] Prepare to debug.This is dummy.

8 months ago[VM][FMTOWNS][CDROM] Add backuped parameters queue for debugging.
K.Ohta [Mon, 21 Aug 2023 08:21:12 +0000 (17:21 +0900)]
[VM][FMTOWNS][CDROM] Add backuped parameters queue for debugging.

- This also include : Force to interrupt at EOT (with REQUEST_STATUS bit).

8 months ago[VM][FMTOWNS][MEMORY] Make wait registers more correctnass.
K.Ohta [Mon, 21 Aug 2023 08:15:49 +0000 (17:15 +0900)]
[VM][FMTOWNS][MEMORY] Make wait registers more correctnass.

- They are related by Tsugaru, Thanks Yamakawa-San.
- Set CPU clocks by wait values.
- Add VRAM wait setting port (05E6h ) instead of 05E2h .
- Separate registers 05E0h, 05E2h and 05E6h.
- Make more correctness logic for 05ECh .
- [ToDo] Will implement "FAST MODE" LED indicator(s?).

8 months ago[DEBUGGER][Qt] Fix freeze sometimes when usding debugger.
K.Ohta [Mon, 21 Aug 2023 08:15:07 +0000 (17:15 +0900)]
[DEBUGGER][Qt] Fix freeze sometimes when usding debugger.

8 months ago[VM][FMTOWNS][CDROM] Use RINGBUFFER:: as parameters queue.
K.Ohta [Sun, 20 Aug 2023 20:11:23 +0000 (05:11 +0900)]
[VM][FMTOWNS][CDROM] Use RINGBUFFER:: as parameters queue.

- Delay execution command ; 50uS . Porting from Tsugaru.
- Maybe improve some commands; RESTORE and READING.

8 months ago[COMMON][FIFO] Optimize branch predictions.
K.Ohta [Sun, 20 Aug 2023 20:10:56 +0000 (05:10 +0900)]
[COMMON][FIFO] Optimize branch predictions.

8 months ago[COMMON][RINGBUFFER] Fix pointer handling.
K.Ohta [Sun, 20 Aug 2023 20:10:32 +0000 (05:10 +0900)]
[COMMON][RINGBUFFER] Fix pointer handling.

9 months ago[VM][FMTOWNS][CDROM] Revert before commit partly.
K.Ohta [Tue, 15 Aug 2023 15:54:05 +0000 (00:54 +0900)]
[VM][FMTOWNS][CDROM] Revert before commit partly.

- This fixes issue of Fractal Engine DEMO.

9 months ago[VM][FMTOWNS][CDROM][WIP] Reply immediately when accepting READx commands.
K.Ohta [Tue, 15 Aug 2023 15:48:39 +0000 (00:48 +0900)]
[VM][FMTOWNS][CDROM][WIP] Reply immediately when accepting READx commands.

- This is part of fixing not booting some softwares, i.e. Dokyusei 1.
  This still be work-in-progress.

9 months ago[VM][FMTOWNS][MEMORY] Change around mapping.
K.Ohta [Tue, 15 Aug 2023 14:34:32 +0000 (23:34 +0900)]
[VM][FMTOWNS][MEMORY] Change around mapping.

9 months ago[VM][FMTOWNS][DICTIONARY] Change reply data when accessing unused area.
K.Ohta [Tue, 15 Aug 2023 14:26:50 +0000 (23:26 +0900)]
[VM][FMTOWNS][DICTIONARY] Change reply data when accessing unused area.

9 months ago[VM][FMTOWNS][DMAC] Temporally revert before commit e595ff79c.
K.Ohta [Tue, 15 Aug 2023 14:25:36 +0000 (23:25 +0900)]
[VM][FMTOWNS][DMAC] Temporally revert before commit e595ff79c.

- Something is wrong with any; Will retry.

9 months ago[VM][FMTOWNS][DMAC][WIP] Make behaviors of SINGLE MODE DMA (CMD 4xh,5xh) more correct...
K.Ohta [Tue, 15 Aug 2023 08:42:34 +0000 (17:42 +0900)]
[VM][FMTOWNS][DMAC][WIP] Make behaviors of SINGLE MODE DMA (CMD 4xh,5xh) more correctness.

- This still work-in-progress.

9 months ago[VM][FMTOWNS][MEMORY] Make mapping D0000h to FFFFFh more correctness.
K.Ohta [Tue, 15 Aug 2023 08:41:21 +0000 (17:41 +0900)]
[VM][FMTOWNS][MEMORY] Make mapping D0000h to FFFFFh more correctness.

9 months ago[VM][FMTOWNS][CRTC] Use csp_vector8<scrntype_t> instead of scrntype_t[] more.
K.Ohta [Sun, 13 Aug 2023 18:27:39 +0000 (03:27 +0900)]
[VM][FMTOWNS][CRTC] Use csp_vector8<scrntype_t> instead of scrntype_t[] more.

- 16 colors: Fix some issues of horiz zooming on rendering, i.e. AYAYO4.
- [VM][FMTOWNS][SPRITE] Fix indent.

9 months ago[COMMON][SIMD] Emhance csp_vector8<foo> for next commit.
K.Ohta [Sun, 13 Aug 2023 18:10:36 +0000 (03:10 +0900)]
[COMMON][SIMD] Emhance csp_vector8<foo> for next commit.

9 months ago[VM][FMTOWNS][CRTC] More correctness screen mixing.
K.Ohta [Sat, 12 Aug 2023 15:59:14 +0000 (00:59 +0900)]
[VM][FMTOWNS][CRTC] More correctness screen mixing.

- And, make calcurating correctness around HDS/HAJ .
  Fix screen issues some scroll games and Libble Rabble using 32K
  colors mode.
- Still have issues on AYAYO4 and After Burner 2(Not 3) .

9 months ago[VM][FMTOWNS][CRTC] Remove unused part of renders.
K.Ohta [Sat, 12 Aug 2023 08:12:57 +0000 (17:12 +0900)]
[VM][FMTOWNS][CRTC] Remove unused part of renders.

9 months ago[VM][FMTOWNS][CRTC] Use csp_vector8<scrntype_t> instead of aligned array.
K.Ohta [Sat, 12 Aug 2023 07:42:52 +0000 (16:42 +0900)]
[VM][FMTOWNS][CRTC] Use csp_vector8<scrntype_t> instead of aligned array.

- This still be used at only render_32768() and render_16() partly.
  Will use other part.

9 months ago[COMMON][SIMD] Add storex_aligned() and fill() to csp_vector8<foo> .
K.Ohta [Sat, 12 Aug 2023 07:41:39 +0000 (16:41 +0900)]
[COMMON][SIMD] Add storex_aligned() and fill() to csp_vector8<foo> .

- This prepares for next commit.

9 months ago[VM][FMTOWNS][CRTC] 32768 colors: Make transparent correctness (I wish...).
K.Ohta [Sat, 12 Aug 2023 05:39:27 +0000 (14:39 +0900)]
[VM][FMTOWNS][CRTC] 32768 colors: Make transparent correctness (I wish...).

- CLANG (at least <= 16) : Fix warning around SIMD loop optimization.

9 months ago[VM][FMTOWNS][CRTC][WIP] Copy palette values per line, @ pre_transfer_line().
K.Ohta [Fri, 11 Aug 2023 17:42:59 +0000 (02:42 +0900)]
[VM][FMTOWNS][CRTC][WIP] Copy palette values per line, @ pre_transfer_line().

- This is work-in-progress.
- Make calculatiing palette #00 correctness.
- Something is wrong with AYAYO4.
- Still not fix some noises at Fractal Engine Demonstration.

9 months ago[VM][FMTOWNS][CRTC] Fix around CR0, voutreg and palettes.
K.Ohta [Tue, 8 Aug 2023 18:39:51 +0000 (03:39 +0900)]
[VM][FMTOWNS][CRTC] Fix around CR0, voutreg and palettes.

- Related by Tsugaru.
- [ToDo] Backup palette values per line.

9 months ago[VM][FMTOWNS][CRTC] Render: Clear target when none rendered.
K.Ohta [Tue, 8 Aug 2023 06:06:49 +0000 (15:06 +0900)]
[VM][FMTOWNS][CRTC] Render: Clear target when none rendered.

9 months ago[VM][FMTOWNS][CRTC][RENDER] Make rendering logic more sinple.
K.Ohta [Tue, 8 Aug 2023 05:39:04 +0000 (14:39 +0900)]
[VM][FMTOWNS][CRTC][RENDER] Make rendering logic more sinple.

- Still bugs around CRTC around HAJ/HDS. i.e. Tatsujin-Oh.
- Still exists regression around 16 colors. i.e Opening of AYAYO4.
- Still exists bugs maybe V wrapping. i.e. ใ€Œใ‚ดใƒŸใ€ on Fractal Engine DEMO.

9 months ago[VM][FMTOWNS][CRTC][WIP] Improving around registers.Still be imcompleted.
K.Ohta [Sun, 6 Aug 2023 18:43:13 +0000 (03:43 +0900)]
[VM][FMTOWNS][CRTC][WIP] Improving around registers.Still be imcompleted.

9 months ago[VM][FMTOWNS][CRTC][WIP] Implementing related by Tsugaru, still imcomplete.
K.Ohta [Sun, 6 Aug 2023 08:31:46 +0000 (17:31 +0900)]
[VM][FMTOWNS][CRTC][WIP] Implementing related by Tsugaru, still imcomplete.

9 months ago[VM][FMTOWNS][CRTC] Implement more correctness timing.
K.Ohta [Thu, 3 Aug 2023 19:53:41 +0000 (04:53 +0900)]
[VM][FMTOWNS][CRTC] Implement more correctness timing.

- Fix timing issues of lots of softwares.
  i.e) Fractal engine demonstration and Super Real Mahjoung PIV .

9 months ago[VM][FMTOWNS][CRTC][WIP] Fixing around display timing.
K.Ohta [Mon, 31 Jul 2023 12:44:22 +0000 (21:44 +0900)]
[VM][FMTOWNS][CRTC][WIP] Fixing around display timing.

- Fixed clock calculation to be correctness.
- Calculate some parameters at every line: FOx, HDSx, HDEx, HAJx LOx.
- [BUG] Fixed notify mode change; when wrote to CR0.

9 months ago[VM][FMTOWNS][CRTC][WIP] Implementing around registers related to Tsugaru.This still...
K.Ohta [Thu, 27 Jul 2023 18:45:07 +0000 (03:45 +0900)]
[VM][FMTOWNS][CRTC][WIP] Implementing around registers related to Tsugaru.This still be imcomplete.

- Still have problems with 32768 mode.
- Still have problems with Fractal Engine Demonstration (256
  colors).
- Still have problems around CRTC Zooming.

9 months ago[VM][FMTOWNS][CRTC] Fix regression of flicking.
K.Ohta [Thu, 20 Jul 2023 19:03:58 +0000 (04:03 +0900)]
[VM][FMTOWNS][CRTC] Fix regression of flicking.

- This reverts around address handling within transfer_line() mainly.
- TEMPORALLY revert calculation around screen width and height.Will FIX.

10 months ago[VM][FMTOWNS][CRTC][WIP] Make pixels more correctness.This still be imcompleted.
K.Ohta [Sun, 16 Jul 2023 16:57:06 +0000 (01:57 +0900)]
[VM][FMTOWNS][CRTC][WIP] Make pixels more correctness.This still be imcompleted.

10 months ago[VM][FMTOWNS][CRTC] Change around display/render framebuffers.
K.Ohta [Sun, 16 Jul 2023 06:38:21 +0000 (15:38 +0900)]
[VM][FMTOWNS][CRTC] Change around display/render framebuffers.

10 months ago[VM][FMTOWNS][CRTC] More accuracy frame transfer.Fix text issues of A4(Ayayo 4).
K.Ohta [Sat, 15 Jul 2023 10:50:05 +0000 (19:50 +0900)]
[VM][FMTOWNS][CRTC] More accuracy frame transfer.Fix text issues of A4(Ayayo 4).

- Fix around address offset by layer.
   - For layer 0, address offset is decided by FMR's address offset
     register.
   - For layer 1, address offset is decided by SPRITE.
   - These effect to ALL display MODE.
   - This is referred by Tsugaru, commit 1a442831.Thanks to
     YAMAKAWA-SAN.
- Render before frame until the end of this frame.

10 months ago[VM][FMTOWNS][DMAC][WIP] Fix around address and counter registers.
K.Ohta [Thu, 13 Jul 2023 13:07:14 +0000 (22:07 +0900)]
[VM][FMTOWNS][DMAC][WIP] Fix around address and counter registers.

- This related to Tsugaru.

10 months ago[VM][FMTOWNS][VRAM] Fix access around 0x801xxxxx related to Tsugaru, Thanks!
K.Ohta [Thu, 13 Jul 2023 13:04:27 +0000 (22:04 +0900)]
[VM][FMTOWNS][VRAM] Fix access around 0x801xxxxx related to Tsugaru, Thanks!

- [VM][FMTOWNS][CRTC] Apply around this changes.
- [VM][FMTOWNS][PLANEVRAM] Apply around this changes.

10 months ago[VM][FMTOWNS][CDROM] execute_command(): Remove reduntant sequence.
K.Ohta [Mon, 10 Jul 2023 07:12:47 +0000 (16:12 +0900)]
[VM][FMTOWNS][CDROM] execute_command(): Remove reduntant sequence.

10 months ago[VM][FMTOWNS][CDROM] Use shadow parameter queue to queue next command.
K.Ohta [Mon, 10 Jul 2023 05:53:43 +0000 (14:53 +0900)]
[VM][FMTOWNS][CDROM] Use shadow parameter queue to queue next command.

10 months ago[VM][FMTOWNS][CDROM] Make reading sequence relate to TSUGARU.
K.Ohta [Sun, 9 Jul 2023 18:46:27 +0000 (03:46 +0900)]
[VM][FMTOWNS][CDROM] Make reading sequence relate to TSUGARU.

- Make interrupt only to PIC.
- Set timeout to 100mSec from 1Sec.
- Notify status_data_ready() immediately.
- Move reading next sector at epilogue of transfer (Will make be better) .
- Reset dma_transfer and pio_transfer at epilogue() .
- Call eplogue when reading with empty data queue.
- Adjust timing to notyfy status_data_ready() .

10 months ago[VM][FMTOWNS][CDROM] Remove has_status, replace of !(status_queue->empty()).
K.Ohta [Wed, 28 Jun 2023 19:25:27 +0000 (04:25 +0900)]
[VM][FMTOWNS][CDROM] Remove has_status, replace of !(status_queue->empty()).

[VM][FMTOWNS][CDROM] CDDA: More accurate repeating timing.

10 months ago[VM][FMTOWNS][TOWNS_DMAC] Disable to verbose debug messages.
K.Ohta [Wed, 28 Jun 2023 19:24:08 +0000 (04:24 +0900)]
[VM][FMTOWNS][TOWNS_DMAC] Disable to verbose debug messages.

10 months ago[VM][FMTOWNS][CDROM] Housekeeping around resetting.
K.Ohta [Wed, 28 Jun 2023 08:28:54 +0000 (17:28 +0900)]
[VM][FMTOWNS][CDROM] Housekeeping around resetting.

10 months ago[VM][FMTOWNS][CDROM] Re-Add retry sequence when not enough to read from MEDIA.
K.Ohta [Wed, 28 Jun 2023 05:41:59 +0000 (14:41 +0900)]
[VM][FMTOWNS][CDROM] Re-Add retry sequence when not enough to read from MEDIA.

10 months ago[COMMON][FIFO_BASE] Fix FIFO_BASE::UNLOCKED_FIFO::left() .
K.Ohta [Wed, 28 Jun 2023 05:41:03 +0000 (14:41 +0900)]
[COMMON][FIFO_BASE] Fix FIFO_BASE::UNLOCKED_FIFO::left() .

10 months ago[COMMON][FIFO] Fix bug of FIFO::left() .
K.Ohta [Wed, 28 Jun 2023 05:40:39 +0000 (14:40 +0900)]
[COMMON][FIFO] Fix bug of FIFO::left() .

10 months ago[VM][FMTOWNS][CDROM] Available to execute FRACTAL ENGINE DEMO again :-)
K.Ohta [Wed, 28 Jun 2023 05:02:09 +0000 (14:02 +0900)]
[VM][FMTOWNS][CDROM] Available to execute FRACTAL ENGINE DEMO again :-)

10 months ago[VM][FMTOWNS][CDROM][WIP] Change around transfer sequences.
K.Ohta [Thu, 22 Jun 2023 16:23:01 +0000 (01:23 +0900)]
[VM][FMTOWNS][CDROM][WIP] Change around transfer sequences.

10 months ago[VM][FMTOWNS][DMAC] Works mostly, excepts CD-ROM with TOWNS OS 1.x.
K.Ohta [Thu, 22 Jun 2023 16:21:56 +0000 (01:21 +0900)]
[VM][FMTOWNS][DMAC] Works mostly, excepts CD-ROM with TOWNS OS 1.x.

10 months ago[VM][FMTOWNS][DMAC][WIP][DONOTBUILD] Update around TC.
K.Ohta [Sat, 17 Jun 2023 18:16:06 +0000 (03:16 +0900)]
[VM][FMTOWNS][DMAC][WIP][DONOTBUILD] Update around TC.

- Still implement imcompleted, DO NOT BUUILD.
- This also includes updates around read/write memory.

10 months ago[VM][UPD71071] Update internal API for inc/dec memory address.
K.Ohta [Sat, 17 Jun 2023 18:15:15 +0000 (03:15 +0900)]
[VM][UPD71071] Update internal API for inc/dec memory address.

11 months ago[VM][FMTOWNS][DMAC] Bit 5 of dma[selch].mode; ADIR don't effects at TOWNS.
K.Ohta [Sat, 17 Jun 2023 05:05:42 +0000 (14:05 +0900)]
[VM][FMTOWNS][DMAC] Bit 5 of dma[selch].mode; ADIR don't effects at TOWNS.

- Thanks to YAMAKAWA(CaptainYS)-San.
- This is related to TSUGARU, commit e5920fdc1ba89ba10172f0954ecf1107bb592919.
 > Author:     CaptainYS <PEB01130@nifty.com>
 > AuthorDate: Sat Feb 29 23:43:52 2020 -0500
 > Commit:     CaptainYS <PEB01130@nifty.com>
 > CommitDate: Sat Feb 29 23:43:52 2020 -0500
 >
 > Better DMA and CDROM emulation.  Still MSCDEX takes extremely
 > long time to read CD-ROM.
 >
 > Parent:     9390f5be
 > Found Device-DMACh correspondence in [2] pp. 56.
 > Still trying to find the correct sequence of CD-ROM
 > drive data transfer.  Unit test still temporarily broken.

11 months ago[VM][FMTOWNS][CDROM][WIP] Adjusting CDC sequences.Only bootable with Towns OS v2.x.
K.Ohta [Tue, 30 May 2023 18:47:01 +0000 (03:47 +0900)]
[VM][FMTOWNS][CDROM][WIP] Adjusting CDC sequences.Only bootable with Towns OS v2.x.

- Re-Enable has_status variable.
- Set DMA clock to 8MHz.This is experimental.
- Move EOT handler to SIG_TOWNS_DMA_INT (= When DMAC asserts TC).
- Changing around CDDA status.Still WORK-IN-PROGRESS.
- Porting from MAME 0.254.
- Change lba calculating.
- Change repling timing at PLAY CDDA command.
- Now fixing around SEEK (00h) command, something wrong.
- Not bootable Towns OS 1.1Lxx .

11 months ago[VM][FMTOWNS][DMAC] Change address handling.
K.Ohta [Tue, 30 May 2023 18:46:36 +0000 (03:46 +0900)]
[VM][FMTOWNS][DMAC] Change address handling.

11 months ago[General][EMACS] modify .dir-locals.el .
K.Ohta [Tue, 30 May 2023 08:00:21 +0000 (17:00 +0900)]
[General][EMACS] modify .dir-locals.el .

11 months ago[VM][FMTOWNS][AD7820KR] .
K.Ohta [Tue, 30 May 2023 07:59:59 +0000 (16:59 +0900)]
[VM][FMTOWNS][AD7820KR] .

11 months ago[VM][FMTOWNS][CDROM] Change setting condition of reading 04C0h : bit1 .
K.Ohta [Tue, 30 May 2023 07:58:58 +0000 (16:58 +0900)]
[VM][FMTOWNS][CDROM] Change setting condition of reading 04C0h : bit1 .

11 months ago[VM][FMTOWNS][CDROM] Adjust around reply status when loading.
K.Ohta [Wed, 24 May 2023 17:19:13 +0000 (02:19 +0900)]
[VM][FMTOWNS][CDROM] Adjust around reply status when loading.

11 months ago[VM][FMTOWNS][CDROM] Re-available to read from CD-ROM.
K.Ohta [Wed, 24 May 2023 12:49:32 +0000 (21:49 +0900)]
[VM][FMTOWNS][CDROM] Re-available to read from CD-ROM.

11 months ago[VM][FMTOWNS][CDROM] Adjust bus sequence, this still don't boot from CD-ROM.
K.Ohta [Sun, 21 May 2023 08:18:11 +0000 (17:18 +0900)]
[VM][FMTOWNS][CDROM] Adjust bus sequence, this still don't boot from CD-ROM.

11 months ago[VM][FMTOWNS][DMAC] Drive via timer.This make working without SINGLE_MODE_DMA .
K.Ohta [Sun, 21 May 2023 08:16:14 +0000 (17:16 +0900)]
[VM][FMTOWNS][DMAC] Drive via timer.This make working without SINGLE_MODE_DMA .

11 months ago[VM][FMTOWNS] Adjust DMA signals.
K.Ohta [Fri, 19 May 2023 15:56:17 +0000 (00:56 +0900)]
[VM][FMTOWNS] Adjust DMA signals.

11 months ago[VM][FMTOWNS][SCSI] Fix around DRQ.
K.Ohta [Fri, 19 May 2023 15:55:37 +0000 (00:55 +0900)]
[VM][FMTOWNS][SCSI] Fix around DRQ.

11 months ago[VM][FMTOWNS][CDROM] Change around DRQ and EOT.
K.Ohta [Fri, 19 May 2023 15:52:40 +0000 (00:52 +0900)]
[VM][FMTOWNS][CDROM] Change around DRQ and EOT.

- Make DRQ falling down per reading.
- Call DRQ per 0.25 uSec.
- Separate internal end-of-transfer and request from DMA TC3 line.

11 months ago[VM][FMTOWNS][DMAC] Re-Split TC line to TCx, per channel.
K.Ohta [Fri, 19 May 2023 15:49:55 +0000 (00:49 +0900)]
[VM][FMTOWNS][DMAC] Re-Split TC line to TCx, per channel.

- Change asserting TCx conditions per mode.
- Still be something wrong :-(

12 months ago[VM][FMTOWNS][WIP] Adjust bus setting around SCSI and DMA.
K.Ohta [Wed, 17 May 2023 16:49:02 +0000 (01:49 +0900)]
[VM][FMTOWNS][WIP] Adjust bus setting around SCSI and DMA.

- Still ready for only setting with USE_SINGLE_DMA, not ready for not setting.
- Still not booting from SCSI HDD.
- Maybe something wrong yet.

12 months ago[VM][FMTOWNS][SCSI] TRY: Move timing of setting interrupt status to backup.
K.Ohta [Wed, 17 May 2023 16:48:07 +0000 (01:48 +0900)]
[VM][FMTOWNS][SCSI] TRY: Move timing of setting interrupt status to backup.

12 months ago[VM][FMTOWNS][CDROM] Return specified status when using A0h command previous.
K.Ohta [Wed, 17 May 2023 16:43:49 +0000 (01:43 +0900)]
[VM][FMTOWNS][CDROM] Return specified status when using A0h command previous.

- Reply some special status when accept next command.
- Add EOT line to abort/end DMA transfer (to DMAC:ENDx line).
- Re-enable DRQ/ACK model.
- Still ready for only setting with USE_SINGLE_DMA, not ready for not setting.

12 months ago[VM][FMTOWNS][DMAC] Re-add ACKx lines.
K.Ohta [Wed, 17 May 2023 16:30:17 +0000 (01:30 +0900)]
[VM][FMTOWNS][DMAC] Re-add ACKx lines.

- TRY: Merge a before commit of UPD71071::, make TC line to one line.
- Split some DMA sequence blocks to functions.
- Now, de-active ACKx when starting dma transfer, activate when
  complete to transfer.
- Integrate end_state[] to is_start[] .
- TC : change making condition per mode:
    0x00 (DEMAND):
      - END_REQ[c] asserted.
  - COUNT DOWN REACHED.
  - DMA REQ MADE INACTIVE.
0x40 (SINGLE):
  - COUNT DOWN REACHED.
0x80 (BLOCK):
      - END_REQ[c] asserted.
  - COUNT DOWN REACHED.
- TC is only for trigger, never reset.
- write_signal() : Add SIG_TOWNS_DMAC_EOT_CHx for aborting transfer
  from TARGET device.
- write_signal() : Still add SIG_TOWNS_DMAC_WRAP for changing behavior
  of DMA both basic TOWNS and after MX/MX/ME.

12 months ago[VM][UPD71071] Revert changes around TC line; Sync to upstream.
K.Ohta [Wed, 17 May 2023 16:29:34 +0000 (01:29 +0900)]
[VM][UPD71071] Revert changes around TC line; Sync to upstream.

12 months ago[VM][FMTOWNS][DMAC] .
K.Ohta [Tue, 16 May 2023 09:57:34 +0000 (18:57 +0900)]
[VM][FMTOWNS][DMAC] .

12 months ago[VM][FMTOWNS][DMAC][WIP] Improving around terminal of transfer.
K.Ohta [Tue, 16 May 2023 09:18:42 +0000 (18:18 +0900)]
[VM][FMTOWNS][DMAC][WIP] Improving around terminal of transfer.

 - This is implementing refer to JAPANESE DATASHEET of uPD71071, NEC.

12 months ago[VM][FMTOWNS][DMAC] TRY: Reduce usage of HOST CPU time.
K.Ohta [Wed, 10 May 2023 12:55:53 +0000 (21:55 +0900)]
[VM][FMTOWNS][DMAC] TRY: Reduce usage of HOST CPU time.

- Add prescale counter to do_dma().

12 months ago[VM][FMTOWNS][SCSI] Implement extended control flags for after FM-Towns2 UX.
K.Ohta [Wed, 10 May 2023 11:49:45 +0000 (20:49 +0900)]
[VM][FMTOWNS][SCSI] Implement extended control flags for after FM-Towns2 UX.

12 months ago[VM][FMTOWNS] Adjust around DMAC and SCSI.
K.Ohta [Wed, 10 May 2023 11:49:22 +0000 (20:49 +0900)]
[VM][FMTOWNS] Adjust around DMAC and SCSI.

12 months ago[VM][FMTOWNS][DMAC] Prepare to use endreq.This needs to build without SINGLE_MODE_DMA .
K.Ohta [Wed, 10 May 2023 11:48:10 +0000 (20:48 +0900)]
[VM][FMTOWNS][DMAC] Prepare to use endreq.This needs to build without SINGLE_MODE_DMA .

12 months ago[VM][FMTOWNS][CDROM] Disable logging.
K.Ohta [Wed, 10 May 2023 11:47:42 +0000 (20:47 +0900)]
[VM][FMTOWNS][CDROM] Disable logging.

12 months ago[VM][FMTOWNS][TOWNS_SCSI_HOST] .
K.Ohta [Wed, 10 May 2023 11:47:21 +0000 (20:47 +0900)]
[VM][FMTOWNS][TOWNS_SCSI_HOST] .

12 months ago[VM][FMTOWNS][SCSI] Boot from SCSI HDD.
K.Ohta [Wed, 10 May 2023 11:44:42 +0000 (20:44 +0900)]
[VM][FMTOWNS][SCSI] Boot from SCSI HDD.

- Set SCSI_DEV_IMMEDIATE_SELECT .

[VM][FMTOWNS][FLOPPY] WAITING via SEEK sequence.

- MB8877_NO_BUSY_AFTER_SEEK flag seems not to be needed for emulation.

[VM][FMTOWNS] Prepare to drop TOWNS_SCSI_HOST:: .

12 months ago[VM][FMTOWNS][SCSI][DMAC] Partly available to use SCSI HDD, still not booting from...
K.Ohta [Wed, 10 May 2023 08:37:47 +0000 (17:37 +0900)]
[VM][FMTOWNS][SCSI][DMAC] Partly available to use SCSI HDD, still not booting from IPL.

12 months ago[VM][UPD71071] Fix warning.
K.Ohta [Fri, 28 Apr 2023 20:06:39 +0000 (05:06 +0900)]
[VM][UPD71071] Fix warning.

12 months ago[VM][FMTOWNS][CDROM] Adjust STATE flags.
K.Ohta [Fri, 28 Apr 2023 20:04:24 +0000 (05:04 +0900)]
[VM][FMTOWNS][CDROM] Adjust STATE flags.