FUZIX.git
6 years agoApplications/ld09: Makefile.z80: use $(FUZIX_CCOPTS)
Paolo Pisati [Fri, 22 Jun 2018 16:55:42 +0000 (18:55 +0200)]
Applications/ld09: Makefile.z80: use $(FUZIX_CCOPTS)

Signed-off-by: Paolo Pisati <p.pisati@gmail.com>
6 years agoApplications/util: Makefile.z80: use $(FUZIX_CCOPTS)
Paolo Pisati [Fri, 22 Jun 2018 16:56:28 +0000 (18:56 +0200)]
Applications/util: Makefile.z80: use $(FUZIX_CCOPTS)

Signed-off-by: Paolo Pisati <p.pisati@gmail.com>
6 years agoApplications/V7/games: Makefile.z80: use $(FUZIX_CCOPTS)
Paolo Pisati [Fri, 22 Jun 2018 16:57:30 +0000 (18:57 +0200)]
Applications/V7/games: Makefile.z80: use $(FUZIX_CCOPTS)

Signed-off-by: Paolo Pisati <p.pisati@gmail.com>
6 years agoApplications/V7/cmd/sh: Makefile.z80: use $(FUZIX_CCOPTS)
Paolo Pisati [Fri, 22 Jun 2018 16:47:31 +0000 (18:47 +0200)]
Applications/V7/cmd/sh: Makefile.z80: use $(FUZIX_CCOPTS)

Signed-off-by: Paolo Pisati <p.pisati@gmail.com>
6 years agoApplications/V7/cmd: Makefile.z80: use $(FUZIX_CCOPTS)
Paolo Pisati [Fri, 22 Jun 2018 16:58:29 +0000 (18:58 +0200)]
Applications/V7/cmd: Makefile.z80: use $(FUZIX_CCOPTS)

Signed-off-by: Paolo Pisati <p.pisati@gmail.com>
6 years agoLibrary/libs: Makefile.z80: use $(FUZIX_CCOPTS)
Paolo Pisati [Fri, 22 Jun 2018 16:59:22 +0000 (18:59 +0200)]
Library/libs: Makefile.z80: use $(FUZIX_CCOPTS)

Signed-off-by: Paolo Pisati <p.pisati@gmail.com>
6 years agoMakefile: introduce $FUZIX_CCOPTS as per global optimization level
Paolo Pisati [Fri, 22 Jun 2018 17:06:01 +0000 (19:06 +0200)]
Makefile: introduce $FUZIX_CCOPTS as per global optimization level

Signed-off-by: Paolo Pisati <p.pisati@gmail.com>
6 years agobinman: discard may be above commonmem and that's just fine
Alan Cox [Mon, 25 Jun 2018 21:10:37 +0000 (22:10 +0100)]
binman: discard may be above commonmem and that's just fine

6 years agotrs80: NMI masking fix
Alan Cox [Mon, 25 Jun 2018 21:10:23 +0000 (22:10 +0100)]
trs80: NMI masking fix

6 years agoz80: use visualize in the build
Alan Cox [Mon, 25 Jun 2018 21:09:52 +0000 (22:09 +0100)]
z80: use visualize in the build

6 years agovisualize: provide a visual map of the memory layout - on Z80 at least
Alan Cox [Mon, 25 Jun 2018 21:08:38 +0000 (22:08 +0100)]
visualize: provide a visual map of the memory layout - on Z80 at least

A 64 x 4 display showing 64K split into 256 byte chunks in 64 x 1K vertical
stripes showing free and used spaces.

Doesn't produce sensible output for banked binaries.

6 years agorc2014: import the RC2014 fork of Fuzix and realign it with current kernels
Alan Cox [Sat, 23 Jun 2018 00:18:01 +0000 (01:18 +0100)]
rc2014: import the RC2014 fork of Fuzix and realign it with current kernels

Not yet tested. In theory the changes done are small...

6 years agotrs80m1: wire up all the model 3 floppy support (untested)
Alan Cox [Sun, 10 Jun 2018 20:11:35 +0000 (21:11 +0100)]
trs80m1: wire up all the model 3 floppy support (untested)

