Skip to content

Commit

Permalink
Removed unused cheat stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
budude2 committed Aug 21, 2024
1 parent 10bf503 commit 18695bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 35 deletions.
7 changes: 0 additions & 7 deletions src/core/core_top.sv
Original file line number Diff line number Diff line change
Expand Up @@ -984,13 +984,6 @@ gb gb
.serial_clk_out ( ser_clk_out ),
.serial_data_out ( port_tran_so ),

// Palette download will disable cheats option (HPS doesn't distinguish downloads),
// so clear the cheats and disable second option (chheats enable/disable)
.gg_reset ( 0 ),
.gg_en ( 0 ),
.gg_code ( 0 ),
.gg_available ( ),

// savestates
.cart_ram_size ( cart_ram_size ),
.save_state ( ss_save ),
Expand Down
33 changes: 5 additions & 28 deletions src/gb/gb.v
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module gb (

// Bootrom features
input boot_gba_en,
input fast_boot_en,
input fast_boot_en,

// audio
output [15:0] audio_l,
Expand All @@ -75,11 +75,6 @@ module gb (

output speed, //GBC
output DMA_on,

input gg_reset,
input gg_en,
input [128:0] gg_code,
output gg_available,

//serial port
output sc_int_clock2,
Expand Down Expand Up @@ -318,8 +313,6 @@ wire cpu_wr_n_edge = ~(old_cpu_wr_n & ~cpu_wr_n);

wire cpu_stop;

wire genie_ovr;
wire [7:0] genie_data;
wire [15:0] cpu_addr_raw;

wire [7:0] snd_d_in;
Expand All @@ -338,7 +331,7 @@ megaduck_swizzle md_swizz
);

GBse cpu (
.RESET_n ( !reset_ss ),
.RESET_n ( !reset_ss ),
.CLK_n ( clk_sys ),
.CLKEN ( cpu_clken ),
.WAIT_n ( 1'b1 ),
Expand All @@ -353,11 +346,11 @@ GBse cpu (
.RFSH_n ( ),
.HALT_n ( ),
.BUSAK_n ( ),
.A ( cpu_addr_raw ),
.DI ( genie_ovr ? genie_data : cpu_di),
.A ( cpu_addr_raw ),
.DI ( cpu_di ),
.DO ( cpu_do ),
.STOP ( cpu_stop ),
.isGBC ( isGBC ),
.isGBC ( isGBC ),
// savestates
.SaveStateBus_Din (SaveStateBus_Din ),
.SaveStateBus_Adr (SaveStateBus_Adr ),
Expand All @@ -366,22 +359,6 @@ GBse cpu (
.SaveStateBus_Dout (SaveStateBus_wired_or[0])
);

// --------------------------------------------------------------------
// --------------------------- Cheat Engine ---------------------------
// --------------------------------------------------------------------

CODES codes (
.clk (clk_sys),
.reset (gg_reset),
.enable (gg_en),
.addr_in (cpu_addr),
.data_in (cpu_di),
.available (gg_available),
.code (gg_code),
.genie_ovr (genie_ovr),
.genie_data (genie_data)
);

// --------------------------------------------------------------------
// --------------------- GBC/DMG mode KEY0 (GBC) ----------------------
// --------------------------------------------------------------------
Expand Down

0 comments on commit 18695bd

Please sign in to comment.