Search found 52 matches

by Guesser
Thu Feb 11, 2021 1:27 pm
Forum: Misc
Topic: zcc flags changed
Replies: 5
Views: 3912

Re: zcc flags changed

Yeah, on windows 👍
by Guesser
Thu Feb 11, 2021 1:06 pm
Forum: Misc
Topic: zcc flags changed
Replies: 5
Views: 3912

Re: zcc flags changed

As time went on, we started to use the /tmp directory and the -notemp option went away in 2014, so this option achieved the effect of scattering and leaving randomly named files across /tmp which: a) isn't particularly well behaved (especially on platforms that use /tmp as virtual memory), b) not v...
by Guesser
Wed Feb 10, 2021 2:50 pm
Forum: Misc
Topic: Issues porting code to v2.1
Replies: 7
Views: 4416

Re: Issues porting code to v2.1

dom wrote: Wed Feb 10, 2021 2:31 pm In which case you'll need a section directive in the assembler. code_clib, data_clib, bss_clib, rodata_clib are probably good ones to choose?
That's cured it :)

I had section directives already, but they were code_lib :lol:
by Guesser
Wed Feb 10, 2021 2:29 pm
Forum: Misc
Topic: Issues porting code to v2.1
Replies: 7
Views: 4416

Re: Issues porting code to v2.1

I'm getting there now with all the new lib versions apparently working correctly, but now I notice my library is getting compiled into bank 7 for sccz80 classic lib. I vaguely recall having this problem before and the solution for how to tell the linker to put it all in one binary being provided on ...
by Guesser
Wed Feb 10, 2021 1:54 pm
Forum: Misc
Topic: Issues porting code to v2.1
Replies: 7
Views: 4416

Re: Issues porting code to v2.1

