Search found 20 matches

by Osi
Sun Aug 18, 2024 1:35 pm
Forum: Hardware
Topic: Thin pin headers for "piggy-back" boards
Replies: 19
Views: 4280

Re: Thin pin headers for "piggy-back" boards

These Aries ZIF sockets look great. A bit expensive and hard to get in Europe.
But the connectors are 0.3mm thick and fit perfectly into standard IC sockets. To me it looks like Aries did this on purpose to allow for safe insertion.
by Osi
Fri Aug 16, 2024 9:05 pm
Forum: Hardware
Topic: Thin pin headers for "piggy-back" boards
Replies: 19
Views: 4280

Re: Thin pin headers for "piggy-back" boards

We fairly often see damaged sockets in the land of Acorn, particularly because there are several projects which work by in-socket replacement of the CPU. One way to deal with a damaged socket is to put a turned-pin socket into it and then use that.

Yes, I've seen even projects using standard ...
by Osi
Fri Aug 16, 2024 1:34 pm
Forum: Hardware
Topic: Thin pin headers for "piggy-back" boards
Replies: 19
Views: 4280

Re: Thin pin headers for "piggy-back" boards

The disadvantage of machined socket pins are their dimensions
The pin can be 0.45 up to 0.55mm in diameter (see https://www.greenconn.com/en/ckfa103-a002.htm )

Compared to the PDIP terminal thickness of 0.25mm

https://www.ti.com/lit/ml/mpdi001b/mpdi001b.pdf?ts=1723814880587&ref_url=https%253A ...
by Osi
Tue Aug 13, 2024 9:23 pm
Forum: Hardware
Topic: Thin pin headers for "piggy-back" boards
Replies: 19
Views: 4280

Re: Thin pin headers for "piggy-back" boards

Thanks guys!
I've found a few possibilities at Mouser, mainly from Samtec, similar to the ones proposed by BDD. My worry though is that the pins are 0.6mm dia. (Edit - just saw that they're 0.4mm also) :)
The ones in my photo, and proposed by Barnacle, do work with the DIP sockets that have wide ...
by Osi
Sun Jan 14, 2024 10:15 pm
Forum: Programming
Topic: Fast and elegant 6502 code to transfer a buffer into display
Replies: 9
Views: 5984

Re: Fast and elegant 6502 code to transfer a buffer into dis

Almost 1kB of code is quite a lot.
But the main issue is, that the source address changes quite a lot.
Destination address on the display is somehow fixed, so that part would work.

I'm not using CA65 it's an older 6502 Macro Assembler/Simulator quite helpful for correct cycle counts.
by Osi
Sat Jan 13, 2024 11:19 pm
Forum: Programming
Topic: Fast and elegant 6502 code to transfer a buffer into display
Replies: 9
Views: 5984

Re: Fast and elegant 6502 code to transfer a buffer into dis

Interesting discussion on AtariAge. Couldn't find the other day.
Using your ZeroPage suggestion, I was able to reduce the time it takes down to 37ms. That's a good big step forward.
We are now at 11.62 usec per byte. The code is a bit longer, but that's not a problem.
Here is how it looks like ...
by Osi
Sat Jan 13, 2024 9:02 pm
Forum: Programming
Topic: Fast and elegant 6502 code to transfer a buffer into display
Replies: 9
Views: 5984

Re: Fast and elegant 6502 code to transfer a buffer into dis

We have stock speed of 1Mhz.
In a "best case" scenario, a LDA source,y / STA target,y / iny ... we have 4+5+2 cycles/usec or 35.2 ms for 3200 bytes.
My assumption is, this is probably the best we can get.

BigEd's proposal, to make use of the ZeroPage to speed things up reminds me to some Basic ...
by Osi
Sat Jan 13, 2024 5:31 pm
Forum: Programming
Topic: Fast and elegant 6502 code to transfer a buffer into display
Replies: 9
Views: 5984

Fast and elegant 6502 code to transfer a buffer into display

