FUZIX.git
8 years agoas09: Makefile for Z80 cross
Alan Cox [Wed, 22 Jun 2016 19:37:02 +0000 (20:37 +0100)]
as09: Makefile for Z80 cross

8 years agoSmall C 3.0 with some cleanups and ANSI processing
Alan Cox [Wed, 22 Jun 2016 19:34:02 +0000 (20:34 +0100)]
Small C 3.0 with some cleanups and ANSI processing

I've attached the 6809 code generator for the older compiler version as well.

We should be able to get a real C compiler in the space we have (CP/M manages it
for a passable ANSI C) but this will be fun for now and for debugging work.

8 years agobank16k: fix bug reported by Brett
Alan Cox [Wed, 22 Jun 2016 11:54:08 +0000 (12:54 +0100)]
bank16k: fix bug reported by Brett

8 years agoruncpm: no stdio needed
Alan Cox [Wed, 22 Jun 2016 09:09:14 +0000 (10:09 +0100)]
runcpm: no stdio needed

8 years agolibc: split libm nicely add a draft tinymalloc
Alan Cox [Tue, 21 Jun 2016 20:27:07 +0000 (21:27 +0100)]
libc: split libm nicely add a draft tinymalloc

8 years agolibc: fixups
Alan Cox [Tue, 21 Jun 2016 18:42:52 +0000 (19:42 +0100)]
libc: fixups

8 years agoMerge pull request #364 from beretta42/master
EtchedPixels [Tue, 21 Jun 2016 17:48:22 +0000 (18:48 +0100)]
Merge pull request #364 from beretta42/master

Fix some typos in libc includes

8 years agolibm: the backbone of the FP maths support
Alan Cox [Tue, 21 Jun 2016 17:45:34 +0000 (18:45 +0100)]
libm: the backbone of the FP maths support

Only actually using the single precision paths in the current platforms as the
SDCC Z80 port only supports "float", so we define double as float and #define
over the methods.

Anyone coming to this with a bigger box (can we do real doubles on 6809?) will need
to do a fair chunk of further work.

8 years agolibs: typos in declarations
Brett Gordon [Tue, 21 Jun 2016 17:11:16 +0000 (13:11 -0400)]
libs: typos in declarations

8 years agolevee: remove redeclaration of index, already declared in string.h
Brett Gordon [Tue, 21 Jun 2016 17:09:57 +0000 (13:09 -0400)]
levee: remove redeclaration of index, already declared in string.h

8 years agorand48: needs the header
Alan Cox [Tue, 21 Jun 2016 13:52:15 +0000 (14:52 +0100)]
rand48: needs the header

8 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Mon, 20 Jun 2016 19:03:59 +0000 (20:03 +0100)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

8 years agolibc: add some stragglers
Alan Cox [Mon, 20 Jun 2016 19:03:38 +0000 (20:03 +0100)]
libc: add some stragglers

8 years agoinclude: fixes for new C funcs
Alan Cox [Mon, 20 Jun 2016 19:02:58 +0000 (20:02 +0100)]
include: fixes for new C funcs

8 years agodrand48: the 48bit random functions
Alan Cox [Mon, 20 Jun 2016 19:02:29 +0000 (20:02 +0100)]
drand48: the 48bit random functions

Untested at this point

8 years agolibc: first batch of libm work
Alan Cox [Mon, 20 Jun 2016 19:02:04 +0000 (20:02 +0100)]
libc: first batch of libm work

8 years agoa64l: some of the crap in a libc is amazing
Alan Cox [Mon, 20 Jun 2016 18:58:17 +0000 (19:58 +0100)]
a64l: some of the crap in a libc is amazing

8 years agoMerge pull request #362 from nealcrook/lib-fix
EtchedPixels [Sun, 19 Jun 2016 15:31:50 +0000 (16:31 +0100)]
Merge pull request #362 from nealcrook/lib-fix

Tweaks to allow library to build on 6809