6 years agotrs80m1: add TRS80 model 3 low level floppy code (first attempt)
Alan Cox [Sun, 10 Jun 2018 20:10:36 +0000 (21:10 +0100)]
trs80m1: add TRS80 model 3 low level floppy code (first attempt)

6 years agotrs80m1: update floppy FIXME list, grow cmd table a byte for size
Alan Cox [Sun, 10 Jun 2018 20:09:35 +0000 (21:09 +0100)]
trs80m1: update floppy FIXME list, grow cmd table a byte for size

We don't yet support different sizes but it will be needed

6 years agotrs80m1: Add model 3 floppy driver initial attempt
Alan Cox [Sun, 10 Jun 2018 20:08:49 +0000 (21:08 +0100)]
trs80m1: Add model 3 floppy driver initial attempt

6 years agotrs80m1: first bits to deal with model III interrupt differences
Alan Cox [Sat, 9 Jun 2018 15:57:11 +0000 (16:57 +0100)]
trs80m1: first bits to deal with model III interrupt differences

6 years agotrs80m1: detect Model III
Alan Cox [Sat, 9 Jun 2018 15:56:47 +0000 (16:56 +0100)]
trs80m1: detect Model III

6 years agotrs80m1: build Model III boot image
Alan Cox [Sat, 9 Jun 2018 15:56:32 +0000 (16:56 +0100)]
trs80m1: build Model III boot image

6 years agomakejv3: sort out skewing support
Alan Cox [Sat, 9 Jun 2018 15:56:14 +0000 (16:56 +0100)]
makejv3: sort out skewing support

6 years agotrs80m1: Model III loader
Alan Cox [Sat, 9 Jun 2018 15:55:47 +0000 (16:55 +0100)]
trs80m1: Model III loader

6 years agotrs80: fix silly comment
Alan Cox [Sat, 9 Jun 2018 15:55:17 +0000 (16:55 +0100)]
trs80: fix silly comment
trs80: fix silly comment
trs80: fix silly comment
trs80: fix silly comment
trs80: fix silly comment
trs80: fix silly comment
trs80: fix silly comment
trs80: fix silly comment
trs80: fix silly comment

6 years agotrs80m1: update comments
Alan Cox [Wed, 6 Jun 2018 11:53:28 +0000 (12:53 +0100)]
trs80m1: update comments

6 years agotrs80m1: tricks clean up
Alan Cox [Sat, 2 Jun 2018 22:19:30 +0000 (23:19 +0100)]
trs80m1: tricks clean up

6 years agotricks: tidy up comments
Alan Cox [Sat, 2 Jun 2018 22:10:36 +0000 (23:10 +0100)]
tricks: tidy up comments

6 years agotricks: note comments
Alan Cox [Sat, 2 Jun 2018 22:07:03 +0000 (23:07 +0100)]
tricks: note comments

6 years agofsck: diet slightly so you can fsck a reasonable sized fs on a 32K box
Alan Cox [Sat, 2 Jun 2018 21:59:13 +0000 (22:59 +0100)]
fsck: diet slightly so you can fsck a reasonable sized fs on a 32K box

Would be good to look at inlining the bit ops for speed as well I think

6 years agobinman: generate valid binaries for high memory
Alan Cox [Sat, 2 Jun 2018 21:58:44 +0000 (22:58 +0100)]
binman: generate valid binaries for high memory

6 years agovt: guide the compiler into optimizing the fast path
Alan Cox [Sat, 2 Jun 2018 21:58:19 +0000 (22:58 +0100)]
vt: guide the compiler into optimizing the fast path

6 years agoprocess: correct SIGCHLD check
Alan Cox [Sat, 2 Jun 2018 21:58:08 +0000 (22:58 +0100)]
process: correct SIGCHLD check

6 years agotrs80: don't halt in the loop - it has weird effects
Alan Cox [Sat, 2 Jun 2018 21:57:48 +0000 (22:57 +0100)]
trs80: don't halt in the loop - it has weird effects

