OSDN Git Service

csp-qt/common_source_project-fm7.git
5 months ago[FIFO_TEMPLATE][WIP] Modifying FIFO_BASE::FOO class.This still not available to build.
K.Ohta [Wed, 29 Nov 2023 20:26:02 +0000 (05:26 +0900)]
[FIFO_TEMPLATE][WIP] Modifying FIFO_BASE::FOO class.This still not available to build.

5 months ago[VM][RF5C68][FMTOWNS][ADPCM] RF5C68: Driven by internal event.
K.Ohta [Mon, 27 Nov 2023 14:04:38 +0000 (23:04 +0900)]
[VM][RF5C68][FMTOWNS][ADPCM] RF5C68: Driven by internal event.

- [RF5C68] If you want to drive by external signal (SIG_RF5C68_DAC_PERIOD) ,
  Put "#define RF5C68_DRIVEN_BY_EXTERNAL_CLOCK 1" to VM's header.
- [RF5C68] PCM period: Enhance env registers to be faster.
- [RF5C68] PCM period: Make sing variables to int32_t to be faster.
- [RF5C68] Make [read|write]_memory_mapped_io8() to [read|write]_memory_mapped_io8w().
- [RF5C68] Remove 16bit bus width memory acccessing.Maybe this is not
           needed.
- [RF5C68] Make memoryaccess faster a bit :-)
- [RF5C68][WIP] Make mix() to be more correctness.

- [FMTONWS][ADPCM] Remove read/write PCM memory , this is
  owned by RF5C68.

5 months ago[VM][FMTOWNS][MEMORY] Fix wait value for slow setting.
K.Ohta [Sun, 26 Nov 2023 17:16:43 +0000 (02:16 +0900)]
[VM][FMTOWNS][MEMORY] Fix wait value for slow setting.

- This is for I/O 05ECh.
- Fix slowly softwares at "Compatible Mode" .

5 months ago[VM][FMTOWNS][CDROM][MB87078] Implement electric volume.
K.Ohta [Sun, 26 Nov 2023 17:14:07 +0000 (02:14 +0900)]
[VM][FMTOWNS][CDROM][MB87078] Implement electric volume.

- This (MB87078) is pseudo electric volume, need to calculate volume
  at target device by signals (volume and mute).
- See fmtowns.cpp , cdrom.[cpp|h] and mb87078.[cpp|h] .

5 months ago[VM][FMTOWNS][CDROM] Fix status around accepting and command 80h.
K.Ohta [Sun, 26 Nov 2023 15:16:06 +0000 (00:16 +0900)]
[VM][FMTOWNS][CDROM] Fix status around accepting and command 80h.

- Available to play Super Real Mahjoung PIV .
- [CDDA] Workaround temporally to setting volume for Yumimi MIX.

5 months ago[VM][FMTOWNS][CDROM] Modify image reading.
K.Ohta [Thu, 23 Nov 2023 16:28:40 +0000 (01:28 +0900)]
[VM][FMTOWNS][CDROM] Modify image reading.

- Make data field reading directly.This still not to calculate ECC for
  MODE1.
- Expect to be reading faster.
- Pitch up DRQ cycle.
- [WILLFIX] At some situations, still be wrong something.
- [ISO_PARSER] Set TYPE to "MODE1/2048" .
- [CUE_PARSER] Make sector counting more correctness.

6 months ago[VM][FMTOWNS][DMAC][WIP] Make wait values better correctness both CPU and DMAC.
K.Ohta [Tue, 14 Nov 2023 08:25:41 +0000 (17:25 +0900)]
[VM][FMTOWNS][DMAC][WIP] Make wait values better correctness both CPU and DMAC.

- This is work-in-progress.

6 months ago[VM][FMTOWNS][DMAC] Workaround for SCSI host.
K.Ohta [Mon, 13 Nov 2023 20:24:32 +0000 (05:24 +0900)]
[VM][FMTOWNS][DMAC] Workaround for SCSI host.

6 months ago[VM][FMTOWNS][CDROM] Re-Implement around DATA buffer not to use FIFO.
K.Ohta [Sun, 12 Nov 2023 10:44:12 +0000 (19:44 +0900)]
[VM][FMTOWNS][CDROM] Re-Implement around DATA buffer not to use FIFO.

