FUZIX.git
5 years agoue: Makefile fixes
Alan Cox [Sun, 7 Oct 2018 21:48:40 +0000 (22:48 +0100)]
ue: Makefile fixes

5 years agocursesgames: Makefile fixes
Alan Cox [Sun, 7 Oct 2018 21:48:28 +0000 (22:48 +0100)]
cursesgames: Makefile fixes

5 years agosh: fix all the build messes
Alan Cox [Sun, 7 Oct 2018 21:48:15 +0000 (22:48 +0100)]
sh: fix all the build messes

5 years ago68000: fix library building
Alan Cox [Sun, 7 Oct 2018 21:47:52 +0000 (22:47 +0100)]
68000: fix library building

5 years ago65c816: tweak buffers down so it all fits
Alan Cox [Sun, 7 Oct 2018 21:46:56 +0000 (22:46 +0100)]
65c816: tweak buffers down so it all fits

5 years agoamstradnc: clock support
Alan Cox [Sun, 7 Oct 2018 21:14:35 +0000 (22:14 +0100)]
amstradnc: clock support

Also adjust the config for the NC200 as it was spilling over the boundary

5 years agotc8521: works better if you use the right I/O port
Alan Cox [Sun, 7 Oct 2018 20:57:28 +0000 (21:57 +0100)]
tc8521: works better if you use the right I/O port

5 years agotravis: build sbcv2 not rc2014 for test
Alan Cox [Sun, 7 Oct 2018 20:56:28 +0000 (21:56 +0100)]
travis: build sbcv2 not rc2014 for test

rc2014 doesn't build and fit correctly with optimization off

5 years agofsh: more Makefile hackery
Alan Cox [Sun, 7 Oct 2018 20:55:46 +0000 (21:55 +0100)]
fsh: more Makefile hackery

5 years agofsh: 6809 Makefile silly
Alan Cox [Sun, 7 Oct 2018 17:55:49 +0000 (18:55 +0100)]
fsh: 6809 Makefile silly

5 years agofsh: force the directory to exist in git
Alan Cox [Sun, 7 Oct 2018 14:04:55 +0000 (15:04 +0100)]
fsh: force the directory to exist in git

5 years ago6809: Correct Makefile for fsh
Alan Cox [Sun, 7 Oct 2018 14:02:43 +0000 (15:02 +0100)]
6809: Correct Makefile for fsh

5 years agotc8521: first cut at an RTC driver for the NC100
Alan Cox [Sun, 7 Oct 2018 12:40:07 +0000 (13:40 +0100)]
tc8521: first cut at an RTC driver for the NC100

I believe the NC200 needs an MC146818 driver writing

5 years agofsh: turn on the fsh shell for other platforms
Alan Cox [Sun, 7 Oct 2018 12:28:12 +0000 (13:28 +0100)]
fsh: turn on the fsh shell for other platforms

5 years agolibs: turn on readline for other ports
Alan Cox [Sun, 7 Oct 2018 12:24:26 +0000 (13:24 +0100)]
libs: turn on readline for other ports

5 years agoreadline: fix stupid bug in the history code
Alan Cox [Sun, 7 Oct 2018 01:00:12 +0000 (02:00 +0100)]
readline: fix stupid bug in the history code

Now seems to work properly

5 years agorc2014: update README
Alan Cox [Sat, 6 Oct 2018 23:57:45 +0000 (00:57 +0100)]
rc2014: update README

5 years agoMakefile: update obsolete ubee comment
Alan Cox [Sat, 6 Oct 2018 23:46:37 +0000 (00:46 +0100)]
Makefile: update obsolete ubee comment

5 years agosh: more work on fsh (fuzix sh - with editing)
Alan Cox [Sat, 6 Oct 2018 23:45:08 +0000 (00:45 +0100)]
sh: more work on fsh (fuzix sh - with editing)

We can't just dump /bin/sh because fsh won't fit on 32/32K systems. It sort
of works at this point but there are bugs somewhere in the readline history
logic that mess stuff up

5 years agoreadline: fix ^B stop at line start
Alan Cox [Sat, 6 Oct 2018 23:43:26 +0000 (00:43 +0100)]
readline: fix ^B stop at line start

With this fixed I think it's just the history support that's a bit buggy

