Search found 8 matches

by arrow201
Wed Oct 26, 2022 3:00 pm
Forum: Programming
Topic: Calypsi C compiler toolchain for 6502 and 65816
Replies: 81
Views: 15189

Re: Calypsi C compiler toolchain for 6502 and 65816

Thank you much for your help :) I didn't realize that one can just put __attribute__((interrupt)) , I thought an address was required.
As for inline asm, I can only think the use would be to save on overhead JSR/RTS calls, especially if it's just a few instructions.

Regarding calling asm from C ...
by arrow201
Mon Oct 24, 2022 6:16 pm
Forum: Programming
Topic: Calypsi C compiler toolchain for 6502 and 65816
Replies: 81
Views: 15189

Re: Calypsi C compiler toolchain for 6502 and 65816

Thank you guys for your responses. :) Yes, after posting, I sent an email to the developer, pointing him to my post. Hopefully, he'll respond back here so everyone benefits. If not, and emails me directly, I'll repost any answers from the developer. BigDumbDinosaur( :) ), thank you, yes, I agree ...
by arrow201
Mon Oct 24, 2022 3:12 pm
Forum: Programming
Topic: Calypsi C compiler toolchain for 6502 and 65816
Replies: 81
Views: 15189

Re: Calypsi C compiler toolchain for 6502 and 65816

Following up to my previous post, I have a home brewed 65C02 from the late 1980s. Memory mapping:
RAM - $0000-$7FFF (User program space: $0300-$7FFF)
I/O - $8000-$BFFF
EEPROM - $C000-$DFFF
EPROM (BIOS/Monitor) - $E000-$FFFF

The purpose is to run small experimental programs in RAM. Another objective ...
by arrow201
Tue Oct 04, 2022 11:17 pm
Forum: Programming
Topic: Calypsi C compiler toolchain for 6502 and 65816
Replies: 81
Views: 15189

Re: Calypsi C compiler toolchain for 6502 and 65816

Proxy, thank you very much for your reply! I didn't know there were minimal examples in the install. I'll d/l and install the utility and see how far I get. :) Sorry, I didn't explain the IRQ setting well. I meant to say how I'd initialize the IRQ vector. It would be called from an ASM program as ...
by arrow201
Tue Oct 04, 2022 3:04 pm
Forum: Programming
Topic: Calypsi C compiler toolchain for 6502 and 65816
Replies: 81
Views: 15189

Re: Calypsi C compiler toolchain for 6502 and 65816

Hi,

I'd like to try this compiler on a home brewed 65C02 from the late 1980s. The memory mapping is straight forward:
RAM - $0000-$7FFF (User program space: $0300-$7FFF)
I/O - $8000-$BFFF
EEPROM - $C000-$DFFF
EPROM (BIOS/Monitor) - $E000-$FFFF

I don't see a generic section in the manual for ...
by arrow201
Thu Jul 30, 2020 3:22 pm
Forum: Programming
Topic: 6502 port of the vbcc C compiler
Replies: 31
Views: 22328

Re: 6502 port of the vbcc C compiler

Very cool. :) Have you tested an interrupt handler written in 'C'? Are there any examples for a step-by-step for a homebrewed board as I tried to do for cc65:
("Setting cc65 IRQ/NMI for homebrew board?": http://forum.6502.org/viewtopic.php?f=2&t=6200 )

What is the interrupt call overhead like? The ...
by arrow201
Mon Jul 13, 2020 9:44 pm
Forum: Programming
Topic: Setting cc65 IRQ/NMI for homebrew board?
Replies: 2
Views: 1344

Re: Setting cc65 IRQ/NMI for homebrew board?

Ok, so looking through the cc65 folders and Googling, I have it(mostly) figured out to write an IRQ routine for a home brewed board in 'C'. I don't know if i have it 100% correct, but i have it working for my board. As I've seen mentioned here, and elsewhere, it's always best to write your IRQ ...
by arrow201
Sun Jul 05, 2020 9:05 pm
Forum: Programming
Topic: Setting cc65 IRQ/NMI for homebrew board?
Replies: 2
Views: 1344

Setting cc65 IRQ/NMI for homebrew board?

Hi,

Back in 1988/89 I made my own 65C02 board for my own learning/experiments. Fast forward 30 years, i just recently came across cc65. i dusted off my micro board and low and behold, it still works :) It has 32K of ram, so it's fine for writing C code. I first made a C# PC app to talk to the board ...