|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--NMOS6502
|
+--N2A03
|
+--NintendoEntertainmentSystem
The NintendoEntertainmentSystem class emulates the Nintendo Entertainment System produced by Nintendo.
This class needs a lot of modifications and fixes (lots of bugs).
This code is GPL.
Copyright (c) 2000 Brice Fines.
| Field Summary | |
protected int |
joy_1
Joypad 1 variable. |
protected int |
joy_2
Joypad 2 variable. |
protected int |
joy_readbit1
Joypad 1 bit variable. |
protected int |
joy_readbit2
Joypad 2 bit variable. |
protected char[] |
Memory
NES memory. |
protected Video |
PPU
NES picture processing unit. |
private boolean |
reset_joy
Joypad variable. |
protected char[] |
RomImage
Cart ROM image. |
protected char[] |
VRomImage
Cart VROM image. |
| Fields inherited from class N2A03 |
N2A03_DEFAULTCLOCK |
| Fields inherited from class NMOS6502 |
accumulator, after_cli, CLEAR_LINE, effectiveAddress, F_B, F_C, F_D, F_I, F_N, F_T, F_V, F_Z, iCount, irq_callback, irq_state, M6502_INT_IRQ, M6502_INT_NMI, M6502_INT_NONE, M6502_IRQ_VEC, M6502_NMI_VEC, M6502_RST_VEC, M6502_SET_OVERFLOW, nmi_state, pending_irq, previousProgramCounter, processorStatus, programCounter, so_state, stackPointer, tmp, xIndexRegister, yIndexRegister, zeroPageAddress |
| Constructor Summary | |
NintendoEntertainmentSystem()
Constructor. |
|
NintendoEntertainmentSystem(int RomPages,
int VRomPages,
boolean HasHorizontalMirroring)
Constructor. |
|
| Method Summary | |
protected void |
nes_timeslice()
|
protected boolean |
PPUPeriodic()
|
int |
RDMEM(int Address)
Read from memory. |
void |
WRMEM(int Address,
int Value)
Write to memory. |
| Methods inherited from class N2A03 |
ADC, n2a03_irq, SBC |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected char[] RomImage
protected char[] VRomImage
protected char[] Memory
protected Video PPU
protected int joy_1
protected int joy_2
protected int joy_readbit1
protected int joy_readbit2
private boolean reset_joy
| Constructor Detail |
public NintendoEntertainmentSystem()
public NintendoEntertainmentSystem(int RomPages,
int VRomPages,
boolean HasHorizontalMirroring)
RomPages - number of ROM pages.VRomPages - number of VROM pages.HasHorizontalMirroring - indicates if cart has horizontal or vertical mirroring.| Method Detail |
public void WRMEM(int Address,
int Value)
NMOS6502WRMEM in class NMOS6502NMOS6502address - the memory address where you want to write.data - the value you want to write.public int RDMEM(int Address)
NMOS6502RDMEM in class NMOS6502NMOS6502address - is the memory address you want to read from.protected void nes_timeslice()
protected boolean PPUPeriodic()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||