I thought I'd add this to this thread: I ran Klaus' functional test (commit 7954e2d on Jan 5, 2020)
on Andrew Holme's Verilog 6502 Model (see http://www.aholme.co.uk/6502/Main.htm).
I used Xilinx Vivado to run the simulation. Results:
96,241,376 cycles
30,646,178 instructions
It took 16 hours 35 ...
Search found 10 matches
- Tue Jun 21, 2022 10:24 pm
- Forum: Emulation and Simulation
- Topic: How long should Klaus functional test take?
- Replies: 19
- Views: 21278
- Sat Nov 13, 2021 11:57 pm
- Forum: Programming
- Topic: PET Keyboard Read Routine
- Replies: 22
- Views: 2363
Re: PET Keyboard Read Routine
Removing the basic "location bytes" makes the PET fail to load the program completely.
If I remember correctly when I wrote this, you have to account for the 2 byte "shift" because after loading, the PET offsets the program, removing those 2 bytes, which is why originally I used .ORG2000+2
The ...
- Sat Nov 13, 2021 10:33 pm
- Forum: Programming
- Topic: PET Keyboard Read Routine
- Replies: 22
- Views: 2363
Re: PET Keyboard Read Routine
I loaded the program into my emulator and it looks like this in memory:
0400: 00 0B 04 00 00 9E 32 30 ......20
0408: 30 30 00 00 00 00 00 00 00......
0410: 00 00 00 00 00 00 00 00 ........
0418: 00 00 00 00 00 00 00 00 ........
...
07CC: 00 00 BRK $00
07CE: A9 00 LDA #$00
07D0: 8D 10 E8 STA ...
0400: 00 0B 04 00 00 9E 32 30 ......20
0408: 30 30 00 00 00 00 00 00 00......
0410: 00 00 00 00 00 00 00 00 ........
0418: 00 00 00 00 00 00 00 00 ........
...
07CC: 00 00 BRK $00
07CE: A9 00 LDA #$00
07D0: 8D 10 E8 STA ...
- Sat Nov 13, 2021 8:49 pm
- Forum: Programming
- Topic: PET Keyboard Read Routine
- Replies: 22
- Views: 2363
Re: PET Keyboard Read Routine
Ok, the .ORG2000+2 is to remind myself that when you load a program into the PET, it adds 2 bytes to determine the start of the basic program, even though it cannot actually be relocated like on other C= machines. This is all good - no bogus bytes are executed.
Brad
I think you might have a ...
- Sat Nov 13, 2021 7:03 pm
- Forum: Programming
- Topic: PET Keyboard Read Routine
- Replies: 22
- Views: 2363
Re: PET Keyboard Read Routine
I notice a couple oddities in your code but they probably shouldn't affect its execution. Your BASIC program calls sys(2000) but your .ORG statement starts the code at 2002. That means one or two garbage instructions get executed but it looks like the MAIN loop does get executed. Also, your SEI ...
- Mon Jan 23, 2017 4:39 am
- Forum: General Discussions
- Topic: Economist article: can neuroscience tools work on a 6502?
- Replies: 8
- Views: 1554
Re: Economist article: can neuroscience tools work on a 6502
BigDumbDinosaur wrote:
KC9UDX wrote:
Interesting, but can't read it with all the pop-ups. 
- Sun Jan 22, 2017 10:23 pm
- Forum: General Discussions
- Topic: Economist article: can neuroscience tools work on a 6502?
- Replies: 8
- Views: 1554
Economist article: can neuroscience tools work on a 6502?
Scientists try out neuroscience analytical tools on our favorite processor simulator. The idea is to see if the tools can predict things we already know about the 6502. If not, are they really that effective for learning about the brain?
http://www.economist.com/news/science-and-technology/21714978 ...
http://www.economist.com/news/science-and-technology/21714978 ...
- Mon Dec 12, 2016 6:50 pm
- Forum: Programmable Logic
- Topic: Pet2001 in FPGA
- Replies: 8
- Views: 2182
Re: Pet2001 in FPGA
If you don't mind me asking (and this may be a stupid question because I'm a noob with Vivado)... Why did you organize the project that way? As far as I can tell (but I just had a cursory look), the Makefile and Tcl scripts just copy everything to a different directory and then create a project ...
- Sun Dec 11, 2016 9:52 pm
- Forum: Programmable Logic
- Topic: Pet2001 in FPGA
- Replies: 8
- Views: 2182
Re: Pet2001 in FPGA
USB/
Have contacted Autor but no Answer, need help with the Rom Memory
Sorry I haven't been responsive. It turns out the e-mail addresses on ALL my websites have not been forwarding properly. They just go into a black hole. I'm trying to get that fixed. Grrrr.
I had a look at that project a ...
Have contacted Autor but no Answer, need help with the Rom Memory
Sorry I haven't been responsive. It turns out the e-mail addresses on ALL my websites have not been forwarding properly. They just go into a black hole. I'm trying to get that fixed. Grrrr.
I had a look at that project a ...
- Fri Sep 11, 2015 3:33 pm
- Forum: Hardware
- Topic: PET 2001C transformer
- Replies: 1
- Views: 520
Re: PET 2001C transformer
A good place to ask this would be at http://www.vintage-computer.com, specifically the Commodore forum: http://www.vintage-computer.com/vcforum ... -Commodore