yaze 0.2.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::test Namespace Reference

Namespaces

namespace  anonymous_namespace{compression_test.cc}
 
namespace  anonymous_namespace{snes_palette_test.cc}
 
namespace  integration
 

Classes

struct  ApuCallbacks
 
class  AsmParser
 
class  AudioRam
 AudioRam is an interface for the Audio RAM used by the SPC700. More...
 
struct  CompressionContext
 
struct  CompressionPiece
 
class  Cpu
 
struct  CpuCallbacks
 
class  CpuTest
 
class  DungeonRoomTest
 
class  MessageTest
 
class  MockAudioRam
 MockAudioRam is a mock class for the AudioRam class. More...
 
class  MockMemory
 A mock implementation of the Memory class. More...
 
class  MockPpu
 Mock Ppu class for testing. More...
 
class  MockRom
 
class  OverworldTest
 
class  PpuInterface
 
class  PpuTest
 
class  Rom
 The Rom class is used to load, save, and modify Rom data. More...
 
class  RomTest
 
class  Spc700
 The Spc700 class represents the SPC700 processor. More...
 
class  Spc700Test
 
struct  SpriteAttributes
 
class  SpriteBuilderTest
 
struct  Tilemap
 

Enumerations

enum class  BackgroundMode
 

Functions

 TEST_F (CpuTest, AsmParserTokenizerOk)
 
 TEST_F (CpuTest, AsmParserSingleInstructionOk)
 
 TEST_F (CpuTest, CheckMemoryContents)
 
 TEST_F (CpuTest, ADC_CheckCarryFlag)
 
 TEST_F (CpuTest, ADC_DirectPageIndexedIndirectX)
 
 TEST_F (CpuTest, ADC_StackRelative)
 
 TEST_F (CpuTest, ADC_DirectPage)
 
 TEST_F (CpuTest, ADC_DirectPageIndirectLong)
 
 TEST_F (CpuTest, ADC_Immediate_TwoPositiveNumbers)
 
 TEST_F (CpuTest, ADC_Immediate_PositiveAndNegativeNumbers)
 
 TEST_F (CpuTest, ADC_Absolute)
 
 TEST_F (CpuTest, ADC_AbsoluteLong)
 
 TEST_F (CpuTest, ADC_DirectPageIndirectIndexedY)
 
 TEST_F (CpuTest, ADC_DirectPageIndirect)
 
 TEST_F (CpuTest, ADC_StackRelativeIndirectIndexedY)
 
 TEST_F (CpuTest, ADC_DirectPageIndexedX)
 
 TEST_F (CpuTest, ADC_DirectPageIndirectLongIndexedY)
 
 TEST_F (CpuTest, ADC_AbsoluteIndexedY)
 
 TEST_F (CpuTest, ADC_AbsoluteIndexedX)
 
 TEST_F (CpuTest, ADC_AbsoluteLongIndexedX)
 
 TEST_F (CpuTest, AND_DirectPageIndexedIndirectX)
 
 TEST_F (CpuTest, AND_StackRelative)
 
 TEST_F (CpuTest, AND_DirectPage)
 
 TEST_F (CpuTest, AND_DirectPageIndirectLong)
 
 TEST_F (CpuTest, AND_Immediate)
 
 TEST_F (CpuTest, AND_Absolute_16BitMode)
 
 TEST_F (CpuTest, AND_AbsoluteLong)
 
 TEST_F (CpuTest, AND_DirectPageIndirectIndexedY)
 
 TEST_F (CpuTest, AND_DirectPageIndirect)
 
 TEST_F (CpuTest, AND_StackRelativeIndirectIndexedY)
 
 TEST_F (CpuTest, AND_DirectPageIndexedX)
 
 TEST_F (CpuTest, AND_DirectPageIndirectLongIndexedY)
 
 TEST_F (CpuTest, AND_AbsoluteIndexedY)
 
 TEST_F (CpuTest, AND_AbsoluteIndexedX)
 
 TEST_F (CpuTest, AND_AbsoluteLongIndexedX)
 
 TEST_F (CpuTest, ASL_DirectPage)
 
 TEST_F (CpuTest, ASL_Accumulator)
 
 TEST_F (CpuTest, ASL_Absolute)
 
 TEST_F (CpuTest, ASL_DirectPageIndexedX)
 
 TEST_F (CpuTest, ASL_AbsoluteIndexedX)
 
 TEST_F (CpuTest, BCC_WhenCarryFlagClear)
 
 TEST_F (CpuTest, BCC_WhenCarryFlagSet)
 
 TEST_F (CpuTest, BCS_WhenCarryFlagSet)
 
 TEST_F (CpuTest, BCS_WhenCarryFlagClear)
 
 TEST_F (CpuTest, BEQ_Immediate_ZeroFlagSet)
 
 TEST_F (CpuTest, BEQ_Immediate_ZeroFlagClear)
 
 TEST_F (CpuTest, BEQ_Immediate_ZeroFlagSet_OverflowFlagSet)
 
 TEST_F (CpuTest, BEQ_Immediate_ZeroFlagClear_OverflowFlagSet)
 
 TEST_F (CpuTest, BIT_DirectPage)
 
 TEST_F (CpuTest, BIT_Absolute)
 
 TEST_F (CpuTest, BIT_DirectPageIndexedX)
 
 TEST_F (CpuTest, BIT_AbsoluteIndexedX)
 
 TEST_F (CpuTest, BIT_Immediate)
 
 TEST_F (CpuTest, BMI_BranchTaken)
 
 TEST_F (CpuTest, BMI_BranchNotTaken)
 
 TEST_F (CpuTest, BNE_BranchTaken)
 
 TEST_F (CpuTest, BNE_BranchNotTaken)
 
 TEST_F (CpuTest, BPL_BranchTaken)
 
 TEST_F (CpuTest, BPL_BranchNotTaken)
 
 TEST_F (CpuTest, BRA)
 
 TEST_F (CpuTest, BRK)
 
 TEST_F (CpuTest, BRL)
 
 TEST_F (CpuTest, BVC_BranchTaken)
 
 TEST_F (CpuTest, BVS_BranchTaken)
 
 TEST_F (CpuTest, CLC)
 
 TEST_F (CpuTest, CLD)
 
 TEST_F (CpuTest, CLI)
 
 TEST_F (CpuTest, CLV)
 
 TEST_F (CpuTest, CMP_DirectPageIndexedIndirectX)
 
 TEST_F (CpuTest, CMP_StackRelative)
 
 TEST_F (CpuTest, CMP_DirectPage)
 
 TEST_F (CpuTest, CMP_DirectPageIndirectLong)
 
 TEST_F (CpuTest, CMP_Immediate_8Bit)
 
 TEST_F (CpuTest, CMP_Absolute_16Bit)
 
 TEST_F (CpuTest, CMP_AbsoluteLong)
 
 TEST_F (CpuTest, CMP_DirectPageIndirect)
 
 TEST_F (CpuTest, CMP_StackRelativeIndirectIndexedY)
 
 TEST_F (CpuTest, CMP_DirectPageIndexedX)
 
 TEST_F (CpuTest, CMP_DirectPageIndirectLongIndexedY)
 
 TEST_F (CpuTest, CMP_AbsoluteIndexedY)
 
 TEST_F (CpuTest, CMP_AbsoluteIndexedX)
 
 TEST_F (CpuTest, CMP_AbsoluteLongIndexedX)
 
 TEST_F (CpuTest, COP)
 
 TEST_F (CpuTest, CPX_Immediate_ZeroFlagSet)
 
 TEST_F (CpuTest, CPX_Immediate_NegativeFlagSet)
 
 TEST_F (CpuTest, CPX_DirectPage)
 
 TEST_F (CpuTest, CPX_Absolute)
 
 TEST_F (CpuTest, CPY_Immediate_ZeroFlagSet)
 
 TEST_F (CpuTest, CPY_Immediate_NegativeFlagSet)
 
 TEST_F (CpuTest, CPY_DirectPage)
 
 TEST_F (CpuTest, CPY_Absolute)
 
 TEST_F (CpuTest, DEC_Accumulator)
 
 TEST_F (CpuTest, DEC_DirectPage)
 
 TEST_F (CpuTest, DEC_Absolute)
 
 TEST_F (CpuTest, DEC_DirectPageIndexedX)
 
 TEST_F (CpuTest, DEC_AbsoluteIndexedX)
 
 TEST_F (CpuTest, DEX)
 
 TEST_F (CpuTest, DEY)
 
 TEST_F (CpuTest, EOR_DirectPageIndexedIndirectX)
 
 TEST_F (CpuTest, EOR_StackRelative)
 
 TEST_F (CpuTest, EOR_DirectPage)
 
 TEST_F (CpuTest, EOR_DirectPageIndirectLong)
 
 TEST_F (CpuTest, EOR_Immediate_8bit)
 
 TEST_F (CpuTest, EOR_Absolute)
 
 TEST_F (CpuTest, EOR_AbsoluteLong)
 
 TEST_F (CpuTest, EOR_DirectPageIndirectIndexedY)
 
 TEST_F (CpuTest, EOR_DirectPageIndirect)
 
 TEST_F (CpuTest, EOR_StackRelativeIndirectIndexedY)
 
 TEST_F (CpuTest, EOR_DirectPageIndexedX)
 
 TEST_F (CpuTest, EOR_DirectPageIndirectLongIndexedY)
 
 TEST_F (CpuTest, EOR_AbsoluteIndexedY)
 
 TEST_F (CpuTest, EOR_AbsoluteIndexedX)
 
 TEST_F (CpuTest, EOR_AbsoluteLongIndexedX)
 
 TEST_F (CpuTest, INC_Accumulator)
 
 TEST_F (CpuTest, INC_DirectPage_8bit)
 
 TEST_F (CpuTest, INC_Absolute_16bit)
 
 TEST_F (CpuTest, INC_DirectPage_ZeroResult_8bit)
 
 TEST_F (CpuTest, INC_Absolute_ZeroResult_16bit)
 
 TEST_F (CpuTest, INC_DirectPage_8bit_Overflow)
 
 TEST_F (CpuTest, INC_DirectPageIndexedX_8bit)
 
 TEST_F (CpuTest, INC_AbsoluteIndexedX_16bit)
 
 TEST_F (CpuTest, INX)
 
 TEST_F (CpuTest, INY)
 
 TEST_F (CpuTest, JMP_Absolute)
 
 TEST_F (CpuTest, JMP_Indirect)
 
 TEST_F (CpuTest, JML_AbsoluteLong)
 
 TEST_F (CpuTest, JMP_AbsoluteIndexedIndirectX)
 
 TEST_F (CpuTest, JMP_AbsoluteIndirectLong)
 
 TEST_F (CpuTest, JSR_Absolute)
 
 TEST_F (CpuTest, JSL_AbsoluteLong)
 
 TEST_F (CpuTest, JSL_AbsoluteIndexedIndirect)
 
 TEST_F (CpuTest, LDA_DirectPageIndexedIndirectX)
 
 TEST_F (CpuTest, LDA_StackRelative)
 
 TEST_F (CpuTest, LDA_DirectPage)
 
 TEST_F (CpuTest, LDA_DirectPageIndirectLong)
 
 TEST_F (CpuTest, LDA_Immediate_8bit)
 
 TEST_F (CpuTest, LDA_Immediate_16bit)
 
 TEST_F (CpuTest, LDA_Absolute)
 
 TEST_F (CpuTest, LDA_AbsoluteLong)
 
 TEST_F (CpuTest, LDA_DirectPageIndirectIndexedY)
 
 TEST_F (CpuTest, LDA_DirectPageIndirect)
 
 TEST_F (CpuTest, LDA_StackRelativeIndirectIndexedY)
 
 TEST_F (CpuTest, LDA_DirectPageIndexedX)
 
 TEST_F (CpuTest, LDA_DirectPageIndirectLongIndexedY)
 
 TEST_F (CpuTest, LDA_AbsoluteIndexedY)
 
 TEST_F (CpuTest, LDA_AbsoluteIndexedX)
 
 TEST_F (CpuTest, LDA_AbsoluteLongIndexedX)
 
 TEST_F (CpuTest, LDX_Immediate)
 
 TEST_F (CpuTest, LDX_DirectPage)
 
 TEST_F (CpuTest, LDX_Absolute)
 
 TEST_F (CpuTest, LDX_DirectPageIndexedY)
 
 TEST_F (CpuTest, LDX_AbsoluteIndexedY)
 
 TEST_F (CpuTest, LDY_Immediate)
 
 TEST_F (CpuTest, LDY_DirectPage)
 
 TEST_F (CpuTest, LDY_Absolute)
 
 TEST_F (CpuTest, LDY_DirectPageIndexedX)
 
 TEST_F (CpuTest, LDY_AbsoluteIndexedX)
 
 TEST_F (CpuTest, LSR_DirectPage)
 
 TEST_F (CpuTest, LSR_Accumulator)
 
 TEST_F (CpuTest, LSR_Absolute)
 
 TEST_F (CpuTest, LSR_DirectPageIndexedX)
 
 TEST_F (CpuTest, LSR_AbsoluteIndexedX)
 
 TEST_F (CpuTest, ORA_DirectPageIndexedIndirectX)
 
 TEST_F (CpuTest, ORA_StackRelative)
 
 TEST_F (CpuTest, ORA_DirectPage)
 
 TEST_F (CpuTest, ORA_DirectPageIndirectLong)
 
 TEST_F (CpuTest, ORA_Immediate)
 
 TEST_F (CpuTest, ORA_Absolute)
 
 TEST_F (CpuTest, ORA_AbsoluteLong)
 
 TEST_F (CpuTest, ORA_DirectPageIndirectIndexedY)
 
 TEST_F (CpuTest, ORA_DirectPageIndirect)
 
 TEST_F (CpuTest, ORA_StackRelativeIndirectIndexedY)
 
 TEST_F (CpuTest, ORA_DirectPageIndexedX)
 
 TEST_F (CpuTest, ORA_DirectPageIndirectLongIndexedY)
 
 TEST_F (CpuTest, ORA_AbsoluteIndexedY)
 
 TEST_F (CpuTest, ORA_AbsoluteIndexedX)
 
 TEST_F (CpuTest, ORA_AbsoluteLongIndexedX)
 
 TEST_F (CpuTest, PEA)
 
 TEST_F (CpuTest, PEI)
 
 TEST_F (CpuTest, PER)
 
 TEST_F (CpuTest, PHD)
 
 TEST_F (CpuTest, PHK)
 
 TEST_F (CpuTest, PHP)
 
 TEST_F (CpuTest, PHX)
 
 TEST_F (CpuTest, PHY)
 
 TEST_F (CpuTest, PHB)
 
 TEST_F (CpuTest, PHA)
 
 TEST_F (CpuTest, PHA_16Bit)
 
 TEST_F (CpuTest, PLA)
 
 TEST_F (CpuTest, PLA_16Bit)
 
 TEST_F (CpuTest, PLB)
 
 TEST_F (CpuTest, PLD)
 
 TEST_F (CpuTest, PLP)
 
 TEST_F (CpuTest, PLX)
 
 TEST_F (CpuTest, PLX_16Bit)
 
 TEST_F (CpuTest, PLY)
 
 TEST_F (CpuTest, PLY_16Bit)
 
 TEST_F (CpuTest, REP)
 
 TEST_F (CpuTest, REP_16Bit)
 
 TEST_F (CpuTest, PHA_PLA_Ok)
 
 TEST_F (CpuTest, PHP_PLP_Ok)
 
 TEST_F (CpuTest, PHA_PushAccumulator)
 
 TEST_F (CpuTest, PHP_PushProcessorStatusRegister)
 
 TEST_F (CpuTest, PHX_PushXRegister)
 
 TEST_F (CpuTest, PHY_PushYRegister)
 
 TEST_F (CpuTest, PHB_PushDataBankRegister)
 
 TEST_F (CpuTest, PHD_PushDirectPageRegister)
 
 TEST_F (CpuTest, PHK_PushProgramBankRegister)
 
 TEST_F (CpuTest, PLA_PullAccumulator)
 
 TEST_F (CpuTest, PLP_PullProcessorStatusRegister)
 
 TEST_F (CpuTest, PLX_PullXRegister)
 
 TEST_F (CpuTest, PLY_PullYRegister)
 
 TEST_F (CpuTest, PLB_PullDataBankRegister)
 
 TEST_F (CpuTest, PLD_PullDirectPageRegister)
 
 TEST_F (CpuTest, SEP)
 
 TEST_F (CpuTest, ROL_DirectPage)
 
 TEST_F (CpuTest, ROL_Accumulator)
 
 TEST_F (CpuTest, ROL_Absolute)
 
 TEST_F (CpuTest, ROL_DirectPageIndexedX)
 
 TEST_F (CpuTest, ROL_AbsoluteIndexedX)
 
 TEST_F (CpuTest, ROR_DirectPage)
 
 TEST_F (CpuTest, ROR_Accumulator)
 
 TEST_F (CpuTest, ROR_Absolute)
 
 TEST_F (CpuTest, ROR_DirectPageIndexedX)
 
 TEST_F (CpuTest, ROR_AbsoluteIndexedX)
 
 TEST_F (CpuTest, RTI)
 
 TEST_F (CpuTest, RTL)
 
 TEST_F (CpuTest, RTS)
 
 TEST_F (CpuTest, SBC_DirectPageIndexedIndirectX)
 
 TEST_F (CpuTest, SBC_StackRelative)
 
 TEST_F (CpuTest, SBC_DirectPage)
 
 TEST_F (CpuTest, SBC_DirectPageIndirectLong)
 
 TEST_F (CpuTest, SBC_Immediate)
 
 TEST_F (CpuTest, SBC_Absolute)
 
 TEST_F (CpuTest, SBC_AbsoluteLong)
 
 TEST_F (CpuTest, SBC_DirectPageIndirectIndexedY)
 
 TEST_F (CpuTest, SBC_DirectPageIndirect)
 
 TEST_F (CpuTest, SBC_StackRelativeIndirectIndexedY)
 
 TEST_F (CpuTest, SBC_DirectPageIndexedX)
 
 TEST_F (CpuTest, SBC_DirectPageIndirectLongIndexedY)
 
 TEST_F (CpuTest, SBC_AbsoluteIndexedY)
 
 TEST_F (CpuTest, SBC_AbsoluteIndexedX)
 
 TEST_F (CpuTest, SBC_AbsoluteLongIndexedX)
 
 TEST_F (CpuTest, SEC)
 
 TEST_F (CpuTest, SED)
 
 TEST_F (CpuTest, SEI)
 
 TEST_F (CpuTest, SEP_8Bit)
 
 TEST_F (CpuTest, SEP_16Bit)
 
 TEST_F (CpuTest, STA_DirectPageIndexedIndirectX)
 
 TEST_F (CpuTest, STA_StackRelative)
 
 TEST_F (CpuTest, STA_DirectPage)
 
 TEST_F (CpuTest, STA_DirectPageIndirectLong)
 
 TEST_F (CpuTest, STA_Absolute)
 
 TEST_F (CpuTest, STA_AbsoluteLong)
 
 TEST_F (CpuTest, STA_DirectPageIndirectIndexedY)
 
 TEST_F (CpuTest, STA_DirectPageIndirect)
 
 TEST_F (CpuTest, STA_StackRelativeIndirectIndexedY)
 
 TEST_F (CpuTest, STA_DirectPageIndexedX)
 
 TEST_F (CpuTest, STA_DirectPageIndirectLongIndexedY)
 
 TEST_F (CpuTest, STA_AbsoluteIndexedY)
 
 TEST_F (CpuTest, STA_AbsoluteIndexedX)
 
 TEST_F (CpuTest, STA_AbsoluteLongIndexedX)
 
 TEST_F (CpuTest, STP)
 
 TEST_F (CpuTest, STX_DirectPage)
 
 TEST_F (CpuTest, STX_Absolute)
 
 TEST_F (CpuTest, STX_DirectPageIndexedY)
 
 TEST_F (CpuTest, STY_DirectPage)
 
 TEST_F (CpuTest, STY_Absolute)
 
 TEST_F (CpuTest, STY_DirectPageIndexedX)
 
 TEST_F (CpuTest, STZ_DirectPage)
 
 TEST_F (CpuTest, STZ_DirectPageIndexedX)
 
 TEST_F (CpuTest, STZ_Absolute)
 
 TEST_F (CpuTest, TAX)
 
 TEST_F (CpuTest, TAY)
 
 TEST_F (CpuTest, TCD)
 
 TEST_F (CpuTest, TCS)
 
 TEST_F (CpuTest, TDC)
 
 TEST_F (CpuTest, TRB_DirectPage)
 
 TEST_F (CpuTest, TRB_Absolute)
 
 TEST_F (CpuTest, TSB_DirectPage)
 
 TEST_F (CpuTest, TSB_Absolute)
 
 TEST_F (CpuTest, TSC)
 
 TEST_F (CpuTest, TSX)
 
 TEST_F (CpuTest, TXA)
 
 TEST_F (CpuTest, TXS)
 
 TEST_F (CpuTest, TXY)
 
 TEST_F (CpuTest, TYA)
 
 TEST_F (CpuTest, TYX)
 
 TEST_F (CpuTest, WAI)
 
 TEST_F (CpuTest, WDM)
 
 TEST_F (CpuTest, XBA)
 
 TEST_F (CpuTest, XCESwitchToNativeMode)
 
 TEST_F (CpuTest, XCESwitchToEmulationMode)
 
 TEST_F (CpuTest, XCESwitchBackAndForth)
 
 TEST_F (Spc700Test, MOV_A_Immediate)
 
 TEST_F (Spc700Test, MOV_A_X)
 
 TEST_F (Spc700Test, MOV_A_Y)
 
 TEST_F (Spc700Test, MOV_A_dp)
 
 TEST_F (Spc700Test, MOV_A_dp_plus_x)
 
 TEST_F (Spc700Test, MOV_A_dp_indirect_plus_y)
 
 TEST_F (Spc700Test, MOV_A_dp_plus_x_indirect)
 
 TEST_F (Spc700Test, MOV_A_abs)
 
 TEST_F (Spc700Test, MOV_Immediate)
 
 TEST_F (Spc700Test, NOP_DoesNothing)
 
 TEST_F (Spc700Test, ADC_A_Immediate)
 
 TEST_F (Spc700Test, BEQ_BranchesIfZeroFlagSet)
 
 TEST_F (Spc700Test, STA_Absolute)
 
 TEST_F (Spc700Test, ExecuteADCWithImmediate)
 
 TEST_F (Spc700Test, ExecuteBRA)
 
 TEST_F (Spc700Test, ReadFromAudioRAM)
 
 TEST_F (Spc700Test, WriteToAudioRAM)
 
 TEST_F (Spc700Test, ExecuteANDWithImmediate)
 
 TEST_F (Spc700Test, ExecuteORWithImmediate)
 
 TEST_F (Spc700Test, ExecuteEORWithImmediate)
 
 TEST_F (Spc700Test, ExecuteINC)
 
 TEST_F (Spc700Test, ExecuteDEC)
 
 TEST_F (Spc700Test, ExecuteBNEWhenNotEqual)
 
 TEST_F (Spc700Test, ExecuteBNEWhenEqual)
 
 TEST_F (Spc700Test, ExecuteBEQWhenEqual)
 
 TEST_F (Spc700Test, ExecuteBEQWhenNotEqual)
 
 TEST_F (Spc700Test, BootIplRomOk)
 
 TEST (LC_LZ2_CompressionTest, TrivialRepeatedBytes)
 
 TEST (LC_LZ2_CompressionTest, RepeatedBytesBetweenUncompressable)
 
 TEST (LC_LZ2_CompressionTest, RepeatedBytesBeforeUncompressable)
 
 TEST (LC_LZ2_CompressionTest, RepeatedBytesAfterUncompressable)
 
 TEST (LC_LZ2_CompressionTest, RepeatedBytesAfterUncompressableRepeated)
 
 TEST (LC_LZ2_CompressionTest, RepeatedBytesBeforeUncompressableRepeated)
 
 TEST (LC_LZ2_CompressionTest, NewDecompressionPieceOk)
 
 TEST (LC_LZ2_CompressionTest, CompressionSingleSet)
 
 TEST (LC_LZ2_CompressionTest, CompressionSingleWord)
 
 TEST (LC_LZ2_CompressionTest, CompressionSingleIncrement)
 
 TEST (LC_LZ2_CompressionTest, CompressionSingleCopy)
 
 TEST (LC_LZ2_CompressionTest, CompressionSingleOverflowIncrement)
 
 TEST (HandleDirectCopyTest, NotDirectCopyWithAccumulatedBytes)
 
 TEST (HandleDirectCopyTest, NotDirectCopyWithoutAccumulatedBytes)
 
 TEST (HandleDirectCopyTest, AccumulateBytesWithoutMax)
 
 TEST (CheckIncByteV3Test, IncreasingSequence)
 
 TEST (CheckIncByteV3Test, IncreasingSequenceSurroundedByIdenticalBytes)
 
 TEST (CheckIncByteV3Test, NotAnIncreasingSequence)
 
 TEST (LC_LZ2_CompressionTest, DecompressionValidCommand)
 
 TEST (LC_LZ2_CompressionTest, DecompressionMixingCommand)
 
 TEST (SnesPaletteTest, AddColor)
 
 TEST (SnesColorTest, ConvertRgbToSnes)
 
 TEST (SnesColorTest, ConvertSnestoRGB)
 
 TEST (SnesColorTest, ConvertSnesToRGB_Binary)
 
 TEST (SnesColorTest, Extraction)
 
 TEST (SnesColorTest, Convert)
 
 TEST_F (RomTest, Uninitialized)
 
 TEST_F (RomTest, LoadFromFile)
 
 TEST_F (RomTest, LoadFromFileInvalid)
 
 TEST_F (RomTest, LoadFromFileEmpty)
 
 TEST_F (RomTest, ReadByteOk)
 
 TEST_F (RomTest, ReadByteInvalid)
 
 TEST_F (RomTest, ReadWordOk)
 
 TEST_F (RomTest, ReadWordInvalid)
 
 TEST_F (RomTest, ReadLongOk)
 
 TEST_F (RomTest, ReadBytesOk)
 
 TEST_F (RomTest, ReadBytesOutOfRange)
 
 TEST_F (RomTest, WriteByteOk)
 
 TEST_F (RomTest, WriteWordOk)
 
 TEST_F (RomTest, WriteLongOk)
 
 TEST_F (RomTest, WriteTransactionSuccess)
 
 TEST_F (RomTest, WriteTransactionFailure)
 
 TEST_F (RomTest, ReadTransactionSuccess)
 
 TEST_F (RomTest, ReadTransactionFailure)
 
 MATCHER_P (StatusIs, status, "")
 
