Search found 10 matches

by tsky
Tue Jun 21, 2022 10:24 pm
Forum: Emulation and Simulation
Topic: How long should Klaus functional test take?
Replies: 19
Views: 21278

Re: How long should Klaus functional test take?

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 ...
by tsky
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 ...
by tsky
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 ...
by tsky
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 ...
by tsky
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 ...
by tsky
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. :(
Ditto. In under a minute my screen was so cluttered the article was barely visible.
Bummer. Sorry about that. I came across it in my physical copy but looked up the link to post here.
by tsky
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 ...
by tsky
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 ...
by tsky
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 ...
by tsky
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