8 years agoRevise .gitignore for additional transient file copied from kernel tree
Neal Andrew Crook [Sat, 18 Jun 2016 23:05:53 +0000 (00:05 +0100)]
Revise .gitignore for additional transient file copied from kernel tree

8 years agoTweaks to allow library to build on 6809
Neal Andrew Crook [Sat, 18 Jun 2016 22:18:47 +0000 (23:18 +0100)]
Tweaks to allow library to build on 6809

8 years agomalloc: commit new header file
Alan Cox [Sat, 18 Jun 2016 21:52:48 +0000 (22:52 +0100)]
malloc: commit new header file

Oops... 8(

8 years agoasctime: Fix compile failure
Alan Cox [Sat, 18 Jun 2016 21:51:16 +0000 (22:51 +0100)]
asctime: Fix compile failure

8 years agoREADME.md: CP/M emulator crossed off the list
Alan Cox [Sat, 18 Jun 2016 10:16:33 +0000 (11:16 +0100)]
README.md: CP/M emulator crossed off the list

8 years agolibc: Generate multiple libraries
Alan Cox [Fri, 17 Jun 2016 22:34:40 +0000 (23:34 +0100)]
libc: Generate multiple libraries

We now generate

libc
libm FP versions of standard routines that have smaller integer only ones
termcap
curses

as per proper Unix expectations and to avoid namespace problems with non termcap
or curses apps and libcurses

8 years agolibc: remove \r\n markers from assert.c and tidy
Alan Cox [Fri, 17 Jun 2016 22:34:20 +0000 (23:34 +0100)]
libc: remove \r\n markers from assert.c and tidy

8 years agolibc: update the includes to be closer to standards
Alan Cox [Fri, 17 Jun 2016 22:32:45 +0000 (23:32 +0100)]
libc: update the includes to be closer to standards

Fix some clashes FIXME a couple of problem cases

8 years agocut: fix warning
Alan Cox [Fri, 17 Jun 2016 22:32:06 +0000 (23:32 +0100)]
cut: fix warning

8 years agopasswd: fix warnings
Alan Cox [Fri, 17 Jun 2016 22:32:00 +0000 (23:32 +0100)]
passwd: fix warnings

8 years agofgrep: fix warning
Alan Cox [Fri, 17 Jun 2016 22:31:48 +0000 (23:31 +0100)]
fgrep: fix warning

8 years agoed: use standard isfoo names
Alan Cox [Fri, 17 Jun 2016 22:31:34 +0000 (23:31 +0100)]
ed: use standard isfoo names

8 years agofsck: move to a cut of the same fsck used for Standalone
Alan Cox [Fri, 17 Jun 2016 22:30:50 +0000 (23:30 +0100)]
fsck: move to a cut of the same fsck used for Standalone

The goal being eventually to be able to use this fsck in both standalone and
application cases.

8 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Fri, 17 Jun 2016 18:30:01 +0000 (19:30 +0100)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

8 years agoMerge pull request #360 from beretta42/ioctl
EtchedPixels [Fri, 17 Jun 2016 16:31:15 +0000 (17:31 +0100)]
Merge pull request #360 from beretta42/ioctl

Add dw_transaction ioctl for Drivewire

8 years agodrivewire: conform to kernel.h's ioctl number format
Brett Gordon [Fri, 17 Jun 2016 12:51:24 +0000 (08:51 -0400)]
drivewire: conform to kernel.h's ioctl number format

8 years agolibc: move curses into its own library as it should be
Alan Cox [Fri, 17 Jun 2016 12:03:47 +0000 (13:03 +0100)]
libc: move curses into its own library as it should be

8 years agolibc: replace malloc() with a classic K&R style malloc algorithm
Alan Cox [Fri, 17 Jun 2016 11:56:07 +0000 (12:56 +0100)]
libc: replace malloc() with a classic K&R style malloc algorithm

Shorter, simpler and neater. Hopefully correct (or it'll be fun debugging all the
app crashes ;-)). realloc would benefit from being smart about using the adjacent
buffers to grow rather than the dumb free/alloc approach.

