Search found 21 matches

by Andre
Sun Jul 23, 2023 3:55 am
Forum: Programming
Topic: CC65 LD65 unused code
Replies: 5
Views: 3478

Re: CC65 LD65 unused code

Thanks for the input,

I have started breaking up my assembler files into one function per file and creating libraries.

Regards
Andre
by Andre
Wed Jul 05, 2023 7:20 am
Forum: Programming
Topic: CC65 LD65 unused code
Replies: 5
Views: 3478

CC65 LD65 unused code

Hi All,

This question is for users of the CC65 c compiler. (or simply CA65 and LD65...not really a c compiler problem)
I have some C files and some assembler files.

I compile / assemble them and then link them with LD65.
I've been doing this for a long time and it all works well.

An assembler ...
by Andre
Thu Mar 09, 2023 8:16 am
Forum: General Discussions
Topic: Current 6502 Kits
Replies: 134
Views: 27160

Re: Current 6502 Kits

Hi all,

Thanks for the replies.

I agree that many here are not the target market. I generally don't buy kits either. I just start a design and go straight to PCB. In many cases the shipping costs more than the PCB. It was always my goal to build my own system from scratch.

I have one more ...
by Andre
Tue Mar 07, 2023 8:17 am
Forum: General Discussions
Topic: Current 6502 Kits
Replies: 134
Views: 27160

Re: Current 6502 Kits

Hi all,

I've been running some numbers on my 6502 project.
There are some photos on previous posts if you have not seen it.

Would you pay USD200 (or 199 if you prefer) for a main board with the following specification.
Bare in mind that there will be a significant DHL/Fedex shipping cost from ...
by Andre
Mon Feb 20, 2023 12:30 am
Forum: General Discussions
Topic: Current 6502 Kits
Replies: 134
Views: 27160

Re: Current 6502 Kits

Hi all,

Apologies for the delay in getting back to this post,
So many responses where to start,

I'll start with Chads reply,
- No new-old stock chips, everything must be easily obtained from Mouser or Digikey in mass quantity.
If one wants to make the lowest cost project / kit, whether for sale ...
by Andre
Mon Feb 06, 2023 10:02 pm
Forum: General Discussions
Topic: Current 6502 Kits
Replies: 134
Views: 27160

Re: Current 6502 Kits

Hi Chad,

You sound very organized.
You are right. There is time from 04:00 to 08:00 on weekends.
Not sure I would want to get up at 04:00, but 05:00 or 06:00 to 08:00 would provide a few extra hours.

In terms of kits, is there anything specific that you are looking for?
Any particular features ...
by Andre
Sun Feb 05, 2023 9:17 am
Forum: General Discussions
Topic: Current 6502 Kits
Replies: 134
Views: 27160

Re: Current 6502 Kits

Hi All,

I only recently discovered this topic.

I've not had much time over the last 9 months to work on my 6502 project after starting a new job.
Here is an update and another possible kit,

You can see my introduction and some back ground on the project here.
http://forum.6502.org/viewtopic.php?f ...
by Andre
Fri Apr 22, 2022 11:45 am
Forum: Programming
Topic: Kernel User Interrupt
Replies: 20
Views: 2435

Re: Kernel User Interrupt

Hi

Spotted an error if anybody was looking closely.

...yes it was a 10ms timer interrupt
JMP ($04F0) ; jump to vector1 interrupt
_vector1_return:
INC SYSTEM_TIMER
CLC
LDA SYSTEM_TIMER
CMP #$64 ; HAS TIMER REACHED 100 (0x64)
BCC _exit_irq
LDA #$00
STA SYSTEM_TIMER
INC SYSTEM_SECONDS

JMP ($04F2 ...
by Andre
Fri Apr 22, 2022 6:21 am
Forum: Programming
Topic: Kernel User Interrupt
Replies: 20
Views: 2435

Re: Kernel User Interrupt

Hi

Yes, the vector arrangement looks a little odd. That's why the previous (poor) example showed 3 vectors in a row, which makes no sense out of context.
But this arrangement does make sense.

Vector1 triggers if a 10ms event has occurred
Vector2 triggers if a 1 second event has occurred
Vector3 ...
by Andre
Fri Apr 22, 2022 5:39 am
Forum: Programming
Topic: Kernel User Interrupt
Replies: 20
Views: 2435

Re: Kernel User Interrupt

Thanks for all the help everyone,

Gordon, I see that you are stating with

jsr __osWrch

This takes care of the return (via RTS) so that the original code continues from where the JSR occurred.
The function that you are calling takes care of the JMP (indirect)

_osWrch:
jmp (wrchV)

and wrchV is ...
by Andre
Thu Apr 21, 2022 3:16 am
Forum: Programming
Topic: Kernel User Interrupt
Replies: 20
Views: 2435

Re: Kernel User Interrupt

Hi

I understand that the user program will capture an replace the vectors in the table as required.

Apologies, bad example.
3 successive JMP's is not what I am looking for, but it does serve to illustrate the problem / solution.

I would currently only require 2 vectors as follows
1. Every time ...
by Andre
Thu Apr 21, 2022 1:57 am
Forum: Programming
Topic: Kernel User Interrupt
Replies: 20
Views: 2435

Re: Kernel User Interrupt

Thanks,

I get the idea of the JMP (indirect). Looks like the way to go.

What I don't quite see from all the BBC code is how one returns from the JMP to continue the original IRQ code.

Let's say I have a vector table looking something like this,

vector 1 at $200
vector 2 at $202
vector 3 at $204 ...
by Andre
Wed Apr 20, 2022 9:28 am
Forum: Programming
Topic: Kernel User Interrupt
Replies: 20
Views: 2435

Kernel User Interrupt

Hi all,

In my 6502 system I have kernel code located in the top 8k. (FLASH ROM)
The IRQ interrupt points to $0400 in RAM. 512 bytes has been allocated for future interrupt code, but could be extended.
The current interrupt code only uses 60 bytes.

The IRQ interrupt code is copied from ROM to RAM ...
by Andre
Mon Feb 28, 2022 8:20 am
Forum: Programmable Logic
Topic: CPLD SPI BUS
Replies: 7
Views: 11351

Re: CPLD SPI BUS

Hi Proxy,

I read some of the 65SPI posts here http://forum.6502.org/viewtopic.php?f=4&t=1265&hilit=SPI+INTERFACE but did not realize that there was a website with more information.
I will take a closer look. Thanks

Yes, I am looking at FatFS.
What have you done so far?

I'm not sure how far I want ...
by Andre
Mon Feb 28, 2022 4:54 am
Forum: Programmable Logic
Topic: CPLD SPI BUS
Replies: 7
Views: 11351

Re: CPLD SPI BUS

Hi again,

I've been working my way through SD card initialization.

I found this tutorial from RJH coding very useful. ( http://www.rjhcoding.com/index.php )

Also this post https://electronics.stackexchange.com/questions/303745/sd-card-initialization-problem-cmd8-wrong-response
referring to a ...