FUZIX.git
6 years agoRefactor the Amstrad NC directory so that the NC100 build stuff is in its own
David Given [Sat, 21 Apr 2018 11:02:38 +0000 (13:02 +0200)]
Refactor the Amstrad NC directory so that the NC100 build stuff is in its own
subdirectory --- this is to allow a hypothetical NC200 port to have different
build scripts but share as much code as possible.

This changes the platform name from nc100 to amstradnc/nc100.

6 years agoAdd README.
David Given [Sun, 10 Dec 2017 11:16:50 +0000 (12:16 +0100)]
Add README.

6 years agoBodge together a floppy-bootable nc200 platform.
David Given [Sun, 10 Dec 2017 11:10:14 +0000 (12:10 +0100)]
Bodge together a floppy-bootable nc200 platform.

6 years agoConvert bootblock.s to sdasz80 syntax, and add Makefile rules to compile it.
David Given [Sun, 10 Dec 2017 10:47:34 +0000 (11:47 +0100)]
Convert bootblock.s to sdasz80 syntax, and add Makefile rules to compile it.

6 years agoRename the boot skeleton file to avoid confusing with the kernel bootblock.
David Given [Sun, 10 Dec 2017 10:27:54 +0000 (11:27 +0100)]
Rename the boot skeleton file to avoid confusing with the kernel bootblock.

6 years agoIncrease the boot partition size to allow three 16kB banks, not just two.
David Given [Sat, 9 Dec 2017 23:21:23 +0000 (00:21 +0100)]
Increase the boot partition size to allow three 16kB banks, not just two.

6 years agoThe boot loader now works (probably).
David Given [Sat, 9 Dec 2017 22:50:17 +0000 (23:50 +0100)]
The boot loader now works (probably).

6 years agoAdd a more-or-less working NC200 bootable file system image and auto.prg.
David Given [Sat, 9 Dec 2017 16:02:36 +0000 (17:02 +0100)]
Add a more-or-less working NC200 bootable file system image and auto.prg.

6 years ago65c816: fix documentation
Alan Cox [Thu, 7 Dec 2017 15:11:24 +0000 (15:11 +0000)]
65c816: fix documentation

6 years agov65c816: fix incorrect define
Alan Cox [Thu, 7 Dec 2017 15:10:46 +0000 (15:10 +0000)]
v65c816: fix incorrect define

It's right in the asm but the C one is used in swap which we don't yet do..

6 years agov65c816: expose the load base to asm for the doexec fixups
Alan Cox [Mon, 4 Dec 2017 13:46:39 +0000 (13:46 +0000)]
v65c816: expose the load base to asm for the doexec fixups

6 years agov65: put signal vectors in low if the binary is loaded above the normal base
Alan Cox [Mon, 4 Dec 2017 13:45:57 +0000 (13:45 +0000)]
v65: put signal vectors in low if the binary is loaded above the normal base

6 years ago65c816: signal vector copy
Alan Cox [Mon, 4 Dec 2017 02:14:25 +0000 (02:14 +0000)]
65c816: signal vector copy

6 years agofsck: Fix standalone handling of zero indirect
Alan Cox [Mon, 4 Dec 2017 01:58:08 +0000 (01:58 +0000)]
fsck: Fix standalone handling of zero indirect

6 years agov65c816: actually tick rate is 100Hz
Alan Cox [Mon, 4 Dec 2017 01:57:39 +0000 (01:57 +0000)]
v65c816: actually tick rate is 100Hz

6 years ago65c816: multiple fixes - pre-empt support
Alan Cox [Mon, 4 Dec 2017 01:49:17 +0000 (01:49 +0000)]
65c816: multiple fixes - pre-empt support

6 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Sun, 3 Dec 2017 20:27:38 +0000 (20:27 +0000)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

6 years agoutils: add a SYS5 killall
Alan Cox [Sun, 3 Dec 2017 20:27:15 +0000 (20:27 +0000)]
utils: add a SYS5 killall

Not yet tested

6 years agoMerge pull request #569 from beretta42/netd2
EtchedPixels [Mon, 27 Nov 2017 18:31:45 +0000 (18:31 +0000)]
Merge pull request #569 from beretta42/netd2

Quick fixes for netd

6 years agodragon-nx32: Move fonts to high memory
Tormod Volden [Sun, 26 Nov 2017 17:50:26 +0000 (18:50 +0100)]
dragon-nx32: Move fonts to high memory

