Comments (16)
@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.
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.
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.
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.
It should be fairly easy to do. The main thing to watch out for is the .asm files and 8080/gbz80 variants.
from z88dk.
If lib3d.lib becomes transparent also the Makefiles for the examples will need a fix.
from z88dk.
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.
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.
Thank you. While testing I'm pulling the correction @feilipu suggested in the pending branch.
from z88dk.
Fixed the build issue in example showlib3d.c
(hopefully). And a few more.
from z88dk.
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.
Ready for PR, unless there's more to add elsewhere.
from z88dk.
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.
$ 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.
And the other errors are due to missing the z80asm libraries in lib/
from z88dk.
Thank you sirs :)
from z88dk.
Related Issues (20)
- (z80asm) test fails in SNAPcraft HOT 1
- Support Tandy-Emeritus
- (z80asm) Pseudo instructions causing trouble HOT 3
- (sccz80) Const initialisation issue HOT 1
- 2.2 does not compile on Fedora 40 HOT 4
- [question] How is z88dk making it possible to parallely build several targets sharing some code? HOT 3
- [bug?] Z88DK versions from the same date: Linux version fails while Windows version is OK HOT 7
- [bug][zx81][wrx] When compiling for zx81 with wrx I now get `undefined symbol: hrg_phase` HOT 11
- Thank you 🙂 HOT 1
- msys2 issues: clang64 error compiling and compiler path errors HOT 3
- [feature] Support for Olivetti m10 (clone of m100) HOT 22
- (z80asm) Compile issue on msys2
- ASSERT on Z80asm HOT 2
- Compile error today (worked yesterday) HOT 1
- MacOS - zsdcc binary is r14210 HOT 3
- appmake +zx colliding with binaries of previous builds
- TMS9918 graphics improvements HOT 6
- [question][ti] What is the meaning of "Warning: Use of numbers in the variable name is not certain to work on all calculators!" ? HOT 2
- (sccz80) Support static __far data
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from z88dk.