5 years agofd: support map_buffers
Alan Cox [Sat, 6 Oct 2018 21:18:33 +0000 (22:18 +0100)]
fd: support map_buffers

5 years agokernel: add other needed map_buffers instances
Alan Cox [Sat, 6 Oct 2018 21:15:27 +0000 (22:15 +0100)]
kernel: add other needed map_buffers instances

As we add it to more stuff it may be more generally needed. For the moment
get the cases that matter

5 years agorc2014: turn on all the features
Alan Cox [Sat, 6 Oct 2018 21:04:22 +0000 (22:04 +0100)]
rc2014: turn on all the features

This is a bit of a tight fit but the core works with this changed.

The discard must not start below C300 to leave space for the arguments and
bootup processing.

5 years agokernel: allow for cases with only a small window in the base page
Alan Cox [Sat, 6 Oct 2018 21:01:49 +0000 (22:01 +0100)]
kernel: allow for cases with only a small window in the base page

If you have a 4x16K or similar mapping model and most of the upper page
is taken up by discard and common then there may not be 4K to randomly play with.

In that case firstly we overflow and miscalculate the pages, secondly we then
scribble on stuff we shouldn't.

Instead tighten it up so there needs to be only 512 bytes (plus vectors etc
- 256 bytes on Z80) of space.

5 years agodevide: use the new map_buffers interface
Alan Cox [Sat, 6 Oct 2018 19:31:29 +0000 (20:31 +0100)]
devide: use the new map_buffers interface

This means everyone now needs a map_buffers but as it's a no-op for most
systems and not a critical path it shouldn't be a big deal. Given how useful
external buffers are on many systems it's worth it

5 years agorc2014: turn on all the features for external buffers
Alan Cox [Sat, 6 Oct 2018 19:31:15 +0000 (20:31 +0100)]
rc2014: turn on all the features for external buffers

5 years agorc2014: add external buffer cache
Alan Cox [Sat, 6 Oct 2018 19:28:55 +0000 (20:28 +0100)]
rc2014: add external buffer cache

That lets us go up to 16K of buffers that are also unmapped when not being
accessed. Lots more meta data cached and a nicer system feel.

5 years agoinit: fix termios settings for character size
Alan Cox [Sat, 6 Oct 2018 17:07:14 +0000 (18:07 +0100)]
init: fix termios settings for character size

The termios code in init forgets to set the character width in bits so defaults
to 5 bit chars. Needless to say now we have implemented character widths in
termios settings in some drivers this does not end well.

5 years agorc2014: move to 0x0100 in order to match the new boot code
Alan Cox [Sat, 6 Oct 2018 16:45:12 +0000 (17:45 +0100)]
rc2014: move to 0x0100 in order to match the new boot code

5 years agorc2014: switch to being a bootable image not a CP/M file
Alan Cox [Sat, 6 Oct 2018 16:44:40 +0000 (17:44 +0100)]
rc2014: switch to being a bootable image not a CP/M file

5 years agorc2014: remove dead bits
Alan Cox [Sat, 6 Oct 2018 16:44:05 +0000 (17:44 +0100)]
rc2014: remove dead bits

5 years agomsx1: update README
Alan Cox [Sat, 6 Oct 2018 00:02:21 +0000 (01:02 +0100)]
msx1: update README

5 years agosh: initial readline tiny changes
Alan Cox [Sat, 6 Oct 2018 00:01:37 +0000 (01:01 +0100)]
sh: initial readline tiny changes

This is still a work in progress to get us a /bin/sh with nice modern editing
behaviour

5 years agolibs: build readline and install it for Z80 at least
Alan Cox [Sat, 6 Oct 2018 00:01:18 +0000 (01:01 +0100)]
libs: build readline and install it for Z80 at least

5 years agoClean up licensing information
Alan Cox [Fri, 5 Oct 2018 13:47:11 +0000 (14:47 +0100)]
Clean up licensing information

5 years agoreadline: fflush stdout on the GNUish one
Alan Cox [Fri, 5 Oct 2018 12:31:26 +0000 (13:31 +0100)]
readline: fflush stdout on the GNUish one

We don't use stdio but the caller might expect us to. Given any space concerned
user will call the Fuzix interfaces directly adding the stdio dep here ought to
be fine.

5 years agoreadline: updates and fixes
Alan Cox [Fri, 5 Oct 2018 12:30:16 +0000 (13:30 +0100)]
readline: updates and fixes

