Search found 89 matches

by jacotton
Tue Apr 05, 2022 8:28 pm
Forum: CP/M, FLOS and OS related
Topic: Odd compile bug SDCC
Replies: 7
Views: 3496

Re: Odd compile bug SDCC

I now have it building with zcc +cpm

This creates a runnable binary program.

tnx :)
by jacotton
Tue Apr 05, 2022 7:54 pm
Forum: CP/M, FLOS and OS related
Topic: Odd compile bug SDCC
Replies: 7
Views: 3496

Re: Odd compile bug SDCC

Updated my repo to the lastest code.... Main is clearly defined in the mathtest.c file. zcc +rc2014 -subtype=cpm -create-app -lmath32 mathtest.c font.c snaplib.c liboled.c -omathtest C:/cygwin64/home/lbmgm/projects/z88dk/lib/config/\..\..\\libsrc\_DEVELOPMENT\target\rc2014\rc2014_crt.asm.m4:1993: er...
by jacotton
Tue Apr 05, 2022 4:20 pm
Forum: CP/M, FLOS and OS related
Topic: Odd compile bug SDCC
Replies: 7
Views: 3496

Re: Odd compile bug SDCC

ops, caught an error.
That did fix the parsing bug.
I never would have found that one.

tnx
by jacotton
Tue Apr 05, 2022 4:16 pm
Forum: CP/M, FLOS and OS related
Topic: Odd compile bug SDCC
Replies: 7
Views: 3496

Re: Odd compile bug SDCC

That does not seem to work here. Tried various combinations of spelling and ';', no help. #ifdef __SDCC #define ASM __asm #define ENDASM __endasm #else #define ASM #asm #define ENDASM #endasm #endif zcc +rc2014 -subtype=cpm -create-app --am9511 mathtest.c font.c snaplib.c liboled.c -omathtest mathte...
by jacotton
Mon Apr 04, 2022 10:38 pm
Forum: CP/M, FLOS and OS related
Topic: Odd compile bug SDCC
Replies: 7
Views: 3496

Re: Odd compile bug SDCC

did try that, no joy.
by jacotton
Mon Apr 04, 2022 9:57 pm
Forum: CP/M, FLOS and OS related
Topic: building for am9511
Replies: 9
Views: 4259

Re: building for am9511

I put this in my source code and got a build
ASM
GLOBAL init_floatpack
init_floatpack: ret
ENDASM
by jacotton
Mon Apr 04, 2022 9:53 pm
Forum: CP/M, FLOS and OS related
Topic: building for am9511
Replies: 9
Views: 4259

Re: building for am9511

After updating to today's repo, we are almost there. This init_floatpack seems to just do a return. rm -f iotest.hex iotest.asm iotest.list iotest.lst iotest.bin rm -f dec2flt DEC2FLT.COM *.list *.lis *.bin rm -f mathtest *.lst *.COM rm -f *.o zcc +cpm -create-app --list --c-code-in-asm --am9511 -c ...
by jacotton
Mon Apr 04, 2022 6:45 pm
Forum: CP/M, FLOS and OS related
Topic: Odd compile bug SDCC
Replies: 7
Views: 3496

Odd compile bug SDCC

make liboled.o
zcc +rc2014 -subtype=cpm -create-app --am9511 -c liboled.c
liboled.c:278: syntax error: token -> '' ; column 0
make: *** [Makefile:31: liboled.o] Error 1

liboled.c
font.h
Can be found at https://github.com/jayacotton/am9511

This also shows up compiling other files.
by jacotton
Sat Mar 26, 2022 12:29 am
Forum: CP/M, FLOS and OS related
Topic: building for am9511
Replies: 9
Views: 4259

Re: building for am9511

At this point in time, I am trying to get a test program running on the rc2014. After that, its off to the s100 machine.

BTW: your fix works. I get a clean build, but my test is broken. Runs with the out of the box math48, so could be a few different
problems, maybe dead chip.
by jacotton
Mon Mar 21, 2022 10:04 pm
Forum: CP/M, FLOS and OS related
Topic: building for am9511
Replies: 9
Views: 4259

building for am9511

$ make zcc +cpm -create-app --am9511 --list --c-code-in-asm -m dec2flt.c -odec2flt ../../_DEVELOPMENT/math/float/am9511/asm/z80/am32_popf.asm:42: error: undefined symbol: __IO_APU_STATUS ^---- (__IO_APU_STATUS) ../../_DEVELOPMENT/math/float/am9511/asm/z80/am32_popf.asm:46: error: undefined symbol: _...
by jacotton
Tue Feb 01, 2022 4:59 am
Forum: CP/M, FLOS and OS related
Topic: sscanf, fscanf etc on clib=8080 missing
Replies: 15
Views: 4791

Re: sscanf, fscanf etc on clib=8080 missing

I am getting a clean build now.

Not really planning to do a 9511 on my 8080 (maybe next year) but Will be working on it for z80 S100 platform. I
don't think this will require any additional code work.....
by jacotton
Mon Jan 31, 2022 5:42 pm
Forum: CP/M, FLOS and OS related
Topic: sscanf, fscanf etc on clib=8080 missing
Replies: 15
Views: 4791

Re: sscanf, fscanf etc on clib=8080 missing

o.k. I don't need floating point output for basic ethernet anyway. Maybe next week when I start working on the 9511 coprocessor. wink!
by jacotton
Mon Jan 31, 2022 4:49 pm
Forum: CP/M, FLOS and OS related
Topic: sscanf, fscanf etc on clib=8080 missing
Replies: 15
Views: 4791

Re: sscanf, fscanf etc on clib=8080 missing

No problem. Thanks for taking care of this.
by jacotton
Mon Jan 31, 2022 6:19 am
Forum: CP/M, FLOS and OS related
Topic: sscanf, fscanf etc on clib=8080 missing
Replies: 15
Views: 4791

