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.
Alan Cox [Wed, 22 Jun 2016 11:54:08 +0000 (12:54 +0100)]
bank16k: fix bug reported by Brett
Alan Cox [Wed, 22 Jun 2016 09:09:14 +0000 (10:09 +0100)]
runcpm: no stdio needed
Alan Cox [Tue, 21 Jun 2016 20:27:07 +0000 (21:27 +0100)]
libc: split libm nicely add a draft tinymalloc
Alan Cox [Tue, 21 Jun 2016 18:42:52 +0000 (19:42 +0100)]
libc: fixups
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
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.
Brett Gordon [Tue, 21 Jun 2016 17:11:16 +0000 (13:11 -0400)]
libs: typos in declarations
Brett Gordon [Tue, 21 Jun 2016 17:09:57 +0000 (13:09 -0400)]
levee: remove redeclaration of index, already declared in string.h
Alan Cox [Tue, 21 Jun 2016 13:52:15 +0000 (14:52 +0100)]
rand48: needs the header
Alan Cox [Mon, 20 Jun 2016 19:03:59 +0000 (20:03 +0100)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Mon, 20 Jun 2016 19:03:38 +0000 (20:03 +0100)]
libc: add some stragglers
Alan Cox [Mon, 20 Jun 2016 19:02:58 +0000 (20:02 +0100)]
include: fixes for new C funcs
Alan Cox [Mon, 20 Jun 2016 19:02:29 +0000 (20:02 +0100)]
drand48: the 48bit random functions
Untested at this point
Alan Cox [Mon, 20 Jun 2016 19:02:04 +0000 (20:02 +0100)]
libc: first batch of libm work
Alan Cox [Mon, 20 Jun 2016 18:58:17 +0000 (19:58 +0100)]
a64l: some of the crap in a libc is amazing
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
Neal Andrew Crook [Sat, 18 Jun 2016 23:05:53 +0000 (00:05 +0100)]
Revise .gitignore for additional transient file copied from kernel tree
Neal Andrew Crook [Sat, 18 Jun 2016 22:18:47 +0000 (23:18 +0100)]
Tweaks to allow library to build on 6809
Alan Cox [Sat, 18 Jun 2016 21:52:48 +0000 (22:52 +0100)]
malloc: commit new header file
Oops... 8(
Alan Cox [Sat, 18 Jun 2016 21:51:16 +0000 (22:51 +0100)]
asctime: Fix compile failure
Alan Cox [Sat, 18 Jun 2016 10:16:33 +0000 (11:16 +0100)]
README.md: CP/M emulator crossed off the list
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
Alan Cox [Fri, 17 Jun 2016 22:34:20 +0000 (23:34 +0100)]
libc: remove \r\n markers from assert.c and tidy
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
Alan Cox [Fri, 17 Jun 2016 22:32:06 +0000 (23:32 +0100)]
cut: fix warning
Alan Cox [Fri, 17 Jun 2016 22:32:00 +0000 (23:32 +0100)]
passwd: fix warnings
Alan Cox [Fri, 17 Jun 2016 22:31:48 +0000 (23:31 +0100)]
fgrep: fix warning
Alan Cox [Fri, 17 Jun 2016 22:31:34 +0000 (23:31 +0100)]
ed: use standard isfoo names
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.
Alan Cox [Fri, 17 Jun 2016 18:30:01 +0000 (19:30 +0100)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX
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
Brett Gordon [Fri, 17 Jun 2016 12:51:24 +0000 (08:51 -0400)]
drivewire: conform to kernel.h's ioctl number format
Alan Cox [Fri, 17 Jun 2016 12:03:47 +0000 (13:03 +0100)]
libc: move curses into its own library as it should be
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
Alan Cox [Fri, 17 Jun 2016 11:55:35 +0000 (12:55 +0100)]
sh: force char to be signed
Alan Cox [Fri, 17 Jun 2016 11:55:18 +0000 (12:55 +0100)]
runcpm: typo
Alan Cox [Fri, 17 Jun 2016 11:41:52 +0000 (12:41 +0100)]
libclean: another 3.6 fix
Alan Cox [Fri, 17 Jun 2016 11:32:13 +0000 (12:32 +0100)]
libc: some updates for SDCC 3.6
Alan Cox [Fri, 17 Jun 2016 10:31:06 +0000 (11:31 +0100)]
ioctl: add a drivewire range for Brett
Brett Gordon [Thu, 16 Jun 2016 13:32:19 +0000 (09:32 -0400)]
add drivewire.h to kernel includes
Brett Gordon [Thu, 16 Jun 2016 13:29:18 +0000 (09:29 -0400)]
add drivewire.h to kernel includes
Alan Cox [Wed, 15 Jun 2016 14:37:25 +0000 (15:37 +0100)]
runcpm: after last nights hacks it will now run ZORK
Alan Cox [Wed, 15 Jun 2016 14:35:47 +0000 (15:35 +0100)]
lowlevel-z80: fix null handler
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
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
Brett Gordon [Sun, 12 Jun 2016 17:30:30 +0000 (13:30 -0400)]
dragon-nx32: add ioctl for dw_transaction
Brett Gordon [Sun, 12 Jun 2016 17:30:05 +0000 (13:30 -0400)]
multicomp09: add ioctl for dw_transaction
Brett Gordon [Sun, 12 Jun 2016 17:27:25 +0000 (13:27 -0400)]
multicomp09: dw_tranaction to support direct to userspace xfers
Brett Gordon [Sun, 12 Jun 2016 17:25:45 +0000 (13:25 -0400)]
dragon-nx32: dw_transaction to support direct to userspace
Brett Gordon [Sun, 12 Jun 2016 17:17:19 +0000 (13:17 -0400)]
multicomp09: add 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
Brett Gordon [Fri, 3 Jun 2016 13:07:24 +0000 (09:07 -0400)]
coco3: add ioctl for dw_transaction.
Brett Gordon [Fri, 3 Jun 2016 12:39:14 +0000 (08:39 -0400)]
coco3: add flag to dw_transaction optionally do user mode xfer
Alan Cox [Mon, 6 Jun 2016 17:05:25 +0000 (18:05 +0100)]
micropack: build fix
Alan Cox [Mon, 6 Jun 2016 17:04:59 +0000 (18:04 +0100)]
cpp: ANSIfy so it passes fcc ok
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.
Brett Gordon [Fri, 3 Jun 2016 10:52:54 +0000 (06:52 -0400)]
coco3: 2M bug: don't scan(aka overwrite) kernel memory.
Alan Cox [Thu, 2 Jun 2016 22:59:27 +0000 (23:59 +0100)]
dw: add Makefiles for Z80
Alan Cox [Thu, 2 Jun 2016 22:59:12 +0000 (23:59 +0100)]
dw: Fix sdcc build
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
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.
Alan Cox [Thu, 2 Jun 2016 21:56:43 +0000 (22:56 +0100)]
man: fix the formatting with indent
Alan Cox [Thu, 2 Jun 2016 21:56:20 +0000 (22:56 +0100)]
man: Fix various build problems with sdcc
Alan Cox [Thu, 2 Jun 2016 21:52:20 +0000 (22:52 +0100)]
Makefile: add -f to avoid rm errors
Alan Cox [Thu, 2 Jun 2016 21:31:19 +0000 (22:31 +0100)]
adv14a/b: forgot these (wrong pattern when updating)
Alan Cox [Thu, 2 Jun 2016 21:21:02 +0000 (22:21 +0100)]
Makefile: lets have one!
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
Brett Gordon [Thu, 2 Jun 2016 17:53:21 +0000 (13:53 -0400)]
coco3: autodetect and use up to 2M of RAM
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>
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>
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>
Alan Cox [Wed, 1 Jun 2016 20:20:30 +0000 (21:20 +0100)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Wed, 1 Jun 2016 17:27:00 +0000 (18:27 +0100)]
adventures: Commit regenerated games with save/load and bug fixes
EtchedPixels [Wed, 1 Jun 2016 12:01:16 +0000 (13:01 +0100)]
Merge pull request #354 from nealcrook/apps3
Apps3 - a working man
Neal Andrew Crook [Tue, 31 May 2016 21:10:44 +0000 (22:10 +0100)]
Add qrun
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.
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.
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.
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>
Alan Cox [Tue, 31 May 2016 11:48:02 +0000 (12:48 +0100)]
syscalls.h: fix sockaddr warning
Alan Cox [Tue, 31 May 2016 11:46:50 +0000 (12:46 +0100)]
syscalls.h: pre-declare struct rlimit
Alan Cox [Tue, 31 May 2016 11:45:53 +0000 (12:45 +0100)]
syscall6502: fix silly warning
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>
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>
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>
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>
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>
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>
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>
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>
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>
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.
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.
EtchedPixels [Fri, 27 May 2016 08:10:30 +0000 (09:10 +0100)]
Merge pull request #350 from beretta42/master
coco3: add rawmode=1 support
Brett Gordon [Tue, 17 May 2016 20:17:16 +0000 (16:17 -0400)]
coco3: make sdc driver handle rawmode=1.
Brett Gordon [Tue, 17 May 2016 16:40:17 +0000 (12:40 -0400)]
coco3: make drivewire.s support rawmode=1.
Brett Gordon [Tue, 17 May 2016 16:39:49 +0000 (12:39 -0400)]
coco3: remove CONFIG_LEGACY_EXEC
EtchedPixels [Thu, 26 May 2016 15:19:12 +0000 (16:19 +0100)]
Merge pull request #349 from beretta42/master
coco3: fix scroll_down().
Brett Gordon [Wed, 25 May 2016 13:19:42 +0000 (09:19 -0400)]
coco3: fix scroll_down().