Now supports a timeout helper so you can use it with timed operations etc.

The fake GNU readline call is put in a seperate module so you don't have to
suck in malloc and friends just to use it.

5 years agoreadline: support Fuzix mappings for keys
Alan Cox [Fri, 5 Oct 2018 11:16:27 +0000 (12:16 +0100)]
readline: support Fuzix mappings for keys

5 years agoreadline: first cut at a readline style library
Alan Cox [Fri, 5 Oct 2018 00:36:29 +0000 (01:36 +0100)]
readline: first cut at a readline style library

Needs further work but is nice and small even with history support

5 years agoue: fix Makefile.z80 clean
Alan Cox [Thu, 4 Oct 2018 22:05:50 +0000 (23:05 +0100)]
ue: fix Makefile.z80 clean

5 years agofcc: default to relocatable + other updates
Alan Cox [Thu, 4 Oct 2018 22:04:44 +0000 (23:04 +0100)]
fcc: default to relocatable + other updates

- default to relocatable binaries
- clean up temporary files
- note some fixes to make
- fix complete hash made of files with dots in the name (eg ue.fuzix)

5 years agorelocbin: fixes and update the relocation format a bit
Alan Cox [Thu, 4 Oct 2018 22:04:27 +0000 (23:04 +0100)]
relocbin: fixes and update the relocation format a bit

5 years agocrt0,z80: Debug and slightly change the relocation setup
Alan Cox [Thu, 4 Oct 2018 22:04:01 +0000 (23:04 +0100)]
crt0,z80: Debug and slightly change the relocation setup

5 years agoMerge pull request #666 from beretta42/cocco3
EtchedPixels [Thu, 4 Oct 2018 08:59:13 +0000 (09:59 +0100)]
Merge pull request #666 from beretta42/cocco3

coco3: tty_setup, and dummy copyright

5 years agococo3: implement platform_copyright()
Brett Gordon [Wed, 3 Oct 2018 13:43:13 +0000 (09:43 -0400)]
coco3: implement platform_copyright()

5 years agovdp1: do proper interrupt blocking
Alan Cox [Wed, 3 Oct 2018 13:36:10 +0000 (14:36 +0100)]
vdp1: do proper interrupt blocking

This fixes the odd very weird happening because the TMS9918A data pointer is
messed up by register accesses (eg interrupts mid scroll). Also fix the
timing for MSX1. We can't quite otir/inir a TMS9918A on MSX but must use
outi ; jp nz in order to run at the required access rate.

5 years agotrs80m1: update for tty termios masks
Alan Cox [Wed, 3 Oct 2018 13:35:53 +0000 (14:35 +0100)]
trs80m1: update for tty termios masks

5 years agoz80: Fix in() and make it fastcall while we are at it
Alan Cox [Wed, 3 Oct 2018 13:35:29 +0000 (14:35 +0100)]
z80: Fix in() and make it fastcall while we are at it

5 years agomsx1: put a JP at the start of the ROM
Alan Cox [Wed, 3 Oct 2018 13:34:39 +0000 (14:34 +0100)]
msx1: put a JP at the start of the ROM

We need this for our null checker

5 years agotty: fix the masking logic
Alan Cox [Wed, 3 Oct 2018 12:27:02 +0000 (13:27 +0100)]
tty: fix the masking logic

With this we appear to run ok

5 years agosocz80: add tty masking
Alan Cox [Wed, 3 Oct 2018 12:11:01 +0000 (13:11 +0100)]
socz80: add tty masking

Needs updating to handling the improved bitstream with serial config

5 years agon8v4em/p112: Minimal changes for tty termios
Alan Cox [Wed, 3 Oct 2018 12:10:28 +0000 (13:10 +0100)]
n8v4em/p112: Minimal changes for tty termios

Proper support for these platforms still needs adding

5 years agov65c816: tune buffers
Alan Cox [Tue, 2 Oct 2018 23:05:07 +0000 (00:05 +0100)]
v65c816: tune buffers

5 years agococo3: tty_setup, and dummy copyright
Brett Gordon [Tue, 2 Oct 2018 13:54:26 +0000 (09:54 -0400)]
coco3: tty_setup, and dummy copyright

5 years ago68000: update to new tty masking
Alan Cox [Tue, 2 Oct 2018 13:02:29 +0000 (14:02 +0100)]
68000: update to new tty masking