template<typename T>
::testing::AssertionResult IsOkAndHolds (const absl::StatusOr< T > &status_or, const T &value)
 
 MATCHER_P (IsOkAndHolds, value, "")
 
 TEST_F (DungeonRoomTest, SingleRoomLoadOk)
 
 TEST_F (MessageTest, LoadMessagesFromRomOk)
 
 TEST_F (MessageTest, VerifySingleMessageFromRomOk)
 
 TEST_F (MessageTest, ParseSingleMessage_CommandParsing)
 
 TEST_F (MessageTest, ParseSingleMessage_BasicAscii)
 
 TEST_F (OverworldTest, OverworldLoadNoRomDataError)
 
 TEST_F (OverworldTest, OverworldLoadRomDataOk)
 
 TEST_F (SpriteBuilderTest, BuildSpritePropertiesOk)
 
absl::StatusOr< std::vector< uint8_t > > CompressV2 (const uint8_t *data, const int start, const int length, int mode=1, bool check=false)
 Compresses a buffer of data using the LC_LZ2 algorithm.
 
absl::StatusOr< std::vector< uint8_t > > CompressV3 (const std::vector< uint8_t > &data, const int start, const int length, int mode=1, bool check=false)
 Compresses a buffer of data using the LC_LZ2 algorithm.
 
