Search found 80 matches

by Hobbit1972
Fri Jan 20, 2017 5:33 pm
Forum: Hardware
Topic: Demultiplexing VIC-II address bus
Replies: 9
Views: 1593

Re: Demultiplexing VIC-II address bus

The VIC-II chip uses a multiplexed arrangement to access the address bus. What is a good and simple way to demultiplex that bus? I was thinking along the lines of using some kind of IC, but I don't know what it's called. One set of address lines is timed off the CAS signal, the other off the RAS ...
by Hobbit1972
Mon Jan 16, 2017 7:59 pm
Forum: Programming
Topic: Macro help?
Replies: 50
Views: 6843

Re: Macro help?

It would be good to know the full source - is it online somewhere?
by Hobbit1972
Sun Jan 15, 2017 3:07 pm
Forum: Newbies
Topic: Dual port ram
Replies: 82
Views: 11112

Re: Dual port ram

Now another question regarding the timing signals. In different diagrams and schematics, I'm seeing references to PH0, PH1, and PH2. Some call for a CLK1 and CLK2. I find it very confusing. Is PH0 and PH1 used interchangeably or are they different?

Normally phi0 is the base clock that is fed ...
by Hobbit1972
Sat Jan 14, 2017 7:02 pm
Forum: Programming
Topic: LCD busy flag
Replies: 9
Views: 2015

Re: LCD busy flag

banedon wrote:

Code: Select all

	# set LCD DB7 (port A pin 3) to input on the VIA port A pin 5 = 0 (1=output, 0=input)
	LDA #%11010000
	STA VIA_DDRA
By this you fix R/W as it was previously probably 0=Write?
by Hobbit1972
Mon Jan 09, 2017 8:07 pm
Forum: Emulation and Simulation
Topic: PLA outputs per opcode
Replies: 2
Views: 3002

Re: PLA outputs per opcode

I was wondering: is there a document anywhere which breaks down the PLA outputs per opcode per T state? I've only been able to find this , which lists the PLA outputs and the condition which fires them, but that needs a fair bit of processing to turn into a sequence of PLA outputs for each cycle of ...
by Hobbit1972
Fri Jan 06, 2017 2:29 pm
Forum: Hardware
Topic: 65816 C64 compatible
Replies: 31
Views: 5555

Re: 65816 C64 compatible

So in other words it's realistically not doable to have a buffer. It just doesn't solve anything. Having dual CPUs is a possible option, except that it is not software transparent and as a minimum would add several CPU cycles of delay while it handled the request.
Using a buffer that is constantly ...
by Hobbit1972
Fri Jan 06, 2017 6:08 am
Forum: Hardware
Topic: 65816 C64 compatible
Replies: 31
Views: 5555

Re: 65816 C64 compatible

When the CPU attempts to read those registers it simply fetches them from this buffer.
This will not work e.g. if someone uses SID's internal fibonacchi generator for pseudo random numbers, or accessing VIC's vertical line register to wait for a specific line.
The register itself will change ...
by Hobbit1972
Sun Jan 01, 2017 11:53 am
Forum: Newbies
Topic: Conversion to bin explanation
Replies: 12
Views: 2352

Re: Conversion to bin explanation

The traditional way to convert a hex nibble

ora #"0"
cmp #"9"+1
bcc done ;skip next op if no further adjustment is needed
adc #"A"-"9"-2 ;one less because of carry is set
done

takes 8 bytes and 8 or 9 cycles - an alternative would be:

CMP #$0A
BCC SKIP
ADC #$66 ; Add $67 (the carry is ...
by Hobbit1972
Sun Jan 01, 2017 7:38 am
Forum: Newbies
Topic: Conversion to bin explanation
Replies: 12
Views: 2352

Re: Conversion to bin explanation

Hyc, did you have a look here:

http://www.6502.org/tutorials/ - the tutorials of this site

http://codebase64.org/doku.php?id=base:6502_6510_coding - this site might be useful, too (overall it's target is Commodore 64, but this section is 65xx-coding in general).
by Hobbit1972
Sun Jan 01, 2017 7:35 am
Forum: Newbies
Topic: Conversion to bin explanation
Replies: 12
Views: 2352

Re: Conversion to bin explanation

Happy New Year to everyone!

Is the decimal flag cleared upon interrupt or should I be clearing it in my interrupt handlers?
NMOS doesn't clear decimal flag on IRQ/NMI/BRK/Reset - if you use ADC/SBC in ISR you should clear it there. CMOS has corrected this "feature".

http://www.6502.org ...
by Hobbit1972
Sat Dec 31, 2016 7:10 am
Forum: Newbies
Topic: Conversion to bin explanation
Replies: 12
Views: 2352

Re: Conversion to bin explanation

If the routine is used for screen output only, then it can be done like that without tampering x/y:


binary
sec
rol ;shift the msb out into carry while shifting in an extra index bit
loop pha ;save the value on stack
lda #"0">>1
rol
jsr CHROUT;print character on screen
pla ;restore value ...
by Hobbit1972
Sat Dec 31, 2016 6:49 am
Forum: Newbies
Topic: Conversion to bin explanation
Replies: 12
Views: 2352

Re: Conversion to bin explanation

By changing direction (starting with bit 0 instead bit 7) of you can save an index register and some cycles & space:


start equ *

lda <text ;load the hex value low/high byte of a 16-bit word constant.
sta $80 ;store value of a register in memory location 80
lda >text ;high byte
sta $81

lda ...
by Hobbit1972
Sun Dec 25, 2016 7:28 pm
Forum: Newbies
Topic: Problem adding R65C51
Replies: 21
Views: 4515

Re: Problem adding R65C51

Merry Christmas!


IRQ, DTR, RTS are outputs, so no need to pull them down.

What do you mean with TxC? 6551 has no such pin. But DTR is missing in your schematics.

The datasheet and the schematics I looked up don't have the capacitor on XTAL.

Did you make sure that TxD and RxD are not swapped? so ...
by Hobbit1972
Sat Dec 24, 2016 6:08 am
Forum: Hardware
Topic: Challenge : The Most Minimal Breadboard 6502 Video Computer.
Replies: 69
Views: 18412

Re: Challenge : The Most Minimal Breadboard 6502 Video Compu

All good questions!
...
Yes, video needs to be at least capable of a text that is readable on the screen!

Thanks for clarification. So nice graphics would not be enough, some discernable text is mandatory? (I thought about some nice Lissajous graphs :mrgreen: )

Allowing for a microcontroller ...
by Hobbit1972
Fri Dec 23, 2016 8:10 pm
Forum: Hardware
Topic: Challenge : The Most Minimal Breadboard 6502 Video Computer.
Replies: 69
Views: 18412

Re: Challenge : The Most Minimal Breadboard 6502 Video Compu


4) The "computer" must display Video. VGA, NTSC, LCD, etc.
...
Rule (4) - Definition of Video...

Video can be text or graphics in color or monotone. The video display device must be a standard appliance that anyone can get access to. If the video device is a non standard specialty item such as ...