The lower memory segment was running full.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
6 years agoStandalone/fsck: Add -y option
Tormod Volden [Sat, 25 Nov 2017 18:26:02 +0000 (19:26 +0100)]
Standalone/fsck: Add -y option

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
6 years agobuild-filesystem-ng: Print exit status from tool, not from "system"
Tormod Volden [Sat, 25 Nov 2017 18:06:47 +0000 (19:06 +0100)]
build-filesystem-ng: Print exit status from tool, not from "system"

Interpret exit status 1 from fsck as non-fatal.

Also list package filenames if running verbose.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
6 years agoutil: Add a (long) integer-only seq command
Tormod Volden [Sat, 25 Nov 2017 00:27:42 +0000 (01:27 +0100)]
util: Add a (long) integer-only seq command

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
6 years agonetd: remote connect is an asynchronous event, kill udp straight away.
Brett Gordon [Sat, 25 Nov 2017 23:33:42 +0000 (18:33 -0500)]
netd: remote connect is an asynchronous event, kill udp straight away.

6 years agonetd: fix copying of query arg in 'dig'
Brett Gordon [Sat, 25 Nov 2017 23:13:12 +0000 (18:13 -0500)]
netd: fix copying of query arg in 'dig'

6 years agonetd: shut off gethost's alarm after matching answer arrives
Brett Gordon [Sat, 25 Nov 2017 23:11:15 +0000 (18:11 -0500)]
netd: shut off gethost's alarm after matching answer arrives

6 years ago65c816: complete support for signal handling in syscall
Alan Cox [Fri, 24 Nov 2017 21:46:07 +0000 (21:46 +0000)]
65c816: complete support for signal handling in syscall

Pure IRQ/context switch time handling is not yet debugged

6 years agokernel.def: Fix dumb error
Alan Cox [Fri, 24 Nov 2017 20:34:09 +0000 (20:34 +0000)]
kernel.def: Fix dumb error

6 years ago65c816: gets the signal handling path via syscall closer
Alan Cox [Fri, 24 Nov 2017 20:33:20 +0000 (20:33 +0000)]
65c816: gets the signal handling path via syscall closer

We now call the signal handler correctly, but the handler return blows up

6 years ago6502: correct signal stubs
Alan Cox [Fri, 24 Nov 2017 20:33:00 +0000 (20:33 +0000)]
6502: correct signal stubs

6 years ago65c816: pass the correct A X Y values to the 6502 user space
Alan Cox [Fri, 24 Nov 2017 17:54:09 +0000 (17:54 +0000)]
65c816: pass the correct A X Y values to the 6502 user space

We don't use these but we do specify them so we should follow what 6502
expects

6 years ago6502: add more apps
Alan Cox [Fri, 24 Nov 2017 17:53:19 +0000 (17:53 +0000)]
6502: add more apps

6 years agolib: Install driveiwre.h
Alan Cox [Thu, 23 Nov 2017 23:20:47 +0000 (23:20 +0000)]
lib: Install driveiwre.h

6 years agofsck: Add fixes to standalone fsck from native
Alan Cox [Thu, 23 Nov 2017 23:07:43 +0000 (23:07 +0000)]
fsck: Add fixes to standalone fsck from native

6 years agofsck: Fix sign when reporting blocks and inodes and some const bits
Alan Cox [Thu, 23 Nov 2017 23:05:19 +0000 (23:05 +0000)]
fsck: Fix sign when reporting blocks and inodes and some const bits

With this fixed we report valid numbers on a big fsck. There is a weird 6502
oddity that it reports "0" for the memory pool, but I think that's a cc65
bug not an fsck one.

Also fix the path allocating on the recursive search. We now don't buffer
overrun given a long path.

6 years agodu: 6502 support
Alan Cox [Thu, 23 Nov 2017 23:04:49 +0000 (23:04 +0000)]
du: 6502 support

6 years ago6502: correct crt0
Alan Cox [Thu, 23 Nov 2017 22:22:42 +0000 (22:22 +0000)]
6502: correct crt0

The older compiler when we forced fastcall makes main() fastcall. The current
compiler which we can now use without patches makes make() vararg for some
odd reason. That means we need to leave argv on the stack.

With this set the 65c816 userspace actually seems useable