Alan

8 years agosh: force char to be signed
Alan Cox [Fri, 17 Jun 2016 11:55:35 +0000 (12:55 +0100)]
sh: force char to be signed

8 years agoruncpm: typo
Alan Cox [Fri, 17 Jun 2016 11:55:18 +0000 (12:55 +0100)]
runcpm: typo

8 years agolibclean: another 3.6 fix
Alan Cox [Fri, 17 Jun 2016 11:41:52 +0000 (12:41 +0100)]
libclean: another 3.6 fix

8 years agolibc: some updates for SDCC 3.6
Alan Cox [Fri, 17 Jun 2016 11:32:13 +0000 (12:32 +0100)]
libc: some updates for SDCC 3.6

8 years agoioctl: add a drivewire range for Brett
Alan Cox [Fri, 17 Jun 2016 10:31:06 +0000 (11:31 +0100)]
ioctl: add a drivewire range for Brett

8 years agoadd drivewire.h to kernel includes
Brett Gordon [Thu, 16 Jun 2016 13:32:19 +0000 (09:32 -0400)]
add drivewire.h to kernel includes

8 years agoadd drivewire.h to kernel includes
Brett Gordon [Thu, 16 Jun 2016 13:29:18 +0000 (09:29 -0400)]
add drivewire.h to kernel includes

8 years agoruncpm: after last nights hacks it will now run ZORK
Alan Cox [Wed, 15 Jun 2016 14:37:25 +0000 (15:37 +0100)]
runcpm: after last nights hacks it will now run ZORK

8 years agolowlevel-z80: fix null handler
Alan Cox [Wed, 15 Jun 2016 14:35:47 +0000 (15:35 +0100)]
lowlevel-z80: fix null handler

8 years agofcc: add support for --valgrind
Alan Cox [Tue, 14 Jun 2016 23:49:57 +0000 (00:49 +0100)]
fcc: add support for --valgrind

While I'm debugging sdcc 3.6.0 crashes

8 years agocpm: move the emulator out and begin work on fixing it all
Alan Cox [Tue, 14 Jun 2016 23:49:24 +0000 (00:49 +0100)]
cpm: move the emulator out and begin work on fixing it all

8 years agodragon-nx32: add ioctl for dw_transaction
Brett Gordon [Sun, 12 Jun 2016 17:30:30 +0000 (13:30 -0400)]
dragon-nx32: add ioctl for dw_transaction

8 years agomulticomp09: add ioctl for dw_transaction
Brett Gordon [Sun, 12 Jun 2016 17:30:05 +0000 (13:30 -0400)]
multicomp09: add ioctl for dw_transaction

8 years agomulticomp09: dw_tranaction to support direct to userspace xfers
Brett Gordon [Sun, 12 Jun 2016 17:27:25 +0000 (13:27 -0400)]
multicomp09: dw_tranaction to support direct to userspace xfers

8 years agodragon-nx32: dw_transaction to support direct to userspace
Brett Gordon [Sun, 12 Jun 2016 17:25:45 +0000 (13:25 -0400)]
dragon-nx32: dw_transaction to support direct to userspace

8 years agomulticomp09: add direct to userspace dw_transaction
Brett Gordon [Sun, 12 Jun 2016 17:17:19 +0000 (13:17 -0400)]
multicomp09: add direct to userspace dw_transaction

8 years agodragon-nx32: direct to userspace dw_transaction
Brett Gordon [Sun, 12 Jun 2016 17:12:21 +0000 (13:12 -0400)]
dragon-nx32: direct to userspace dw_transaction

8 years agococo3: add ioctl for dw_transaction.
Brett Gordon [Fri, 3 Jun 2016 13:07:24 +0000 (09:07 -0400)]
coco3: add ioctl for dw_transaction.

8 years agococo3: add flag to dw_transaction optionally do user mode xfer
Brett Gordon [Fri, 3 Jun 2016 12:39:14 +0000 (08:39 -0400)]
coco3: add flag to dw_transaction optionally do user mode xfer