5 years agonascom: update to new tty masking
Alan Cox [Tue, 2 Oct 2018 13:02:08 +0000 (14:02 +0100)]
nascom: update to new tty masking

5 years ago6502/65c816: update to new termios masking
Alan Cox [Tue, 2 Oct 2018 13:01:40 +0000 (14:01 +0100)]
6502/65c816: update to new termios masking

5 years agogenie-e64: update termios masking
Alan Cox [Tue, 2 Oct 2018 13:01:09 +0000 (14:01 +0100)]
genie-e64: update termios masking

5 years agodragon-nx-32: update to termios masking
Alan Cox [Tue, 2 Oct 2018 13:00:54 +0000 (14:00 +0100)]
dragon-nx-32: update to termios masking

5 years agomulticomp: update to termios masking
Alan Cox [Tue, 2 Oct 2018 13:00:39 +0000 (14:00 +0100)]
multicomp: update to termios masking

5 years agococos: update to termios masks
Alan Cox [Tue, 2 Oct 2018 13:00:22 +0000 (14:00 +0100)]
cocos: update to termios masks

5 years agomsx2: update for termios masking
Alan Cox [Tue, 2 Oct 2018 12:07:00 +0000 (13:07 +0100)]
msx2: update for termios masking

5 years agostart: avoid generating GSINIT code for the kernel
Alan Cox [Tue, 2 Oct 2018 12:06:35 +0000 (13:06 +0100)]
start: avoid generating GSINIT code for the kernel

5 years agorc2014-tiny: sort out the address map
Alan Cox [Tue, 2 Oct 2018 11:55:49 +0000 (12:55 +0100)]
rc2014-tiny: sort out the address map

5 years agozeta-v2: update for termios masks
Alan Cox [Tue, 2 Oct 2018 11:46:28 +0000 (12:46 +0100)]
zeta-v2: update for termios masks

5 years agoubee: update for termios masks
Alan Cox [Tue, 2 Oct 2018 11:46:17 +0000 (12:46 +0100)]
ubee: update for termios masks

5 years agosc108: update for termios masks
Alan Cox [Tue, 2 Oct 2018 11:46:02 +0000 (12:46 +0100)]
sc108: update for termios masks

5 years agotrs80: update for termios masks
Alan Cox [Tue, 2 Oct 2018 11:45:44 +0000 (12:45 +0100)]
trs80: update for termios masks

5 years agosam: update for termios masks
Alan Cox [Tue, 2 Oct 2018 11:45:31 +0000 (12:45 +0100)]
sam: update for termios masks

5 years agosam: fix build - we need int_disabled
Alan Cox [Tue, 2 Oct 2018 11:45:13 +0000 (12:45 +0100)]
sam: fix build - we need int_disabled

5 years agorc2014: add all the tty setup support
Alan Cox [Tue, 2 Oct 2018 11:44:54 +0000 (12:44 +0100)]
rc2014: add all the tty setup support

5 years agorc2014-tiny: add all the tty setup support
Alan Cox [Tue, 2 Oct 2018 11:44:34 +0000 (12:44 +0100)]
rc2014-tiny: add all the tty setup support

5 years agomtx: update to include termios masks
Alan Cox [Tue, 2 Oct 2018 11:44:20 +0000 (12:44 +0100)]
mtx: update to include termios masks

5 years agoz80pack: update for tty masks
Alan Cox [Mon, 1 Oct 2018 22:52:41 +0000 (23:52 +0100)]
z80pack: update for tty masks

5 years agocromemco: update for tty masks
Alan Cox [Mon, 1 Oct 2018 22:52:27 +0000 (23:52 +0100)]
cromemco: update for tty masks

5 years agosbcv2: make mask static
Alan Cox [Mon, 1 Oct 2018 22:52:13 +0000 (23:52 +0100)]
sbcv2: make mask static

5 years agomicropack: update for termios masks
Alan Cox [Mon, 1 Oct 2018 22:47:12 +0000 (23:47 +0100)]
micropack: update for termios masks

5 years agoamstradnc: support more serial features
Alan Cox [Mon, 1 Oct 2018 22:41:28 +0000 (23:41 +0100)]
amstradnc: support more serial features

5 years agomsx1: tty masks
Alan Cox [Mon, 1 Oct 2018 22:06:49 +0000 (23:06 +0100)]
msx1: tty masks

