diff --git a/puce6502.c b/puce6502.c index 5f4b18a..c94f7b0 100644 --- a/puce6502.c +++ b/puce6502.c @@ -4,6 +4,12 @@ Last modified 1st of August 2020 Copyright (c) 2018 Arthur Ferreira (arthur.ferreira2@gmail.com) + This version has been modified for reinette II plus, a french Apple II plus + emulator using SDL2 (https://github.com/ArthurFerreira2/reinette-II-plus). + + Please download the latest version from + https://github.com/ArthurFerreira2/puce6502 + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights @@ -543,6 +549,9 @@ void puce6502Exec(long long int cycleCount){ } } + +//=================================================== ADDED FOR REINETTE II PLUS + void puce6502Break() { BRK(); } @@ -550,20 +559,3 @@ void puce6502Break() { void puce6502Goto(uint16_t address) { reg.PC = address; } - -void puce6502DumpRegs() { - printf("\nPC:%04X A:%02X X:%02X Y:%02X SP:%02X SR:%02X", reg.PC ,reg.A, reg.X, reg.Y, reg.SP, reg.SR); - printf("\nCARRY:%d ZERO:%d INTR:%d DECIM:%d BREAK:%d OFLOW:%d SIGN:%d\n\n", reg.SR&CARRY, reg.SR&ZERO, reg.SR&INTR, reg.SR&DECIM, reg.SR&BREAK, reg.SR&OFLOW, reg.SR&SIGN); -} - -void puce6502DumpPage(uint8_t page, uint8_t pageCount) { - if (page + pageCount >= RAMSIZE/0xFF) return; - printf("Page %02X\n", page); - for (int i=page*0xFF; i<(page+pageCount)*0xFF; i+=0x10) { - printf("%04X : ", i); - for (int j=i; j32 ? ram[j] : ' '); - printf("\n"); - } -} diff --git a/puce6502.h b/puce6502.h index f98ddd6..01f22ea 100644 --- a/puce6502.h +++ b/puce6502.h @@ -1,8 +1,15 @@ /* + Puce6502 - MOS 6502 cpu emulator Last modified 1st of August 2020 Copyright (c) 2018 Arthur Ferreira (arthur.ferreira2@gmail.com) + This version has been modified for reinette II plus, a french Apple II plus + emulator using SDL2 (https://github.com/ArthurFerreira2/reinette-II-plus). + + Please download the latest version from + https://github.com/ArthurFerreira2/puce6502 + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights @@ -20,6 +27,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ #ifndef _CPU_H @@ -42,7 +50,5 @@ void puce6502Exec(long long int cycleCount); void puce6502Reset(); void puce6502Break(); void puce6502Goto(uint16_t address); -void puce6502DumpRegs(); -void puce6502DumpPage(uint8_t page, uint8_t pageCount); #endif