Search found 19 matches
- Tue Oct 29, 2024 4:53 pm
- Forum: Programming
- Topic: DMA Function
- Replies: 2
- Views: 383
Re: DMA Function
I didn't even consider that an int would be treated as 16bit in this instance. Thanks for reminding me. Only reason I'm using C versus assembly is to see just how much I can do without headers like x16.h and stdlib.h or even inline assembly. Bouncing back and forth between the Famicom and the X16 wh...
- Mon Oct 21, 2024 9:30 pm
- Forum: Programming
- Topic: DMA Function
- Replies: 2
- Views: 383
DMA Function
Am in the process of adapting VERA into my own custom C/CC65 library and came up with this DMA function. Thought I'd leave it here for thoughts and critique. If you like it, feel free to use it. void DirectMemoryAccess(unsigned char DataBus, unsigned int destination, unsigned char stride, volatile u...
- Fri Oct 11, 2024 5:13 am
- Forum: Programming
- Topic: Getting VBlank Status
- Replies: 2
- Views: 306
Re: Getting VBlank Status
If you want to execute a piece of code on each vblank you have to setup your own isr. Unfortunately, creating my own ISR is beyond my scope at this phase. Even with videos, I'm left feeling overwhelmed and jaded. That said, when dealing with the Gameboy (which, unlike it's console contemporaries, l...
- Thu Oct 10, 2024 2:47 am
- Forum: Programming
- Topic: Getting VBlank Status
- Replies: 2
- Views: 306
Getting VBlank Status
I'm deep diving into VERA at the moment, but even with the documentation available, I'm not quite sure how to handle VBlank. Whether it matters that I'm working in 320x240, if I have to count lines, or if there's a flag. I wrote the following C code, thinking I understand. However, given the resulti...
- Wed Oct 09, 2024 6:47 pm
- Forum: Development Tools
- Topic: File Hex Editor for X16
- Replies: 14
- Views: 4032
Re: File Hex Editor for X16
KickC?
Fixed the BASIC font case problem though with the following function:
Fixed the BASIC font case problem though with the following function:
Code: Select all
void FixScreen(){
asm("lda #$8f");
asm("jsr $ffd2");
asm("lda #$8e");
asm("jsr $ffd2");
}
- Wed Oct 09, 2024 5:10 am
- Forum: Development Tools
- Topic: File Hex Editor for X16
- Replies: 14
- Views: 4032
Re: File Hex Editor for X16
It's funny, I was thinking how fun it would be to create a Raylib-esque API just before I saw your latest post. But yes, having built in API's would definitely make a difference. It would make rapid prototyping on the X16 a breeze and completely remove the need for a separate dev environment. An API...
- Tue Oct 08, 2024 4:44 pm
- Forum: Development Tools
- Topic: File Hex Editor for X16
- Replies: 14
- Views: 4032
Re: File Hex Editor for X16
So, I got cute and decided to do a little tinkering. Added a toUpper function just above void main(void) void toUpper(char *str){ char temp; while(*str) { temp = *str; temp = toupper((unsigned char)temp); *str = temp; str++; } } And then appended the function to your file prompt: printf("MAX FI...
- Tue Oct 08, 2024 6:48 am
- Forum: Development Tools
- Topic: File Hex Editor for X16
- Replies: 14
- Views: 4032
Re: File Hex Editor for X16
I mean... runtimes can get in the way sometimes. So, no judgement... I've been known to rip apart runtimes to suit my needs. Had StackExchange foaming at the mouth over my blatant disregard for how GBDK2020 was supposed to handle. But I mean, it's defaults we're standing in my way. I'm definitely in...
- Mon Oct 07, 2024 11:59 pm
- Forum: Development Tools
- Topic: File Hex Editor for X16
- Replies: 14
- Views: 4032
Re: File Hex Editor for X16
I notice in your example, it is showing lower case characters - which should be fine, but it is not the default startup character set or font That seems to be a bug with X16HxD. When I first boot up, everything is set to defaults. But as soon as I run the program, all the characters on screen conve...
- Mon Oct 07, 2024 9:49 pm
- Forum: Development Tools
- Topic: File Hex Editor for X16
- Replies: 14
- Views: 4032
Re: File Hex Editor for X16
The file prompt seems to be very fickle about finding the file name you enter in. Sometimes it opens just fine, however, most of the time it acts as if the file does not exist.
I'm currently operating under R48.