5 years agotty: do masking on the termios values
Alan Cox [Mon, 1 Oct 2018 21:58:12 +0000 (22:58 +0100)]
tty: do masking on the termios values

5 years agosbcv2: prepare for tty handling improvements
Alan Cox [Mon, 1 Oct 2018 21:54:50 +0000 (22:54 +0100)]
sbcv2: prepare for tty handling improvements

5 years agorc2014: improved initialization
Alan Cox [Mon, 1 Oct 2018 21:54:28 +0000 (22:54 +0100)]
rc2014: improved initialization

5 years agosc108: flesh out all the serial support
Alan Cox [Mon, 1 Oct 2018 21:53:35 +0000 (22:53 +0100)]
sc108: flesh out all the serial support

We still don't support full RTS/CTS but really the I/O paths for SIO handling
need to be rewritten to fast asm helpers anyway.

5 years agokernel: add defines for tty termios improvements
Alan Cox [Mon, 1 Oct 2018 21:51:43 +0000 (22:51 +0100)]
kernel: add defines for tty termios improvements

5 years agoz80pack: fix typo
Alan Cox [Mon, 1 Oct 2018 15:07:02 +0000 (16:07 +0100)]
z80pack: fix typo

5 years agomulticomp09: temporary blank platform_copyright
Alan Cox [Mon, 1 Oct 2018 12:47:05 +0000 (13:47 +0100)]
multicomp09: temporary blank platform_copyright

5 years agodragon-nx32: temporary blank platform_copyright
Alan Cox [Mon, 1 Oct 2018 12:46:48 +0000 (13:46 +0100)]
dragon-nx32: temporary blank platform_copyright

5 years agoz80pack32: update to avoid ld a,i
Alan Cox [Mon, 1 Oct 2018 12:43:14 +0000 (13:43 +0100)]
z80pack32: update to avoid ld a,i

5 years agoz80pack32: update to handle int_disabled
Alan Cox [Mon, 1 Oct 2018 12:42:44 +0000 (13:42 +0100)]
z80pack32: update to handle int_disabled

5 years agoz80pack: update to use int_disabled not ld a,i
Alan Cox [Mon, 1 Oct 2018 12:42:26 +0000 (13:42 +0100)]
z80pack: update to use int_disabled not ld a,i

5 years agoubee: update ld a,i users to use int_disabled
Alan Cox [Mon, 1 Oct 2018 12:42:03 +0000 (13:42 +0100)]
ubee: update ld a,i users to use int_disabled

5 years agotrs80m1: update to new tty and irq handling
Alan Cox [Mon, 1 Oct 2018 12:41:48 +0000 (13:41 +0100)]
trs80m1: update to new tty and irq handling

5 years agosoc280: update rest to new irq handling
Alan Cox [Mon, 1 Oct 2018 12:41:26 +0000 (13:41 +0100)]
soc280: update rest to new irq handling

5 years agorc2014-tiny: update to new irq logic
Alan Cox [Mon, 1 Oct 2018 12:41:05 +0000 (13:41 +0100)]
rc2014-tiny: update to new irq logic

5 years agosc108: update to new irq and tty logic
Alan Cox [Mon, 1 Oct 2018 12:40:48 +0000 (13:40 +0100)]
sc108: update to new irq and tty logic

5 years agosam: update to new irq, tty logic
Alan Cox [Mon, 1 Oct 2018 12:40:32 +0000 (13:40 +0100)]
sam: update to new irq, tty logic

5 years agorc2014: fix a typo
Alan Cox [Mon, 1 Oct 2018 12:40:21 +0000 (13:40 +0100)]
rc2014: fix a typo

5 years agopcw8256: update rest of IRQ handling
Alan Cox [Mon, 1 Oct 2018 12:40:02 +0000 (13:40 +0100)]
pcw8256: update rest of IRQ handling

5 years agonc100: update IRQ handling to use int_disabled
Alan Cox [Mon, 1 Oct 2018 12:39:43 +0000 (13:39 +0100)]
nc100: update IRQ handling to use int_disabled

5 years agogenie-eg64: update to z80 and irq changes
Alan Cox [Mon, 1 Oct 2018 12:39:22 +0000 (13:39 +0100)]
genie-eg64: update to z80 and irq changes