Search found 13 matches

by SunSailor
Wed Aug 14, 2024 10:51 pm
Forum: Works In-Progress Discussion
Topic: Another World (Out of this World) port for the CX16
Replies: 8
Views: 1476

Re: Another World (Out of this World) port for the CX16

Not sure, if I'm saying something dumb here, but you could use the 200px and overlay the last line with the second layer and a line filled with an eight by eight character, which is transparent on the first four lines and all black on the second four lines. With that, you can easily reuse the part b...
by SunSailor
Tue Aug 06, 2024 4:29 pm
Forum: Programming
Topic: Ideas for 1st person Minecraft-like
Replies: 12
Views: 2499

Re: Ideas for 1st person Minecraft-like

Maybe consider start with a small Terraria clone first. Voxel rendering is much more costly on the CPU side than one may think and you will need to start RAM banking very early on an 8 bit system like the X16.
by SunSailor
Sun Aug 04, 2024 3:09 pm
Forum: Programming
Topic: How to implement bareback interrupts?
Replies: 18
Views: 3031

Re: How to implement bareback interrupts?

Ah, that makes totally sense! Thank you, for pointing this out!
by SunSailor
Sun Aug 04, 2024 1:27 pm
Forum: Programming
Topic: How to implement bareback interrupts?
Replies: 18
Views: 3031

Re: How to implement bareback interrupts?

Boah, thanks guys, you rock! Stefan, you're right, that's the issue. Would never found that, although I still don't understand, why everyting worked fine on the vanilla boot then. I was so focused on the VERA flag set, that I totally forgot about the CPUs one. For the sake of anybody ever searching ...
by SunSailor
Sun Aug 04, 2024 1:01 am
Forum: Programming
Topic: How to implement bareback interrupts?
Replies: 18
Views: 3031

Re: How to implement bareback interrupts?

Thanks for answering, Stefan. Will go through your list here: - On IRQ, the ROM bank is set to 0 by hardware - Consequently, the vector at $fffe in ROM bank 0 is always called That's good to know, wasn't aware of this, but this hits some of my expectations and questions. - That vector points to Kern...
by SunSailor
Sat Aug 03, 2024 4:22 pm
Forum: Programming
Topic: How to implement bareback interrupts?
Replies: 18
Views: 3031

Re: How to implement bareback interrupts?

Thanks, but yes, the cli is already in my full source in the first post. This is my current state: _setup_irq: nop php sei stz ClockLo stz ClockHi lda #<loop_irq sta IRQVec lda #>loop_irq sta IRQVec+1 ; Setup first VBLANK lda #$1 sta VERA::IRQ_EN cli plp rts loop_irq: jsr handle_clock jsr handle_joy...
by SunSailor
Fri Aug 02, 2024 12:28 pm
Forum: Programming
Topic: How to implement bareback interrupts?
Replies: 18
Views: 3031

Re: How to implement bareback interrupts?

And yet, my code works well on a vanilla booted system, but not from my cartridge. The interrupt doesn't get called at all anymore, if setuped from the cartridge entry point. My expectation from browsing through the kernal code is, that system interrupts were registered already at the boot time of t...
by SunSailor
Thu Aug 01, 2024 10:25 pm
Forum: Programming
Topic: How to implement bareback interrupts?
Replies: 18
Views: 3031

Re: How to implement bareback interrupts?

Thanks so far, had a look in it, although I still don't get, why my code doesn't work, as I already tried exactly, what he does there as well... It actually works, if I chain into the existing IRQ, but if I return with a RTI, the system crashes. I'm sure, I'm still missing something. My code so far,...
by SunSailor
Thu Aug 01, 2024 9:51 pm
Forum: X16 Software Support
Topic: Cartridge Autostart
Replies: 7
Views: 2735

Re: Cartridge Autostart

Are there any tutorial for creating a ROM cartridge from start to finish step by step? I think I answered that in my thread already, but I can repeat it here in a maybe better structured way. At least, if you're speaking about the software side: You want to have at least one ROM bank of 16kb, which...
by SunSailor
Thu Aug 01, 2024 9:21 pm
Forum: Programming
Topic: How to implement bareback interrupts?
Replies: 18
Views: 3031

How to implement bareback interrupts?

As mentioned before, I'm approaching the X16 development from the cartridge side of things, which means, I already occupy the ROM space and really would like to not use the system ROM to prevent constant bank switching. Things work pretty well and I'm now at the point that I need a system tick. Just...