Skip to content

Commit

Permalink
Merge pull request #23 from apolkosnik/MiSTer
Browse files Browse the repository at this point in the history
Fixes to the tg68k, fixes Issue #11. Goraud Pulse in Nexus7 fixed.
  • Loading branch information
sorgelig authored Oct 17, 2019
2 parents 4f6ab6e + f396ea1 commit 9c070e5
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/tg68k/TG68KdotC_Kernel.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -532,11 +532,15 @@ begin
elsif set(briefext) = '1' then
rf_dest_addr <= brief(15 downto 12);
elsif set(get_bfoffset) = '1' then
rf_dest_addr <= sndOPC(9 downto 6);
if opcode(15 downto 12) = "1110" then
rf_dest_addr <= '0' & sndOPC(8 downto 6);
else
rf_dest_addr <= sndOPC(9 downto 6);
end if;
elsif dest_2ndHbits = '1' then
rf_dest_addr <= sndOPC(15 downto 12);
rf_dest_addr <= '0' & sndOPC(14 downto 12);
elsif set(write_reminder) = '1' then
rf_dest_addr <= sndOPC(3 downto 0);
rf_dest_addr <= '0' & sndOPC(2 downto 0);
elsif setstackaddr = '1' then
rf_dest_addr <= "1111";
elsif dest_hbits = '1' then
Expand All @@ -562,9 +566,9 @@ begin
rf_source_addr <= movem_regaddr;
end if;
elsif source_2ndLbits = '1' then
rf_source_addr <= sndOPC(3 downto 0);
rf_source_addr <= '0' & sndOPC(2 downto 0);
elsif source_2ndHbits = '1' then
rf_source_addr <= sndOPC(15 downto 12);
rf_source_addr <= '0' & sndOPC(14 downto 12);
elsif source_lowbits = '1' then
rf_source_addr <= source_areg & opcode(2 downto 0);
elsif exec(linksp) = '1' then
Expand Down

0 comments on commit 9c070e5

Please sign in to comment.