mirror of
https://github.com/mist-devel/mist-board.git
synced 2026-02-07 00:17:07 +00:00
[C64] Use the RDY line of the CPU
...to not miss NMI edges. Fixes Turbo Outrun samples.
This commit is contained in:
@@ -28,6 +28,7 @@ entity cpu_6510 is
|
||||
nmi_n : in std_logic;
|
||||
nmi_ack : out std_logic;
|
||||
irq_n : in std_logic;
|
||||
rdy : in std_logic;
|
||||
|
||||
di : in unsigned(7 downto 0);
|
||||
do : out unsigned(7 downto 0);
|
||||
@@ -60,7 +61,7 @@ begin
|
||||
Res_n => not reset,
|
||||
Enable => enable,
|
||||
Clk => clk,
|
||||
Rdy => '1',
|
||||
Rdy => rdy,
|
||||
Abort_n => '1',
|
||||
IRQ_n => irq_n,
|
||||
NMI_n => nmi_n,
|
||||
|
||||
@@ -372,10 +372,7 @@ begin
|
||||
enableVic <= '1';
|
||||
when CYCLE_CPUE =>
|
||||
enableVic <= '1';
|
||||
if baLoc = '1'
|
||||
or cpuWe = '1' then
|
||||
enableCpu <= '1';
|
||||
end if;
|
||||
enableCpu <= '1';
|
||||
when CYCLE_CPUF =>
|
||||
enableCia <= '1';
|
||||
when others =>
|
||||
@@ -616,7 +613,7 @@ div1m: process(clk32) -- this process devides 32 MHz to 1MHz (for the SID)
|
||||
audio_data => audio_8580,
|
||||
extfilter_en => extfilter_en
|
||||
);
|
||||
|
||||
|
||||
-- -----------------------------------------------------------------------
|
||||
-- CIAs
|
||||
-- -----------------------------------------------------------------------
|
||||
@@ -686,6 +683,7 @@ div1m: process(clk32) -- this process devides 32 MHz to 1MHz (for the SID)
|
||||
nmi_n => nmiLoc,
|
||||
nmi_ack => nmi_ack,
|
||||
irq_n => irqLoc,
|
||||
rdy => baLoc,
|
||||
|
||||
di => cpuDi,
|
||||
addr => cpuAddr,
|
||||
|
||||
Reference in New Issue
Block a user