Re: sscanf, fscanf etc on clib=8080 missing

Well, that was as expected. I can't build it. make cpm8080_clib.lib --- Building CP/M Library (8080)--- TARGET=cpm TYPE=8080 DEVICE=nodevice z88dk-z80asm -d -Ic:\cygwin64\home\lbmgm\projects\z88dk\lib\config/../ -m8080 -DSTANDARDESCAPECHARS -x/home/lbmgm/projects/z88dk/libsrc//cpm8080_clib @/home/lb...
by jacotton
Mon Jan 31, 2022 5:42 am
Forum: CP/M, FLOS and OS related
Topic: sscanf, fscanf etc on clib=8080 missing
Replies: 15
Views: 4791

Re: sscanf, fscanf etc on clib=8080 missing

in ~/stdio/__scanf_8080.asm
at line 110 is ___scanf_get_width:
But there is no PUBLIC for it.

Attempting a rebuild with the PUBLIC added. My success rate
has been zero in the past, but worth a try.
by jacotton
Mon Jan 31, 2022 5:22 am
Forum: CP/M, FLOS and OS related
Topic: sscanf, fscanf etc on clib=8080 missing
Replies: 15
Views: 4791

Re: sscanf, fscanf etc on clib=8080 missing

Getting there:

__scanf_handle_c.asm:18: error: undefined symbol: __scanf_get_width

This seems to be the last one.
by jacotton
Sun Jan 30, 2022 4:10 pm
Forum: CP/M, FLOS and OS related
Topic: sscanf, fscanf etc on clib=8080 missing
Replies: 15
Views: 4791

Re: sscanf, fscanf etc on clib=8080 missing

wow, thanks for the fast turn around.
by jacotton
Sat Jan 29, 2022 5:42 pm
Forum: CP/M, FLOS and OS related
Topic: sscanf, fscanf etc on clib=8080 missing
Replies: 15
Views: 4791

Re: sscanf, fscanf etc on clib=8080 missing

The ones listed above, sscanf, fscanf and scanf.

If you have that in C, I'd be happy with that.
by jacotton
Sat Jan 29, 2022 5:38 am
Forum: CP/M, FLOS and OS related
Topic: sscanf, fscanf etc on clib=8080 missing
Replies: 15
Views: 4791

sscanf, fscanf etc on clib=8080 missing

I am on a project to convert my inettools-z80 repo to run on 8080 cpu. I am hitting a small bug. Seems to be the same one every time. Here is the zcc version zcc - Frontend for the z88dk Cross-C Compiler - v19234-6605bce02-20220124 This should be very recent. $ grep error log libhost.c::Hosts_Init::...
by jacotton
Fri Jan 28, 2022 8:02 am
Forum: CP/M, FLOS and OS related
Topic: This one was very hard to find.
Replies: 0
Views: 6616

This one was very hard to find.

_cf_start: defb "TE_CONF", 0 ; 8 bytes > Identifier + ZERO ; for the configuration block in memory ; and COM file. _cf_version: defb 2 ; 1 byte > Configuration version >= 0. ; It's not the TE version. --------------------------------^^^^^^^^^^^^^^^^^^^^^ this comment causes all kinds of er...
by jacotton
Mon Jan 24, 2022 5:24 pm
Forum: CP/M, FLOS and OS related
Topic: Undefined __bdos with 8080 compile.
Replies: 12
Views: 6682

Re: Undefined __bdos with 8080 compile.

download from http://nightly.z88dk.org/ this file z88dk-win32-latest.zip 2022-01-24 03:09 79M do rm -rf z88dk to clear out the old copy. ... I found the my bug... self induced as usual . copy 'z88dk-win32-latest (6).zip' ................................^^^ ops gotta check for that... remember its wi...
by jacotton
Wed Jan 19, 2022 10:12 pm
Forum: CP/M, FLOS and OS related
Topic: Undefined __bdos with 8080 compile.
Replies: 12
Views: 6682

Re: Undefined __bdos with 8080 compile.

No joy here, even after a fresh install of nightly. Also cleaned out all the /usr/local/bin and lib stuff. still get the error. Here is the PATH PATH=/home/lbmgm/projects/z88dk/bin:/usr/local/bin:/usr/bin:/cygdrive/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/cygdrive/c/WINDOWS/system32:...
by jacotton
Wed Jan 19, 2022 8:27 am
Forum: CP/M, FLOS and OS related
Topic: Undefined __bdos with 8080 compile.
Replies: 12
Views: 6682

Re: Undefined __bdos with 8080 compile.

It's back....
Error at file 'fputc_cons.asm' line 32: symbol '__bdos' not defined


This is on windows 10 running under cygwin.
by jacotton
Tue Jan 11, 2022 8:32 pm
Forum: CP/M, FLOS and OS related
Topic: Is -DAMALLOC supported with 8080 ?
Replies: 5
Views: 2440

Re: Is -DAMALLOC supported with 8080 ?

O.k. I got around the bug using zpgrama-include:zpragma.inc

zpragma.inc
#pragma output USING_amalloc

I think the issue is that I use multiple build command to create a binary, so the -D is not getting passed from one section to the next.
by jacotton
Tue Jan 11, 2022 8:12 pm
Forum: CP/M, FLOS and OS related
Topic: Is -DAMALLOC supported with 8080 ?
Replies: 5
Views: 2440

Re: Is -DAMALLOC supported with 8080 ?

This does not seem to be defined DEFINED_USING_amalloc in z88dk/lib/target/cpm/classic/cpm_crt0.asm Your example does compile. Here are the headers included in my case. #include <stdio.h> #include <string.h> #include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <malloc.h>