Search found 2176 matches

by dom
Sat Jun 03, 2023 10:59 pm
Forum: Other targets
Topic: (classic) New target: Triumph Adler/Royal Alphatronic PC
Replies: 21
Views: 8798

Re: (classic) New target: Triumph Adler/Royal Alphatronic PC

Thanks for the report, I fixed this one up a couple of days ago - my usual favourite issue of not changing the resolution that a few of the functions check against.
by dom
Sat Jun 03, 2023 10:58 pm
Forum: Other targets
Topic: (classic) New target; Agon Light
Replies: 1
Views: 32

(classic) New target; Agon Light

I've just merged support for our first ez80 target, the Agon Light. This is a cheap-ish board with an 18Mhz ez80 coupled with an ESP32 running FabGL for VGA and keyboard support. The default firmware is based on BBC BASIC and as a result there's a MOS which handles the hardware which makes supportin...
by dom
Wed May 31, 2023 10:48 pm
Forum: Other targets
Topic: (classic) New target: Triumph Adler/Royal Alphatronic PC
Replies: 21
Views: 8798

Re: (classic) New target: Triumph Adler/Royal Alphatronic PC

Of course there is, consider it done.
by dom
Tue May 30, 2023 7:25 pm
Forum: Other targets
Topic: (classic) New target: Triumph Adler/Royal Alphatronic PC
Replies: 21
Views: 8798

Re: (classic) New target: Triumph Adler/Royal Alphatronic PC

I've pushed a change to support switching to 80 column mode:
Screenshot 2023-05-30 at 20.21.17.png
It turns out the IO bit marked "80 column mode" doesn't actually do anything and the HD46505 needs to be poked manually to switch between widths.
by dom
Mon May 29, 2023 9:12 pm
Forum: Other targets
Topic: (classic) New target: Triumph Adler/Royal Alphatronic PC
Replies: 21
Views: 8798

Re: (classic) New target: Triumph Adler/Royal Alphatronic PC

I've been scratching my head about this one, but then I looked at the top of this thread.

It looks like I never got it working, though WIDTH 80 in BASIC does work. So I guess I'll need to go digging a bit more.

Edit: Aha, I've got it, I need to drive the CRTC directly...
by dom
Fri May 26, 2023 9:19 pm
Forum: Feature Requests
Topic: sccz80 allow return 8-bit values in L register
Replies: 12
Views: 193

Re: sccz80 allow return 8-bit values in L register

I'm reluctant to add another calling convention when there's one that's fairly close. The __z88dk_sdccdecl convention does work in this way (with R->L pushing of parameters + char parameters pushed as 8 bits). I suspect the way I'd deal with this without too much upheaval is: ex de,hl ld hl,0 ; chec...
by dom
Mon May 15, 2023 8:35 pm
Forum: Sinclair ZX
Topic: remainder / fmod not working with math32
Replies: 5
Views: 149

Re: remainder / fmod not working with math32

I ended up being distracted by other maths libraries, but I've merged a fix for this and added in the missing remainder #define
by dom
Mon May 15, 2023 7:26 pm
Forum: CP/M, FLOS and OS related
Topic: Sanyo MBC-XXXX CP/M models
Replies: 40
Views: 901

Re: Sanyo MBC-XXXX CP/M models

I wrote the bridge to save the effort of having to write the same hardware bashing code multiple times for the same target. Gencon also supports more screen modes than vt. The only things that gencon doesn't have is "reset all attributes" and sub-byte fonts (eg 80 columns in 256px). Lookin...
by dom
Mon May 15, 2023 3:34 pm
Forum: CP/M, FLOS and OS related
Topic: Sanyo MBC-XXXX CP/M models
Replies: 40
Views: 901

Re: Sanyo MBC-XXXX CP/M models

Cool, you can actually have a bit more fun by doing a couple of things:

1. Add @stdio/ansicore.lst to the cpm.lst file
2. Compile with -pragma-define:CLIB_ANSITERMINAL_BRIDGE=1

Then vt100 should mostly work as well
by dom
Mon May 15, 2023 11:55 am
Forum: CP/M, FLOS and OS related
Topic: Sanyo MBC-XXXX CP/M models
Replies: 40
Views: 901

Re: Sanyo MBC-XXXX CP/M models

If you put the mbc200 code into the mbc200 library then it won't clash as the machine library ends up being searched for symbols before cpm_clib.lib.

That's what I did for the x820 - you might not have implemented all the functions or be missing the CAPS defc?
by dom
Sat May 13, 2023 10:32 am
Forum: CP/M, FLOS and OS related
Topic: Sanyo MBC-XXXX CP/M models
Replies: 40
Views: 901

Re: Sanyo MBC-XXXX CP/M models

So, CP/M machines by default have support for --generic-console - it assumes there's an ADM3 console and uses bdos to print to the screen (so might go slightly wonky on the bottom row depending on the bios) along with a backbuffer for vpeeking. It's preferable to write a specific implementation sinc...
by dom
Sat May 13, 2023 12:03 am
Forum: CP/M, FLOS and OS related
Topic: Xerox 820 disk format
Replies: 20
Views: 291

Re: Xerox 820 disk format