Testing for the existence of the IOCTL_OTERM_PAUSE definition is working for now. I realise it's a peculiar use case, the program just tests all different versions of a library which is why I've written it to build on four compiler/library targets. (Or attempted to haha. Trying to fix function point...
by Guesser
Wed Feb 10, 2021 1:30 pm
Forum: Misc
Topic: Issues porting code to v2.1
Replies: 7
Views: 4416

Re: Issues porting code to v2.1

I've got #if defined(__SDCC) || defined(__SCCZ80) /* using the new clib */ ioctl(1, IOCTL_OTERM_PAUSE, 0); // do not pause when screen is full #endif and the first compile line my makefile runs is zcc +zx -vn -I../include/sccz80 -lndos -l../lib/sccz80/idemodcall test.c -o sccz80_oldclib/test.bin whi...
by Guesser
Wed Feb 10, 2021 1:04 pm
Forum: Misc
Topic: Issues porting code to v2.1
Replies: 7
Views: 4416

Issues porting code to v2.1

I'm going through all my code making sure it still builds in v2.1 (last tested on a pre 2.0 nightly I think) and hitting a few bumps in the road. First thing I can't solve is that defined(__SCCZ80) now seems to be tripping when building with the default clib. I'm using the zx target and zx.cfg looks...
by Guesser
Sun Mar 24, 2019 11:50 pm
Forum: Sinclair ZX
Topic: Help porting spectranet code to current release
Replies: 10
Views: 7688

Hurrah!

What conditions triggered the bug? (If that's a question that makes sense to ask from the perspective of some C code)
by Guesser
Sun Mar 24, 2019 12:02 pm
Forum: Sinclair ZX
Topic: Help porting spectranet code to current release
Replies: 10
Views: 7688

Thanks, that appears to have sorted everything. To really test stuff I'd have to write a program using the library since as far as I'm aware the only code that does is the defunct twitter client. One thing that caught me out to begin with was the new colour codes. I was just about to start a bug thr...
by Guesser
Sat Mar 23, 2019 11:40 pm
Forum: Sinclair ZX
Topic: Help porting spectranet code to current release
Replies: 10
Views: 7688

dom wrote:i.e. what should be a global variable isn't exported from the file it's declared in.
And how would one go about doing that now? I assume the old -make-lib argument took care of that.
by Guesser
Sat Mar 23, 2019 11:39 pm
Forum: Sinclair ZX
Topic: Help porting spectranet code to current release
Replies: 10
Views: 7688

dom wrote:
Guesser wrote:With the excitement of an imminent new batch of spectranets, I've been trying to get stuff compiling again.
I've wanted one of those for years - where can I get hold of one?
Nowhere yet, but Ben Versteeg of bytedelight.com will be producing a batch Soon?
by Guesser
Sat Mar 23, 2019 9:15 pm
Forum: Sinclair ZX
Topic: Help porting spectranet code to current release
Replies: 10
Views: 7688

the makefile looks like this: # Makefile for the simple HTTP library. LIBNAME = libhttp COBJS = addFormData.o freeFormData.o parseURI.o parseproto.o \ allocURI.o freeURI.o base64enc.o request.o readData.o \ postsize.o getheader.o freeheaders.o readHeaders.o htrecv.o CFLAGS = +zx -I./include -O2 -pre...
by Guesser
Sat Mar 23, 2019 9:13 pm
Forum: Sinclair ZX
Topic: Help porting spectranet code to current release
Replies: 10
Views: 7688

Help porting spectranet code to current release

With the excitement of an imminent new batch of spectranets, I've been trying to get stuff compiling again. I'd previously ported the spectranet and socklib libraries to the new z80asm syntax, but never got the libhttp to work. The former are written in asm, but libhttp is all C. I can build the lib...
by Guesser
Sun Mar 22, 2015 8:18 pm
Forum: z88dk-developers
Topic: [z88dk-dev] take final step for install dest dir independence
Replies: 8
Views: 8332

Why don't you just use the make.exe from GnuWin32 or MinGW? There is no need for Cygwin or MSYS. Has anyone managed to successfully build the z80 libraries from z88dk/libsrc under windows? With GnuWin32 I can only successfully make 15 libraries out of 151. The buildbot has no problem making all the...
by Guesser
Tue Dec 02, 2014 2:11 pm
Forum: z88dk-developers
Topic: [z88dk-dev] terminals
Replies: 8
Views: 8477

No but now I have so I'll make sure to look at it when the time comes. It's FAT16 and I'd prefer FAT32 if we can find it. Not sure if it's suitable, but have you looked at FatFs ( http://elm-chan.org/fsw/ff/00index_e.html ) or if that's too big its smaller stripped down brother Petit FatFs? -------...
by Guesser
Tue Dec 02, 2014 2:02 pm
Forum: z88dk-developers
Topic: [z88dk-dev] z88dk sections
Replies: 4
Views: 5490

I don't actually like 'text' which is why I found it easy to abandon. I think the guy who originally used 'text' probably regrets that name too as the name itself is a little bit deceptive IMO. I don't know why I started using 'code' but it was someplace either in this codebase or another and I jus...
by Guesser
Sun Nov 30, 2014 4:03 am
Forum: z88dk-developers
Topic: [z88dk-dev] z88dk sections
Replies: 4
Views: 5490

I want to enable sections for all of z88dk, including the legacy library. That way we don't have to have a special build case for the new library. When I start to do this there may be some days when the nightly build will fail so if there is something pending maybe commit that soon. The sections I ...
by Guesser
Sat Apr 05, 2014 9:38 am
Forum: Windows
Topic: Recommended way for installation
Replies: 15
Views: 24906

also am I right in thinking that at this moment the value of c_copycmd can still only be changed by adding it to the cfg file? Edit: not that it matters, copy is working fine anyway. For some reason ages ago I was finding that I couldn't run zcc reliably from a bash shell, but clearly this was nothi...
by Guesser
Sat Apr 05, 2014 9:17 am
Forum: Windows
Topic: Recommended way for installation
Replies: 15
Views: 24906

Just trying out the latest nightly on windows 7 [strike]and getting failed linking and some rather broken looking paths[/strike] Edit: it doesn't actually break anything because the double slash, even the \/ is crunched down and the command completes. The error was that I was trying gfx.c and not te...
by Guesser
Sat Apr 05, 2014 8:39 am
Forum: Windows
Topic: Recommended way for installation
Replies: 15
Views: 24906

So, have I broken win9x? I'm not sure I've got an iso to try it out on I'm afraid. As far as I can remember (it's been so long!) COMMAND.COM doesn't understand forward slashes as path separators so using C:/foo/bar would fail. I think COMMAND.COM will always think it has encountered a commandline s...
by Guesser
Fri Mar 28, 2014 3:31 pm
Forum: Windows
Topic: Recommended way for installation
Replies: 15
Views: 24906

Is the only difference between the .cfg and .lnx files now the COPYCMD variable? If so would it makes sense to move that definition out of the file too (and default to "copy" if absent presumably?) That way the cfg file becomes platform independent (...and makes it easier for me to overrid...
by Guesser
Tue Mar 11, 2014 11:53 pm
Forum: Windows
Topic: Recommended way for installation
Replies: 15
Views: 24906

awesome! :)
by Guesser
Sun Mar 09, 2014 3:20 pm
Forum: Windows
Topic: Recommended way for installation
Replies: 15
Views: 24906

The nightly build must be installed into c:\z88dk, the reason being there are config files that contain absolute path information in them. The config files describe for each target machine which versions of the library code to use. The latest stable build is available as a windows installer and thi...
by Guesser
Sun Mar 09, 2014 3:04 pm
Forum: Windows
Topic: Recommended way for installation
Replies: 15
Views: 24906

That post of mine on WoS is very much out of date now. I wouldn't recommend anyone follow that.

I do have details on installing z88dk in my spectranet build environment guide, but if you only intend to use z88dk as is and have no need for mingw, msys, etc. Then it's probably not for you anyway.
by Guesser
Wed Dec 11, 2013 10:29 pm
Forum: Bug reports
Topic: Makefile
Replies: 7
Views: 8433

Also, if it wont' solve, please replace the Makefile too: http://z88dk.cvs.sourceforge.net/viewvc/z88dk/z88dk/Makefile?revision=1.38 As I said, nothing in config.sh can be the problem because that script is run by make and modifies the z88dk config files. That makefile is identical in terms of the ...