6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri May 10, 2024 4:44 am

All times are UTC




Post new topic Reply to topic  [ 32 posts ]  Go to page Previous  1, 2, 3
Author Message
PostPosted: Thu Nov 09, 2023 4:02 pm 
Offline

Joined: Fri Mar 18, 2022 6:33 pm
Posts: 443
gfoot wrote:
Cookie13! wrote:
This also does nothing. Totally confused.

I know it's probably just a careless idiom, but note that this is almost certainly not true! It is quite hard to get a 6502 to do nothing, unless you stop its clock. It is probably doing something, but not what you expect, and it is important to find ways to determine what that is.
A good way to do that is to use a bus monitor. If you can slow your clock way down you can use an Arduino the way Ben Eater does. But better - and not too expensive - is to use an FX2 dev board as a logic analyzer and feed its capture file to Hoglet's 6502 decoder software. Here's a recent thread about that: viewtopic.php?f=12&t=7710

If your DMM has a frequency counter (My Aneng 8008 does and it's a pretty cheap DMM) you could also try setting up the VIA as a frequency generator:
Code:
    lda     #$FF
    sta     DDRA        ; Set PORTA to OUTPUT
forever:
    inc     PORTA
    bra     forever     ; or 'jmp     forever' if you're using an NMOS CPU
If your VIA is working you should see 8 square waves on the PORTA pins, each half the frequency of the previous one.

_________________
"The key is not to let the hardware sense any fear." - Radical Brad


Top
 Profile  
Reply with quote  
PostPosted: Fri Nov 10, 2023 4:42 pm 
Offline

Joined: Tue Oct 31, 2023 10:34 am
Posts: 15
Location: Germany
Hi All, thanks for all the great inputs. As several have pointed out it is probably a connection issue. As it was always not (or only partially) working subroutines this pointed to the RAM. I found OE which should have been connected to A14 out by one hole so connected to nothing. Now it all works. Thanks once again. I'm sure I will be back with more questions as I proceed.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 32 posts ]  Go to page Previous  1, 2, 3

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: