Re: File Hex Editor for X16
Posted: Wed Oct 09, 2024 2:45 am
VIDEOMODE_80x30, etc. is defined in cx16.h (which is included with cc65, as part of supporting the X16 platform).
It should be the same constants passed into the SCREEN keyword in X16 BASIC.
/* Video modes for videomode() */
#define VIDEOMODE_80x60 0x00
#define VIDEOMODE_80x30 0x01
#define VIDEOMODE_40x60 0x02
#define VIDEOMODE_40x30 0x03
#define VIDEOMODE_40x15 0x04
#define VIDEOMODE_20x30 0x05
#define VIDEOMODE_20x15 0x06
#define VIDEOMODE_80COL VIDEOMODE_80x60
#define VIDEOMODE_40COL VIDEOMODE_40x30
#define VIDEOMODE_320x240 0x80
#define VIDEOMODE_SWAP (-1)
I like cc65, but I feel the bulk of expertise that can maintain it has moved on to other interest. Though I'm impressed it still works for the X16 at all, I don't think it's been updated (for the X16 target platform) since the R30's era (maybe 3+ years But if you're fluent with C already, it's a nice tool to prototype a project. It's worked well for me for PET and Apple2 projects though.
Forcing a toUpper I suppose is clever. When I started HXD, I'm not sure if I fully understood the differences between the keyboard scancodes and the current display codes (or plus however the system is "supposed to work" is complicated by whatever behind-the-scenes translation cx16.lib stuff might be doing for you, like in printf and scanf calls).
Tentatively, I'm wondering if some "application helper API" built into one of the ROM slots would be a good thing. For example, just being able to SYS into a ROM address to invoke a text-mode or graphic-mode file selector (with 8K ROM, should be room to fit both). The Melodius file selector is very robust (gamepad support, sorting, long filename support, etc). Sort of like the Microsoft API to invoke a standard "file open" dialog box (which then for free, you get the ability to sort by different criteria or open files across a network device, etc).
I'm very supportive of mid-day siesta's Actually, any-time-of-day siesta's (although I think its root was sexta IIRC, so the word is more intended for the 6th hour into the day, or mid-day-but-not-noonish).
It should be the same constants passed into the SCREEN keyword in X16 BASIC.
/* Video modes for videomode() */
#define VIDEOMODE_80x60 0x00
#define VIDEOMODE_80x30 0x01
#define VIDEOMODE_40x60 0x02
#define VIDEOMODE_40x30 0x03
#define VIDEOMODE_40x15 0x04
#define VIDEOMODE_20x30 0x05
#define VIDEOMODE_20x15 0x06
#define VIDEOMODE_80COL VIDEOMODE_80x60
#define VIDEOMODE_40COL VIDEOMODE_40x30
#define VIDEOMODE_320x240 0x80
#define VIDEOMODE_SWAP (-1)
I like cc65, but I feel the bulk of expertise that can maintain it has moved on to other interest. Though I'm impressed it still works for the X16 at all, I don't think it's been updated (for the X16 target platform) since the R30's era (maybe 3+ years But if you're fluent with C already, it's a nice tool to prototype a project. It's worked well for me for PET and Apple2 projects though.
Forcing a toUpper I suppose is clever. When I started HXD, I'm not sure if I fully understood the differences between the keyboard scancodes and the current display codes (or plus however the system is "supposed to work" is complicated by whatever behind-the-scenes translation cx16.lib stuff might be doing for you, like in printf and scanf calls).
Tentatively, I'm wondering if some "application helper API" built into one of the ROM slots would be a good thing. For example, just being able to SYS into a ROM address to invoke a text-mode or graphic-mode file selector (with 8K ROM, should be room to fit both). The Melodius file selector is very robust (gamepad support, sorting, long filename support, etc). Sort of like the Microsoft API to invoke a standard "file open" dialog box (which then for free, you get the ability to sort by different criteria or open files across a network device, etc).
I'm very supportive of mid-day siesta's Actually, any-time-of-day siesta's (although I think its root was sexta IIRC, so the word is more intended for the 6th hour into the day, or mid-day-but-not-noonish).