Sounds like you're thinking of dynamic recompilation, where you transform straight-line sections into some efficient representation, maybe even native code?
If you search with those terms, you should be able to find some good articles. Here are some I found:
http://www.altdevblogaday.com/2011/06 ...
Search found 13 matches
- Mon Dec 16, 2013 4:11 am
- Forum: Emulation and Simulation
- Topic: Instruction Caching
- Replies: 4
- Views: 1643
- Tue Nov 19, 2013 2:21 pm
- Forum: Emulation and Simulation
- Topic: Instruction Caching
- Replies: 4
- Views: 1643
Instruction Caching
Does anyone have any good article of information on getting a simulator to cache instructions between branching logic?
I have general idea about it, but I am not sure how to handle changing state, and interrupts.
I have general idea about it, but I am not sure how to handle changing state, and interrupts.
- Thu Nov 14, 2013 5:01 am
- Forum: Emulation and Simulation
- Topic: 6502 Klaus Test Program Question
- Replies: 29
- Views: 8806
Re: 6502 Klaus Test Program Question
My simulator finally passed all of the functional tests!
I just need to get the interrupt tests working now
I just need to get the interrupt tests working now
- Tue Oct 29, 2013 6:19 pm
- Forum: Emulation and Simulation
- Topic: 6502 Klaus Test Program Question
- Replies: 29
- Views: 8806
Re: 6502 Klaus Test Program Question
Your conclusion is correct. So it jumps to 054C instead of 054D. So you need to fix relative addressing of your emulator (again).
Not sure why I would only be off by one on forward jumps, it may be where I am starting my count from. That got me to the end of the that particular test.
Need to ...
Not sure why I would only be off by one on forward jumps, it may be where I am starting my count from. That got me to the end of the that particular test.
Need to ...
- Sun Oct 27, 2013 11:41 pm
- Forum: Emulation and Simulation
- Topic: 6502 Klaus Test Program Question
- Replies: 29
- Views: 8806
Re: 6502 Klaus Test Program Question
It's amazing what a fresh look at a problem will do for you.
My issue turned out to be that I was loading my program into the wrong place, and starting the program from the wrong place.
I was loading it into memory starting at 1000 and starting execution at 1000. I changed this to loading and ...
My issue turned out to be that I was loading my program into the wrong place, and starting the program from the wrong place.
I was loading it into memory starting at 1000 and starting execution at 1000. I changed this to loading and ...
- Sun Oct 27, 2013 8:07 pm
- Forum: Emulation and Simulation
- Topic: 6502 Klaus Test Program Question
- Replies: 29
- Views: 8806
Re: 6502 Klaus Test Program Question
I hope resurrecting an old thread isn't too frowned upon, I just figured it would be be better to continue here where I left off then to start a new one. Got busy with life, but now I want to finally finish the project I started earlier this year.
My simulator is making it to the first test, where ...
My simulator is making it to the first test, where ...
- Mon Apr 15, 2013 1:45 am
- Forum: Emulation and Simulation
- Topic: 6502 Klaus Test Program Question
- Replies: 29
- Views: 8806
Re: 6502 Klaus Test Program Question
Hi aaronmell, and welcome.
I've collected some links to 6502 test suites at http://visual6502.org/wiki/index.php?title=6502TestPrograms
If you want a few simple cases, the ones from py65 might suit you.
But, running Klaus' suite should be fine, if you just fix things as you find them.
Cheers
Ed ...
I've collected some links to 6502 test suites at http://visual6502.org/wiki/index.php?title=6502TestPrograms
If you want a few simple cases, the ones from py65 might suit you.
But, running Klaus' suite should be fine, if you just fix things as you find them.
Cheers
Ed ...
- Fri Apr 12, 2013 8:09 pm
- Forum: Emulation and Simulation
- Topic: 6502 Klaus Test Program Question
- Replies: 29
- Views: 8806
Re: 6502 Klaus Test Program Question
I actually had pretty good luck doing test-driven development: run the test, wait for it to break, fix the error, repeat.
I recommend Bruce Clark's decimal mode tests for figuring out bugs there.
You can see how I load and run the tests here: https://github.com/zellyn/go6502/blob/master/tests ...
I recommend Bruce Clark's decimal mode tests for figuring out bugs there.
You can see how I load and run the tests here: https://github.com/zellyn/go6502/blob/master/tests ...
- Fri Apr 12, 2013 5:50 pm
- Forum: Emulation and Simulation
- Topic: 6502 Klaus Test Program Question
- Replies: 29
- Views: 8806
Re: 6502 Klaus Test Program Question
I dunno, if you're having basic issues like these, I'd be testing with some real simple programs before tossing something like Klaus's test at it. The test is good, but it's REALLY big, and a bit daunting vs grabbing a couple of simple math and loop utility routines, etc. that are 10-20 ...
- Fri Apr 12, 2013 12:59 am
- Forum: Emulation and Simulation
- Topic: 6502 Klaus Test Program Question
- Replies: 29
- Views: 8806
Re: 6502 Klaus Test Program Question
So, I sorted through things, but I am a bit confused about the negative numbers, I am not quite sure why the range is backwards for negative numbers?
IE: why is 0x80 = 127 and 0xFF = 0 when using relative addressing?
IE: why is 0x80 = 127 and 0xFF = 0 when using relative addressing?
- Thu Apr 11, 2013 3:23 pm
- Forum: Emulation and Simulation
- Topic: 6502 Klaus Test Program Question
- Replies: 29
- Views: 8806
Re: 6502 Klaus Test Program Question
You need to verify the steps of your program with the listing the assembler produced. Unless you convert your simulator's output to hex, this will be hard to do.
The last operation is a 16 or $10 which is a BPL opcode. This should branch back to 4099 but it goes to 3987. Since this is empty space ...
The last operation is a 16 or $10 which is a BPL opcode. This should branch back to 4099 but it goes to 3987. Since this is empty space ...
- Thu Apr 11, 2013 2:13 pm
- Forum: Emulation and Simulation
- Topic: 6502 Klaus Test Program Question
- Replies: 29
- Views: 8806
Re: 6502 Klaus Test Program Question
Hi Aaron and welcome to the forum!
To create a binary, you need to remove the assembler output option -s2. I recommend, that you change load_data_direct = 0 in the source code. The binary image should then start at $1000.
cheers, Klaus
Klaus,
Thanks for you help here.
I followed your steps ...
To create a binary, you need to remove the assembler output option -s2. I recommend, that you change load_data_direct = 0 in the source code. The binary image should then start at $1000.
cheers, Klaus
Klaus,
Thanks for you help here.
I followed your steps ...
- Thu Apr 11, 2013 4:56 am
- Forum: Emulation and Simulation
- Topic: 6502 Klaus Test Program Question
- Replies: 29
- Views: 8806
6502 Klaus Test Program Question
First time poster here,
I decided to spend a few weekends implementing yet another 6502 simulator in C#. I've got all of the Op Codes implemented, and I am trying to get Klaus's test suite to run on the simulator, but so far I have not been able to get it working.
I was able to get the tests ...
I decided to spend a few weekends implementing yet another 6502 simulator in C#. I've got all of the Op Codes implemented, and I am trying to get Klaus's test suite to run on the simulator, but so far I have not been able to get it working.
I was able to get the tests ...