Search found 451 matches

by Stefan
Wed Sep 25, 2024 2:57 pm
Forum: CX16 General Chat
Topic: Frustrations With These Forums
Replies: 6
Views: 326

Re: Frustrations With These Forums

I think that everybody agrees upon the need for more and better documentation. Improvements have been made, and some more are being discussed on the Discord channel. The number of persons doing this in their spare time is low. If you want to give something back to the community, taking part in docum...
by Stefan
Tue Sep 24, 2024 7:53 pm
Forum: CX16 Hardware Support
Topic: Bricked First-Run Board
Replies: 3
Views: 213

Re: Bricked First-Run Board

Understood. Either way, I’m willing to help if you go about recovering the SMC
by Stefan
Tue Sep 24, 2024 12:50 am
Forum: CX16 Hardware Support
Topic: Bricked First-Run Board
Replies: 3
Views: 213

Re: Bricked First-Run Board

Sorry to hear that happen. If the SMC is bricked you can recover it yourself. But you need to have some device to program it with, for instance: - an Arduino Uno, https://github.com/X16Community/x16-smc/blob/main/doc/recovery-with-arduino.md or - a TLL866 series programmer If you have any of those, ...
by Stefan
Thu Aug 22, 2024 4:42 am
Forum: CX16 Hardware Support
Topic: Mechanical keyboard recommendations
Replies: 6
Views: 1153

Re: Mechanical keyboard recommendations

EDIT: also - my IBM Model F (1981-1983) keyboard didn't work with the X16 (it's a very ancient and picky keyboard), but the IBM Model M's did work for me with a DIN to PS/2 adapter. i.e. look for IBM keyboards with the F-keys along the top (avoid the one with the F-keys at the left side). I think t...
by Stefan
Sun Aug 04, 2024 2:26 pm
Forum: Programming
Topic: How to implement bareback interrupts?
Replies: 18
Views: 3079

Re: How to implement bareback interrupts?

As a side note:

Code: Select all

php
sei
<do some work>
plp
is a common pattern in 6502 assembly when you need to disable interrupts but want to preserve the original state of the interrupt flag.
by Stefan
Sun Aug 04, 2024 2:12 pm
Forum: Programming
Topic: How to implement bareback interrupts?
Replies: 18
Views: 3079

Re: How to implement bareback interrupts?

Without digging deeper it's hard to be sure, but I have at least a theory why it first worked, and not in the cartridge ROM. When the boot_cartridge function is called during Kernal init from within the start function in kernal/cbm/init.s, interrupts have been disabled with a SEI instructions. When ...
by Stefan
Sun Aug 04, 2024 5:28 am
Forum: Programming
Topic: How to implement bareback interrupts?
Replies: 18
Views: 3079

Re: How to implement bareback interrupts?

Looking at this code that you posted earlier, one thing that stands out is the PLP at the end of _setup_irq. This will disable interrupts, if interrupts were disabled at the beginning of the function, effectively overwriting the CLI. _setup_irq: nop php sei stz ClockLo stz ClockHi lda #<loop_irq sta...
by Stefan
Sun Aug 04, 2024 5:19 am
Forum: Programming
Topic: How to implement bareback interrupts?
Replies: 18
Views: 3079

Re: How to implement bareback interrupts?

I have a minimal example that works in the emulator. File: cart.cfg MEMORY { ZP: file = "", start = $0022, size = $0080 - $0022, define = yes; CARTRAM: start = $1000, size = $8f00, define = yes; CARTROM: start = $c000, size = $3fff, fill = yes, fillval = $aa; } SEGMENTS { SETUP: load = CAR...
by Stefan
Sun Aug 04, 2024 3:14 am
Forum: Programming
Topic: How to implement bareback interrupts?
Replies: 18
Views: 3079

Re: How to implement bareback interrupts?

I can try to fix if you upload the complete source code file here + the ca65 config file
by Stefan
Sat Aug 03, 2024 6:53 pm
Forum: Programming
Topic: How to implement bareback interrupts?
Replies: 18
Views: 3079

Re: How to implement bareback interrupts?

It's been a while since I implemented an ISR in ROM, and some things have changed. This is what I think you need to look out for: - On IRQ, the ROM bank is set to 0 by hardware - Consequently, the vector at $fffe in ROM bank 0 is always called - That vector points to Kernal RAM code at $038b - The R...