6 years agofilesys: Fix corruption and buffer leak on bad input address
Alan Cox [Thu, 23 Nov 2017 21:45:08 +0000 (21:45 +0000)]
filesys: Fix corruption and buffer leak on bad input address

6 years ago65c816: further work on things like return paths and fork() corrections
Alan Cox [Thu, 23 Nov 2017 02:27:32 +0000 (02:27 +0000)]
65c816: further work on things like return paths and fork() corrections

We still have a weird failure on stat() but a lot more stuff seems to
want to behave now

6 years agov65c816: ensure the failing trap handler sets a8/i8
Alan Cox [Thu, 23 Nov 2017 02:27:01 +0000 (02:27 +0000)]
v65c816: ensure the failing trap handler sets a8/i8

6 years agov65c816: Fix hd driver to return correct value
Alan Cox [Thu, 23 Nov 2017 02:26:34 +0000 (02:26 +0000)]
v65c816: Fix hd driver to return correct value

6 years agov65c816: remove some debug
Alan Cox [Thu, 23 Nov 2017 02:26:23 +0000 (02:26 +0000)]
v65c816: remove some debug

6 years agodevio: correctly mark failed read block as unusable
Alan Cox [Thu, 23 Nov 2017 02:25:56 +0000 (02:25 +0000)]
devio: correctly mark failed read block as unusable

6 years agofilesys: handle 8bit bools
Alan Cox [Thu, 23 Nov 2017 02:25:41 +0000 (02:25 +0000)]
filesys: handle 8bit bools

6 years ago6502: Add more build Makefiles
Alan Cox [Wed, 22 Nov 2017 17:55:32 +0000 (17:55 +0000)]
6502: Add more build Makefiles

"make" now builds a fairly substantial set of tools

6 years agoas09: build on 6502
Alan Cox [Wed, 22 Nov 2017 17:55:02 +0000 (17:55 +0000)]
as09: build on 6502

6 years ago6502: Fix quiz.c
Alan Cox [Wed, 22 Nov 2017 17:54:28 +0000 (17:54 +0000)]
6502: Fix quiz.c

6 years ago6502: Add V7 makefiles
Alan Cox [Wed, 22 Nov 2017 17:54:08 +0000 (17:54 +0000)]
6502: Add V7 makefiles

6 years ago6502: Make clear build on cc65
Alan Cox [Wed, 22 Nov 2017 17:53:38 +0000 (17:53 +0000)]
6502: Make clear build on cc65

6 years ago6502; Build smallC on 6502
Alan Cox [Wed, 22 Nov 2017 17:53:07 +0000 (17:53 +0000)]
6502; Build smallC on 6502

6 years ago6502: more const adjustment for cc65
Alan Cox [Wed, 22 Nov 2017 17:52:29 +0000 (17:52 +0000)]
6502: more const adjustment for cc65

6 years ago6502: cc65 doesn't understand 0 sized struct terminal arrays
Alan Cox [Wed, 22 Nov 2017 17:51:52 +0000 (17:51 +0000)]
6502: cc65 doesn't understand 0 sized struct terminal arrays

Work around it the 'traditional' way

6 years ago6502: more app tweaks for 6502 - keep large arrays off stack
Alan Cox [Wed, 22 Nov 2017 17:51:12 +0000 (17:51 +0000)]
6502: more app tweaks for 6502 - keep large arrays off stack

6 years ago6502: cc65 is very fussy at tines - fix up the moans
Alan Cox [Wed, 22 Nov 2017 17:50:17 +0000 (17:50 +0000)]
6502: cc65 is very fussy at tines - fix up the moans

6 years agogames: build on 6502
Alan Cox [Wed, 22 Nov 2017 15:29:38 +0000 (15:29 +0000)]
games: build on 6502

6 years agoqrun: turn off graphics as we aren't yet doing it
Alan Cox [Wed, 22 Nov 2017 15:29:15 +0000 (15:29 +0000)]
qrun: turn off graphics as we aren't yet doing it

6 years agoV7/cmd: build on 6502
Alan Cox [Wed, 22 Nov 2017 15:11:42 +0000 (15:11 +0000)]
V7/cmd: build on 6502

6 years agolibrary: copy userstructs.h for non Z80 case
Alan Cox [Wed, 22 Nov 2017 15:11:21 +0000 (15:11 +0000)]
library: copy userstructs.h for non Z80 case

