- [NEW] 6502dis i 6502debugger implementats
- [FIX] font.bmp afegit - [NEW] Afegides regles de comprobació de memòria en la versió debug de compilació en el lagueirtofile - [FIX] la rom ha de carregar abans de atari2600::init() - [NEW] Implementació bàsica del PIA completada. - [FIX] El framebuffer intern en el mòdul TIA era incorrecte. - [NEW] Afegits accesors als registres del 6502 - [NEW] m6502::reset() - [FIX] [6502m] Corregits opcodes amb direccionament implicit: CLC, SEC, PHA, CLI, PLA, SEI, DEY, TXA, TYA, TXS, TAY, TAX, CLV, TSX, INY, DEX, CLD, INX, NOP i SED). Augmentaven el PC una posició de més.
This commit is contained in:
+6
-5
@@ -3,20 +3,21 @@
|
||||
#include "rom.h"
|
||||
#include "ui.h"
|
||||
#include "ui_window.h"
|
||||
|
||||
//#include "z80debugger.h"
|
||||
#include "6502debugger.h"
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO);
|
||||
|
||||
atari2600::init();
|
||||
|
||||
if (argc > 1) {
|
||||
rom::load(argv[1]);
|
||||
} else {
|
||||
rom::load("combat.bin");
|
||||
}
|
||||
|
||||
atari2600::init();
|
||||
atari2600::pause();
|
||||
m6502debugger::show();
|
||||
|
||||
int wait = 16;
|
||||
SDL_Event e;
|
||||
while (!atari2600::is_quitting()) {
|
||||
@@ -31,7 +32,7 @@ int main(int argc, char *argv[]) {
|
||||
if (e.type == SDL_EVENT_KEY_DOWN) {
|
||||
if (atari2600::is_paused()) {
|
||||
switch (e.key.scancode) {
|
||||
case SDL_SCANCODE_F10: atari2600::step(); /*z80debugger::refresh();*/ break;
|
||||
case SDL_SCANCODE_F10: atari2600::step(); m6502debugger::refresh(); break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user