I had a look to several code examples on this subject and as well into the Practical Memory Move Routines by Bruce Clark, but none seems to be fast enough.

Basically we have a double buffer that needs to be block moved into the display memory.
The code should be for a standard 6502 CPU. A 160x160 ...
by Osi
Sat Dec 09, 2023 3:29 pm
Forum: Emulation and Simulation
Topic: Superboard/UK101 Programmable sound generator AY-3-8910...
Replies: 0
Views: 29184

Superboard/UK101 Programmable sound generator AY-3-8910...

AY-3-8910 and SN76489AN PSG emulation for the Ohio Scientific Superboard and UK101.

Who does not remember the Premier Publication Software and Hardware projects like the AY-3-8910 Soundboard.
In combination with Basic4/5/X ROMs, the Soundboard could be programmed directly in Basic.

Both AY-3-8910 ...
by Osi
Sat Dec 02, 2023 5:51 pm
Forum: Programming
Topic: calculating 65c02 instruction size
Replies: 18
Views: 10707

Re: calculating 65c02 instruction size

Hi tius,
to calculate the instruction length for a 6502 CPU, here the code I'm using in one of my programs:

instruction_size:
ldx #$01
cmp #$00
beq done
cmp #$40
beq done
cmp #$60
beq done
ldx #$03
cmp #$20
beq done
and #$1F
cmp #$19
beq done
and #$0F
tax
lda table,x
tax
done: rts ...
by Osi
Tue Sep 05, 2023 11:24 am
Forum: Programming
Topic: Mini-challenge - fastest 24 bit countdown
Replies: 32
Views: 16712

Re: Mini-challenge - fastest 24 bit countdown

@BigEd
this is what my preferred compiler spits out:
Ref: C-Compiler example: KickC version 0.85
static void delay_loop(long loops)
{
long d0 = loops;
do {
--d0;
} while (d0 >= 0);
}

translates to

.segment Code
delay_loop: {
.label d0 = $a
__b1:
lda.z d0
sec
sbc #1
sta.z d0
lda.z d0+1 ...
by Osi
Tue Aug 29, 2023 9:34 am
Forum: Programming
Topic: Mini-challenge - fastest 24 bit countdown
Replies: 32
Views: 16712

Re: Mini-challenge - fastest 24 bit countdown

In the two's complement proposal, we actually create a negative number equal the positive one and count the two's complement down to zero. I would consider this as a allowed approach.
The cycle count is 5.02 in the first proposal and can be shorten by the unrolling trick down to 2.2 cycles or ...
by Osi
Mon Aug 28, 2023 8:41 pm
Forum: Programming
Topic: Mini-challenge - fastest 24 bit countdown
Replies: 32
Views: 16712

Re: Mini-challenge - fastest 24 bit countdown

Here is my 24 bit countdown proposal. The shown numbers represent 1sec @ 1Mhz clock speed
So it takes 1 sec to count down from 0x030AC7 to zero.

; A high byte
; y,x low word


.org $1000

lda #$03
ldy #$0A
ldx #$C7
jsr Count
brk


Count pha
txa
eor #$FF
tax
tya
eor #$FF
tay
pla ...
by Osi
Sat Aug 26, 2023 8:50 pm
Forum: Programming
Topic: Question on Relocatable code
Replies: 15
Views: 14581

Re: Question on Relocatable code

Yes, the 6502 NMOS version is pretty limited. I remember hand coding hex programs in my youth and always struggled with code insertion or major changes. If I had known the concept of relocatable code at that time, programs would have looked differently.
Your suggestion to improve the efficiency by ...
by Osi
Sat Aug 26, 2023 10:54 am
Forum: Programming
Topic: Question on Relocatable code
Replies: 15
Views: 14581

Re: Question on Relocatable code

Thanks for the comments and feedback. To my understanding, this alternative code is taking Reg X and Y for the relative offset to the target address.
This is what I wanted to avoid, so a call or jump will not alter any register and the offset follows the JSR instruction in memory (like you expect ...