6 years agotrs80m1: speed up the vt processing
Alan Cox [Sat, 2 Jun 2018 21:57:12 +0000 (22:57 +0100)]
trs80m1: speed up the vt processing

6 years agotrs80: add bank helper for fast bank to bank copies
Alan Cox [Sat, 2 Jun 2018 21:56:34 +0000 (22:56 +0100)]
trs80: add bank helper for fast bank to bank copies

6 years agotrs80m1: add a slightly mad fork copier
Alan Cox [Sat, 2 Jun 2018 21:56:03 +0000 (22:56 +0100)]
trs80m1: add a slightly mad fork copier

It may be crazy but it's fast.....

6 years agotrs80m1: turn on direct I/O
Alan Cox [Sat, 2 Jun 2018 21:55:48 +0000 (22:55 +0100)]
trs80m1: turn on direct I/O

6 years agoz80fixedbank: make the actual copier platform specific in this case
Alan Cox [Sat, 2 Jun 2018 21:54:50 +0000 (22:54 +0100)]
z80fixedbank: make the actual copier platform specific in this case

It really needs to be (and maybe in the others it would be worth revisiting
in the unbanked kerne case for those platforms that need crazy hacks)

6 years agovt: avoid pointless signed maths
Alan Cox [Sat, 2 Jun 2018 19:16:56 +0000 (20:16 +0100)]
vt: avoid pointless signed maths

6 years agoz80: correct banked banking dofork
Alan Cox [Sat, 2 Jun 2018 19:16:32 +0000 (20:16 +0100)]
z80: correct banked banking dofork

With this fixed we now fork correctly on TRS80 model 1

6 years agonetd: build tinyirc as 'tinyirc' to match other platforms
Alan Cox [Sat, 2 Jun 2018 18:00:28 +0000 (19:00 +0100)]
netd: build tinyirc as 'tinyirc' to match other platforms

6 years agoinit: we debugged telinit
Alan Cox [Sat, 2 Jun 2018 17:59:54 +0000 (18:59 +0100)]
init: we debugged telinit

6 years agoApplications: build MWC du
Alan Cox [Sat, 2 Jun 2018 17:59:37 +0000 (18:59 +0100)]
Applications: build MWC du

6 years ago6502: first cut at sorting the pre-emption fun out
Alan Cox [Sat, 2 Jun 2018 16:17:24 +0000 (17:17 +0100)]
6502: first cut at sorting the pre-emption fun out

