Giter Site home page Giter Site logo

Merging the lib3d.lib into gfx about z88dk HOT 16 CLOSED

zx70 avatar zx70 commented on June 9, 2024
Merging the lib3d.lib into gfx

from z88dk.

Comments (16)

suborb avatar suborb commented on June 9, 2024 2

@zx70 I've created a branch with the folding of lib3d into the cpu libraries.

If you want to sanity check that would be great.

from z88dk.

suborb avatar suborb commented on June 9, 2024 1

You probably need to rebuild z80asm or grab it from nightly.

It should be:

z88dk-z80asm -mf
error: invalid cpu: f; expected: 8080,8085,ez80,ez80_z80,gbz80,kc160,kc160_z80,r2ka,r3k,r4k,r5k,r800,z180,z80,z80_strict,z80n,ti83,ti83plus

from z88dk.

zx70 avatar zx70 commented on June 9, 2024 1

Thankyou @feilipu, my local setup is slowly building the libraries 😹
It is very nice to try spotting those problems I'm aware of and discover they're solved already !
Those capital initials were something I kept untouched from the original Hitech C based SDK for the Sharp Wizard organizers for cross-compatibility.

from z88dk.

zx70 avatar zx70 commented on June 9, 2024 1

I'd keep everything lowercase only, I noticed that this library was never used very much, we also have some redundancy with code coming from the MSX world and others which I tried to merge with partial success.
A local #define is not difficult to add, if it will be ever necessary.

I just noticed that OZDK is sort of surviving, which is definitely a good thing, for the Wizard it is still preferrable to z88dk (but for our larger library), it supports a well tested target specific memory model allowing bigger programs.

https://github.com/arpruss/ozdev

https://github.com/arpruss/ozdev/blob/master/liboz/32k.as
https://github.com/arpruss/ozdev/blob/master/liboz/32k-noozpack.as

from z88dk.

suborb avatar suborb commented on June 9, 2024

It should be fairly easy to do. The main thing to watch out for is the .asm files and 8080/gbz80 variants.

from z88dk.

zx70 avatar zx70 commented on June 9, 2024

If lib3d.lib becomes transparent also the Makefiles for the examples will need a fix.

from z88dk.

feilipu avatar feilipu commented on June 9, 2024

Just a thought (since this is a tidy up), there's inconsistent use of capitalisation for the Type definitions. Sometimes they are capitalised Vector_t, and sometimes lower case vector_t (just for example). Probably lower case should be used throughout, but either way is ok if they are all the same. But not some in lowercase and some in uppercase, which is just confusing.

from z88dk.

zx70 avatar zx70 commented on June 9, 2024

I'm currently stumbling on this one

error: invalid cpu: r4k; expected: z80,z80n,z180,r2ka,r3k,8080,8085,gbz80,ti83,ti83plus
make[2]: *** [adt/heap/heap.mak:28: adt/heap/obj/r4k/adt_HeapAdd.o] Error 1

from z88dk.

zx70 avatar zx70 commented on June 9, 2024

Thank you. While testing I'm pulling the correction @feilipu suggested in the pending branch.

from z88dk.

feilipu avatar feilipu commented on June 9, 2024

Fixed the build issue in example showlib3d.c (hopefully). And a few more.

from z88dk.

feilipu avatar feilipu commented on June 9, 2024

I was thinking to convert all z88dk references to the lowercase, and then (when clean) add in a define for the capitalised type versions so that we don't break user programs.

Ok?

from z88dk.

feilipu avatar feilipu commented on June 9, 2024

It seems all good now.

Ready for PR, unless there's more to add elsewhere.

from z88dk.

zx70 avatar zx70 commented on June 9, 2024

The ZX81 and Lambda targets are now working well :)

There is still something not looking right with the non-z80 CPUs (perhaps my setup is wrong), but I think it we have a good progress already, enough for a pull.

The extra problems I've found:

$ zcc +cpm -clib=8080 -create-app -lm -lgfxvti coswave.c
error: file not found: genmath_8080.lib



$ zcc +cpm -clib=8080 -create-app -lgfxvti showlib3d.c
video/vti/stdio/generic_console.asm:41: error: undefined symbol: __z80asm__ldir
  ^---- __z80asm__ldir
video/vti/stdio/generic_console.asm:109: error: undefined symbol: __z80asm__ldir
  ^---- __z80asm__ldir
lib3d/icos.asm:24: error: undefined symbol: __z80asm__sbc_hl_bc
  ^---- __z80asm__sbc_hl_bc
lib3d/isin.asm:23: error: undefined symbol: __z80asm__sbc_hl_de
  ^---- __z80asm__sbc_hl_de
lib3d/isin.asm:26: error: undefined symbol: __z80asm__sbc_hl_bc
  ^---- __z80asm__sbc_hl_bc
lib3d/isin.asm:41: error: undefined symbol: __z80asm__sbc_hl_de
  ^---- __z80asm__sbc_hl_de
lib3d/isin.asm:44: error: undefined symbol: __z80asm__sbc_hl_bc
  ^---- __z80asm__sbc_hl_bc
lib3d/isin.asm:63: error: undefined symbol: __z80asm__sbc_hl_de
  ^---- __z80asm__sbc_hl_de

from z88dk.

feilipu avatar feilipu commented on June 9, 2024
$ zcc +cpm -clib=8080 -create-app -lm -lgfxvti coswave.c
error: file not found: genmath_8080.lib

It could be made more intuitive, but genmath isn't 8080/85 supported. Try the Microsoft or DAI math libraries.

See the Math Library Wiki.

from z88dk.

suborb avatar suborb commented on June 9, 2024

And the other errors are due to missing the z80asm libraries in lib/

from z88dk.

zx70 avatar zx70 commented on June 9, 2024

Thank you sirs :)

from z88dk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.