- This tries to reduce host CPU usage on reading from CD.
- Make buffer handling more simpler.
- Change bool read_buffer(int sectors) to bool get_sectors(int sectors),
  to fix duplication of API name.
- Delete some unused functions.
- Change STATE_VERSION to 64.

6 months ago[VM][FMTOWNS][CDROM] ToDo: Will re-implement handshake model via CDC and DMAC.
K.Ohta [Sat, 11 Nov 2023 21:44:58 +0000 (06:44 +0900)]
[VM][FMTOWNS][CDROM] ToDo: Will re-implement handshake model via CDC and DMAC.

- This expects to fix braking some software transferring.
  Because some dma transferring (single) breaks data with my TOWNS_CD (;´Д`)
  This seems to lack data with some situations, i.e. Bubble Bobble and
  Super Real Mahjong PIV .

6 months ago[VM][FMTOWNS][CDROM] Available to boot YUMIMI MIX (!!)
K.Ohta [Sat, 11 Nov 2023 20:39:32 +0000 (05:39 +0900)]
[VM][FMTOWNS][CDROM] Available to boot YUMIMI MIX (!!)

- Change around sector reading.
  Read a sector after to complete reading a sector.
  This will re-implement for multi sectors FIFO queue (later variants).
- Change handling around DRQ.
- Change EVENT NAME: EVENT_CDROM_DELAY_START_DRQ to
  EVENT_CDROM_DRQ_PERIOD .
- Add data_in value.
- Check running DMAC from CDC per byte transferring, may remove
  SIG_TOWNS_CDROM_DMAMASK .
- [CDDA] At Yumimi-Mix, CD-DA seems to be muted.Will fix.
- [CDDA] Still not implement reply for CDDA PLAY/STOP/PAUSE correctness.

6 months ago[VM][I386_NP21][FMTOWNS][TOWNS_MEMORY] Try to be more correctness resetting.
K.Ohta [Sat, 28 Oct 2023 16:52:23 +0000 (01:52 +0900)]
[VM][I386_NP21][FMTOWNS][TOWNS_MEMORY] Try to be more correctness resetting.

- [FMTOWNS][TOWNS_MEMORY] Reset only CPU when resetting from registers; 0020h and 0022h .
- [I386_NP21] Separate resetting panic from usually resetting.
- [I386_NP21][TOWNS_MEMORY] Fix resetting from CPU on panic.

6 months ago[VM][FMTOWNS][CDROM] CDROM checks DMAC's mask as running DMAC CH.3.
K.Ohta [Sat, 28 Oct 2023 16:48:01 +0000 (01:48 +0900)]
[VM][FMTOWNS][CDROM] CDROM checks DMAC's mask as running DMAC CH.3.

- If not running (masked), not to assert DRQ .
- [FMTOWNS][DMAC] Add some signals to detect mask register.

6 months ago[VM][FMTOWNS][CDROM] TRY: Fixing around execute_phase and changing disk situations.
K.Ohta [Fri, 27 Oct 2023 15:35:27 +0000 (00:35 +0900)]
[VM][FMTOWNS][CDROM] TRY: Fixing around execute_phase and changing disk situations.

7 months ago[VM][FMTOWNS][CDROM][WIP] Fix around DRQ/interrupt.
K.Ohta [Wed, 11 Oct 2023 18:42:36 +0000 (03:42 +0900)]
[VM][FMTOWNS][CDROM][WIP] Fix around DRQ/interrupt.

- Still something wrong, i.e. RANCE III .

7 months ago[VM][FMTOWNS][CDROM] Add a internal flag indicating of command execution.
K.Ohta [Wed, 11 Oct 2023 15:33:37 +0000 (00:33 +0900)]
[VM][FMTOWNS][CDROM] Add a internal flag indicating of command execution.

- bool command_execute_phase is that.
- Split some features into functions().
- Make args around interrupt const bool, from bool.
- Add force interrupt (ignoring stat_reply_intr) to delay_ready().
- Re-available bool has_status for I/O reading 04C0h.
- Still not booting DOKYUSEI 1 (;_;)

7 months ago[VM][FMTOWNS][CDROM] Workaround for changing media.
K.Ohta [Sun, 8 Oct 2023 15:48:55 +0000 (00:48 +0900)]
[VM][FMTOWNS][CDROM] Workaround for changing media.

- Force MCU to ready after immediately reply.

7 months ago[VM][FMTOWNS][SPRITE] Render driven by CRTC's VStart(VSYNC).
K.Ohta [Sun, 8 Oct 2023 14:33:20 +0000 (23:33 +0900)]
[VM][FMTOWNS][SPRITE] Render driven by CRTC's VStart(VSYNC).

- Change names of some signals.
- Make I/O accessing by alias address.
- [ToDo] Will implement unlimited sprite mode (for over 224 sprites).
- Change mean of render_num .

7 months ago[VM][FMTOWNS][TOWNS_MEMORY] Make registers accessing related to Tsugaru,
K.Ohta [Sun, 8 Oct 2023 14:32:49 +0000 (23:32 +0900)]
[VM][FMTOWNS][TOWNS_MEMORY] Make registers accessing related to Tsugaru,

7 months ago[VM][FMTOWNS][PLANEVRAM] Make registers accessing related to Tsugaru.
K.Ohta [Sun, 8 Oct 2023 14:32:10 +0000 (23:32 +0900)]
[VM][FMTOWNS][PLANEVRAM] Make registers accessing related to Tsugaru.

7 months ago[VM][FMTOWNS][CRTC] Improve status display on get_debug_regs_info().
K.Ohta [Sun, 8 Oct 2023 14:31:19 +0000 (23:31 +0900)]
[VM][FMTOWNS][CRTC] Improve status display on get_debug_regs_info().

7 months ago[VM][FMTOWNS][CMOS] Make I/O accessing related by Tsugaru.
K.Ohta [Sun, 8 Oct 2023 14:29:57 +0000 (23:29 +0900)]
[VM][FMTOWNS][CMOS] Make I/O accessing related by Tsugaru.

- Allow to access from odd addreess at; 3000h - 3FFFh .

7 months ago[VM][FMTOWNS][CDROM] Implement more related to Tsugaru.
K.Ohta [Sun, 1 Oct 2023 19:08:44 +0000 (04:08 +0900)]
[VM][FMTOWNS][CDROM] Implement more related to Tsugaru.

- Make seek wait to 50mSec * 2 at command 00h.
- Temporally implement command 86h and 9Fh.
- More accurate read SUBQ command (command 06h).
- Make interrupt line (for PIC) to outputs_t .
- Split status_accept() function.
- Make APIs around interrupt more simple.
- More accurate around interrupt and some signal lines.
- Make interrupt immediately at "DATA READY" and "EOT" .
- Change some behaviors for CDDA and reading from sectors.

7 months ago[VM][FMTOWNS][CDROM] Re-Implement to make more correctness.
K.Ohta [Thu, 28 Sep 2023 17:57:26 +0000 (02:57 +0900)]
[VM][FMTOWNS][CDROM] Re-Implement to make more correctness.

- Implement more correctness SUBQ.
- Change around DRQ and transfer phase. (I/O 04C6h).
- Stop both asserting TC from DMAC and all datas read.
- Change around CD-DA commands.

7 months ago[VM][FMTOWNS][DMAC] Fix around TC flags.
K.Ohta [Mon, 25 Sep 2023 15:07:25 +0000 (00:07 +0900)]
[VM][FMTOWNS][DMAC] Fix around TC flags.

7 months ago[VM][FMTOWNS][CDROM] Expect to make more correctness interrupt handling.
K.Ohta [Mon, 25 Sep 2023 15:03:42 +0000 (00:03 +0900)]
[VM][FMTOWNS][CDROM] Expect to make more correctness interrupt handling.

- Don't stop transfer when only TC rise up (but remains datas at data queue).
- Also includes changes around timeout.

7 months ago[VM][FMTOWNS][MEMORY] Make accessing 000C0000h to 000FFFFFh more correctness.
K.Ohta [Mon, 25 Sep 2023 15:01:32 +0000 (00:01 +0900)]
[VM][FMTOWNS][MEMORY] Make accessing 000C0000h to 000FFFFFh more correctness.

- This includes forcing to access by byte when VRAM/DICTIONARY ROM/CMOS.

7 months ago[VM][FMTOWNS][CDROM] Handle DRQs more correctness.
K.Ohta [Mon, 25 Sep 2023 04:26:53 +0000 (13:26 +0900)]
[VM][FMTOWNS][CDROM] Handle DRQs more correctness.

- This applies for recent changes of TOWNS_DMAC:: .
- This also make to reduce of HOST cpu resource usage.

7 months ago[VM][FMTOWNS][DMAC] (PSEUDO) DMAC clock make on-demand to reduce host resources usage.
K.Ohta [Sat, 23 Sep 2023 17:13:02 +0000 (02:13 +0900)]
[VM][FMTOWNS][DMAC] (PSEUDO) DMAC clock make on-demand to reduce host resources usage.

- Clock (event_dmac_cycle) starts by checking both mask register and
  cmd register.
- read_io16() and write_io16() : Effects only even address,
  use read_io8() and write_io8() when accessing from odd address.

7 months ago[VM][RF5C68] Make SIG_RF5C68_BANK correctness.
K.Ohta [Sat, 23 Sep 2023 17:12:22 +0000 (02:12 +0900)]
[VM][RF5C68] Make SIG_RF5C68_BANK correctness.

7 months ago[VM][FMTOWNS][MOUSE] Change some function name expect not to confuse JS_TEMPLATE:: .
K.Ohta [Sat, 23 Sep 2023 17:11:11 +0000 (02:11 +0900)]
[VM][FMTOWNS][MOUSE] Change some function name expect not to confuse JS_TEMPLATE:: .

7 months ago[VM][FMTOWNS][ADPCM][RF5C68] Accessing PCM memory should make via ADPCM:: .
K.Ohta [Sat, 23 Sep 2023 17:09:46 +0000 (02:09 +0900)]
[VM][FMTOWNS][ADPCM][RF5C68] Accessing PCM memory should make via ADPCM:: .

- Make address access more simple.

7 months ago[VM][FMTOWNS] Add override directive to overridden functions for many devices.
K.Ohta [Sat, 23 Sep 2023 17:08:35 +0000 (02:08 +0900)]
[VM][FMTOWNS] Add override directive to overridden functions for many devices.

7 months ago[VM][FMTOWNS][SERIALROM] Add override directive to overridden functions.
K.Ohta [Sat, 23 Sep 2023 17:07:35 +0000 (02:07 +0900)]
[VM][FMTOWNS][SERIALROM] Add override directive to overridden functions.

7 months ago[VM][FMTOWNS][SPRITE] Make memory access simple.
K.Ohta [Sat, 23 Sep 2023 17:05:42 +0000 (02:05 +0900)]
[VM][FMTOWNS][SPRITE] Make memory access simple.

- Write text wrote flag by external device (TOWNS_MEMORY:: )
  by write_signal().
- Change memory access APIs to use with wait.

7 months ago[VM][FMTOWNS][VRAM] Fix addressing for VRAM ACCESS REGISTER (I/O 0458h).
K.Ohta [Sat, 23 Sep 2023 17:05:01 +0000 (02:05 +0900)]
[VM][FMTOWNS][VRAM] Fix addressing for VRAM ACCESS REGISTER (I/O 0458h).

7 months ago[VM][FMTOWNS][TOWNS_MEMORY] Make addressing more correctness.
K.Ohta [Sat, 23 Sep 2023 17:01:58 +0000 (02:01 +0900)]
[VM][FMTOWNS][TOWNS_MEMORY] Make addressing more correctness.

- Mostly around 000C8000h - 000CFFFFh.
- Use [read|write]_memory_mapped_ioYw() instead of
  [read|write]_memory_mapped_ioY() .
- Use [read|write]_dma_dataYw() instead of [read|write]_dma_dataY() .
- Add support for CMOS:: , changes at before commit.

7 months ago[VM][FMTOWNS][DICTIONARY][CMOS] Separate DICTIONARY and CMOS RAM.
K.Ohta [Sat, 23 Sep 2023 16:59:40 +0000 (01:59 +0900)]
[VM][FMTOWNS][DICTIONARY][CMOS] Separate DICTIONARY and CMOS RAM.

- Add DEBUGGER to CMOS-RAM.
- [BUILD][CMake][FMTOWNS] Re-order source files for compilation.
- Make memory access more correctness.

7 months ago[VM][FMTOWNS][CDROM] Remove unused lines.
K.Ohta [Thu, 21 Sep 2023 18:13:47 +0000 (03:13 +0900)]
[VM][FMTOWNS][CDROM] Remove unused lines.

7 months ago[VM][FMTOWNS][CDROM] Implement more accurate DMA/PIO transfer status.
K.Ohta [Thu, 21 Sep 2023 17:53:48 +0000 (02:53 +0900)]
[VM][FMTOWNS][CDROM] Implement more accurate DMA/PIO transfer status.

- This implements pseudo handshake to DMA transfer.
- Use read_dma_io8() for PIO reading from I/O 04C4h .
- Make sector handling simple on reading data.

7 months ago[VM][FMTOWNS][DMAC] Reset local status flags around a channel transferring per channel
K.Ohta [Wed, 20 Sep 2023 15:18:26 +0000 (00:18 +0900)]
[VM][FMTOWNS][DMAC] Reset local status flags around a channel transferring per channel

- These (also before commit) are re-implemenation transfer sequences,
  register I/O more relating for uPD71071's datasheet (by NEC).
  DOCUMENT nunber U11937JJ6V0DS00 rev.6, written in Japanese
  (Older document number : IC-6796), September 1996.

7 months ago[VM][FMTOWNS][DMAC] Make DMA dirven by clock.
K.Ohta [Wed, 20 Sep 2023 14:47:24 +0000 (23:47 +0900)]
[VM][FMTOWNS][DMAC] Make DMA dirven by clock.

7 months ago[VM][FMTOWNS][DMAC] Sync writing AREG/BAREG/CREG/BCREG sequence to UPD71071:: .
K.Ohta [Mon, 18 Sep 2023 12:34:47 +0000 (21:34 +0900)]
[VM][FMTOWNS][DMAC] Sync writing AREG/BAREG/CREG/BCREG sequence to UPD71071:: .

8 months ago[VM][FMTOWNS][DMAC][TODO] Fixing around sequence.
K.Ohta [Wed, 13 Sep 2023 14:18:20 +0000 (23:18 +0900)]
[VM][FMTOWNS][DMAC][TODO] Fixing around sequence.

8 months ago[VM][FMTOWNS][SPRITE] Fix around memory accessing.
K.Ohta [Wed, 13 Sep 2023 14:17:37 +0000 (23:17 +0900)]
[VM][FMTOWNS][SPRITE] Fix around memory accessing.

8 months ago[VM][FMTOWNS][VRAM] Optimize for DWORD aligned accessing.
K.Ohta [Wed, 13 Sep 2023 11:30:53 +0000 (20:30 +0900)]
[VM][FMTOWNS][VRAM] Optimize for DWORD aligned accessing.

- Also add DMA accessing functions.
- Remove including unused header.
- Make some functions "override" .

8 months ago[VM][FMTOWNS][SYSROM] Add dma accessing functions.
K.Ohta [Wed, 13 Sep 2023 11:29:58 +0000 (20:29 +0900)]
[VM][FMTOWNS][SYSROM] Add dma accessing functions.

- Also making any methods "override" .

8 months ago[VM][FMTOWNS][RF5C68] MEMORY accessing must be 0000h - 0FFFh.
K.Ohta [Sun, 10 Sep 2023 16:00:20 +0000 (01:00 +0900)]
[VM][FMTOWNS][RF5C68] MEMORY accessing must be 0000h - 0FFFh.

- Fix memory initialize value to 0xFF.
- Fix register values when resetting.
- Also loading address register from ST[ch] when first accessing
  REGISTER 08h (ON_OFF) .
- Add [read|write]_dma_dataXw() , 8bit and 16bit.

8 months ago[VM][FMTOWNS][PLANE_VRAM] Add [read|write]_dma_data8w() .
K.Ohta [Sun, 10 Sep 2023 15:59:26 +0000 (00:59 +0900)]
[VM][FMTOWNS][PLANE_VRAM] Add [read|write]_dma_data8w() .

- Make functions "override" .

8 months ago[VM][FMTOWNS][FONTROM] Remove unused lines.
K.Ohta [Sun, 10 Sep 2023 15:59:02 +0000 (00:59 +0900)]
[VM][FMTOWNS][FONTROM] Remove unused lines.

8 months ago[VM][FMTOWNS][MSDOS] Add [read|write]_dma_dataXw() .
K.Ohta [Sun, 10 Sep 2023 15:58:24 +0000 (00:58 +0900)]
[VM][FMTOWNS][MSDOS] Add [read|write]_dma_dataXw() .

8 months ago[VM][FMTOWNS][FONT_20PIX] Re-Implement correctness.
K.Ohta [Sun, 10 Sep 2023 15:57:41 +0000 (00:57 +0900)]
[VM][FMTOWNS][FONT_20PIX] Re-Implement correctness.

8 months ago[VM][FMTOWNS][DICTIONARY] Optimize memory accessing.
K.Ohta [Sun, 10 Sep 2023 15:56:22 +0000 (00:56 +0900)]
[VM][FMTOWNS][DICTIONARY] Optimize memory accessing.

- Also add [read|write]_dma_data8w().

8 months ago[VM][FMTOWNS][MEMORY] Integrate reading/writing beyond device boundary.
K.Ohta [Sun, 10 Sep 2023 12:35:18 +0000 (21:35 +0900)]
[VM][FMTOWNS][MEMORY] Integrate reading/writing beyond device boundary.

[ToDo] Will add wait penalties to accessing unaligned address.
[ToDo] Will support for 16bit width memory data bus (i.e. i386SX/486SX).

8 months ago[VM][FMTOWNS][MEMORY] Make host-cpu-time usage reduce.
K.Ohta [Sat, 9 Sep 2023 13:35:56 +0000 (22:35 +0900)]
[VM][FMTOWNS][MEMORY] Make host-cpu-time usage reduce.

- Make faster host memory access via [read|wrirte]_Xbit_data() .
- Reduce misaligned penalties for HOST CPU usage.
- Prepare to separate both [read|write]_dataY() and [read|write]_dma_dataY().
- Temporally re-enable to access RAM for CC000h - CFFFFh excepts MMIO,
  even VRAM accessing.

8 months ago[VM][FMTOWNS] I/O: More correctness setting address and permission.
K.Ohta [Tue, 5 Sep 2023 18:03:18 +0000 (03:03 +0900)]
[VM][FMTOWNS] I/O: More correctness setting address and permission.

8 months ago[VM][FMTOWNS][MEMORY] Merge main memory and extra memory to one region.
K.Ohta [Tue, 5 Sep 2023 17:50:29 +0000 (02:50 +0900)]
[VM][FMTOWNS][MEMORY] Merge main memory and extra memory to one region.

- Also make MMIO address accessing CFFxx directly.
- Pad unused bits to '1' when reading I/O 0480h.
- Make calcurate MBytes of extra ram more correctness.
- Fix wrong MMIO accessing for CFF80h - CFFBBh.

8 months ago[VM][FMTOWNS][DICTIONARY] CMOS: ONLY accessble EVEN address via I/O.
K.Ohta [Tue, 5 Sep 2023 17:49:12 +0000 (02:49 +0900)]
[VM][FMTOWNS][DICTIONARY] CMOS: ONLY accessble EVEN address via I/O.

8 months ago[VM][FMTOWNS][MEMORY][MSDOS_ROM] Make accessing of MS-DOS ROM offset model.
K.Ohta [Mon, 4 Sep 2023 18:23:20 +0000 (03:23 +0900)]
[VM][FMTOWNS][MEMORY][MSDOS_ROM] Make accessing of MS-DOS ROM offset model.

- Address accessing of MS-DOS ROM has changed to 00000h - 7FFFFh
  from C2000000h - C207FFFFh .
- I wonder why BANK B0000h has not used by MS-DOS ?
  Maybe mistake of text?

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.