mos6502 | A fast & simple MOS 6502 CPU emulator written in C++
kandi X-RAY | mos6502 Summary
kandi X-RAY | mos6502 Summary
This is my C++ implementation of the MOS Technology 6502 CPU. The code is written to be more readable than fast, however some minor tricks have been introduced to greatly reduce the overall execution time.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mos6502
mos6502 Key Features
mos6502 Examples and Code Snippets
Community Discussions
Trending Discussions on mos6502
QUESTION
I am trying to replicate Javidx9's NES/MOS6502 CPU code in C# as an academic exercise and I am having trouble understanding the logic behind the implementation of the Zero-Page Addressing Mode. Specifically, I am looking at this code:
...ANSWER
Answered 2020-Feb-09 at 22:26You're correct addr_abs &= 0x00ff
isn't needed.
uint16_t x = n
where n
is an unsigned 8-bit number (which is the case here). x
would have it's upper 8 bits cleared. As @tadman stated, there might have been a different method used previously to store the value into addr_abs
which didn't clear the upper 8 bits.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mos6502
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page