8 years agomicropack: build fix
Alan Cox [Mon, 6 Jun 2016 17:05:25 +0000 (18:05 +0100)]
micropack: build fix

8 years agocpp: ANSIfy so it passes fcc ok
Alan Cox [Mon, 6 Jun 2016 17:04:59 +0000 (18:04 +0100)]
cpp: ANSIfy so it passes fcc ok

8 years agoMerge pull request #357 from beretta42/master
EtchedPixels [Fri, 3 Jun 2016 11:20:41 +0000 (12:20 +0100)]
Merge pull request #357 from beretta42/master

coco3: 2M bug: don't scan(aka overwrite) kernel memory.

8 years agococo3: 2M bug: don't scan(aka overwrite) kernel memory.
Brett Gordon [Fri, 3 Jun 2016 10:52:54 +0000 (06:52 -0400)]
coco3: 2M bug: don't scan(aka overwrite) kernel memory.

8 years agodw: add Makefiles for Z80
Alan Cox [Thu, 2 Jun 2016 22:59:27 +0000 (23:59 +0100)]
dw: add Makefiles for Z80

8 years agodw: Fix sdcc build
Alan Cox [Thu, 2 Jun 2016 22:59:12 +0000 (23:59 +0100)]
dw: Fix sdcc build

8 years agolevee: Fix register i -> register int i as required by SDCC 3.6 rc 1
Alan Cox [Thu, 2 Jun 2016 22:58:30 +0000 (23:58 +0100)]
levee: Fix register i -> register int i as required by SDCC 3.6 rc 1

8 years agopilot: Add rpilot, an implementation of the pilot programming language
Alan Cox [Thu, 2 Jun 2016 22:56:23 +0000 (23:56 +0100)]
pilot: Add rpilot, an implementation of the pilot programming language

Taken from http://rpilot.sourceforge.net/pilot.html and cleaned up to fix
various non-ANSIisms, missing includes and other mess. Could still do with
more of a tidy up and space optimisations, but hey it fits, it's silly and
it's in keeping with the period.

8 years agoman: fix the formatting with indent
Alan Cox [Thu, 2 Jun 2016 21:56:43 +0000 (22:56 +0100)]
man: fix the formatting with indent

8 years agoman: Fix various build problems with sdcc
Alan Cox [Thu, 2 Jun 2016 21:56:20 +0000 (22:56 +0100)]
man: Fix various build problems with sdcc

8 years agoMakefile: add -f to avoid rm errors
Alan Cox [Thu, 2 Jun 2016 21:52:20 +0000 (22:52 +0100)]
Makefile: add -f to avoid rm errors

8 years agoadv14a/b: forgot these (wrong pattern when updating)
Alan Cox [Thu, 2 Jun 2016 21:31:19 +0000 (22:31 +0100)]
adv14a/b: forgot these (wrong pattern when updating)

8 years agoMakefile: lets have one!
Alan Cox [Thu, 2 Jun 2016 21:21:02 +0000 (22:21 +0100)]
Makefile: lets have one!

8 years agoMerge pull request #355 from beretta42/master
EtchedPixels [Thu, 2 Jun 2016 17:58:50 +0000 (18:58 +0100)]
Merge pull request #355 from beretta42/master

coco3: autodetect and use up to 2M of RAM

8 years agococo3: autodetect and use up to 2M of RAM
Brett Gordon [Thu, 2 Jun 2016 17:53:21 +0000 (13:53 -0400)]
coco3: autodetect and use up to 2M of RAM

8 years agoAdd MWC units.c to 6809 build
Tormod Volden [Wed, 1 Jun 2016 18:36:12 +0000 (20:36 +0200)]
Add MWC units.c to 6809 build

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
8 years agoucp: Allow comments and be more quiet when reading from file
Tormod Volden [Wed, 1 Jun 2016 18:25:48 +0000 (20:25 +0200)]
ucp: Allow comments and be more quiet when reading from file