Yeah, it's reusable - just a case of adding a table with the 4 characters and including gfx_gencon2.lst - we probably ought to redo Kaypro83 to use it rather than the custom code it's got.
by dom
Fri May 12, 2023 10:48 pm
Forum: CP/M, FLOS and OS related
Topic: Xerox 820 disk format
Replies: 20
Views: 291

Re: Xerox 820 disk format

....and I've done just that using a couple of characters that work better than ` and ,

Calling gfx_set_fatpix(1) switches to the 80x24 mode detailed above.
by dom
Fri May 12, 2023 8:53 pm
Forum: Sinclair ZX
Topic: remainder / fmod not working with math32
Replies: 5
Views: 149

Re: remainder / fmod not working with math32

I've reproduced this, understand what's causing it, know how to fix it, but I'm confused as to why it's been done the way it has so I've asked @felipu if I've missed something.

In the mean time x - (int)x will get you the remainder!
by dom
Fri May 12, 2023 1:03 pm
Forum: CP/M, FLOS and OS related
Topic: Xerox 820 disk format
Replies: 20
Views: 291

Re: Xerox 820 disk format

IMO the idea of an 80x48 mode using comma and apostrophe wasn't that bad ? That's an interesting one, I'll add a graphics mode that will implement 80x48 and fat-pix will switch to 80x24. I think I've seen some targets which have the "volume bar" graphics and an inverse flag but not the us...
by dom
Wed May 10, 2023 10:35 pm
Forum: CP/M, FLOS and OS related
Topic: Xerox 820 disk format
Replies: 20
Views: 291

Re: Xerox 820 disk format

I've added in support for --generic-console - I've conveniently ignored the scroll register.

I've also added a 80x24 super lores display which isn't that great since there's blank pixels around the square.
by dom
Wed May 10, 2023 8:36 pm
Forum: CP/M, FLOS and OS related
Topic: Xerox 820 disk format
Replies: 20
Views: 291

Re: Xerox 820 disk format

Unfortunately I've failed at the first hurdle. The only discs that are accepted by the version of mame I'm running just result in a hexdump.

Edit, found a working one here: http://bitsavers.org/bits/Xerox/820/5_inch/
by dom
Tue May 09, 2023 7:28 pm
Forum: Amstrad
Topic: CPC Maths working again
Replies: 19
Views: 471

Re: CPC Maths working again

RobertK wrote: Tue May 09, 2023 6:57 amWhat other targets do not support the standard -lm library? As far as I know the PMD85?
It's the 8080, 8085, gbz80 and possibly z180 machines that don't support genmath.

There's a csv file here with cpu details: https://github.com/z88dk/z88dk/blob/mas ... atures.csv
by dom
Tue May 09, 2023 5:46 pm
Forum: CP/M, FLOS and OS related
Topic: Xerox 820 disk format
Replies: 20
Views: 291

Re: Xerox 820 disk format

Send me the ROMs and bootdisc and I’ll have some fun.
by dom
Mon May 08, 2023 9:00 am
Forum: CP/M, FLOS and OS related
Topic: Xerox 820 disk format
Replies: 20
Views: 291

Re: Xerox 820 disk format

Do you need has byte size extent as well?
by dom
Sun May 07, 2023 11:38 am
Forum: Sinclair ZX
Topic: Using SP1 for scroller games
Replies: 17
Views: 457

Re: Using SP1 for scroller games

It's easy to show with your struct: struct sprite_s { int16_t pos_x, pos_y; int8_t dx, dy; uint8_t z_plane; struct sp1_ss *sprite; }; The following works (showing "skipping"/gaps in the defined fields): struct sprite sp = { .pos_x = 10, .sprite=NULL }; The following won't (because we end u...
by dom
Sun May 07, 2023 9:37 am
Forum: Sinclair ZX
Topic: Using SP1 for scroller games
Replies: 17
Views: 457

Re: Using SP1 for scroller games

Designated initialisers? Anything else? They've been on my "want-to-do" list for a good few years. Exactly that. :lol: This morning I merged in partial support. Since that bit of the code is a single pass it can’t handle going backwards in the struct. But skipping is supported of course. ...
by dom
Sat May 06, 2023 4:09 pm
Forum: Sinclair ZX
Topic: Using SP1 for scroller games
Replies: 17
Views: 457

Re: Using SP1 for scroller games

P.S. Assembler functions and unrolled loops have been modified to not require any manual adjustment - just change the #define; also I have switched to SDCC compiler for better C syntax support :-) Designated initialisers? Anything else? They've been on my "want-to-do" list for a good few ...
by dom
Fri May 05, 2023 10:35 pm
Forum: Project Activity
Topic: Fixed point maths
Replies: 0
Views: 57

Fixed point maths

Following on from the discussion in the CPC maths thread, I've continued working on fixed point support. There's been some major changes to bring the implementation more into line with N1169: - The main header is now <math/math_fix16.h>, and the former fix88_t typedef is now known "Accum" ...
by dom
Sun Apr 30, 2023 3:54 pm
Forum: Amstrad
Topic: CPC Maths working again
Replies: 19
Views: 471

Re: CPC Maths working again

It's not a native type - I kept it library only. Usage should be fairly obvious (eg expfix88(), mulfix88() etc) and can be trivially deduced from the header file -https://github.com/z88dk/z88dk/blob/master/include/math/math_fix88.h As a result, there's only some overview information here: https://gi...