Update README.md

This commit is contained in:
ArthurFerreira2 2021-06-25 00:11:00 +02:00 committed by GitHub
parent 7ff33c4a10
commit 1071d0e995
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,8 @@
# puce6502 # puce6502
This is a simple and readable emulation of the MOS 6502 CPU\ This is a simple and readable emulation of the MOS 6502 CPU\
It implements all original instructions and is cycle accurate It implements all original instructions and is cycle accurate\
It also passes the [Klaus Test Suite](https://github.com/Klaus2m5/6502_65C02_functional_tests) - set \_FUNCTIONNAL_TESTS to 1 and compile it as a standalone program. It also passes the [Klaus Test Suite](https://github.com/Klaus2m5/6502_65C02_functional_tests) : set `_FUNCTIONNAL_TESTS` to 1 and compile it as a standalone program.
API is as simple as : API is as simple as :
@ -13,7 +13,7 @@ void puce6502IRQ();
void puce6502NMI(); void puce6502NMI();
``` ```
the first function will execute as many instructions as needed to reach cycleCount clock cycles - it will return the updated value of the Program Counter The first function will execute as many instructions as needed to reach cycleCount clock cycles - it will return the updated value of the Program Counter
the 3 others will simulate a RESET, INTERUPT and NON-MASKABLE INTERUPT. the 3 others will simulate a RESET, INTERUPT and NON-MASKABLE INTERUPT.
You are expected to provide the functions to handle read and writes to memory (ROM, RAM, Soft Switches, extension cards ROMs, PIA, VIA, ACIA etc...) You are expected to provide the functions to handle read and writes to memory (ROM, RAM, Soft Switches, extension cards ROMs, PIA, VIA, ACIA etc...)
@ -24,7 +24,7 @@ uint8_t readMem(uint16_t address);
void writeMem(uint16_t address, uint8_t value); void writeMem(uint16_t address, uint8_t value);
``` ```
finnaly, you can import the variable `ticks` (extern ticks) into your code - it holds the accumulated clock cycles since start. Finnaly, you can import the variable `ticks` (extern ticks) into your code - it holds the accumulated clock cycles since start.
For an example of use, you can refer to [reinette II plus](https://github.com/ArthurFerreira2/reinette-II-plus) a french Apple II plus emulator. For an example of use, you can refer to [reinette II plus](https://github.com/ArthurFerreira2/reinette-II-plus) a french Apple II plus emulator.