The output is less confusing without all the prompts printed.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
8 years agoucp/fuzix_fs.h: Convert // comments to please compiler
Tormod Volden [Tue, 31 May 2016 19:06:24 +0000 (21:06 +0200)]
ucp/fuzix_fs.h: Convert // comments to please compiler

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
8 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Wed, 1 Jun 2016 20:20:30 +0000 (21:20 +0100)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

8 years agoadventures: Commit regenerated games with save/load and bug fixes
Alan Cox [Wed, 1 Jun 2016 17:27:00 +0000 (18:27 +0100)]
adventures: Commit regenerated games with save/load and bug fixes

8 years agoMerge pull request #354 from nealcrook/apps3
EtchedPixels [Wed, 1 Jun 2016 12:01:16 +0000 (13:01 +0100)]
Merge pull request #354 from nealcrook/apps3

Apps3 - a working man

8 years agoAdd qrun
Neal Andrew Crook [Tue, 31 May 2016 21:10:44 +0000 (22:10 +0100)]
Add qrun

8 years agoAdd all the built Application/V7/cmd and Application/util executables
Neal Andrew Crook [Tue, 31 May 2016 20:53:20 +0000 (21:53 +0100)]
Add all the built Application/V7/cmd and Application/util executables
to ucp-extras-script.txt
Some are duplicates - in which case they are commented out ("##") - which
causes an ignorable error because ucp doesn't have a comment command. Still,
it seems useful to list them as a segue to working out which version is
more useful and thereby making a conscious choice of one or t'other.

8 years agoMake termcap.c build (fix type mismatches with prototypes)
Neal Andrew Crook [Tue, 31 May 2016 20:04:05 +0000 (21:04 +0100)]
Make termcap.c build (fix type mismatches with prototypes)
Add to makefile and to ucp-extras-script.txt
Add tget and sed to ucp-extras-script.txt - already in the makefile.

8 years agoReplace man.c (which required a separate external nroff program) with another
Neal Andrew Crook [Tue, 31 May 2016 19:44:50 +0000 (20:44 +0100)]
Replace man.c (which required a separate external nroff program) with another
GPL'd version from the ELKS project that has a build-in nroff-alike formatter.
Tweaked it to build/run under (Linux and) FUZIX.
Add man.1 typo-fixed and revised for FUZIX.
Add manpage directory structure with ucp-extras-script.txt
Remove levee from ucp-extras-script.txt as it's already in ucp-script.txt.
Add .gitignore which I thought I'd already committed.

8 years agoApplications/games/Makefile.6809: Use non-stdio crt0 when possible
Tormod Volden [Tue, 31 May 2016 12:36:08 +0000 (14:36 +0200)]
Applications/games/Makefile.6809: Use non-stdio crt0 when possible

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
8 years agosyscalls.h: fix sockaddr warning
Alan Cox [Tue, 31 May 2016 11:48:02 +0000 (12:48 +0100)]
syscalls.h: fix sockaddr warning

8 years agosyscalls.h: pre-declare struct rlimit
Alan Cox [Tue, 31 May 2016 11:46:50 +0000 (12:46 +0100)]
syscalls.h: pre-declare struct rlimit

8 years agosyscall6502: fix silly warning
Alan Cox [Tue, 31 May 2016 11:45:53 +0000 (12:45 +0100)]
syscall6502: fix silly warning

8 years agoLibrary/include/poll.h: Add missing semicolon
Tormod Volden [Sun, 29 May 2016 15:03:33 +0000 (17:03 +0200)]
Library/include/poll.h: Add missing semicolon

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
8 years agovt.c: Fix off-by-one in clear to end of line escape sequence
Tormod Volden [Sun, 29 May 2016 11:41:31 +0000 (13:41 +0200)]
vt.c: Fix off-by-one in clear to end of line escape sequence