absl::StatusOr< std::vector< uint8_t > > DecompressV2 (const uint8_t *data, int offset, int size=0x800, int mode=1)
 Decompresses a buffer of data using the LC_LZ2 algorithm.
 
uint16_t ConvertRgbToSnes (const snes_color &color)
 
snes_color ConvertSnesToRgb (uint16_t color_snes)
 
std::vector< snes_colorExtract (const char *data, unsigned int offset, unsigned int palette_size)
 

Variables

constexpr int kCommandByteFill
 
constexpr int kCommandDirectCopy
 
constexpr int kCommandIncreasingFill
 
constexpr int kCommandLongLength
 
constexpr int kCommandRepeatingBytes
 
constexpr int kCommandWordFill
 

Enumeration Type Documentation

◆ BackgroundMode

enum class yaze::emu::BackgroundMode
strong

Definition at line 25 of file ppu.h.

Function Documentation

◆ TEST_F() [1/347]

yaze::test::TEST_F ( CpuTest ,
AsmParserTokenizerOk  )

Definition at line 44 of file cpu_test.cc.

References yaze::emu::AsmParser::Tokenize().

Referenced by TEST_F(), TEST_F(), and TEST_F().

Here is the call graph for this function:

◆ TEST_F() [2/347]

yaze::test::TEST_F ( CpuTest ,
AsmParserSingleInstructionOk  )

Definition at line 60 of file cpu_test.cc.

References yaze::emu::AsmParser::Parse(), and yaze::emu::AsmParser::Tokenize().

Here is the call graph for this function:

◆ TEST_F() [3/347]

yaze::test::TEST_F ( CpuTest ,
CheckMemoryContents  )

Definition at line 72 of file cpu_test.cc.

References yaze::emu::Memory::ReadByte(), and yaze::emu::MockMemory::SetMemoryContents().

Here is the call graph for this function:

◆ TEST_F() [4/347]

yaze::test::TEST_F ( CpuTest ,
ADC_CheckCarryFlag  )

Definition at line 95 of file cpu_test.cc.

◆ TEST_F() [5/347]

yaze::test::TEST_F ( CpuTest ,
ADC_DirectPageIndexedIndirectX  )

Definition at line 107 of file cpu_test.cc.

◆ TEST_F() [6/347]

yaze::test::TEST_F ( CpuTest ,
ADC_StackRelative  )

Definition at line 124 of file cpu_test.cc.

◆ TEST_F() [7/347]

yaze::test::TEST_F ( CpuTest ,
ADC_DirectPage  )

Definition at line 138 of file cpu_test.cc.

◆ TEST_F() [8/347]

yaze::test::TEST_F ( CpuTest ,
ADC_DirectPageIndirectLong  )

Definition at line 152 of file cpu_test.cc.

◆ TEST_F() [9/347]

yaze::test::TEST_F ( CpuTest ,
ADC_Immediate_TwoPositiveNumbers  )

Definition at line 168 of file cpu_test.cc.

◆ TEST_F() [10/347]

yaze::test::TEST_F ( CpuTest ,
ADC_Immediate_PositiveAndNegativeNumbers  )

Definition at line 180 of file cpu_test.cc.

◆ TEST_F() [11/347]

yaze::test::TEST_F ( CpuTest ,
ADC_Absolute  )

Definition at line 192 of file cpu_test.cc.

◆ TEST_F() [12/347]

yaze::test::TEST_F ( CpuTest ,
ADC_AbsoluteLong  )

Definition at line 206 of file cpu_test.cc.

◆ TEST_F() [13/347]

yaze::test::TEST_F ( CpuTest ,
ADC_DirectPageIndirectIndexedY  )

Definition at line 220 of file cpu_test.cc.

◆ TEST_F() [14/347]

yaze::test::TEST_F ( CpuTest ,
ADC_DirectPageIndirect  )

Definition at line 237 of file cpu_test.cc.

◆ TEST_F() [15/347]

yaze::test::TEST_F ( CpuTest ,
ADC_StackRelativeIndirectIndexedY  )

Definition at line 253 of file cpu_test.cc.

◆ TEST_F() [16/347]

yaze::test::TEST_F ( CpuTest ,
ADC_DirectPageIndexedX  )

Definition at line 270 of file cpu_test.cc.

◆ TEST_F() [17/347]

yaze::test::TEST_F ( CpuTest ,
ADC_DirectPageIndirectLongIndexedY  )

Definition at line 285 of file cpu_test.cc.

◆ TEST_F() [18/347]

yaze::test::TEST_F ( CpuTest ,
ADC_AbsoluteIndexedY  )

Definition at line 302 of file cpu_test.cc.

◆ TEST_F() [19/347]

yaze::test::TEST_F ( CpuTest ,
ADC_AbsoluteIndexedX  )

Definition at line 318 of file cpu_test.cc.

◆ TEST_F() [20/347]

yaze::test::TEST_F ( CpuTest ,
ADC_AbsoluteLongIndexedX  )

Definition at line 336 of file cpu_test.cc.

◆ TEST_F() [21/347]

yaze::test::TEST_F ( CpuTest ,
AND_DirectPageIndexedIndirectX  )

Definition at line 355 of file cpu_test.cc.

◆ TEST_F() [22/347]

yaze::test::TEST_F ( CpuTest ,
AND_StackRelative  )

Definition at line 379 of file cpu_test.cc.

◆ TEST_F() [23/347]

yaze::test::TEST_F ( CpuTest ,
AND_DirectPage  )

Definition at line 396 of file cpu_test.cc.

◆ TEST_F() [24/347]

yaze::test::TEST_F ( CpuTest ,
AND_DirectPageIndirectLong  )

Definition at line 414 of file cpu_test.cc.

◆ TEST_F() [25/347]

yaze::test::TEST_F ( CpuTest ,
AND_Immediate  )

Definition at line 437 of file cpu_test.cc.

◆ TEST_F() [26/347]

yaze::test::TEST_F ( CpuTest ,
AND_Absolute_16BitMode  )

Definition at line 446 of file cpu_test.cc.

◆ TEST_F() [27/347]

yaze::test::TEST_F ( CpuTest ,
AND_AbsoluteLong  )

Definition at line 465 of file cpu_test.cc.

◆ TEST_F() [28/347]

yaze::test::TEST_F ( CpuTest ,
AND_DirectPageIndirectIndexedY  )

Definition at line 479 of file cpu_test.cc.

◆ TEST_F() [29/347]

yaze::test::TEST_F ( CpuTest ,
AND_DirectPageIndirect  )

Definition at line 496 of file cpu_test.cc.

◆ TEST_F() [30/347]

yaze::test::TEST_F ( CpuTest ,
AND_StackRelativeIndirectIndexedY  )

Definition at line 512 of file cpu_test.cc.

◆ TEST_F() [31/347]

yaze::test::TEST_F ( CpuTest ,
AND_DirectPageIndexedX  )

Definition at line 531 of file cpu_test.cc.

◆ TEST_F() [32/347]

yaze::test::TEST_F ( CpuTest ,
AND_DirectPageIndirectLongIndexedY  )

Definition at line 548 of file cpu_test.cc.

◆ TEST_F() [33/347]

yaze::test::TEST_F ( CpuTest ,
AND_AbsoluteIndexedY  )

Definition at line 566 of file cpu_test.cc.

◆ TEST_F() [34/347]

yaze::test::TEST_F ( CpuTest ,
AND_AbsoluteIndexedX  )

Definition at line 588 of file cpu_test.cc.

◆ TEST_F() [35/347]

yaze::test::TEST_F ( CpuTest ,
AND_AbsoluteLongIndexedX  )

Definition at line 611 of file cpu_test.cc.

◆ TEST_F() [36/347]

yaze::test::TEST_F ( CpuTest ,
ASL_DirectPage  )

Definition at line 637 of file cpu_test.cc.

◆ TEST_F() [37/347]

yaze::test::TEST_F ( CpuTest ,
ASL_Accumulator  )

Definition at line 650 of file cpu_test.cc.

◆ TEST_F() [38/347]

yaze::test::TEST_F ( CpuTest ,
ASL_Absolute  )

Definition at line 663 of file cpu_test.cc.

◆ TEST_F() [39/347]

yaze::test::TEST_F ( CpuTest ,
ASL_DirectPageIndexedX  )

Definition at line 677 of file cpu_test.cc.

◆ TEST_F() [40/347]

yaze::test::TEST_F ( CpuTest ,
ASL_AbsoluteIndexedX  )

Definition at line 690 of file cpu_test.cc.

◆ TEST_F() [41/347]

yaze::test::TEST_F ( CpuTest ,
BCC_WhenCarryFlagClear  )

Definition at line 708 of file cpu_test.cc.

◆ TEST_F() [42/347]

yaze::test::TEST_F ( CpuTest ,
BCC_WhenCarryFlagSet  )

Definition at line 719 of file cpu_test.cc.

◆ TEST_F() [43/347]

yaze::test::TEST_F ( CpuTest ,
BCS_WhenCarryFlagSet  )

Definition at line 734 of file cpu_test.cc.

◆ TEST_F() [44/347]

yaze::test::TEST_F ( CpuTest ,
BCS_WhenCarryFlagClear  )

Definition at line 745 of file cpu_test.cc.

◆ TEST_F() [45/347]

yaze::test::TEST_F ( CpuTest ,
BEQ_Immediate_ZeroFlagSet  )

Definition at line 757 of file cpu_test.cc.

◆ TEST_F() [46/347]

yaze::test::TEST_F ( CpuTest ,
BEQ_Immediate_ZeroFlagClear  )

Definition at line 768 of file cpu_test.cc.

◆ TEST_F() [47/347]

yaze::test::TEST_F ( CpuTest ,
BEQ_Immediate_ZeroFlagSet_OverflowFlagSet  )

Definition at line 780 of file cpu_test.cc.

◆ TEST_F() [48/347]

yaze::test::TEST_F ( CpuTest ,
BEQ_Immediate_ZeroFlagClear_OverflowFlagSet  )

Definition at line 793 of file cpu_test.cc.

◆ TEST_F() [49/347]

yaze::test::TEST_F ( CpuTest ,
BIT_DirectPage  )

Definition at line 809 of file cpu_test.cc.

◆ TEST_F() [50/347]

yaze::test::TEST_F ( CpuTest ,
BIT_Absolute  )

Definition at line 829 of file cpu_test.cc.

◆ TEST_F() [51/347]

yaze::test::TEST_F ( CpuTest ,
BIT_DirectPageIndexedX  )

Definition at line 848 of file cpu_test.cc.

◆ TEST_F() [52/347]

yaze::test::TEST_F ( CpuTest ,
BIT_AbsoluteIndexedX  )

Definition at line 869 of file cpu_test.cc.

◆ TEST_F() [53/347]

yaze::test::TEST_F ( CpuTest ,
BIT_Immediate  )

Definition at line 889 of file cpu_test.cc.

◆ TEST_F() [54/347]

yaze::test::TEST_F ( CpuTest ,
BMI_BranchTaken  )

Definition at line 911 of file cpu_test.cc.

◆ TEST_F() [55/347]

yaze::test::TEST_F ( CpuTest ,
BMI_BranchNotTaken  )

Definition at line 920 of file cpu_test.cc.

◆ TEST_F() [56/347]

yaze::test::TEST_F ( CpuTest ,
BNE_BranchTaken  )

Definition at line 932 of file cpu_test.cc.

◆ TEST_F() [57/347]

yaze::test::TEST_F ( CpuTest ,
BNE_BranchNotTaken  )

Definition at line 941 of file cpu_test.cc.

◆ TEST_F() [58/347]

yaze::test::TEST_F ( CpuTest ,
BPL_BranchTaken  )

Definition at line 953 of file cpu_test.cc.

◆ TEST_F() [59/347]

yaze::test::TEST_F ( CpuTest ,
BPL_BranchNotTaken  )

Definition at line 962 of file cpu_test.cc.

◆ TEST_F() [60/347]

yaze::test::TEST_F ( CpuTest ,
BRA  )

Definition at line 974 of file cpu_test.cc.

◆ TEST_F() [61/347]

yaze::test::TEST_F ( CpuTest ,
BRK  )

Definition at line 984 of file cpu_test.cc.

◆ TEST_F() [62/347]

yaze::test::TEST_F ( CpuTest ,
BRL  )

Definition at line 999 of file cpu_test.cc.

◆ TEST_F() [63/347]

yaze::test::TEST_F ( CpuTest ,
BVC_BranchTaken  )

Definition at line 1012 of file cpu_test.cc.

◆ TEST_F() [64/347]

