This commit is contained in:
thrust26 2025-05-17 23:30:15 +02:00
commit 6a8714fb9b
3 changed files with 8 additions and 4 deletions

View File

@ -136,7 +136,7 @@ void RomListWidget::setList(const CartDebug::Disassembly& disasm)
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void RomListWidget::setSelected(int item)
{
if(item < -1 || item >= static_cast<int>(myDisasm->list.size()))
if(item < -1 || std::cmp_greater_equal(item, myDisasm->list.size()))
return;
if(isEnabled())

View File

@ -103,7 +103,7 @@ class CartridgeAR : public Cartridge
@param bank The bank to get the size for
@return The bank's size
*/
uInt16 bankSize(uInt16 bank = 0) const override { return 4_KB; };
uInt16 bankSize(uInt16 bank) const override { return static_cast<uInt16>(4_KB); };
/**
Patch the cartridge ROM.

View File

@ -47,8 +47,12 @@ class System;
D6 = Audio out to tape player and 4017 CLK
1 -> increase key column (0 to 9)
D5 = 4017 RST, and RAM direction. (high = write, low = read)
1 -> reset key column to 0 (if D4 = 0)
0 -> enable RAM writing (if D4 = 1)
if D4 = 1:
0 -> enable key column CLK via D6
1 -> reset key column to 0 (CLK via D6 disabled)
if D4 = 0:
0 -> enable RAM writing
1 -> enable RAM read
D4 = RAM enable: 1 = disable RAM, 0 = enable RAM
D3 = keyboard row 3 input (0 = key pressed)
D2 = keyboard row 1 input (0 = key pressed)