Search found 45 matches

by feilipu
Fri Dec 01, 2023 9:45 pm
Forum: Sinclair ZX
Topic: Flipping Bytes & Bits!
Replies: 11
Views: 3124

Re: Flipping Bytes & Bits!

I was wondering if there is a either a clever method involving a few instructions ( possibly an assembly rotate or two ) that can help me flip a byte horizontally such that 0x"10011100" would yield "00111001" or perhaps a lookup table of sorts to off-load the amount of ram requi...
by feilipu
Wed Nov 15, 2023 1:11 pm
Forum: Misc
Topic: Future of the libraries
Replies: 32
Views: 35428

Re: Future of the libraries

Almost all of the code in the newlib has been incorporated into classic, so it has achieved the modernisation goal set out in the most part. The exceptions are targets in newlib that use the abstractions in the serial port instantiation and device drivers, etc. There needs to be an integrated soluti...
by feilipu
Thu Aug 17, 2023 3:36 am
Forum: Other targets
Topic: Rabbit R2000 SBC Options
Replies: 3
Views: 1374

Re: Rabbit R2000 SBC Options

There's a full set of Rabbit 2000 documents at the University of Idaho.
http://seniordesign.engr.uidaho.edu/200 ... m2000.html (not https)
by feilipu
Thu Aug 17, 2023 1:37 am
Forum: Other targets
Topic: Rabbit R2000 SBC Options
Replies: 3
Views: 1374

Re: Rabbit R2000 SBC Options

If you fancy turning it into a hardware challenge Mouser have just the CPU in stock. https://mou.sr/3YzRQS1 And with over 4,000 in stock it looks like they might have a stable supply. My first instinct was to design my own SBC, but there's really no "prior art" I can find on the Internet....
by feilipu
Wed Aug 16, 2023 2:16 pm
Forum: Other targets
Topic: Rabbit R2000 SBC Options
Replies: 3
Views: 1374

Rabbit R2000 SBC Options

I'm interested to build / buy a Rabbit R2000 / R3000 board, the best option seems to be the Jackrabbit BL1800 SBC. I've ordered one, and I will (hopefully) get it in March 2024. But, any thoughts on how to get hands on Rabbit hardware sooner? Manufacturer Part Number - Description - Estimated Shipme...
by feilipu
Sun Aug 06, 2023 4:18 am
Forum: Misc
Topic: ChatGPT
Replies: 13
Views: 2281

Re: ChatGPT

:O OMG. Suddenly I’m obsolete, again.
by feilipu
Sun Aug 06, 2023 4:16 am
Forum: Project Activity
Topic: [sdcc] Upgraded to 4.3.0 r14210
Replies: 3
Views: 1860

Re: [sdcc] Upgraded to 4.3.0 r14210

What are the consequences of not using the official sdcc preprocessor? Saving a giant PITA while the sdcc team get their head around migrating from gcpp-4 to gcpp-12 to a wave based cpp over the next release cycles. Also ucpp is C99 compliant, and my understanding is that is also the sccz80 target ...
by feilipu
Sat May 20, 2023 6:12 pm
Forum: Sinclair ZX
Topic: remainder / fmod not working with math32
Replies: 5
Views: 1727

Re: remainder / fmod not working with math32

We did some further fixing (a few days ago) so now the nightly builds should be OK. Could you please check its working as hoped?
by feilipu
Sat May 13, 2023 1:00 am
Forum: Sinclair ZX
Topic: remainder / fmod not working with math32
Replies: 5
Views: 1727

Re: remainder / fmod not working with math32

Working on this here, now. But it may be some time until we can fix it.
Sorry about the confusion.
by feilipu
Sun Apr 30, 2023 8:08 pm
Forum: Misc
Topic: Passing function params via registers
Replies: 9
Views: 2291

Re: Passing function params via registers

The discussion from about two years ago showed about 2% to best case 3% improvement for the new parameter passing method, as Dom remembered.

Discussion source for reference.
https://github.com/z88dk/z88dk/issues/1827
by feilipu
Thu Dec 15, 2022 11:10 am
Forum: Misc
Topic: C pointer and arrays, help please
Replies: 12
Views: 1460

Re: C pointer and arrays, help please

Looks very clean. Will try it out soon.

Perhaps just to suggest that the z88dk memset() function implementation is very optimised (for each machine type), so perhaps using that string function to clear the screen may save a few cycles and speed things up for you.
by feilipu
Tue Dec 13, 2022 1:14 pm
Forum: Misc
Topic: C pointer and arrays, help please
Replies: 12
Views: 1460

Re: C pointer and arrays, help please

Conway Life is hard to optimise, because it reaches across arrays to get neighbouring cells, that aren’t adjacent in memory. All you can do is minimise those accesses.

Like everyone else, I’ve got a version (that I know works with z88dk). It is in my libraries for z88dk, here.

Cheers, Phillip
by feilipu
Sat Oct 22, 2022 1:45 pm
Forum: Misc
Topic: Synthetic z80asm opcodes
Replies: 6
Views: 861

Re: Synthetic z80asm opcodes

So is there anything which indicates what should be made as a synthetic opcode? Limited to something like 5 bytes or so? Key things are: helps to "even out" capabilities across the different INTEL/ZILOG variants, to make support easier. And to have no side effects different to the origina...
by feilipu
Sat Oct 22, 2022 1:35 pm
Forum: Misc
Topic: Testing l_bsearch for 8080
Replies: 8
Views: 939