6 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan [Sat, 2 Jun 2018 11:54:17 +0000 (12:54 +0100)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

6 years agotrs80m1: Update documentation
Alan [Sat, 2 Jun 2018 11:54:03 +0000 (12:54 +0100)]
trs80m1: Update documentation

6 years agotrs80m1: add go_slow/go_fast helpers
Alan [Sat, 2 Jun 2018 11:53:22 +0000 (12:53 +0100)]
trs80m1: add go_slow/go_fast helpers

Model 1 systems with some accelerators need these.

6 years agofcc: TRS80 model 1 support
Alan [Sat, 2 Jun 2018 11:52:34 +0000 (12:52 +0100)]
fcc: TRS80 model 1 support

6 years agotrs80m1: Set up to build user space high
Alan [Sat, 2 Jun 2018 11:51:57 +0000 (12:51 +0100)]
trs80m1: Set up to build user space high

6 years agotrs80m1: fast/slow floppy handling
Alan [Sat, 2 Jun 2018 11:51:33 +0000 (12:51 +0100)]
trs80m1: fast/slow floppy handling

For turbo cards

6 years agoMerge pull request #624 from beretta42/login
EtchedPixels [Fri, 1 Jun 2018 11:30:09 +0000 (12:30 +0100)]
Merge pull request #624 from beretta42/login

init(getty): set/reset owner of tty on login

6 years agoinit(getty): set/reset owner of tty on login
Brett Gordon [Fri, 1 Jun 2018 05:42:41 +0000 (01:42 -0400)]
init(getty): set/reset owner of tty on login

6 years agotrs80m1: update README
Alan Cox [Thu, 31 May 2018 23:50:39 +0000 (00:50 +0100)]
trs80m1: update README

6 years agodc: fix handling of error case for div/mod
Alan Cox [Thu, 31 May 2018 23:48:31 +0000 (00:48 +0100)]
dc: fix handling of error case for div/mod

NULL is not the right return

6 years agoMerge pull request #623 from piso77/master-piso
EtchedPixels [Thu, 31 May 2018 22:18:57 +0000 (23:18 +0100)]
Merge pull request #623 from piso77/master-piso

Makefile: z80: fix the 'clean' target and make it work again

6 years agoMakefile: z80: fix the 'clean' target and make it work again
Paolo Pisati [Thu, 31 May 2018 07:17:31 +0000 (09:17 +0200)]
Makefile: z80: fix the 'clean' target and make it work again

Signed-off-by: Paolo Pisati <p.pisati@gmail.com>
6 years agoREADME: we have a proper platform list elsewhere remove the bitrotted one
Alan Cox [Wed, 30 May 2018 21:49:01 +0000 (22:49 +0100)]
README: we have a proper platform list elsewhere remove the bitrotted one

6 years agoMerge pull request #622 from piso77/master-ftbfs-games
EtchedPixels [Wed, 30 May 2018 21:45:37 +0000 (22:45 +0100)]
Merge pull request #622 from piso77/master-ftbfs-games

games: fix compilation

6 years agogames: fix compilation
Paolo Pisati [Wed, 30 May 2018 14:03:25 +0000 (16:03 +0200)]
games: fix compilation

...
fortune: 2789 bytes from 256
ls -l adv01 adv02 adv03 adv04 adv05 adv06 adv07 adv08 adv09 adv10 adv11 adv12
adv13 adv14a adv14b myst01 myst02 myst03 myst04 myst05 myst06 myst07 myst0
8 myst09 myst10 myst11 fortune-gen startrek hamurabi cowsay advint fortune
qrun.cb >size.report
ls: cannot access 'qrun.cb': No such file or directory
Makefile.z80:37: recipe for target 'sizes' failed
make[2]: *** [sizes] Error 2
make[2]: Leaving directory '/home/flag/FUZIX/Applications/games'
Makefile:28: recipe for target 'games' failed
make[1]: *** [games] Error 2
make[1]: Leaving directory '/home/flag/FUZIX/Applications'
Makefile:61: recipe for target 'apps' failed
make: *** [apps] Error 2

Signed-off-by: Paolo Pisati <p.pisati@gmail.com>
6 years agoMerge pull request #620 from beretta42/colors
EtchedPixels [Wed, 30 May 2018 11:30:41 +0000 (12:30 +0100)]
Merge pull request #620 from beretta42/colors

coco3: give all terminals some reasonable default ink/paper colors

6 years agoSmallC: Fix make clean warnings
Alan [Wed, 30 May 2018 11:01:31 +0000 (12:01 +0100)]
SmallC: Fix make clean warnings

6 years agosu: use strlcy and also use bigger buffers
Alan [Wed, 30 May 2018 10:52:19 +0000 (11:52 +0100)]
su: use strlcy and also use bigger buffers

6 years agosu: security fixes
Alan [Wed, 30 May 2018 10:46:29 +0000 (11:46 +0100)]
su: security fixes

6 years agocal: fix clashing definition
Alan [Wed, 30 May 2018 10:41:28 +0000 (11:41 +0100)]
cal: fix clashing definition

6 years agobinman: Fix crash with oversized binaries
Alan [Mon, 28 May 2018 16:09:07 +0000 (17:09 +0100)]
binman: Fix crash with oversized binaries

6 years agocowsay: Make it build with sdcc
Alan [Mon, 28 May 2018 16:07:42 +0000 (17:07 +0100)]
cowsay: Make it build with sdcc

6 years agodw: Move makefile to Makefile.z80 and tidy/prepare
Alan [Mon, 28 May 2018 16:07:22 +0000 (17:07 +0100)]
dw: Move makefile to Makefile.z80 and tidy/prepare

6 years agotcl: tidy Makefile move to Makefile.z80
Alan [Mon, 28 May 2018 16:06:58 +0000 (17:06 +0100)]
tcl: tidy Makefile move to Makefile.z80

6 years agoMakefile: tidy and prepare for 0x8000 build
Alan [Mon, 28 May 2018 16:06:02 +0000 (17:06 +0100)]
Makefile: tidy and prepare for 0x8000 build

6 years agoMakefile: remove the .c for the yacc files not the .y!
Alan [Mon, 28 May 2018 16:05:01 +0000 (17:05 +0100)]
Makefile: remove the .c for the yacc files not the .y!

6 years agoMakefiles: tidy and fix up ready for 0x8000 build option
Alan [Mon, 28 May 2018 16:03:20 +0000 (17:03 +0100)]
Makefiles: tidy and fix up ready for 0x8000 build option

6 years agoBCPL: move Makefile to Makefile.z80 as per pattern, tidy
Alan [Mon, 28 May 2018 16:02:24 +0000 (17:02 +0100)]
BCPL: move Makefile to Makefile.z80 as per pattern, tidy

6 years agogames; tidy makefile - add Z80_PLATFORM and remove fweep
Alan [Mon, 28 May 2018 16:00:49 +0000 (17:00 +0100)]
games; tidy makefile - add Z80_PLATFORM and remove fweep

We don't want to try fweep on 8bt - yet...

6 years agococo3: give all terminals some reasonable default ink/paper colors
Brett Gordon [Sat, 26 May 2018 15:52:39 +0000 (11:52 -0400)]
coco3: give all terminals some reasonable default ink/paper colors

6 years agoexecve: check for binaries too low to load
Alan Cox [Sat, 26 May 2018 10:16:02 +0000 (11:16 +0100)]
execve: check for binaries too low to load

This got broken when the changes were added to allow high address binaries
to be loaded into big memory windows.

The real fix is to go to relocatable binaries of course

6 years agotrs80: fix platform_monitor - NMI can stop halt...
Alan Cox [Sat, 26 May 2018 10:14:51 +0000 (11:14 +0100)]
trs80: fix platform_monitor - NMI can stop halt...

6 years agotrs80m1: for a banked kernel we can't shortcut on restores
Alan Cox [Fri, 25 May 2018 22:53:09 +0000 (23:53 +0100)]
trs80m1: for a banked kernel we can't shortcut on restores

With this fixed we get up to 'Starting /init' before the world ends

6 years agotrs80: fix the same confusing comment
Alan Cox [Fri, 25 May 2018 22:29:32 +0000 (23:29 +0100)]
trs80: fix the same confusing comment

6 years agotrs80m1: fix confusing comment
Alan Cox [Fri, 25 May 2018 22:29:14 +0000 (23:29 +0100)]
trs80m1: fix confusing comment

6 years agotrs80m1: modify the hard disk helpers so they expected 4 byte calls
Alan Cox [Fri, 25 May 2018 22:28:34 +0000 (23:28 +0100)]
trs80m1: modify the hard disk helpers so they expected 4 byte calls

6 years agoz80-fixedbank-bank: Fixups
Alan Cox [Fri, 25 May 2018 22:26:15 +0000 (23:26 +0100)]
z80-fixedbank-bank: Fixups

With this it all seems to work - although I do need to investigate why
it did a switchout/switchin in the first place. It should have been optimized
out by the switchout() smarts I think

6 years agotrs80m1: debugging tty problems - seems to help
Alan Cox [Fri, 25 May 2018 22:25:48 +0000 (23:25 +0100)]
trs80m1: debugging tty problems - seems to help

6 years agotrs80m1: set up the banks correctly
Alan Cox [Fri, 25 May 2018 21:49:11 +0000 (22:49 +0100)]
trs80m1: set up the banks correctly

6 years agotrs80m1: add the banked fixedbank code
Alan Cox [Fri, 25 May 2018 21:32:23 +0000 (22:32 +0100)]
trs80m1: add the banked fixedbank code

This doesn't seem to work yet - explode on the first switchout/switchin
sequence.

6 years agotrs80m1: fix memory sizing add banking hooks
Alan Cox [Fri, 25 May 2018 21:31:25 +0000 (22:31 +0100)]
trs80m1: fix memory sizing add banking hooks

The simple banked memory banking logic will need some improvements for
banked kernels. Add the hooks I think we need

6 years agotrs80m1: install irq vectors properly
Alan Cox [Fri, 25 May 2018 21:30:49 +0000 (22:30 +0100)]
trs80m1: install irq vectors properly

With this change we now service interrupts and get to the boot prompt albeit
with the wrong memory size

6 years agotrs80m1: fix interrupt handling
Alan Cox [Fri, 25 May 2018 21:30:16 +0000 (22:30 +0100)]
trs80m1: fix interrupt handling

6 years agotrs801: remove surplus code
Alan Cox [Fri, 25 May 2018 21:29:56 +0000 (22:29 +0100)]
trs801: remove surplus code

6 years agogames: add cowsay to other makefiles
Alan Cox [Thu, 24 May 2018 23:29:03 +0000 (00:29 +0100)]
games: add cowsay to other makefiles

6 years agoMerge pull request #618 from beretta42/cowsay
EtchedPixels [Thu, 24 May 2018 23:27:53 +0000 (00:27 +0100)]
Merge pull request #618 from beretta42/cowsay

Cowsay

6 years agoMerge pull request #617 from beretta42/colors
EtchedPixels [Thu, 24 May 2018 23:26:37 +0000 (00:26 +0100)]
Merge pull request #617 from beretta42/colors

Fix vt color handling with multiple vts

6 years agotrs80m1: constants can't go in DISCARD2
Alan Cox [Thu, 24 May 2018 23:26:00 +0000 (00:26 +0100)]
trs80m1: constants can't go in DISCARD2

Otherwise they can't be accessed by kprintf!

6 years agotrs80m1: banking - measure size available
Alan Cox [Thu, 24 May 2018 23:24:49 +0000 (00:24 +0100)]
trs80m1: banking - measure size available

Needs more work: for some reason we are getting the RAM sizes wrong still

6 years agotrs80load: Model 1 loader now seems to put everything in the right place
Alan Cox [Thu, 24 May 2018 23:24:26 +0000 (00:24 +0100)]
trs80load: Model 1 loader now seems to put everything in the right place

6 years agotrs80m1: correct model detection logic
Alan Cox [Thu, 24 May 2018 23:24:05 +0000 (00:24 +0100)]
trs80m1: correct model detection logic

6 years agotrs80m1: correct udata base as we moved it
Alan Cox [Thu, 24 May 2018 23:23:47 +0000 (00:23 +0100)]
trs80m1: correct udata base as we moved it

6 years agotrs80m1: clear screen on boot
Alan Cox [Thu, 24 May 2018 23:23:25 +0000 (00:23 +0100)]
trs80m1: clear screen on boot

6 years agotrs80m1: fix vt build
Alan Cox [Thu, 24 May 2018 23:23:06 +0000 (00:23 +0100)]
trs80m1: fix vt build

6 years agotrs80load: Work on the M1 loader
Alan Cox [Thu, 24 May 2018 22:21:18 +0000 (23:21 +0100)]
trs80load: Work on the M1 loader

With these changes we actually get to execute Fuzix code... not a lot of it
admittedly at this point!

6 years agotrs80m1: sort out the memory mappings
Alan Cox [Thu, 24 May 2018 22:20:56 +0000 (23:20 +0100)]
trs80m1: sort out the memory mappings

We should have 0 bytes in _CODE

6 years agotrs80m1: build the image correctly
Alan Cox [Thu, 24 May 2018 22:19:55 +0000 (23:19 +0100)]
trs80m1: build the image correctly

6 years agotrs80: update documentation
Alan Cox [Thu, 24 May 2018 21:10:13 +0000 (22:10 +0100)]
trs80: update documentation