blog.jmp.no

Electronics, coding and hacking. And ADD.

« Pause for one week Breadboard SID player »

Breadboard SID player (part deux)

2011
27
October
facepalm

I should be kept on a leash for my own safety, because I'm apparently quite stupid. I intentionally chose to avoid using RAM in this project, because I wanted a minimalist design with less wires, thus easier to debug. I also thought that the 6502 would work fine without RAM (which it theoretically does) since all the code is in ROM.

Guess what the first thing I do in my ROM code? Why, JSR to $E000, naturally, where the SID player is initialized. This instruction pushes the caller's address to the stack which is in... ah yes, RAM. Since this failed, the CPU could never return properly from the RTS and went into a very unpredictable state where it eventually got stuck.

Last night I started wiring up everything from scratch, this time with the complete quartet; RAM, ROM, SID and CPU. I'll try again and will let you know how it turns out this time.

Unless I'm choking on my leash, of course.


Share:

to Breadboard SID player (part deux)

Feed for this Entry

0 Comments

    There are currently no comments.

About You

Email address is not published.

All messages must be validated by the admin.

Spam messages or messages containing URLs linking to spam, will never be published.

Not interested in getting my site promoted on your blog, either.

Sorry.

Add to the Discussion

Add to Google