yaze::test::TEST_F ( CpuTest ,
BVS_BranchTaken  )

Definition at line 1024 of file cpu_test.cc.

◆ TEST_F() [65/347]

yaze::test::TEST_F ( CpuTest ,
CLC  )

Definition at line 1036 of file cpu_test.cc.

◆ TEST_F() [66/347]

yaze::test::TEST_F ( CpuTest ,
CLD  )

Definition at line 1049 of file cpu_test.cc.

◆ TEST_F() [67/347]

yaze::test::TEST_F ( CpuTest ,
CLI  )

Definition at line 1062 of file cpu_test.cc.

◆ TEST_F() [68/347]

yaze::test::TEST_F ( CpuTest ,
CLV  )

Definition at line 1075 of file cpu_test.cc.

◆ TEST_F() [69/347]

yaze::test::TEST_F ( CpuTest ,
CMP_DirectPageIndexedIndirectX  )

Definition at line 1088 of file cpu_test.cc.

◆ TEST_F() [70/347]

yaze::test::TEST_F ( CpuTest ,
CMP_StackRelative  )

Definition at line 1107 of file cpu_test.cc.

◆ TEST_F() [71/347]

yaze::test::TEST_F ( CpuTest ,
CMP_DirectPage  )

Definition at line 1139 of file cpu_test.cc.

◆ TEST_F() [72/347]

yaze::test::TEST_F ( CpuTest ,
CMP_DirectPageIndirectLong  )

Definition at line 1155 of file cpu_test.cc.

◆ TEST_F() [73/347]

yaze::test::TEST_F ( CpuTest ,
CMP_Immediate_8Bit  )

Definition at line 1178 of file cpu_test.cc.

◆ TEST_F() [74/347]

yaze::test::TEST_F ( CpuTest ,
CMP_Absolute_16Bit  )

Definition at line 1197 of file cpu_test.cc.

◆ TEST_F() [75/347]

yaze::test::TEST_F ( CpuTest ,
CMP_AbsoluteLong  )

Definition at line 1212 of file cpu_test.cc.

◆ TEST_F() [76/347]

yaze::test::TEST_F ( CpuTest ,
CMP_DirectPageIndirect  )

Definition at line 1229 of file cpu_test.cc.

◆ TEST_F() [77/347]

yaze::test::TEST_F ( CpuTest ,
CMP_StackRelativeIndirectIndexedY  )

Definition at line 1250 of file cpu_test.cc.

◆ TEST_F() [78/347]

yaze::test::TEST_F ( CpuTest ,
CMP_DirectPageIndexedX  )

Definition at line 1274 of file cpu_test.cc.

◆ TEST_F() [79/347]

yaze::test::TEST_F ( CpuTest ,
CMP_DirectPageIndirectLongIndexedY  )

Definition at line 1296 of file cpu_test.cc.

◆ TEST_F() [80/347]

yaze::test::TEST_F ( CpuTest ,
CMP_AbsoluteIndexedY  )

Definition at line 1318 of file cpu_test.cc.

◆ TEST_F() [81/347]

yaze::test::TEST_F ( CpuTest ,
CMP_AbsoluteIndexedX  )

Definition at line 1334 of file cpu_test.cc.

◆ TEST_F() [82/347]

yaze::test::TEST_F ( CpuTest ,
CMP_AbsoluteLongIndexedX  )

Definition at line 1350 of file cpu_test.cc.

◆ TEST_F() [83/347]

yaze::test::TEST_F ( CpuTest ,
COP  )
Todo
FIX COP TEST

Definition at line 1369 of file cpu_test.cc.

◆ TEST_F() [84/347]

yaze::test::TEST_F ( CpuTest ,
CPX_Immediate_ZeroFlagSet  )

Definition at line 1388 of file cpu_test.cc.

◆ TEST_F() [85/347]

yaze::test::TEST_F ( CpuTest ,
CPX_Immediate_NegativeFlagSet  )

Definition at line 1398 of file cpu_test.cc.

◆ TEST_F() [86/347]

yaze::test::TEST_F ( CpuTest ,
CPX_DirectPage  )

Definition at line 1409 of file cpu_test.cc.

◆ TEST_F() [87/347]

yaze::test::TEST_F ( CpuTest ,
CPX_Absolute  )

Definition at line 1419 of file cpu_test.cc.

◆ TEST_F() [88/347]

yaze::test::TEST_F ( CpuTest ,
CPY_Immediate_ZeroFlagSet  )

Definition at line 1429 of file cpu_test.cc.

◆ TEST_F() [89/347]

yaze::test::TEST_F ( CpuTest ,
CPY_Immediate_NegativeFlagSet  )

Definition at line 1439 of file cpu_test.cc.

◆ TEST_F() [90/347]

yaze::test::TEST_F ( CpuTest ,
CPY_DirectPage  )

Definition at line 1450 of file cpu_test.cc.

◆ TEST_F() [91/347]

yaze::test::TEST_F ( CpuTest ,
CPY_Absolute  )

Definition at line 1460 of file cpu_test.cc.

◆ TEST_F() [92/347]

yaze::test::TEST_F ( CpuTest ,
DEC_Accumulator  )

Definition at line 1473 of file cpu_test.cc.

◆ TEST_F() [93/347]

yaze::test::TEST_F ( CpuTest ,
DEC_DirectPage  )

Definition at line 1488 of file cpu_test.cc.

◆ TEST_F() [94/347]

yaze::test::TEST_F ( CpuTest ,
DEC_Absolute  )

Definition at line 1500 of file cpu_test.cc.

◆ TEST_F() [95/347]

yaze::test::TEST_F ( CpuTest ,
DEC_DirectPageIndexedX  )

Definition at line 1511 of file cpu_test.cc.

◆ TEST_F() [96/347]

yaze::test::TEST_F ( CpuTest ,
DEC_AbsoluteIndexedX  )

Definition at line 1524 of file cpu_test.cc.

◆ TEST_F() [97/347]

yaze::test::TEST_F ( CpuTest ,
DEX  )

Definition at line 1539 of file cpu_test.cc.

◆ TEST_F() [98/347]

yaze::test::TEST_F ( CpuTest ,
DEY  )

Definition at line 1557 of file cpu_test.cc.

◆ TEST_F() [99/347]

yaze::test::TEST_F ( CpuTest ,
EOR_DirectPageIndexedIndirectX  )

Definition at line 1575 of file cpu_test.cc.

◆ TEST_F() [100/347]

yaze::test::TEST_F ( CpuTest ,
EOR_StackRelative  )

Definition at line 1588 of file cpu_test.cc.

◆ TEST_F() [101/347]

yaze::test::TEST_F ( CpuTest ,
EOR_DirectPage  )

Definition at line 1604 of file cpu_test.cc.

◆ TEST_F() [102/347]

yaze::test::TEST_F ( CpuTest ,
EOR_DirectPageIndirectLong  )

Definition at line 1615 of file cpu_test.cc.

◆ TEST_F() [103/347]

yaze::test::TEST_F ( CpuTest ,
EOR_Immediate_8bit  )

Definition at line 1627 of file cpu_test.cc.

◆ TEST_F() [104/347]

yaze::test::TEST_F ( CpuTest ,
EOR_Absolute  )

Definition at line 1637 of file cpu_test.cc.

◆ TEST_F() [105/347]

yaze::test::TEST_F ( CpuTest ,
EOR_AbsoluteLong  )

Definition at line 1648 of file cpu_test.cc.

◆ TEST_F() [106/347]

yaze::test::TEST_F ( CpuTest ,
EOR_DirectPageIndirectIndexedY  )

Definition at line 1659 of file cpu_test.cc.

◆ TEST_F() [107/347]

yaze::test::TEST_F ( CpuTest ,
EOR_DirectPageIndirect  )

Definition at line 1672 of file cpu_test.cc.

◆ TEST_F() [108/347]

yaze::test::TEST_F ( CpuTest ,
EOR_StackRelativeIndirectIndexedY  )

Definition at line 1684 of file cpu_test.cc.

◆ TEST_F() [109/347]

yaze::test::TEST_F ( CpuTest ,
EOR_DirectPageIndexedX  )

Definition at line 1702 of file cpu_test.cc.

◆ TEST_F() [110/347]

yaze::test::TEST_F ( CpuTest ,
EOR_DirectPageIndirectLongIndexedY  )

Definition at line 1714 of file cpu_test.cc.

◆ TEST_F() [111/347]

yaze::test::TEST_F ( CpuTest ,
EOR_AbsoluteIndexedY  )

Definition at line 1727 of file cpu_test.cc.

◆ TEST_F() [112/347]

yaze::test::TEST_F ( CpuTest ,
EOR_AbsoluteIndexedX  )

Definition at line 1740 of file cpu_test.cc.

◆ TEST_F() [113/347]

yaze::test::TEST_F ( CpuTest ,
EOR_AbsoluteLongIndexedX  )

Definition at line 1753 of file cpu_test.cc.

◆ TEST_F() [114/347]

yaze::test::TEST_F ( CpuTest ,
INC_Accumulator  )

Definition at line 1769 of file cpu_test.cc.

◆ TEST_F() [115/347]

yaze::test::TEST_F ( CpuTest ,
INC_DirectPage_8bit  )

Definition at line 1784 of file cpu_test.cc.

◆ TEST_F() [116/347]

yaze::test::TEST_F ( CpuTest ,
INC_Absolute_16bit  )

Definition at line 1800 of file cpu_test.cc.

◆ TEST_F() [117/347]

yaze::test::TEST_F ( CpuTest ,
INC_DirectPage_ZeroResult_8bit  )

Definition at line 1812 of file cpu_test.cc.

◆ TEST_F() [118/347]

yaze::test::TEST_F ( CpuTest ,
INC_Absolute_ZeroResult_16bit  )

Definition at line 1824 of file cpu_test.cc.

◆ TEST_F() [119/347]

yaze::test::TEST_F ( CpuTest ,
INC_DirectPage_8bit_Overflow  )

Definition at line 1835 of file cpu_test.cc.

◆ TEST_F() [120/347]

yaze::test::TEST_F ( CpuTest ,
INC_DirectPageIndexedX_8bit  )

Definition at line 1845 of file cpu_test.cc.

◆ TEST_F() [121/347]

yaze::test::TEST_F ( CpuTest ,
INC_AbsoluteIndexedX_16bit  )

Definition at line 1861 of file cpu_test.cc.

◆ TEST_F() [122/347]

yaze::test::TEST_F ( CpuTest ,
INX  )

Definition at line 1873 of file cpu_test.cc.

◆ TEST_F() [123/347]

yaze::test::TEST_F ( CpuTest ,
INY  )

Definition at line 1888 of file cpu_test.cc.

◆ TEST_F() [124/347]

yaze::test::TEST_F ( CpuTest ,
JMP_Absolute  )

Definition at line 1906 of file cpu_test.cc.

◆ TEST_F() [125/347]

yaze::test::TEST_F ( CpuTest ,
JMP_Indirect  )

Definition at line 1918 of file cpu_test.cc.

◆ TEST_F() [126/347]

yaze::test::TEST_F ( CpuTest ,
JML_AbsoluteLong  )

Definition at line 1932 of file cpu_test.cc.

◆ TEST_F() [127/347]

yaze::test::TEST_F ( CpuTest ,
JMP_AbsoluteIndexedIndirectX  )

Definition at line 1946 of file cpu_test.cc.

◆ TEST_F() [128/347]

yaze::test::TEST_F ( CpuTest ,
JMP_AbsoluteIndirectLong  )

Definition at line 1959 of file cpu_test.cc.

◆ TEST_F() [129/347]

yaze::test::TEST_F ( CpuTest ,
JSR_Absolute  )

Definition at line 1975 of file cpu_test.cc.

◆ TEST_F() [130/347]

yaze::test::TEST_F ( CpuTest ,
JSL_AbsoluteLong  )

Definition at line 1993 of file cpu_test.cc.

◆ TEST_F() [131/347]

yaze::test::TEST_F ( CpuTest ,
JSL_AbsoluteIndexedIndirect  )

Definition at line 2004 of file cpu_test.cc.

◆ TEST_F() [132/347]

yaze::test::TEST_F ( CpuTest ,
LDA_DirectPageIndexedIndirectX  )

Definition at line 2020 of file cpu_test.cc.

◆ TEST_F() [133/347]

yaze::test::TEST_F ( CpuTest ,
LDA_StackRelative  )

Definition at line 2039 of file cpu_test.cc.

◆ TEST_F() [134/347]

yaze::test::TEST_F ( CpuTest ,
LDA_DirectPage  )

Definition at line 2057 of file cpu_test.cc.

◆ TEST_F() [135/347]

yaze::test::TEST_F ( CpuTest ,
LDA_DirectPageIndirectLong  )

Definition at line 2073 of file cpu_test.cc.

◆ TEST_F() [136/347]

yaze::test::TEST_F ( CpuTest ,
LDA_Immediate_8bit  )

Definition at line 2091 of file cpu_test.cc.

◆ TEST_F() [137/347]

yaze::test::TEST_F ( CpuTest ,
LDA_Immediate_16bit  )

Definition at line 2102 of file cpu_test.cc.

◆ TEST_F() [138/347]

yaze::test::TEST_F ( CpuTest ,
LDA_Absolute  )

Definition at line 2113 of file cpu_test.cc.

◆ TEST_F() [139/347]

yaze::test::TEST_F ( CpuTest ,
LDA_AbsoluteLong  )

Definition at line 2129 of file cpu_test.cc.

◆ TEST_F() [140/347]

yaze::test::TEST_F ( CpuTest ,
LDA_DirectPageIndirectIndexedY  )