6 years ago6502: build curses/termcap
Alan Cox [Wed, 22 Nov 2017 15:11:04 +0000 (15:11 +0000)]
6502: build curses/termcap

6 years agoutils: Fix 6502 termcap build
Alan Cox [Wed, 22 Nov 2017 15:10:40 +0000 (15:10 +0000)]
utils: Fix 6502 termcap build

6 years agoed: Make it build on 6502
Alan Cox [Wed, 22 Nov 2017 15:10:25 +0000 (15:10 +0000)]
ed: Make it build on 6502

6 years agofcc: report signals as errors when sdcc crashes
Alan Cox [Wed, 22 Nov 2017 00:47:46 +0000 (00:47 +0000)]
fcc: report signals as errors when sdcc crashes

6 years agosetdate: Forgot to commit the final fix
Alan Cox [Tue, 21 Nov 2017 21:24:10 +0000 (21:24 +0000)]
setdate: Forgot to commit the final fix

6 years agofunction: allow struct * but not struct arguments
Alan Cox [Thu, 16 Nov 2017 23:55:49 +0000 (23:55 +0000)]
function: allow struct * but not struct arguments

6 years agolex: allow for struct/union in types in args etc
Alan Cox [Thu, 16 Nov 2017 23:54:23 +0000 (23:54 +0000)]
lex: allow for struct/union in types in args etc

6 years agopreproc: fix silly bug
Alan Cox [Thu, 16 Nov 2017 23:54:02 +0000 (23:54 +0000)]
preproc: fix silly bug

6 years agosym: Fix hang with overlong symbol
Alan Cox [Thu, 16 Nov 2017 23:53:43 +0000 (23:53 +0000)]
sym: Fix hang with overlong symbol

6 years agosym: allow auto variables to be assigned expressions
Alan Cox [Thu, 16 Nov 2017 23:22:10 +0000 (23:22 +0000)]
sym: allow auto variables to be assigned expressions

Nice trivial change. Fixing statics is a different ball game alas.

6 years agoz80: more bits
Alan Cox [Thu, 16 Nov 2017 23:01:38 +0000 (23:01 +0000)]
z80: more bits

6 years agoz80: basic string/char functions yet to do
Alan Cox [Thu, 16 Nov 2017 19:03:27 +0000 (19:03 +0000)]
z80: basic string/char functions yet to do

6 years agoz80: initial build fixes
Alan Cox [Thu, 16 Nov 2017 19:03:03 +0000 (19:03 +0000)]
z80: initial build fixes

6 years agocc: z80 helpers
Alan Cox [Thu, 16 Nov 2017 18:55:10 +0000 (18:55 +0000)]
cc: z80 helpers

First drafts

6 years agocc: add initial runtime pieces
Alan Cox [Thu, 16 Nov 2017 17:14:49 +0000 (17:14 +0000)]
cc: add initial runtime pieces

Need a decent signed divide implementation adding to crun

6 years agocc: temporaries in current directory
Alan Cox [Thu, 16 Nov 2017 17:14:36 +0000 (17:14 +0000)]
cc: temporaries in current directory

6 years agofrontend: fix some glitches in temporary removal
Alan Cox [Thu, 16 Nov 2017 15:02:09 +0000 (15:02 +0000)]
frontend: fix some glitches in temporary removal

6 years agocodez80: inline 16bit subtraction
Alan Cox [Thu, 16 Nov 2017 15:01:57 +0000 (15:01 +0000)]
codez80: inline 16bit subtraction

6 years agoz80: fix short relative branches to unknown symbols
Alan Cox [Thu, 16 Nov 2017 15:00:51 +0000 (15:00 +0000)]
z80: fix short relative branches to unknown symbols

We now error them with a rather more useful message

6 years agocc: lots of small fixes to make it functional
Alan Cox [Wed, 15 Nov 2017 23:10:19 +0000 (23:10 +0000)]
cc: lots of small fixes to make it functional

There is plenty left to do (search paths for libraries, automatic libc
inclusion and the like), but it is now minimally useable for Z80 at least

6 years agosmallc: fix warning
Alan Cox [Wed, 15 Nov 2017 23:08:47 +0000 (23:08 +0000)]
smallc: fix warning

