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...
Search found 2172 matches
- Mon May 29, 2023 9:12 pm
- Forum: Other targets
- Topic: (classic) New target: Triumph Adler/Royal Alphatronic PC
- Replies: 15
- Views: 8675
- Fri May 26, 2023 9:19 pm
- Forum: Feature Requests
- Topic: sccz80 allow return 8-bit values in L register
- Replies: 12
- Views: 150
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...
- Mon May 15, 2023 8:35 pm
- Forum: Sinclair ZX
- Topic: remainder / fmod not working with math32
- Replies: 5
- Views: 119
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
- Mon May 15, 2023 7:26 pm
- Forum: CP/M, FLOS and OS related
- Topic: Sanyo MBC-XXXX CP/M models
- Replies: 40
- Views: 830
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...
- Mon May 15, 2023 3:34 pm
- Forum: CP/M, FLOS and OS related
- Topic: Sanyo MBC-XXXX CP/M models
- Replies: 40
- Views: 830
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
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
- Mon May 15, 2023 11:55 am
- Forum: CP/M, FLOS and OS related
- Topic: Sanyo MBC-XXXX CP/M models
- Replies: 40
- Views: 830
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?
That's what I did for the x820 - you might not have implemented all the functions or be missing the CAPS defc?
- Sat May 13, 2023 10:32 am
- Forum: CP/M, FLOS and OS related
- Topic: Sanyo MBC-XXXX CP/M models
- Replies: 40
- Views: 830
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...
- Sat May 13, 2023 12:03 am
- Forum: CP/M, FLOS and OS related
- Topic: Xerox 820 disk format
- Replies: 20
- Views: 261
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.
- Fri May 12, 2023 10:48 pm
- Forum: CP/M, FLOS and OS related
- Topic: Xerox 820 disk format
- Replies: 20
- Views: 261
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.
Calling gfx_set_fatpix(1) switches to the 80x24 mode detailed above.
- Fri May 12, 2023 8:53 pm
- Forum: Sinclair ZX
- Topic: remainder / fmod not working with math32
- Replies: 5
- Views: 119
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!
In the mean time x - (int)x will get you the remainder!
- Fri May 12, 2023 1:03 pm
- Forum: CP/M, FLOS and OS related
- Topic: Xerox 820 disk format
- Replies: 20
- Views: 261
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...
- Wed May 10, 2023 10:35 pm
- Forum: CP/M, FLOS and OS related
- Topic: Xerox 820 disk format
- Replies: 20
- Views: 261
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.
I've also added a 80x24 super lores display which isn't that great since there's blank pixels around the square.
- Wed May 10, 2023 8:36 pm
- Forum: CP/M, FLOS and OS related
- Topic: Xerox 820 disk format
- Replies: 20
- Views: 261
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/
Edit, found a working one here: http://bitsavers.org/bits/Xerox/820/5_inch/
- Tue May 09, 2023 7:28 pm
- Forum: Amstrad
- Topic: CPC Maths working again
- Replies: 19
- Views: 371
Re: CPC Maths working again
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
- Tue May 09, 2023 5:46 pm
- Forum: CP/M, FLOS and OS related
- Topic: Xerox 820 disk format
- Replies: 20
- Views: 261
Re: Xerox 820 disk format
Send me the ROMs and bootdisc and I’ll have some fun.
- Mon May 08, 2023 9:00 am
- Forum: CP/M, FLOS and OS related
- Topic: Xerox 820 disk format
- Replies: 20
- Views: 261
Re: Xerox 820 disk format
Do you need has byte size extent as well?
- Sun May 07, 2023 11:38 am
- Forum: Sinclair ZX
- Topic: Using SP1 for scroller games
- Replies: 17
- Views: 427
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...
- Sun May 07, 2023 9:37 am
- Forum: Sinclair ZX
- Topic: Using SP1 for scroller games
- Replies: 17
- Views: 427
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. ...
- Sat May 06, 2023 4:09 pm
- Forum: Sinclair ZX
- Topic: Using SP1 for scroller games
- Replies: 17
- Views: 427
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 ...
- Fri May 05, 2023 10:35 pm
- Forum: Project Activity
- Topic: Fixed point maths
- Replies: 0
- Views: 48
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" ...
- Sun Apr 30, 2023 3:54 pm
- Forum: Amstrad
- Topic: CPC Maths working again
- Replies: 19
- Views: 371
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...
- Sun Apr 30, 2023 9:16 am
- Forum: Amstrad
- Topic: CPC Maths working again
- Replies: 19
- Views: 371
Re: CPC Maths working again
I've now merged Q8.8 after manual testing, I still want to automate the testing.
Have fun with it.
Have fun with it.
- Sat Apr 29, 2023 1:00 pm
- Forum: Amstrad
- Topic: CPC Maths working again
- Replies: 19
- Views: 371
Re: CPC Maths working again
The Q8.8 work is currently in a branch here: https://github.com/z88dk/z88dk/tree/feature/fix88 The current state is that the following are working: multiply, divide, inverse, sqrt, log, log2, sin, cos. I need to create an exp() function to complete the set and then fill out the other trig functions....
- Fri Apr 28, 2023 10:03 am
- Forum: Amstrad
- Topic: CPC Maths working again
- Replies: 19
- Views: 371
Re: CPC Maths working again
I've collated most of the parts of a Q8.8 from cemetech/bug fixes on various forums, it just needs a fair bit of cleanup to make it coherent as a whole. Prior to that I took a look at libfixmath which provided a Q16.16 implementation, unfortunately it doesn't compile down that compactly, so an assem...
- Fri Apr 28, 2023 7:31 am
- Forum: Amstrad
- Topic: CPC Maths working again
- Replies: 19
- Views: 371
Re: CPC Maths working again
The cpcmath library unfortunately uses both index registers so can't work on the Gameboy.
The only maths library available for +gb is still MBF32 (--math-mbf32_gbz80)
The only maths library available for +gb is still MBF32 (--math-mbf32_gbz80)