Definition at line 2145 of file cpu_test.cc.

◆ TEST_F() [141/347]

yaze::test::TEST_F ( CpuTest ,
LDA_DirectPageIndirect  )

Definition at line 2165 of file cpu_test.cc.

◆ TEST_F() [142/347]

yaze::test::TEST_F ( CpuTest ,
LDA_StackRelativeIndirectIndexedY  )

Definition at line 2182 of file cpu_test.cc.

◆ TEST_F() [143/347]

yaze::test::TEST_F ( CpuTest ,
LDA_DirectPageIndexedX  )

Definition at line 2202 of file cpu_test.cc.

◆ TEST_F() [144/347]

yaze::test::TEST_F ( CpuTest ,
LDA_DirectPageIndirectLongIndexedY  )

Definition at line 2219 of file cpu_test.cc.

◆ TEST_F() [145/347]

yaze::test::TEST_F ( CpuTest ,
LDA_AbsoluteIndexedY  )

Definition at line 2238 of file cpu_test.cc.

◆ TEST_F() [146/347]

yaze::test::TEST_F ( CpuTest ,
LDA_AbsoluteIndexedX  )

Definition at line 2254 of file cpu_test.cc.

◆ TEST_F() [147/347]

yaze::test::TEST_F ( CpuTest ,
LDA_AbsoluteLongIndexedX  )

Definition at line 2270 of file cpu_test.cc.

◆ TEST_F() [148/347]

yaze::test::TEST_F ( CpuTest ,
LDX_Immediate  )

Definition at line 2288 of file cpu_test.cc.

◆ TEST_F() [149/347]

yaze::test::TEST_F ( CpuTest ,
LDX_DirectPage  )

Definition at line 2298 of file cpu_test.cc.

◆ TEST_F() [150/347]

yaze::test::TEST_F ( CpuTest ,
LDX_Absolute  )

Definition at line 2309 of file cpu_test.cc.

◆ TEST_F() [151/347]

yaze::test::TEST_F ( CpuTest ,
LDX_DirectPageIndexedY  )

Definition at line 2322 of file cpu_test.cc.

◆ TEST_F() [152/347]

yaze::test::TEST_F ( CpuTest ,
LDX_AbsoluteIndexedY  )

Definition at line 2334 of file cpu_test.cc.

◆ TEST_F() [153/347]

yaze::test::TEST_F ( CpuTest ,
LDY_Immediate  )

Definition at line 2350 of file cpu_test.cc.

◆ TEST_F() [154/347]

yaze::test::TEST_F ( CpuTest ,
LDY_DirectPage  )

Definition at line 2360 of file cpu_test.cc.

◆ TEST_F() [155/347]

yaze::test::TEST_F ( CpuTest ,
LDY_Absolute  )

Definition at line 2371 of file cpu_test.cc.

◆ TEST_F() [156/347]

yaze::test::TEST_F ( CpuTest ,
LDY_DirectPageIndexedX  )

Definition at line 2384 of file cpu_test.cc.

◆ TEST_F() [157/347]

yaze::test::TEST_F ( CpuTest ,
LDY_AbsoluteIndexedX  )

Definition at line 2396 of file cpu_test.cc.

◆ TEST_F() [158/347]

yaze::test::TEST_F ( CpuTest ,
LSR_DirectPage  )

Definition at line 2412 of file cpu_test.cc.

◆ TEST_F() [159/347]

yaze::test::TEST_F ( CpuTest ,
LSR_Accumulator  )

Definition at line 2424 of file cpu_test.cc.

◆ TEST_F() [160/347]

yaze::test::TEST_F ( CpuTest ,
LSR_Absolute  )

Definition at line 2433 of file cpu_test.cc.

◆ TEST_F() [161/347]

yaze::test::TEST_F ( CpuTest ,
LSR_DirectPageIndexedX  )

Definition at line 2447 of file cpu_test.cc.

◆ TEST_F() [162/347]

yaze::test::TEST_F ( CpuTest ,
LSR_AbsoluteIndexedX  )

Definition at line 2460 of file cpu_test.cc.

◆ TEST_F() [163/347]

yaze::test::TEST_F ( CpuTest ,
ORA_DirectPageIndexedIndirectX  )

Definition at line 2478 of file cpu_test.cc.

◆ TEST_F() [164/347]

yaze::test::TEST_F ( CpuTest ,
ORA_StackRelative  )

Definition at line 2497 of file cpu_test.cc.

◆ TEST_F() [165/347]

yaze::test::TEST_F ( CpuTest ,
ORA_DirectPage  )

Definition at line 2515 of file cpu_test.cc.

◆ TEST_F() [166/347]

yaze::test::TEST_F ( CpuTest ,
ORA_DirectPageIndirectLong  )

Definition at line 2531 of file cpu_test.cc.

◆ TEST_F() [167/347]

yaze::test::TEST_F ( CpuTest ,
ORA_Immediate  )

Definition at line 2549 of file cpu_test.cc.

◆ TEST_F() [168/347]

yaze::test::TEST_F ( CpuTest ,
ORA_Absolute  )

Definition at line 2560 of file cpu_test.cc.

◆ TEST_F() [169/347]

yaze::test::TEST_F ( CpuTest ,
ORA_AbsoluteLong  )

Definition at line 2576 of file cpu_test.cc.

◆ TEST_F() [170/347]

yaze::test::TEST_F ( CpuTest ,
ORA_DirectPageIndirectIndexedY  )

Definition at line 2592 of file cpu_test.cc.

◆ TEST_F() [171/347]

yaze::test::TEST_F ( CpuTest ,
ORA_DirectPageIndirect  )

Definition at line 2612 of file cpu_test.cc.

◆ TEST_F() [172/347]

yaze::test::TEST_F ( CpuTest ,
ORA_StackRelativeIndirectIndexedY  )

Definition at line 2629 of file cpu_test.cc.

◆ TEST_F() [173/347]

yaze::test::TEST_F ( CpuTest ,
ORA_DirectPageIndexedX  )

Definition at line 2649 of file cpu_test.cc.

◆ TEST_F() [174/347]

yaze::test::TEST_F ( CpuTest ,
ORA_DirectPageIndirectLongIndexedY  )

Definition at line 2666 of file cpu_test.cc.

◆ TEST_F() [175/347]

yaze::test::TEST_F ( CpuTest ,
ORA_AbsoluteIndexedY  )

Definition at line 2685 of file cpu_test.cc.

◆ TEST_F() [176/347]

yaze::test::TEST_F ( CpuTest ,
ORA_AbsoluteIndexedX  )

Definition at line 2701 of file cpu_test.cc.

◆ TEST_F() [177/347]

yaze::test::TEST_F ( CpuTest ,
ORA_AbsoluteLongIndexedX  )

Definition at line 2717 of file cpu_test.cc.

◆ TEST_F() [178/347]

yaze::test::TEST_F ( CpuTest ,
PEA  )

Definition at line 2735 of file cpu_test.cc.

◆ TEST_F() [179/347]

yaze::test::TEST_F ( CpuTest ,
PEI  )

Definition at line 2746 of file cpu_test.cc.

◆ TEST_F() [180/347]

yaze::test::TEST_F ( CpuTest ,
PER  )

Definition at line 2760 of file cpu_test.cc.

◆ TEST_F() [181/347]

yaze::test::TEST_F ( CpuTest ,
PHD  )

Definition at line 2771 of file cpu_test.cc.

◆ TEST_F() [182/347]

yaze::test::TEST_F ( CpuTest ,
PHK  )

Definition at line 2782 of file cpu_test.cc.

◆ TEST_F() [183/347]

yaze::test::TEST_F ( CpuTest ,
PHP  )

Definition at line 2793 of file cpu_test.cc.

◆ TEST_F() [184/347]

yaze::test::TEST_F ( CpuTest ,
PHX  )

Definition at line 2804 of file cpu_test.cc.

◆ TEST_F() [185/347]

yaze::test::TEST_F ( CpuTest ,
PHY  )

Definition at line 2815 of file cpu_test.cc.

◆ TEST_F() [186/347]

yaze::test::TEST_F ( CpuTest ,
PHB  )

Definition at line 2826 of file cpu_test.cc.

◆ TEST_F() [187/347]

yaze::test::TEST_F ( CpuTest ,
PHA  )

Definition at line 2837 of file cpu_test.cc.

◆ TEST_F() [188/347]

yaze::test::TEST_F ( CpuTest ,
PHA_16Bit  )

Definition at line 2848 of file cpu_test.cc.

◆ TEST_F() [189/347]

yaze::test::TEST_F ( CpuTest ,
PLA  )

Definition at line 2859 of file cpu_test.cc.

◆ TEST_F() [190/347]

yaze::test::TEST_F ( CpuTest ,
PLA_16Bit  )

Definition at line 2872 of file cpu_test.cc.

◆ TEST_F() [191/347]

yaze::test::TEST_F ( CpuTest ,
PLB  )

Definition at line 2885 of file cpu_test.cc.

◆ TEST_F() [192/347]

yaze::test::TEST_F ( CpuTest ,
PLD  )

Definition at line 2898 of file cpu_test.cc.

◆ TEST_F() [193/347]

yaze::test::TEST_F ( CpuTest ,
PLP  )

Definition at line 2911 of file cpu_test.cc.

◆ TEST_F() [194/347]

yaze::test::TEST_F ( CpuTest ,
PLX  )

Definition at line 2924 of file cpu_test.cc.

◆ TEST_F() [195/347]

yaze::test::TEST_F ( CpuTest ,
PLX_16Bit  )

Definition at line 2937 of file cpu_test.cc.

◆ TEST_F() [196/347]

yaze::test::TEST_F ( CpuTest ,
PLY  )

Definition at line 2951 of file cpu_test.cc.

◆ TEST_F() [197/347]

yaze::test::TEST_F ( CpuTest ,
PLY_16Bit  )

Definition at line 2964 of file cpu_test.cc.

◆ TEST_F() [198/347]

yaze::test::TEST_F ( CpuTest ,
REP  )

Definition at line 2980 of file cpu_test.cc.

◆ TEST_F() [199/347]

yaze::test::TEST_F ( CpuTest ,
REP_16Bit  )

Definition at line 2989 of file cpu_test.cc.

◆ TEST_F() [200/347]

yaze::test::TEST_F ( CpuTest ,
PHA_PLA_Ok  )

Definition at line 2998 of file cpu_test.cc.

◆ TEST_F() [201/347]

yaze::test::TEST_F ( CpuTest ,
PHP_PLP_Ok  )

Definition at line 3008 of file cpu_test.cc.

◆ TEST_F() [202/347]

yaze::test::TEST_F ( CpuTest ,
PHA_PushAccumulator  )

Definition at line 3036 of file cpu_test.cc.

◆ TEST_F() [203/347]

yaze::test::TEST_F ( CpuTest ,
PHP_PushProcessorStatusRegister  )

Definition at line 3042 of file cpu_test.cc.

◆ TEST_F() [204/347]

yaze::test::TEST_F ( CpuTest ,
PHX_PushXRegister  )

Definition at line 3048 of file cpu_test.cc.

◆ TEST_F() [205/347]

yaze::test::TEST_F ( CpuTest ,
PHY_PushYRegister  )

Definition at line 3054 of file cpu_test.cc.

◆ TEST_F() [206/347]

yaze::test::TEST_F ( CpuTest ,
PHB_PushDataBankRegister  )

Definition at line 3060 of file cpu_test.cc.

◆ TEST_F() [207/347]

yaze::test::TEST_F ( CpuTest ,
PHD_PushDirectPageRegister  )

Definition at line 3066 of file cpu_test.cc.

◆ TEST_F() [208/347]

yaze::test::TEST_F ( CpuTest ,
PHK_PushProgramBankRegister  )

Definition at line 3072 of file cpu_test.cc.

◆ TEST_F() [209/347]

yaze::test::TEST_F ( CpuTest ,
PLA_PullAccumulator  )

Definition at line 3082 of file cpu_test.cc.

◆ TEST_F() [210/347]

yaze::test::TEST_F ( CpuTest ,
PLP_PullProcessorStatusRegister  )

Definition at line 3088 of file cpu_test.cc.

◆ TEST_F() [211/347]

yaze::test::TEST_F ( CpuTest ,
PLX_PullXRegister  )

Definition at line 3094 of file cpu_test.cc.

◆ TEST_F() [212/347]

yaze::test::TEST_F ( CpuTest ,
PLY_PullYRegister  )

Definition at line 3100 of file cpu_test.cc.

◆ TEST_F() [213/347]

yaze::test::TEST_F ( CpuTest ,
PLB_PullDataBankRegister  )

Definition at line 3106 of file cpu_test.cc.

◆ TEST_F() [214/347]

yaze::test::TEST_F ( CpuTest ,
PLD_PullDirectPageRegister  )

Definition at line 3112 of file cpu_test.cc.

◆ TEST_F() [215/347]

yaze::test::TEST_F ( CpuTest ,
SEP  )

Definition at line 3121 of file cpu_test.cc.

◆ TEST_F() [216/347]

yaze::test::TEST_F ( CpuTest ,
ROL_DirectPage  )

Definition at line 3133 of file cpu_test.cc.

◆ TEST_F() [217/347]

yaze::test::TEST_F ( CpuTest ,
ROL_Accumulator  )

Definition at line 3145 of file cpu_test.cc.

◆ TEST_F() [218/347]

yaze::test::TEST_F ( CpuTest ,
ROL_Absolute  )

Definition at line 3154 of file cpu_test.cc.

◆ TEST_F() [219/347]

yaze::test::TEST_F ( CpuTest ,
ROL_DirectPageIndexedX  )