6 years agosmall c: Send errors to stderr so we seen them under cc
Alan Cox [Wed, 15 Nov 2017 23:08:05 +0000 (23:08 +0000)]
small c: Send errors to stderr so we seen them under cc

6 years agoMakefile.linux: Set a CROSS define so we can build a test harness mode
Alan Cox [Wed, 15 Nov 2017 23:07:31 +0000 (23:07 +0000)]
Makefile.linux: Set a CROSS define so we can build a test harness mode

6 years agoas: Fix RST handling
Alan Cox [Wed, 15 Nov 2017 23:06:48 +0000 (23:06 +0000)]
as: Fix RST handling

The old code expected the Intel 8080 syntax for RST not the Z80 one.

6 years agoas: We use 16 char symbols in ld so we must match in as
Alan Cox [Wed, 15 Nov 2017 23:06:14 +0000 (23:06 +0000)]
as: We use 16 char symbols in ld so we must match in as

6 years agold: Fix library handling, set binary executable
Alan Cox [Wed, 15 Nov 2017 23:05:08 +0000 (23:05 +0000)]
ld: Fix library handling, set binary executable

When we rescan a library we don't want to import the same module again and
decide we have duplicate symbols.

6 years agoas: Allow #constant in Z80.
Alan Cox [Wed, 15 Nov 2017 21:12:04 +0000 (21:12 +0000)]
as: Allow #constant in Z80.

Yes it's an abomination but some assemblers in common use want this.

6 years agocc: add front end to build
Alan Cox [Wed, 15 Nov 2017 21:11:02 +0000 (21:11 +0000)]
cc: add front end to build

6 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Wed, 15 Nov 2017 21:10:03 +0000 (21:10 +0000)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

6 years agortc: Headers for RTC in kernel and user
Alan Cox [Wed, 15 Nov 2017 21:09:50 +0000 (21:09 +0000)]
rtc: Headers for RTC in kernel and user

6 years agoas: Fix the register+offset 8bit absolute case
Alan Cox [Wed, 15 Nov 2017 21:08:11 +0000 (21:08 +0000)]
as: Fix the register+offset 8bit absolute case

The simple case is (ix + const) but in theory at least we might have an
absolute symbol.

6 years agold: trap more obvious symbol errors
Alan Cox [Wed, 15 Nov 2017 21:07:54 +0000 (21:07 +0000)]
ld: trap more obvious symbol errors

6 years agoobj: Fix object file format 32bit alignment
Alan Cox [Wed, 15 Nov 2017 21:07:11 +0000 (21:07 +0000)]
obj: Fix object file format 32bit alignment

Otherwise it'll be a pain in the butt for cross tools and testing

(This breaks every existing object file... at least natively)

6 years agoMerge pull request #558 from beretta42/irc2
EtchedPixels [Wed, 15 Nov 2017 12:47:00 +0000 (12:47 +0000)]
Merge pull request #558 from beretta42/irc2

irc: 6809 compile, add to fs

6 years agoirc: 6809 compile, add to fs
Brett Gordon [Tue, 14 Nov 2017 03:15:54 +0000 (22:15 -0500)]
irc: 6809 compile, add to fs

6 years agocc: minor front end tweaks
Alan Cox [Wed, 15 Nov 2017 00:17:31 +0000 (00:17 +0000)]
cc: minor front end tweaks

It almost works .. yay!

6 years agocc: add a frontend
Alan Cox [Tue, 14 Nov 2017 23:21:39 +0000 (23:21 +0000)]
cc: add a frontend

Not yet tested!

6 years agofsck: note the problem to fix
Alan Cox [Tue, 14 Nov 2017 00:50:03 +0000 (00:50 +0000)]
fsck: note the problem to fix

6 years agoz80pack: turn on rtc
Alan Cox [Tue, 14 Nov 2017 00:49:38 +0000 (00:49 +0000)]
z80pack: turn on rtc

6 years agolibs/TODO: status update
Alan Cox [Tue, 14 Nov 2017 00:49:15 +0000 (00:49 +0000)]
libs/TODO: status update

6 years agoinit: set a sane default umask
Alan Cox [Tue, 14 Nov 2017 00:48:55 +0000 (00:48 +0000)]
init: set a sane default umask

6 years agosetdate: support RTC if present
Alan Cox [Tue, 14 Nov 2017 00:48:41 +0000 (00:48 +0000)]
setdate: support RTC if present