Comments (4)
Remember, that in the 6502 world borrow = -carry (borrow is the complement of carry). Besides the routine has worked for many users for thousands of times now.
So if you get garbled output it is definitely not in this routine.
from 6502_65c02_functional_tests.
wow my bad, you were right of course :) I apologize for that. I come from a 6809 background so that borrow inversion tricked me. I am pretty close to having a successful test but I seem to be stuck in the "tadd" loop which keeps calling "chkadd" over and over and doesn't throw a trap as usual. any tips on what might be wrong? theres alot of nested increments/decrements so i can't quite figure out what the test it trying to do.
from 6502_65c02_functional_tests.
The loop at "tadd" iterates through all possible operands for an add instruction and calls "chkadd" twice, first with C clear and second with C set. This is 256 * 256 *2 iterations and may take a long time. "tadd" exits when "inc ad2" overflows to 0 again. So the best approach is to find the operands "ad1" and "ad2" in memory and see, wether they increment and wether "ad2" actually gets back to 0 to stop the loop.
from 6502_65c02_functional_tests.
yes! that was it exactly. I started to monitor ad2 and saw how slowly it was incrementing, so I let it run. took about 30 mins to complete, but when it did, my emulator passed all your tests! (I am emulating a 6502 on a 6309 CPU (another 8-bit cpu with a larger instruction set) so I expected it wouldn't be the fastest in the world :) your tool was super useful, thanks alot for making it!
from 6502_65c02_functional_tests.
Related Issues (16)
- Avoid self modifying code? HOT 10
- missing bin files HOT 3
- as65.exe-generated .bin files need 10byte padding at the beginning HOT 1
- Issue with the functional test (TSX, LDA $102,X) HOT 4
- Including a .bin file from your repo HOT 1
- Trap in 65c02 functional test code HOT 2
- Version of binary examples differs from latest source release HOT 1
- Problem with checking RMW absolute indexed page crossing
- Add option to turn off decimal mode specific tests HOT 3
- 6502_functional_test.bin/lst are not the latest versions HOT 1
- 65C02 TRB fails HOT 1
- BRK instruction not tested with interrupts disabled HOT 1
- "Bootable ROM" extension HOT 1
- Possible test escape: ROR with carry clear can set zero flag HOT 3
- AS65 Assembler is difficult to find HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 6502_65c02_functional_tests.