Definition at line 3168 of file cpu_test.cc.

◆ TEST_F() [220/347]

yaze::test::TEST_F ( CpuTest ,
ROL_AbsoluteIndexedX  )

Definition at line 3181 of file cpu_test.cc.

◆ TEST_F() [221/347]

yaze::test::TEST_F ( CpuTest ,
ROR_DirectPage  )

Definition at line 3198 of file cpu_test.cc.

◆ TEST_F() [222/347]

yaze::test::TEST_F ( CpuTest ,
ROR_Accumulator  )

Definition at line 3210 of file cpu_test.cc.

◆ TEST_F() [223/347]

yaze::test::TEST_F ( CpuTest ,
ROR_Absolute  )

Definition at line 3219 of file cpu_test.cc.

◆ TEST_F() [224/347]

yaze::test::TEST_F ( CpuTest ,
ROR_DirectPageIndexedX  )

Definition at line 3233 of file cpu_test.cc.

◆ TEST_F() [225/347]

yaze::test::TEST_F ( CpuTest ,
ROR_AbsoluteIndexedX  )

Definition at line 3246 of file cpu_test.cc.

◆ TEST_F() [226/347]

yaze::test::TEST_F ( CpuTest ,
RTI  )

Definition at line 3263 of file cpu_test.cc.

◆ TEST_F() [227/347]

yaze::test::TEST_F ( CpuTest ,
RTL  )

Definition at line 3278 of file cpu_test.cc.

◆ TEST_F() [228/347]

yaze::test::TEST_F ( CpuTest ,
RTS  )

Definition at line 3293 of file cpu_test.cc.

◆ TEST_F() [229/347]

yaze::test::TEST_F ( CpuTest ,
SBC_DirectPageIndexedIndirectX  )

Definition at line 3308 of file cpu_test.cc.

◆ TEST_F() [230/347]

yaze::test::TEST_F ( CpuTest ,
SBC_StackRelative  )

Definition at line 3329 of file cpu_test.cc.

◆ TEST_F() [231/347]

yaze::test::TEST_F ( CpuTest ,
SBC_DirectPage  )

Definition at line 3347 of file cpu_test.cc.

◆ TEST_F() [232/347]

yaze::test::TEST_F ( CpuTest ,
SBC_DirectPageIndirectLong  )

Definition at line 3364 of file cpu_test.cc.

◆ TEST_F() [233/347]

yaze::test::TEST_F ( CpuTest ,
SBC_Immediate  )

Definition at line 3384 of file cpu_test.cc.

◆ TEST_F() [234/347]

yaze::test::TEST_F ( CpuTest ,
SBC_Absolute  )

Definition at line 3397 of file cpu_test.cc.

◆ TEST_F() [235/347]

yaze::test::TEST_F ( CpuTest ,
SBC_AbsoluteLong  )

Definition at line 3413 of file cpu_test.cc.

◆ TEST_F() [236/347]

yaze::test::TEST_F ( CpuTest ,
SBC_DirectPageIndirectIndexedY  )

Definition at line 3429 of file cpu_test.cc.

◆ TEST_F() [237/347]

yaze::test::TEST_F ( CpuTest ,
SBC_DirectPageIndirect  )

Definition at line 3449 of file cpu_test.cc.

◆ TEST_F() [238/347]

yaze::test::TEST_F ( CpuTest ,
SBC_StackRelativeIndirectIndexedY  )

Definition at line 3471 of file cpu_test.cc.

◆ TEST_F() [239/347]

yaze::test::TEST_F ( CpuTest ,
SBC_DirectPageIndexedX  )

Definition at line 3493 of file cpu_test.cc.

◆ TEST_F() [240/347]

yaze::test::TEST_F ( CpuTest ,
SBC_DirectPageIndirectLongIndexedY  )

Definition at line 3507 of file cpu_test.cc.

◆ TEST_F() [241/347]

yaze::test::TEST_F ( CpuTest ,
SBC_AbsoluteIndexedY  )

Definition at line 3527 of file cpu_test.cc.

◆ TEST_F() [242/347]

yaze::test::TEST_F ( CpuTest ,
SBC_AbsoluteIndexedX  )

Definition at line 3544 of file cpu_test.cc.

◆ TEST_F() [243/347]

yaze::test::TEST_F ( CpuTest ,
SBC_AbsoluteLongIndexedX  )

Definition at line 3561 of file cpu_test.cc.

◆ TEST_F() [244/347]

yaze::test::TEST_F ( CpuTest ,
SEC  )

Definition at line 3580 of file cpu_test.cc.

◆ TEST_F() [245/347]

yaze::test::TEST_F ( CpuTest ,
SED  )

Definition at line 3587 of file cpu_test.cc.

◆ TEST_F() [246/347]

yaze::test::TEST_F ( CpuTest ,
SEI  )

Definition at line 3596 of file cpu_test.cc.

◆ TEST_F() [247/347]

yaze::test::TEST_F ( CpuTest ,
SEP_8Bit  )

Definition at line 3603 of file cpu_test.cc.

◆ TEST_F() [248/347]

yaze::test::TEST_F ( CpuTest ,
SEP_16Bit  )

Definition at line 3613 of file cpu_test.cc.

◆ TEST_F() [249/347]

yaze::test::TEST_F ( CpuTest ,
STA_DirectPageIndexedIndirectX  )

Definition at line 3625 of file cpu_test.cc.

◆ TEST_F() [250/347]

yaze::test::TEST_F ( CpuTest ,
STA_StackRelative  )

Definition at line 3642 of file cpu_test.cc.

◆ TEST_F() [251/347]

yaze::test::TEST_F ( CpuTest ,
STA_DirectPage  )

Definition at line 3656 of file cpu_test.cc.

◆ TEST_F() [252/347]

yaze::test::TEST_F ( CpuTest ,
STA_DirectPageIndirectLong  )

Definition at line 3667 of file cpu_test.cc.

◆ TEST_F() [253/347]

yaze::test::TEST_F ( CpuTest ,
STA_Absolute  )

Definition at line 3682 of file cpu_test.cc.

◆ TEST_F() [254/347]

yaze::test::TEST_F ( CpuTest ,
STA_AbsoluteLong  )

Definition at line 3693 of file cpu_test.cc.

◆ TEST_F() [255/347]

yaze::test::TEST_F ( CpuTest ,
STA_DirectPageIndirectIndexedY  )

Definition at line 3704 of file cpu_test.cc.

◆ TEST_F() [256/347]

yaze::test::TEST_F ( CpuTest ,
STA_DirectPageIndirect  )

Definition at line 3720 of file cpu_test.cc.

◆ TEST_F() [257/347]

yaze::test::TEST_F ( CpuTest ,
STA_StackRelativeIndirectIndexedY  )

Definition at line 3736 of file cpu_test.cc.

◆ TEST_F() [258/347]

yaze::test::TEST_F ( CpuTest ,
STA_DirectPageIndexedX  )

Definition at line 3753 of file cpu_test.cc.

◆ TEST_F() [259/347]

yaze::test::TEST_F ( CpuTest ,
STA_DirectPageIndirectLongIndexedY  )

Definition at line 3765 of file cpu_test.cc.

◆ TEST_F() [260/347]

yaze::test::TEST_F ( CpuTest ,
STA_AbsoluteIndexedY  )

Definition at line 3781 of file cpu_test.cc.

◆ TEST_F() [261/347]

yaze::test::TEST_F ( CpuTest ,
STA_AbsoluteIndexedX  )

Definition at line 3794 of file cpu_test.cc.

◆ TEST_F() [262/347]

yaze::test::TEST_F ( CpuTest ,
STA_AbsoluteLongIndexedX  )

Definition at line 3807 of file cpu_test.cc.

◆ TEST_F() [263/347]

yaze::test::TEST_F ( CpuTest ,
STP  )

Definition at line 3822 of file cpu_test.cc.

◆ TEST_F() [264/347]

yaze::test::TEST_F ( CpuTest ,
STX_DirectPage  )

Definition at line 3829 of file cpu_test.cc.

◆ TEST_F() [265/347]

yaze::test::TEST_F ( CpuTest ,
STX_Absolute  )

Definition at line 3840 of file cpu_test.cc.

◆ TEST_F() [266/347]

yaze::test::TEST_F ( CpuTest ,
STX_DirectPageIndexedY  )

Definition at line 3852 of file cpu_test.cc.

◆ TEST_F() [267/347]

yaze::test::TEST_F ( CpuTest ,
STY_DirectPage  )

Definition at line 3866 of file cpu_test.cc.

◆ TEST_F() [268/347]

yaze::test::TEST_F ( CpuTest ,
STY_Absolute  )

Definition at line 3877 of file cpu_test.cc.

◆ TEST_F() [269/347]

yaze::test::TEST_F ( CpuTest ,
STY_DirectPageIndexedX  )

Definition at line 3889 of file cpu_test.cc.

◆ TEST_F() [270/347]

yaze::test::TEST_F ( CpuTest ,
STZ_DirectPage  )

Definition at line 3903 of file cpu_test.cc.

◆ TEST_F() [271/347]

yaze::test::TEST_F ( CpuTest ,
STZ_DirectPageIndexedX  )

Definition at line 3913 of file cpu_test.cc.

◆ TEST_F() [272/347]

yaze::test::TEST_F ( CpuTest ,
STZ_Absolute  )

Definition at line 3924 of file cpu_test.cc.

◆ TEST_F() [273/347]

yaze::test::TEST_F ( CpuTest ,
TAX  )

Definition at line 3938 of file cpu_test.cc.

◆ TEST_F() [274/347]

yaze::test::TEST_F ( CpuTest ,
TAY  )

Definition at line 3950 of file cpu_test.cc.

◆ TEST_F() [275/347]

yaze::test::TEST_F ( CpuTest ,
TCD  )

Definition at line 3961 of file cpu_test.cc.

◆ TEST_F() [276/347]

yaze::test::TEST_F ( CpuTest ,
TCS  )

Definition at line 3973 of file cpu_test.cc.

◆ TEST_F() [277/347]

yaze::test::TEST_F ( CpuTest ,
TDC  )

Definition at line 3987 of file cpu_test.cc.

◆ TEST_F() [278/347]

yaze::test::TEST_F ( CpuTest ,
TRB_DirectPage  )

Definition at line 3999 of file cpu_test.cc.

◆ TEST_F() [279/347]

yaze::test::TEST_F ( CpuTest ,
TRB_Absolute  )

Definition at line 4013 of file cpu_test.cc.

◆ TEST_F() [280/347]

yaze::test::TEST_F ( CpuTest ,
TSB_DirectPage  )

Definition at line 4029 of file cpu_test.cc.

◆ TEST_F() [281/347]

yaze::test::TEST_F ( CpuTest ,
TSB_Absolute  )

Definition at line 4043 of file cpu_test.cc.

◆ TEST_F() [282/347]

yaze::test::TEST_F ( CpuTest ,
TSC  )

Definition at line 4059 of file cpu_test.cc.

◆ TEST_F() [283/347]

yaze::test::TEST_F ( CpuTest ,
TSX  )

Definition at line 4071 of file cpu_test.cc.

◆ TEST_F() [284/347]

yaze::test::TEST_F ( CpuTest ,
TXA  )

Definition at line 4084 of file cpu_test.cc.

◆ TEST_F() [285/347]

yaze::test::TEST_F ( CpuTest ,
TXS  )

Definition at line 4095 of file cpu_test.cc.

◆ TEST_F() [286/347]

yaze::test::TEST_F ( CpuTest ,
TXY  )

Definition at line 4107 of file cpu_test.cc.

◆ TEST_F() [287/347]

yaze::test::TEST_F ( CpuTest ,
TYA  )

Definition at line 4120 of file cpu_test.cc.

◆ TEST_F() [288/347]

yaze::test::TEST_F ( CpuTest ,
TYX  )

Definition at line 4132 of file cpu_test.cc.

◆ TEST_F() [289/347]

yaze::test::TEST_F ( CpuTest ,
WAI  )

Definition at line 4143 of file cpu_test.cc.

◆ TEST_F() [290/347]

yaze::test::TEST_F ( CpuTest ,
WDM  )

Definition at line 4150 of file cpu_test.cc.

◆ TEST_F() [291/347]

yaze::test::TEST_F ( CpuTest ,
XBA  )

Definition at line 4159 of file cpu_test.cc.

◆ TEST_F() [292/347]

yaze::test::TEST_F ( CpuTest ,
XCESwitchToNativeMode  )

Definition at line 4172 of file cpu_test.cc.

◆ TEST_F() [293/347]

yaze::test::TEST_F ( CpuTest ,
XCESwitchToEmulationMode  )

Definition at line 4178 of file cpu_test.cc.

◆ TEST_F() [294/347]

yaze::test::TEST_F ( CpuTest ,
XCESwitchBackAndForth  )

Definition at line 4184 of file cpu_test.cc.

◆ TEST_F() [295/347]

yaze::test::TEST_F ( Spc700Test ,
MOV_A_Immediate  )

Definition at line 81 of file spc700_test.cc.

◆ TEST_F() [296/347]

yaze::test::TEST_F ( Spc700Test ,
MOV_A_X  )

Definition at line 96 of file spc700_test.cc.

◆ TEST_F() [297/347]

yaze::test::TEST_F ( Spc700Test ,
MOV_A_Y  )

Definition at line 108 of file spc700_test.cc.

◆ TEST_F() [298/347]

yaze::test::TEST_F ( Spc700Test ,
MOV_A_dp  )

Definition at line 120 of file spc700_test.cc.

◆ TEST_F() [299/347]

yaze::test::TEST_F ( Spc700Test ,
MOV_A_dp_plus_x  )

Definition at line 138 of file spc700_test.cc.

◆ TEST_F() [300/347]

yaze::test::TEST_F ( Spc700Test ,
MOV_A_dp_indirect_plus_y  )

Definition at line 157 of file spc700_test.cc.

◆ TEST_F() [301/347]

yaze::test::TEST_F ( Spc700Test ,
MOV_A_dp_plus_x_indirect  )

Definition at line 178 of file spc700_test.cc.

◆ TEST_F() [302/347]

yaze::test::TEST_F ( Spc700Test ,
MOV_A_abs  )

Definition at line 199 of file spc700_test.cc.

◆ TEST_F() [303/347]

yaze::test::TEST_F ( Spc700Test ,
MOV_Immediate  )

Definition at line 221 of file spc700_test.cc.

◆ TEST_F() [304/347]

yaze::test::TEST_F ( Spc700Test ,
NOP_DoesNothing  )

Definition at line 237 of file spc700_test.cc.

◆ TEST_F() [305/347]

yaze::test::TEST_F ( Spc700Test ,
ADC_A_Immediate  )

Definition at line 249 of file spc700_test.cc.

◆ TEST_F() [306/347]

yaze::test::TEST_F ( Spc700Test ,
BEQ_BranchesIfZeroFlagSet  )

Definition at line 265 of file spc700_test.cc.

◆ TEST_F() [307/347]

yaze::test::TEST_F ( Spc700Test ,
STA_Absolute  )

Definition at line 279 of file spc700_test.cc.

◆ TEST_F() [308/347]

yaze::test::TEST_F ( Spc700Test ,
ExecuteADCWithImmediate  )

Definition at line 293 of file spc700_test.cc.

◆ TEST_F() [309/347]

yaze::test::TEST_F ( Spc700Test ,
ExecuteBRA  )

Definition at line 309 of file spc700_test.cc.

◆ TEST_F() [310/347]

yaze::test::TEST_F ( Spc700Test ,
ReadFromAudioRAM  )

Definition at line 323 of file spc700_test.cc.

◆ TEST_F() [311/347]

yaze::test::TEST_F ( Spc700Test ,
WriteToAudioRAM  )

Definition at line 333 of file spc700_test.cc.

◆ TEST_F() [312/347]

yaze::test::TEST_F ( Spc700Test ,
ExecuteANDWithImmediate  )

Definition at line 342 of file spc700_test.cc.

◆ TEST_F() [313/347]

yaze::test::TEST_F ( Spc700Test ,
ExecuteORWithImmediate  )

Definition at line 357 of file spc700_test.cc.

◆ TEST_F() [314/347]

yaze::test::TEST_F ( Spc700Test ,
ExecuteEORWithImmediate  )

Definition at line 372 of file spc700_test.cc.

◆ TEST_F() [315/347]

yaze::test::TEST_F ( Spc700Test ,
ExecuteINC  )

Definition at line 387 of file spc700_test.cc.

◆ TEST_F() [316/347]

yaze::test::TEST_F ( Spc700Test ,
ExecuteDEC  )

Definition at line 399 of file spc700_test.cc.

◆ TEST_F() [317/347]

yaze::test::TEST_F ( Spc700Test ,
ExecuteBNEWhenNotEqual  )

Definition at line 411 of file spc700_test.cc.

◆ TEST_F() [318/347]

yaze::test::TEST_F ( Spc700Test ,
ExecuteBNEWhenEqual  )

Definition at line 425 of file spc700_test.cc.

◆ TEST_F() [319/347]

yaze::test::TEST_F ( Spc700Test ,
ExecuteBEQWhenEqual  )

Definition at line 439 of file spc700_test.cc.

◆ TEST_F() [320/347]

yaze::test::TEST_F ( Spc700Test ,
ExecuteBEQWhenNotEqual  )

Definition at line 453 of file spc700_test.cc.

◆ TEST_F() [321/347]

yaze::test::TEST_F ( Spc700Test ,
BootIplRomOk  )

Definition at line 467 of file spc700_test.cc.

◆ TEST() [1/26]

yaze::test::TEST ( LC_LZ2_CompressionTest ,
TrivialRepeatedBytes  )

Definition at line 106 of file compression_test.cc.

◆ TEST() [2/26]

yaze::test::TEST ( LC_LZ2_CompressionTest ,
RepeatedBytesBetweenUncompressable  )

Definition at line 110 of file compression_test.cc.

◆ TEST() [3/26]

yaze::test::TEST ( LC_LZ2_CompressionTest ,
RepeatedBytesBeforeUncompressable  )

Definition at line 115 of file compression_test.cc.

◆ TEST() [4/26]

yaze::test::TEST ( LC_LZ2_CompressionTest ,
RepeatedBytesAfterUncompressable  )

Definition at line 120 of file compression_test.cc.

◆ TEST() [5/26]

yaze::test::TEST ( LC_LZ2_CompressionTest ,
RepeatedBytesAfterUncompressableRepeated  )

Definition at line 125 of file compression_test.cc.

◆ TEST() [6/26]

yaze::test::TEST ( LC_LZ2_CompressionTest ,
RepeatedBytesBeforeUncompressableRepeated  )

Definition at line 131 of file compression_test.cc.

◆ TEST() [7/26]

◆ TEST() [8/26]

yaze::test::TEST ( LC_LZ2_CompressionTest ,
CompressionSingleSet  )
Todo
Check why header built is off by one

Definition at line 163 of file compression_test.cc.

References BUILD_HEADER.

◆ TEST() [9/26]

yaze::test::TEST ( LC_LZ2_CompressionTest ,
CompressionSingleWord  )

Definition at line 172 of file compression_test.cc.

References BUILD_HEADER.

◆ TEST() [10/26]

yaze::test::TEST ( LC_LZ2_CompressionTest ,
CompressionSingleIncrement  )

Definition at line 181 of file compression_test.cc.

References BUILD_HEADER.

◆ TEST() [11/26]

yaze::test::TEST ( LC_LZ2_CompressionTest ,
CompressionSingleCopy  )

Definition at line 189 of file compression_test.cc.

References BUILD_HEADER.

◆ TEST() [12/26]

yaze::test::TEST ( LC_LZ2_CompressionTest ,
CompressionSingleOverflowIncrement  )

Definition at line 198 of file compression_test.cc.

References BUILD_HEADER.

◆ TEST() [13/26]

yaze::test::TEST ( HandleDirectCopyTest ,
NotDirectCopyWithAccumulatedBytes  )

TEST(LC_LZ2_CompressionTest, CompressionSingleCopyRepeat) { std::vector<uint8_t> single_copy_expected = {0x03, 0x0A, 0x07, 0x14, 0x03, 0x0A, 0x07, 0x14};

auto comp_result = ExpectCompressV3Ok( single_copy_expected, {BUILD_HEADER(0x00, 0x04), 0x03, 0x0A, 0x07, 0x14, BUILD_HEADER(0x04, 0x04), 0x00, 0x00, 0xFF}); EXPECT_THAT(single_copy_expected, ElementsAreArray(comp_result.data(), 6)); }

TEST(LC_LZ2_CompressionTest, CompressionMixedRepeatIncrement) { AssertCompressionQuality( {0x05, 0x05, 0x05, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x05, 0x02, 0x05, 0x02, 0x05, 0x02, 0x0A, 0x0B, 0x05, 0x02, 0x05, 0x02, 0x05, 0x02, 0x08, 0x0A, 0x00, 0x05}, {BUILD_HEADER(0x01, 0x04), 0x05, BUILD_HEADER(0x03, 0x06), 0x06, BUILD_HEADER(0x00, 0x01), 0x05, 0xFF}); }

TEST(LC_LZ2_CompressionTest, CompressionMixedIncrementIntraCopyOffset) { "Mixing, inc, alternate, intra copy" compress start: 3, length: 21 compressed length: 9 AssertCompressionQuality( {0x05, 0x05, 0x05, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x05, 0x02, 0x05, 0x02, 0x05, 0x02, 0x0A, 0x0B, 0x05, 0x02, 0x05, 0x02, 0x05, 0x02, 0x08, 0x0A, 0x00, 0x05}, {BUILD_HEADER(0x03, 0x07), 0x05, BUILD_HEADER(0x02, 0x06), 0x05, 0x02, BUILD_HEADER(0x04, 0x08), 0x05, 0x00, 0xFF}); }

TEST(LC_LZ2_CompressionTest, CompressionMixedIncrementIntraCopySource) { "Mixing, inc, alternate, intra copy" 0, 28 16 AssertCompressionQuality( {0x05, 0x05, 0x05, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x05, 0x02, 0x05, 0x02, 0x05, 0x02, 0x0A, 0x0B, 0x05, 0x02, 0x05, 0x02, 0x05, 0x02, 0x08, 0x0A, 0x00, 0x05}, {BUILD_HEADER(0x01, 0x04), 0x05, BUILD_HEADER(0x03, 0x06), 0x06, BUILD_HEADER(0x02, 0x06), 0x05, 0x02, BUILD_HEADER(0x04, 0x08), 0x08, 0x00, BUILD_HEADER(0x00, 0x04), 0x08, 0x0A, 0x00, 0x05, 0xFF}); }

Extended Header 111CCCLL LLLLLLLL CCC: Real command LLLLLLLLLL: Length

Normally you have 5 bits for the length, so the maximum value you can represent is 31 (which outputs 32 bytes). With the long length, you get 5 more bits for the length, so the maximum value you can represent becomes 1023, outputting 1024 bytes at a time.

void build_extended_header(uint8_t command, uint8_t length, uint8_t& byte1, uint8_t& byte2) { byte1 = command << 3; byte1 += (length - 1); byte1 += 0b11100000; byte2 = length >> 3; }

std::vector<uint8_t> CreateRepeatedBetweenUncompressable( int leftUncompressedSize, int repeatedByteSize, int rightUncompressedSize) { std::vector<uint8_t> result( leftUncompressedSize + repeatedByteSize + rightUncompressedSize, 0); std::fill_n(result.begin() + leftUncompressedSize, repeatedByteSize, 0x00); return result; }