It wouldn't clear the last column on the screen.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
8 years agoAllow return value passing from ioctl
Tormod Volden [Sun, 29 May 2016 09:34:31 +0000 (11:34 +0200)]
Allow return value passing from ioctl

Fixes lost values from vt_ioctl().

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
8 years agoBuild: Add dragon-nx32 kernel build
Tormod Volden [Sat, 28 May 2016 16:10:34 +0000 (18:10 +0200)]
Build: Add dragon-nx32 kernel build

This also add a common kernel target for gcc/LWTOOLS that builds a DECB
binary.

Note that this build system doesn't provide text2 (and discard) segments
so it cannot produce working kernels yet. Still useful for compile tests
on travis.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
8 years agoBuild: Sync lwlink wrapper with upstream development version
Tormod Volden [Sat, 28 May 2016 16:10:33 +0000 (18:10 +0200)]
Build: Sync lwlink wrapper with upstream development version

This adds the --oformat and --script options and fixes up the -Map option.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
8 years agoutils: Link stdio-free apps with stdio-free crt0 on 6809
Tormod Volden [Sat, 28 May 2016 15:32:49 +0000 (17:32 +0200)]
utils: Link stdio-free apps with stdio-free crt0 on 6809

This also adds building of a few missing apps.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
8 years agoApplications/*/Makefile.6809: Tidy up dependencies in rules
Tormod Volden [Sat, 28 May 2016 15:32:48 +0000 (17:32 +0200)]
Applications/*/Makefile.6809: Tidy up dependencies in rules

Avoid having all objects depend on all source files. Instead use
better defined static rules that contain the dependencies.

By using $^ in the APPS rules the CRT0 is included because
the APPS depend on it. Makes it easy to let e.g. APPSNS depend
on CRT0NS instead.

Also fix the size.report target so that it gets built only when
needed.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
8 years agoLibrary: Add stdio-free crt0 for 6809
Tormod Volden [Sat, 28 May 2016 15:32:47 +0000 (17:32 +0200)]
Library: Add stdio-free crt0 for 6809

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
8 years agottydw.c: Fix single-byte reception on virtual channels
Tormod Volden [Mon, 23 May 2016 21:20:28 +0000 (23:20 +0200)]
ttydw.c: Fix single-byte reception on virtual channels

This off-by-one caused incoming single bytes from the virtual channels
to be written to the wrong tty, for example when entering an empty line
in a shell.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
8 years agoMerge pull request #351 from davidgiven/fforth
EtchedPixels [Sat, 28 May 2016 10:21:51 +0000 (11:21 +0100)]
Merge pull request #351 from davidgiven/fforth

Don't hardcode the cell size when calculating offsets into the interpreter table.

8 years agoDon't hardcode the cell size when calculating offsets into the interpreter
David Given [Sat, 28 May 2016 10:17:14 +0000 (12:17 +0200)]
Don't hardcode the cell size when calculating offsets into the interpreter
table.

8 years agoMerge pull request #350 from beretta42/master
EtchedPixels [Fri, 27 May 2016 08:10:30 +0000 (09:10 +0100)]
Merge pull request #350 from beretta42/master

coco3: add rawmode=1 support

8 years agococo3: make sdc driver handle rawmode=1.
Brett Gordon [Tue, 17 May 2016 20:17:16 +0000 (16:17 -0400)]
coco3: make sdc driver handle rawmode=1.

8 years agococo3: make drivewire.s support rawmode=1.
Brett Gordon [Tue, 17 May 2016 16:40:17 +0000 (12:40 -0400)]
coco3: make drivewire.s support rawmode=1.

8 years agococo3: remove CONFIG_LEGACY_EXEC
Brett Gordon [Tue, 17 May 2016 16:39:49 +0000 (12:39 -0400)]
coco3: remove CONFIG_LEGACY_EXEC

8 years agoMerge pull request #349 from beretta42/master
EtchedPixels [Thu, 26 May 2016 15:19:12 +0000 (16:19 +0100)]
Merge pull request #349 from beretta42/master

coco3: fix scroll_down().