Re: Testing l_bsearch for 8080

Going to be someone's fun job to rewrite newlib functions for all the machine types in the same inheritance style as the sccz80 l_ functions. I'd like to help out with that. There's been a "thought" for some years, afaik, to lift newlib out of the cellar of _DEVELOPMENT. But it might be m...
by feilipu
Sat Oct 22, 2022 12:55 pm
Forum: Misc
Topic: Testing l_bsearch for 8080
Replies: 8
Views: 939

Re: Testing l_bsearch for 8080

I don't know if newlib is compatible with non z80 processors though. No sorry, newlib isn't generally INTEL compatible. Though there are exceptions to prove the rule. The RC2014-8085 target stitches both newlib and classic crt0 code to produce something that will run on 8085, but exists mainly in n...
by feilipu
Sat Oct 22, 2022 12:42 pm
Forum: Misc
Topic: Synthetic z80asm opcodes
Replies: 6
Views: 861

Re: Synthetic z80asm opcodes

Also, is there a case for a synthetic "ld (nn), hl" instruction for gbz80? I think that could be challenging, but I'm no judge. Paulo was only been adding very simple translations that are without any side effect (on both registers or flags). Though, there are a few that do use the A regi...
by feilipu
Sat Oct 22, 2022 2:35 am
Forum: Misc
Topic: Testing l_bsearch for 8080
Replies: 8
Views: 939

Re: Testing l_bsearch for 8080

Did you want to have qsort enabled too?
I think that the test is still turned off for 8080 (current to this post).
by feilipu
Sat Oct 22, 2022 2:28 am
Forum: Misc
Topic: Synthetic z80asm opcodes
Replies: 6
Views: 861

Re: Synthetic z80asm opcodes

I've recently found out that z80asm will under some circumstances generate 'synthetic' instructions than those specified in the source in order to compose an equivalent for instructions not supported for a target cpu. For instance, on the 8080 relative jump instructions are not available, so if a j...
by feilipu
Mon Oct 17, 2022 9:14 am
Forum: CP/M, FLOS and OS related
Topic: Supporting ReGIS vector graphics on CP/M from Windows 10
Replies: 7
Views: 2431

Re: Supporting ReGIS vector graphics on CP/M from Windows 10

Getting closer, now I've got the 8085 build for 3d and ReGIS working.
So I will start to work on #2099 shortly.
by feilipu
Mon Oct 10, 2022 9:47 pm
Forum: CP/M, FLOS and OS related
Topic: Supporting ReGIS vector graphics on CP/M from Windows 10
Replies: 7
Views: 2431

Re: Supporting ReGIS vector graphics on CP/M from Windows 10

Hi Stefano, yes it should be possible to integrate and use the lib3d.lib. There would need to be some adjustments, as this graphics system (inherited from the original author) uses 4d matrices. I believe it is something to do with carrying the scaling for the projection. The w axis is used as part o...
by feilipu
Mon Oct 10, 2022 1:35 pm
Forum: CP/M, FLOS and OS related
Topic: Supporting ReGIS vector graphics on CP/M from Windows 10
Replies: 7
Views: 2431

Re: Supporting ReGIS vector graphics on CP/M from Windows 10

I've been having some further fun with 3D graphics and the RC2014. Following the discussion on getting ReGIS working on Windows, I thought it was worth porting my z88dk ReGIS library to the Arduino platform. During that process, I found that someone had written GLXGEARS for Arduino so I adapted thei...
by feilipu
Fri Sep 30, 2022 7:16 pm
Forum: CP/M, FLOS and OS related
Topic: Supporting ReGIS vector graphics on CP/M from Windows 10
Replies: 7
Views: 2431

Re: Supporting ReGIS vector graphics on CP/M from Windows 10

No, I’ve not heard of that option previously. Now I need to read up. :-) Though, wouldn’t be hard to get it working. The ReGIS library is nothing more than a “character generator”. So to do similar for Tektroniks would be straight forward. The “trick” was connecting the Windows WSL1 X.org XTerm dots...
by feilipu
Wed Sep 28, 2022 4:05 am
Forum: CP/M, FLOS and OS related
Topic: Supporting ReGIS vector graphics on CP/M from Windows 10
Replies: 7
Views: 2431

Supporting ReGIS vector graphics on CP/M from Windows 10

Recently a question came up on whether it is possible to support graphics from an RC2014 running CP/M and display them on a Windows 10 computer. The answer is yes. It can be done. Actually it is not too hard to get it working. I've written a concise description on the process here . I've written it ...
by feilipu
Fri May 20, 2022 8:54 am
Forum: Sinclair ZX
Topic: math16 on the Spectrum
Replies: 20
Views: 8174

Re: math16 on the Spectrum

The demo looks very good. AFK so can’t run it on my Next.

The bugs you mentioned on the Spectrum Computing blog were fixed by Dom late last year, right?
If there are further issues I like to fix them, so please raise an issue.

Cheers, P
by feilipu
Wed Apr 06, 2022 2:51 am
Forum: CP/M, FLOS and OS related
Topic: building for am9511
Replies: 9
Views: 4244

Re: building for am9511

For interest, when I'm messing around with floating point and long interactions in C, I use this union to reference them. union flong { float f; unsigned long l; }; With this I can then print the hex values of the floats I'm debugging. #pragma printf = "%lx %x %ld %d %.14f %s %c" // enable...