Search found 60 matches

by jgroth
Sun Sep 01, 2019 9:31 pm
Forum: Hardware
Topic: A simple 6502 computer (doesn't work though)
Replies: 67
Views: 5767

Re: A simple 6502 computer (doesn't work though)

BigDumbDinosaur wrote:
jgroth wrote:
So moved on replacing the 74XX00 with an ATF22V10 GAL...
What did you use to program the ATF22V10?
I used an XGecu PRO TL866II plus, that is the original programmer and not a clone.
xgecuprotl866iiplus.jpg
xgecuprotl866iipluslabel.jpg
by jgroth
Sat Aug 31, 2019 5:12 pm
Forum: Hardware
Topic: A simple 6502 computer (doesn't work though)
Replies: 67
Views: 5767

Re: A simple 6502 computer (doesn't work though)

So I finally found out what's wrong with the circuit. The quality of that breadboard was so bad that the VIA didn't get high enough voltage to register a one although I did measure it and it looked OK. When I changed the breadboards to Global Specialities ones everything just started to work. :P So ...
by jgroth
Thu Jul 04, 2019 6:00 pm
Forum: Hardware
Topic: A simple 6502 computer (doesn't work though)
Replies: 67
Views: 5767

Re: A simple 6502 computer (doesn't work though)

Chromatix wrote:
Clearly the correct operation of zero-page and the stack page is the most critical. Without them, a significant proportion of 6502 opcodes become useless. But I think we can now assume that the VIA and ROM are working correctly.
Your code is on my list to try out.
by jgroth
Thu Jul 04, 2019 5:46 pm
Forum: Hardware
Topic: A simple 6502 computer (doesn't work though)
Replies: 67
Views: 5767

Re: A simple 6502 computer (doesn't work though)

barrym95838 wrote:
Do you have a spare SRAM you can swap in? Or maybe try initializing your stack pointer to something like #$EE instead of #$FF?
Tried the RAM in the ref-board computer and it works just fine there.
by jgroth
Tue Jul 02, 2019 6:38 pm
Forum: Hardware
Topic: A simple 6502 computer (doesn't work though)
Replies: 67
Views: 5767

Re: A simple 6502 computer (doesn't work though)

This code does not work so something how I connected the RAM is wrong.

; 64tass Turbo Assembler Macro V1.52.1237? listing file
; 64tass -Demulator=false -o via.bin --nostart --no-monitor --line-numbers --tab-size=1 --list=via.lst via.asm
; Tue Jul 2 19:31:12 2019

;Line ;Offset ;Hex ;Source ...
by jgroth
Tue Jul 02, 2019 6:27 pm
Forum: Hardware
Topic: A simple 6502 computer (doesn't work though)
Replies: 67
Views: 5767

Re: A simple 6502 computer (doesn't work though)

It looks like you've mis-nested loop4 and loop5. That would probably influence the results by throwing the CPU into an infinite loop.
Well spotted Chromatix. I was really tired when I wrote that snippet. This has now been corrected and guess what the probe blinks as it should.
So this program ...
by jgroth
Tue Jul 02, 2019 5:48 pm
Forum: Hardware
Topic: A simple 6502 computer (doesn't work though)
Replies: 67
Views: 5767

Re: A simple 6502 computer (doesn't work though)

This might be a silly notion, but are you certain that you're always getting a clean rts from your jsr delay? Would it be helpful to try a version that in-lines the delay?
The inline version is below:


; 64tass Turbo Assembler Macro V1.52.1237? listing file
; 64tass -Demulator=false -o via.bin ...
by jgroth
Sat Jun 29, 2019 6:38 pm
Forum: Hardware
Topic: A simple 6502 computer (doesn't work though)
Replies: 67
Views: 5767

Re: A simple 6502 computer (doesn't work though)

So I tried this code:

coldstart: .block
ldx #$ff
txs ;Initialise stack register
stx via1ddrb ; set all PB pins to be outputs
loop:
stz via1rb
jsr delay ; wait for a while
dec via1rb
jsr delay
bra loop
.bend

delay: .proc
ldx #$ff
loop2:
ldy #$ff
loop3:
dey
bne loop3
dex
bne loop2 ...
by jgroth
Thu Jun 27, 2019 5:06 pm
Forum: Hardware
Topic: A simple 6502 computer (doesn't work though)
Replies: 67
Views: 5767

Re: A simple 6502 computer (doesn't work though)

All the code (besides the vectors) is within the first 32 bytes of the ROM for the decrement test, but not for the inversion test. Does inserting ten NOPs between the 'BRA loop' and 'delay:' - to move the latter subroutine to a consistent position - make the decrement test fail? These are bytes ...
by jgroth
Thu Jun 27, 2019 4:00 pm
Forum: Hardware
Topic: A simple 6502 computer (doesn't work though)
Replies: 67
Views: 5767

Re: A simple 6502 computer (doesn't work though)



loop: dec via1rb
jsr delay
bra loop

works fine ie the probe goes from high to low to high. But what doesn't work is code like this:

loop: lda #$00
sta via1rb
jsr delay
lda #$ff
sta via1rb
jsr delay
bra loop


That's curious! Is that the only difference between the two? They won't ...
by jgroth
Tue Jun 25, 2019 8:37 pm
Forum: Hardware
Topic: A simple 6502 computer (doesn't work though)
Replies: 67
Views: 5767

Re: A simple 6502 computer (doesn't work though)

Well, 6500 (and 6800) series processors use the Phi2-low time to prepare for a data transfer and the Phi2-high time to actually perform the transfer. Preparing for the transfer entails the propagation of a new address onto the address bus... and it also entails a potential change of "ownership" of ...
by jgroth
Tue Jun 25, 2019 12:07 pm
Forum: Hardware
Topic: A simple 6502 computer (doesn't work though)
Replies: 67
Views: 5767

Re: A simple 6502 computer (doesn't work though)

I only got access to CMOS cpus from WDC I'm afraid so that is what both boards are using.
No worries! -- that's still useful information. One board works and the other doesn't, despite the fact they both have CMOS cpu's. That's a strong indication that (as LIV2 suggested) the C02's version of the ...
by jgroth
Mon Jun 24, 2019 5:53 pm
Forum: Hardware
Topic: A simple 6502 computer (doesn't work though)
Replies: 67
Views: 5767

Re: A simple 6502 computer (doesn't work though)

I understand how spurious reads can cause a problem with devices like the SCC28L92 which has an indexed register that increments on read, but why would it cause problems writing to the 65C22? :!: Hmmm. It's a good question, LIV2. (And I admit my suggestion about the 'C02 bug was fairly hasty. Until ...
by jgroth
Fri Jun 21, 2019 9:59 pm
Forum: Hardware
Topic: A simple 6502 computer (doesn't work though)
Replies: 67
Views: 5767

Re: A simple 6502 computer (doesn't work though)

One step to try might be to pare it down further, if you're comfortable with that. You have a lot there that's not necessary. For example, the data sheet says, "The reset input clears all internal registers to logic 0 (except T1 and T2 latches and counters and the shift register). This places all ...
by jgroth
Fri Jun 21, 2019 7:23 pm
Forum: Hardware
Topic: A simple 6502 computer (doesn't work though)
Replies: 67
Views: 5767

Re: A simple 6502 computer (doesn't work though)

The dream is to get this computer to work.
DSC_0363.JPG

Looks interesting - what is it?

-Gordon
It's a 65C02 based computer with 32k ROM and RAM, an SC28L92 DUART, a Lattice MACH4A5 CPLD and some surrounding logic. A very experimental IDE interface is also there. Half of the implementation of ...