TEST(LC_LZ2_CompressionTest, LengthBorderCompression) { "Length border compression" std::vector<uint8_t> result(42, 0); std::fill_n(result.begin(), 42, 0x05); AssertCompressionQuality(result, {BUILD_HEADER(0x04, 42), 0x05, 0x05, 0xFF});

"Extended length, 400 repeat of 5" std::vector<uint8_t> result2(400, 0); std::fill_n(result2.begin(), 400, 0x05); uint8_t byte1; uint8_t byte2; build_extended_header(0x01, 42, byte1, byte2); AssertCompressionQuality(result2, {byte1, byte2, 0x05, 0x05, 0xFF});

"Extended length, 1050 repeat of 5" std::vector<uint8_t> result3(1050, 0); std::fill_n(result3.begin(), 1050, 0x05); uint8_t byte3; uint8_t byte4; build_extended_header(0x04, 1050, byte3, byte4); AssertCompressionQuality(result3, {byte3, byte4, 0x05, 0x05, 0xFF});

// "Extended length, 2050 repeat of 5" std::vector<uint8_t> result4(2050, 0); std::fill_n(result4.begin(), 2050, 0x05); uint8_t byte5; uint8_t byte6; build_extended_header(0x04, 2050, byte5, byte6); AssertCompressionQuality(result4, {byte5, byte6, 0x05, 0x05, 0xFF}); }

TEST(LC_LZ2_CompressionTest, CompressionExtendedWordCopy) { ROM rom; uint8_t buffer[3000]; for (unsigned int i = 0; i < 3000; i += 2) { buffer[i] = 0x05; buffer[i + 1] = 0x06; } uint8_t hightlength_word_1050[] = { 0b11101011, 0xFF, 0x05, 0x06, BUILD_HEADER(0x02, 0x1A), 0x05, 0x06, 0xFF};

// "Extended word copy" auto comp_result = ExpectCompressOk(rom, buffer, 1050); EXPECT_THAT(hightlength_word_1050, ElementsAreArray(comp_result.data(), 8));

std::vector<uint8_t> buffer(3000, 0); std::fill_n(buffer.begin(), 3000, 0x05); for (unsigned int i = 0; i < 3000; i += 2) { buffer[i] = 0x05; buffer[i + 1] = 0x06; }

uint8_t byte1; uint8_t byte2; build_extended_header(0x02, 0x1A, byte1, byte2); AssertCompressionQuality( buffer, {0b11101011, 0xFF, 0x05, 0x06, byte1, byte2, 0x05, 0x06, 0xFF}); }

TEST(LC_LZ2_CompressionTest, CompressionMixedPatterns) { AssertCompressionQuality( {0x05, 0x05, 0x05, 0x06, 0x07, 0x06, 0x07, 0x08, 0x09, 0x0A}, {BUILD_HEADER(0x01, 0x03), 0x05, BUILD_HEADER(0x02, 0x04), 0x06, 0x07, BUILD_HEADER(0x03, 0x03), 0x08, 0xFF}); }

TEST(LC_LZ2_CompressionTest, CompressionLongIntraCopy) { ROM rom; uint8_t long_data[15] = {0x05, 0x06, 0x07, 0x08, 0x05, 0x06, 0x07, 0x08, 0x05, 0x06, 0x07, 0x08, 0x05, 0x06, 0x07}; uint8_t long_expected[] = {BUILD_HEADER(0x00, 0x04), 0x05, 0x06, 0x07, 0x08, BUILD_HEADER(0x04, 0x0C), 0x00, 0x00, 0xFF};

auto comp_result = ExpectCompressOk(rom, long_data, 15); EXPECT_THAT(long_expected, ElementsAreArray(comp_result.data(), sizeof(long_expected))); }

Definition at line 357 of file compression_test.cc.

References yaze::gfx::lc_lz2::CompressionContext::cmd_with_max, and kCommandByteFill.

◆ TEST() [14/26]

yaze::test::TEST ( HandleDirectCopyTest ,
NotDirectCopyWithoutAccumulatedBytes  )

◆ TEST() [15/26]

yaze::test::TEST ( HandleDirectCopyTest ,
AccumulateBytesWithoutMax  )

◆ TEST() [16/26]

yaze::test::TEST ( CheckIncByteV3Test ,
IncreasingSequence  )

Definition at line 382 of file compression_test.cc.

References kCommandIncreasingFill.

◆ TEST() [17/26]

yaze::test::TEST ( CheckIncByteV3Test ,
IncreasingSequenceSurroundedByIdenticalBytes  )

Definition at line 388 of file compression_test.cc.

References kCommandIncreasingFill.

◆ TEST() [18/26]

yaze::test::TEST ( CheckIncByteV3Test ,
NotAnIncreasingSequence  )

Definition at line 396 of file compression_test.cc.

References kCommandIncreasingFill.

◆ TEST() [19/26]

yaze::test::TEST ( LC_LZ2_CompressionTest ,
DecompressionValidCommand  )

Definition at line 403 of file compression_test.cc.

References BUILD_HEADER.

◆ TEST() [20/26]

yaze::test::TEST ( LC_LZ2_CompressionTest ,
DecompressionMixingCommand  )

Definition at line 412 of file compression_test.cc.

References BUILD_HEADER.

◆ TEST() [21/26]

yaze::test::TEST ( SnesPaletteTest ,
AddColor  )

Definition at line 26 of file snes_palette_test.cc.

References yaze::gfx::SnesPalette::AddColor(), and yaze::gfx::SnesPalette::size().

Here is the call graph for this function:

◆ TEST() [22/26]

yaze::test::TEST ( SnesColorTest ,
ConvertRgbToSnes  )

Definition at line 33 of file snes_palette_test.cc.

References ConvertRgbToSnes().

Here is the call graph for this function:

◆ TEST() [23/26]

yaze::test::TEST ( SnesColorTest ,
ConvertSnestoRGB  )

Definition at line 39 of file snes_palette_test.cc.

References snes_color::blue, ConvertSnesToRgb(), snes_color::green, and snes_color::red.

Here is the call graph for this function:

◆ TEST() [24/26]

yaze::test::TEST ( SnesColorTest ,
ConvertSnesToRGB_Binary  )

Definition at line 47 of file snes_palette_test.cc.

References ConvertSnesToRgb().

Here is the call graph for this function:

◆ TEST() [25/26]

yaze::test::TEST ( SnesColorTest ,
Extraction  )

Definition at line 64 of file snes_palette_test.cc.

References Extract().

Here is the call graph for this function:

◆ TEST() [26/26]

yaze::test::TEST ( SnesColorTest ,
Convert  )

Definition at line 76 of file snes_palette_test.cc.

References yaze::gfx::Convert(), and Extract().

Here is the call graph for this function:

◆ TEST_F() [322/347]

yaze::test::TEST_F ( RomTest ,
Uninitialized  )

Definition at line 40 of file rom_test.cc.

◆ TEST_F() [323/347]

yaze::test::TEST_F ( RomTest ,
LoadFromFile  )

Definition at line 45 of file rom_test.cc.

References EXPECT_OK.

◆ TEST_F() [324/347]

yaze::test::TEST_F ( RomTest ,
LoadFromFileInvalid  )

Definition at line 54 of file rom_test.cc.

◆ TEST_F() [325/347]

yaze::test::TEST_F ( RomTest ,
LoadFromFileEmpty  )

Definition at line 61 of file rom_test.cc.

◆ TEST_F() [326/347]

yaze::test::TEST_F ( RomTest ,
ReadByteOk  )

Definition at line 66 of file rom_test.cc.

References ASSERT_OK_AND_ASSIGN, and EXPECT_OK.

◆ TEST_F() [327/347]

yaze::test::TEST_F ( RomTest ,
ReadByteInvalid  )

Definition at line 76 of file rom_test.cc.

◆ TEST_F() [328/347]

yaze::test::TEST_F ( RomTest ,
ReadWordOk  )

Definition at line 81 of file rom_test.cc.

References EXPECT_OK, and IsOkAndHolds().

Here is the call graph for this function:

◆ TEST_F() [329/347]

yaze::test::TEST_F ( RomTest ,
ReadWordInvalid  )

Definition at line 92 of file rom_test.cc.

◆ TEST_F() [330/347]

yaze::test::TEST_F ( RomTest ,
ReadLongOk  )

Definition at line 97 of file rom_test.cc.

References EXPECT_OK, and IsOkAndHolds().

Here is the call graph for this function:

◆ TEST_F() [331/347]

yaze::test::TEST_F ( RomTest ,
ReadBytesOk  )

Definition at line 109 of file rom_test.cc.

References ASSERT_OK_AND_ASSIGN, and EXPECT_OK.

◆ TEST_F() [332/347]

yaze::test::TEST_F ( RomTest ,
ReadBytesOutOfRange  )

Definition at line 117 of file rom_test.cc.

References EXPECT_OK.

◆ TEST_F() [333/347]

yaze::test::TEST_F ( RomTest ,
WriteByteOk  )

Definition at line 125 of file rom_test.cc.

References ASSERT_OK_AND_ASSIGN, and EXPECT_OK.

◆ TEST_F() [334/347]

yaze::test::TEST_F ( RomTest ,
WriteWordOk  )

Definition at line 136 of file rom_test.cc.

References ASSERT_OK_AND_ASSIGN, and EXPECT_OK.

◆ TEST_F() [335/347]

yaze::test::TEST_F ( RomTest ,
WriteLongOk  )

Definition at line 147 of file rom_test.cc.

References ASSERT_OK_AND_ASSIGN, and EXPECT_OK.

◆ TEST_F() [336/347]

yaze::test::TEST_F ( RomTest ,
WriteTransactionSuccess  )

Definition at line 158 of file rom_test.cc.

References EXPECT_OK, yaze::Rom::LoadFromData(), and yaze::Rom::WriteTransaction().

Here is the call graph for this function:

◆ TEST_F() [337/347]

yaze::test::TEST_F ( RomTest ,
WriteTransactionFailure  )

Definition at line 171 of file rom_test.cc.

References EXPECT_OK, yaze::Rom::LoadFromData(), TEST_F(), and yaze::Rom::WriteTransaction().

Here is the call graph for this function:

◆ TEST_F() [338/347]

yaze::test::TEST_F ( RomTest ,
ReadTransactionSuccess  )

Definition at line 185 of file rom_test.cc.

References EXPECT_OK, yaze::Rom::LoadFromData(), yaze::Rom::ReadTransaction(), and TEST_F().

Here is the call graph for this function:

◆ TEST_F() [339/347]

yaze::test::TEST_F ( RomTest ,
ReadTransactionFailure  )

Definition at line 197 of file rom_test.cc.

References EXPECT_OK, yaze::Rom::LoadFromData(), yaze::Rom::ReadTransaction(), and TEST_F().

Here is the call graph for this function:

◆ MATCHER_P() [1/2]

yaze::test::MATCHER_P ( StatusIs ,
status ,
""  )

Definition at line 26 of file testing.h.

◆ IsOkAndHolds()

template<typename T>
::testing::AssertionResult yaze::test::IsOkAndHolds ( const absl::StatusOr< T > & status_or,
const T & value )

Definition at line 30 of file testing.h.

Referenced by MATCHER_P(), TEST_F(), and TEST_F().

◆ MATCHER_P() [2/2]

yaze::test::MATCHER_P ( IsOkAndHolds ,
value ,
""  )

Definition at line 43 of file testing.h.

References IsOkAndHolds().

Here is the call graph for this function:

◆ TEST_F() [340/347]

yaze::test::TEST_F ( DungeonRoomTest ,
SingleRoomLoadOk  )

Definition at line 25 of file dungeon_room_test.cc.

References yaze::zelda3::Room::LoadHeader(), and yaze::zelda3::Room::LoadRoomFromROM().

Here is the call graph for this function:

◆ TEST_F() [341/347]

yaze::test::TEST_F ( MessageTest ,
LoadMessagesFromRomOk  )

Definition at line 23 of file message_test.cc.

References EXPECT_OK.

◆ TEST_F() [342/347]

yaze::test::TEST_F ( MessageTest ,
VerifySingleMessageFromRomOk  )
Test
Verify that a single message can be loaded from the ROM.

The message is loaded from the ROM and the message is parsed.

Message #1 at address 0x0E000B RawString: [S:00][3][][:75][:44][CH2I]

Parsed: [S:##]A [3]give [2]give >[CH2I]

Message ID: 2 Raw: [S:00][3][][:75][:44][CH2I] Parsed: [S:00][3][][:75][:44][CH2I] Raw Bytes: 7A 00 76 88 8A 75 88 44 68 Parsed Bytes: 7A 00 76 88 8A 75 88 44 68

Definition at line 49 of file message_test.cc.

◆ TEST_F() [343/347]

yaze::test::TEST_F ( MessageTest ,
ParseSingleMessage_CommandParsing  )

Definition at line 53 of file message_test.cc.

References yaze::editor::ParseSingleMessage().

Here is the call graph for this function:

◆ TEST_F() [344/347]

yaze::test::TEST_F ( MessageTest ,
ParseSingleMessage_BasicAscii  )

Definition at line 66 of file message_test.cc.

References yaze::editor::ParseSingleMessage().

Here is the call graph for this function:

◆ TEST_F() [345/347]

yaze::test::TEST_F ( OverworldTest ,
OverworldLoadNoRomDataError  )

Definition at line 27 of file overworld_test.cc.

◆ TEST_F() [346/347]

yaze::test::TEST_F ( OverworldTest ,
OverworldLoadRomDataOk  )

EXPECT_OK(rom()->LoadFromFile("zelda3.sfc")); ASSERT_OK_AND_ASSIGN(auto gfx_data, LoadAllGraphicsData(*rom(), true));

auto status = overworld_.Load(*rom()); EXPECT_TRUE(status.ok()); EXPECT_EQ(overworld_.overworld_maps().size(), zelda3::kNumOverworldMaps); EXPECT_EQ(overworld_.tiles16().size(), zelda3::kNumTile16Individual);

Definition at line 33 of file overworld_test.cc.

◆ TEST_F() [347/347]

yaze::test::TEST_F ( SpriteBuilderTest ,
BuildSpritePropertiesOk  )

Definition at line 56 of file sprite_builder_test.cc.

◆ CompressV2()

absl::StatusOr< std::vector< uint8_t > > yaze::gfx::lc_lz2::CompressV2 ( const uint8_t * data,
const int start,
const int length,
int mode = 1,
bool check = false )

Compresses a buffer of data using the LC_LZ2 algorithm.

Deprecated
Use HyruleMagicDecompress instead.

Definition at line 800 of file compression.cc.

◆ CompressV3()

absl::StatusOr< std::vector< uint8_t > > yaze::gfx::lc_lz2::CompressV3 ( const std::vector< uint8_t > & data,
const int start,
const int length,
int mode = 1,
bool check = false )

◆ DecompressV2()

absl::StatusOr< std::vector< uint8_t > > yaze::gfx::lc_lz2::DecompressV2 ( const uint8_t * data,
int offset,
int size = 0x800,
int mode = 1 )

Decompresses a buffer of data using the LC_LZ2 algorithm.

Note
Works well for graphics but not overworld data. Prefer Hyrule Magic routines for overworld data.

Definition at line 1372 of file compression.cc.

Referenced by yaze::test::anonymous_namespace{compression_test.cc}::ExpectDecompressBytesOk(), and yaze::test::anonymous_namespace{compression_test.cc}::ExpectDecompressOk().

◆ ConvertRgbToSnes()

uint16_t yaze::gfx::ConvertRgbToSnes ( const snes_color & color)

Definition at line 33 of file snes_color.cc.

Referenced by TEST().

◆ ConvertSnesToRgb()

snes_color yaze::gfx::ConvertSnesToRgb ( uint16_t color_snes)

Definition at line 19 of file snes_color.cc.

Referenced by TEST(), and TEST().

◆ Extract()

std::vector< snes_color > yaze::gfx::Extract ( const char * data,
unsigned int offset,
unsigned int palette_size )

Definition at line 58 of file snes_color.cc.

Referenced by TEST(), and TEST().

Variable Documentation

◆ kCommandByteFill

int yaze::gfx::lc_lz2::kCommandByteFill
constexpr

Definition at line 46 of file compression.h.

Referenced by TEST(), and TEST().

◆ kCommandDirectCopy

int yaze::gfx::lc_lz2::kCommandDirectCopy
constexpr

Definition at line 45 of file compression.h.

Referenced by TEST().

◆ kCommandIncreasingFill

int yaze::gfx::lc_lz2::kCommandIncreasingFill
constexpr

Definition at line 48 of file compression.h.

Referenced by TEST(), TEST(), and TEST().

◆ kCommandLongLength

int yaze::gfx::lc_lz2::kCommandLongLength
constexpr

Definition at line 50 of file compression.h.

◆ kCommandRepeatingBytes

int yaze::gfx::lc_lz2::kCommandRepeatingBytes
constexpr

Definition at line 49 of file compression.h.

◆ kCommandWordFill

int yaze::gfx::lc_lz2::kCommandWordFill
constexpr

Definition at line 47 of file compression.h.