C# Класс UnityGB.X80

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
SoundChip SoundChip
aButtonPressed bool
bButtonPressed bool
backgroundAndWindowTileDataSelect bool
backgroundBuffer ].uint[
backgroundDisplayed bool
backgroundPalette uint[]
backgroundTileMapDisplaySelect bool
cartridge ICartridge
downKeyPressed bool
emulator UnityGB.Emulator
halted bool
interruptsEnabled bool
keyP14 bool
keyPressedInterruptEnabled bool
keyPressedInterruptRequested bool
largeSprites bool
lcdControlOperationEnabled bool
lcdcHBlankInterruptEnabled bool
lcdcInterruptEnabled bool
lcdcInterruptRequested bool
lcdcLycLyCoincidenceInterruptEnabled bool
lcdcMode LcdcModeType
lcdcOamInterruptEnabled bool
lcdcVBlankInterruptEnabled bool
leftKeyPressed bool
lyCompare int
oam byte[]
objectPalette0 uint[]
objectPalette1 uint[]
rightKeyPressed bool
scrollX int
selectButtonPressed bool
serialIOTransferCompleteInterruptEnabled bool
serialIOTransferCompleteInterruptRequested bool
spriteTile uint[,,,]
spritesDisplayed bool
startButtonPressed bool
stopped bool
ticks int
timerCounter int
timerFrequency TimerFrequencyType
timerModulo int
timerOverflowInterruptEnabled bool
timerOverflowInterruptRequested bool
timerRunning bool
upKeyPressed bool
vBlankInterruptEnabled bool
vBlankInterruptRequested bool
windowBuffer ].uint[
windowDisplayed bool
windowTileMapDisplaySelect bool
windowX int

Открытые методы

Метод Описание
CheckForBadState ( ) : void
KeyChanged ( char keyCode, bool pressed ) : void
PowerUp ( ) : void
ReadByte ( int address ) : int
ReadWord ( int address ) : int
Step ( ) : void
ToString ( ) : string
UpdateBackground ( ) : void
UpdateSpriteTiles ( ) : void
UpdateWindow ( ) : void
WriteByte ( int address, int value ) : void
WriteWord ( int address, int value ) : void
X80 ( UnityGB.Emulator emulator ) : System

Приватные методы

Метод Описание
Add ( int b ) : void
Add ( int addressHigh, int addressLow ) : void
Add ( int &ah, int &al, int bh, int bl ) : void
AddImmediate ( ) : void
AddImmediateWithCarry ( ) : void
AddSPToHL ( ) : void
AddWithCarry ( int b ) : void
AddWithCarry ( int addressHigh, int addressLow ) : void
And ( int b ) : void
And ( int addressHigh, int addressLow ) : void
AndImmediate ( ) : void
Call ( ) : void
CallIfCarry ( ) : void
CallIfNotCarry ( ) : void
CallIfNotZero ( ) : void
CallIfZero ( ) : void
Compare ( int b ) : void
Compare ( int ah, int al ) : void
CompareImmediate ( ) : void
ComplementA ( ) : void
ComplementCarryFlag ( ) : void
DecimallyAdjustA ( ) : void
Decrement ( int &r ) : void
Decrement ( int &rh, int &rl ) : void
DecrementMemory ( int ah, int al ) : void
DecrementWord ( int &r ) : void
Halt ( ) : void
Increment ( int &r ) : void
Increment ( int &rh, int &rl ) : void
IncrementMemory ( int ah, int al ) : void
IncrementWord ( int &r ) : void
Interrupt ( int address ) : void
Jump ( ) : void
Jump ( int ah, int al ) : void
JumpIfCarry ( ) : void
JumpIfNotCarry ( ) : void
JumpIfNotZero ( ) : void
JumpIfZero ( ) : void
JumpRelative ( ) : void
JumpRelativeIfCarry ( ) : void
JumpRelativeIfNotCarry ( ) : void
JumpRelativeIfNotZero ( ) : void
JumpRelativeIfZero ( ) : void
Load ( int &a, int b ) : void
LoadAFromC ( ) : void
LoadAFromImmediate ( ) : void
LoadFromImmediateAddress ( int &r ) : void
LoadHLWithSPPlusImmediate ( ) : void
LoadImmediate ( int &r ) : void
LoadImmediate ( int &rh, int &rl ) : void
LoadImmediateIntoMemory ( int ah, int al ) : void
LoadImmediateWord ( int &r ) : void
LoadSPWithHL ( ) : void
NegateA ( ) : void
NoOperation ( ) : void
OffsetStackPointer ( ) : void
Or ( int b ) : void
Or ( int addressHigh, int addressLow ) : void
OrImmediate ( ) : void
Pop ( int &a ) : void
Pop ( int &rh, int &rl ) : void
PopAF ( ) : void
Push ( int value ) : void
Push ( int rh, int rl ) : void
PushAF ( ) : void
ReadByte ( int &r, int ah, int al ) : void
ResetBit ( int bit, int &a ) : void
ResetBit ( int bit, int ah, int al ) : void
Restart ( int address ) : void
Return ( ) : void
ReturnFromInterrupt ( ) : void
ReturnIfCarry ( ) : void
ReturnIfNotCarry ( ) : void
ReturnIfNotZero ( ) : void
ReturnIfZero ( ) : void
RotateALeft ( ) : void
RotateALeftThroughCarry ( ) : void
RotateARight ( ) : void
RotateARightThroughCarry ( ) : void
RotateLeft ( int &a ) : void
RotateLeft ( int ah, int al ) : void
RotateLeftThroughCarry ( int &a ) : void
RotateLeftThroughCarry ( int ah, int al ) : void
RotateRight ( int &a ) : void
RotateRight ( int ah, int al ) : void
RotateRightThroughCarry ( int &a ) : void
RotateRightThroughCarry ( int ah, int al ) : void
SaveA ( ) : void
SaveAToC ( ) : void
SaveAWithOffset ( ) : void
SetBit ( int bit, int &a ) : void
SetBit ( int bit, int ah, int al ) : void
SetCarryFlag ( ) : void
ShiftLeft ( int &a ) : void
ShiftLeft ( int ah, int al ) : void
SignedShiftRight ( int &a ) : void
SignedShiftRight ( int ah, int al ) : void
Sub ( int b ) : void
Sub ( int ah, int al ) : void
SubImmediate ( ) : void
SubImmediateWithBorrow ( ) : void
SubWithBorrow ( int b ) : void
SubWithBorrow ( int ah, int al ) : void
Swap ( int &r ) : void
Swap ( int ah, int al ) : void
TestBit ( int bit, int a ) : void
TestBit ( int bit, int ah, int al ) : void
UnsignedShiftRight ( int &a ) : void
UnsignedShiftRight ( int ah, int al ) : void
WriteByte ( int ah, int al, int value ) : void
WriteWordToImmediateAddress ( int value ) : void
Xor ( int b ) : void
Xor ( int addressHigh, int addressLow ) : void
XorImmediate ( ) : void

Описание методов

CheckForBadState() публичный Метод

public CheckForBadState ( ) : void
Результат void

KeyChanged() публичный Метод

public KeyChanged ( char keyCode, bool pressed ) : void
keyCode char
pressed bool
Результат void

PowerUp() публичный Метод

public PowerUp ( ) : void
Результат void

ReadByte() публичный Метод

public ReadByte ( int address ) : int
address int
Результат int

ReadWord() публичный Метод

public ReadWord ( int address ) : int
address int
Результат int

Step() публичный Метод

public Step ( ) : void
Результат void

ToString() публичный Метод

public ToString ( ) : string
Результат string

UpdateBackground() публичный Метод

public UpdateBackground ( ) : void
Результат void

UpdateSpriteTiles() публичный Метод

public UpdateSpriteTiles ( ) : void
Результат void

UpdateWindow() публичный Метод

public UpdateWindow ( ) : void
Результат void

WriteByte() публичный Метод

public WriteByte ( int address, int value ) : void
address int
value int
Результат void

WriteWord() публичный Метод

public WriteWord ( int address, int value ) : void
address int
value int
Результат void

X80() публичный Метод

public X80 ( UnityGB.Emulator emulator ) : System
emulator UnityGB.Emulator
Результат System

Описание свойств

SoundChip публичное свойство

public SoundChip,UnityGB SoundChip
Результат SoundChip

aButtonPressed публичное свойство

public bool aButtonPressed
Результат bool

bButtonPressed публичное свойство

public bool bButtonPressed
Результат bool

backgroundAndWindowTileDataSelect публичное свойство

public bool backgroundAndWindowTileDataSelect
Результат bool

backgroundBuffer публичное свойство

public uint[,] backgroundBuffer
Результат ].uint[

backgroundDisplayed публичное свойство

public bool backgroundDisplayed
Результат bool

backgroundPalette публичное свойство

public uint[] backgroundPalette
Результат uint[]

backgroundTileMapDisplaySelect публичное свойство

public bool backgroundTileMapDisplaySelect
Результат bool

cartridge публичное свойство

public ICartridge cartridge
Результат ICartridge

downKeyPressed публичное свойство

public bool downKeyPressed
Результат bool

emulator публичное свойство

public Emulator,UnityGB emulator
Результат UnityGB.Emulator

halted публичное свойство

public bool halted
Результат bool

interruptsEnabled публичное свойство

public bool interruptsEnabled
Результат bool

keyP14 публичное свойство

public bool keyP14
Результат bool

keyPressedInterruptEnabled публичное свойство

public bool keyPressedInterruptEnabled
Результат bool

keyPressedInterruptRequested публичное свойство

public bool keyPressedInterruptRequested
Результат bool

largeSprites публичное свойство

public bool largeSprites
Результат bool

lcdControlOperationEnabled публичное свойство

public bool lcdControlOperationEnabled
Результат bool

lcdcHBlankInterruptEnabled публичное свойство

public bool lcdcHBlankInterruptEnabled
Результат bool

lcdcInterruptEnabled публичное свойство

public bool lcdcInterruptEnabled
Результат bool

lcdcInterruptRequested публичное свойство

public bool lcdcInterruptRequested
Результат bool

lcdcLycLyCoincidenceInterruptEnabled публичное свойство

public bool lcdcLycLyCoincidenceInterruptEnabled
Результат bool

lcdcMode публичное свойство

public LcdcModeType lcdcMode
Результат LcdcModeType

lcdcOamInterruptEnabled публичное свойство

public bool lcdcOamInterruptEnabled
Результат bool

lcdcVBlankInterruptEnabled публичное свойство

public bool lcdcVBlankInterruptEnabled
Результат bool

leftKeyPressed публичное свойство

public bool leftKeyPressed
Результат bool

lyCompare публичное свойство

public int lyCompare
Результат int

oam публичное свойство

public byte[] oam
Результат byte[]

objectPalette0 публичное свойство

public uint[] objectPalette0
Результат uint[]

objectPalette1 публичное свойство

public uint[] objectPalette1
Результат uint[]

rightKeyPressed публичное свойство

public bool rightKeyPressed
Результат bool

scrollX публичное свойство

public int scrollX
Результат int

selectButtonPressed публичное свойство

public bool selectButtonPressed
Результат bool

serialIOTransferCompleteInterruptEnabled публичное свойство

public bool serialIOTransferCompleteInterruptEnabled
Результат bool

serialIOTransferCompleteInterruptRequested публичное свойство

public bool serialIOTransferCompleteInterruptRequested
Результат bool

spriteTile публичное свойство

public uint[,,,] spriteTile
Результат uint[,,,]

spritesDisplayed публичное свойство

public bool spritesDisplayed
Результат bool

startButtonPressed публичное свойство

public bool startButtonPressed
Результат bool

stopped публичное свойство

public bool stopped
Результат bool

ticks публичное свойство

public int ticks
Результат int

timerCounter публичное свойство

public int timerCounter
Результат int

timerFrequency публичное свойство

public TimerFrequencyType timerFrequency
Результат TimerFrequencyType

timerModulo публичное свойство

public int timerModulo
Результат int

timerOverflowInterruptEnabled публичное свойство

public bool timerOverflowInterruptEnabled
Результат bool

timerOverflowInterruptRequested публичное свойство

public bool timerOverflowInterruptRequested
Результат bool

timerRunning публичное свойство

public bool timerRunning
Результат bool

upKeyPressed публичное свойство

public bool upKeyPressed
Результат bool

vBlankInterruptEnabled публичное свойство

public bool vBlankInterruptEnabled
Результат bool

vBlankInterruptRequested публичное свойство

public bool vBlankInterruptRequested
Результат bool

windowBuffer публичное свойство

public uint[,] windowBuffer
Результат ].uint[

windowDisplayed публичное свойство

public bool windowDisplayed
Результат bool

windowTileMapDisplaySelect публичное свойство

public bool windowTileMapDisplaySelect
Результат bool

windowX публичное свойство

public int windowX
Результат int