Skip to content

Commit

Permalink
Fixed BEAMCON0 issue (PAL/NTSC switching) (#851)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkwhoffmann committed Dec 26, 2024
1 parent 6cb522d commit 3a225aa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions Emulator/Components/Agnus/AgnusRegs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,7 @@ Agnus::pokeBEAMCON0(u16 value)
// 12: VARVBEN 8: VARHSYEN 4: VARCSYEN 0: HSYTRUE

// PAL
VideoFormat type = GET_BIT(value, 5) ? PAL : NTSC;
if (pos.type != type) agnus.setVideoFormat(type);
amiga.setOption(OPT_AMIGA_VIDEO_FORMAT, GET_BIT(value, 5) ? PAL : NTSC);

// LOLDIS
bool loldis = GET_BIT(value, 11);
Expand Down
2 changes: 0 additions & 2 deletions Emulator/Components/Memory/Memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,6 @@ Memory::alloc(Allocator<u8> &allocator, isize bytes, u32 &mask, bool update)
void
Memory::fillRamWithInitPattern()
{
assert(!isRunning());

switch (config.ramInitPattern) {

case RAM_INIT_RANDOMIZED:
Expand Down
2 changes: 1 addition & 1 deletion Emulator/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ debugflag DMA_DEBUG = 0;
debugflag DDF_DEBUG = 0;
debugflag SEQ_DEBUG = 0;
debugflag SEQ_ON_STEROIDS = 0;
debugflag NTSC_DEBUG = 0;
debugflag NTSC_DEBUG = 1;

// Copper
debugflag COP_CHECKSUM = 0;
Expand Down

0 comments on commit 3a225aa

Please sign in to comment.