FUZIX.git
6 years agotrs80m1: switch to separately banked buffers
Alan Cox [Fri, 13 Jul 2018 00:26:35 +0000 (01:26 +0100)]
trs80m1: switch to separately banked buffers

This is a first cut. The buffers.c code needs rewriting.

6 years agotrs80m1: update README
Alan Cox [Fri, 13 Jul 2018 00:26:08 +0000 (01:26 +0100)]
trs80m1: update README

6 years agocpuinfo: first cut at a cpuinfo command
Alan Cox [Fri, 13 Jul 2018 00:24:53 +0000 (01:24 +0100)]
cpuinfo: first cut at a cpuinfo command

This one only does Z80 and needs some deubgging and testing before it's at
all reliable.

6502 NMOS/CMOS 65C816 and 6809/6309 are left as an exercise to the reader 8)

6 years agotrs80m1: switch to external buffers
Alan Cox [Thu, 12 Jul 2018 14:09:58 +0000 (15:09 +0100)]
trs80m1: switch to external buffers

This is a minimal 'make it work' job.

6 years agotrs80m1: Naïve initial implementation of external buffer support
Alan Cox [Thu, 12 Jul 2018 14:08:54 +0000 (15:08 +0100)]
trs80m1: Naïve initial implementation of external buffer support

This is just to make it work. We need custom buffer to user copiers (fast ones)
to make this work usefully.

6 years agokernel: final pieces needed (I think...) for external buffer support
Alan Cox [Thu, 12 Jul 2018 14:07:45 +0000 (15:07 +0100)]
kernel: final pieces needed (I think...) for external buffer support

6 years agosyscall_exec16: note a cunning (but probably not very good) plan
Alan Cox [Wed, 11 Jul 2018 23:30:27 +0000 (00:30 +0100)]
syscall_exec16: note a cunning (but probably not very good) plan

6 years agotrs80: update README
Alan Cox [Wed, 11 Jul 2018 23:29:47 +0000 (00:29 +0100)]
trs80: update README

6 years agofilesys: Fix build with external buffers
Alan Cox [Wed, 11 Jul 2018 23:29:25 +0000 (00:29 +0100)]
filesys: Fix build with external buffers

6 years agosetdate: fix year in BCD mode
Alan Cox [Wed, 11 Jul 2018 22:22:12 +0000 (23:22 +0100)]
setdate: fix year in BCD mode

6 years agotrs80m1: add clock code but ifdef it back out due to an SDCC bug
Alan Cox [Wed, 11 Jul 2018 22:21:40 +0000 (23:21 +0100)]
trs80m1: add clock code but ifdef it back out due to an SDCC bug

Filed as #2770 in SDCC bug tracker

6 years agoMerge pull request #640 from beretta42/ed
EtchedPixels [Wed, 11 Jul 2018 16:34:01 +0000 (17:34 +0100)]
Merge pull request #640 from beretta42/ed

6809: compile ed in V7

6 years agotrs80m1: devgfx, update comments
Alan Cox [Wed, 11 Jul 2018 12:54:33 +0000 (13:54 +0100)]
trs80m1: devgfx, update comments

6 years agotrs80m1: update README
Alan Cox [Wed, 11 Jul 2018 12:53:59 +0000 (13:53 +0100)]
trs80m1: update README

6 years agonetd: first cut at 68K build
Alan Cox [Wed, 11 Jul 2018 12:53:34 +0000 (13:53 +0100)]
netd: first cut at 68K build

6 years agoMerge remote-tracking branch 'refs/remotes/origin/master'
Alan Cox [Wed, 11 Jul 2018 12:52:44 +0000 (13:52 +0100)]
Merge remote-tracking branch 'refs/remotes/origin/master'

6 years agotrs80: Booting and banking work
Alan Cox [Wed, 11 Jul 2018 12:47:59 +0000 (13:47 +0100)]
trs80: Booting and banking work

1. Get rid of BANK94, make the new bank code the default as it works fine
without a 3rd party bank card
2. Generate "proper" TRS80 disk images. Our boot disk was 40 track DSSD
with sectors numbered from 0. A normal TRS80 disk numbers from 1.
3. Turn on disk skewing so the media layout is a bit more optimal

6 years ago6809: compile ed in V7
Brett Gordon [Wed, 11 Jul 2018 01:36:20 +0000 (21:36 -0400)]
6809: compile ed in V7

6 years agoMerge pull request #639 from piso77/v68_fixes
EtchedPixels [Tue, 10 Jul 2018 20:34:15 +0000 (21:34 +0100)]
Merge pull request #639 from piso77/v68_fixes

Resurrect the v68-banked target

6 years agotravis: hook v68-banked
Paolo Pisati [Tue, 10 Jul 2018 17:37:53 +0000 (19:37 +0200)]
travis: hook v68-banked

Signed-off-by: Paolo Pisati <p.pisati@gmail.com>
6 years agov68-banked: config.h: devices.c invoke devide_init(), add CONFIG_IDE to fix build
Paolo Pisati [Tue, 10 Jul 2018 17:36:54 +0000 (19:36 +0200)]
v68-banked: config.h: devices.c invoke devide_init(), add CONFIG_IDE to fix build

Signed-off-by: Paolo Pisati <p.pisati@gmail.com>
6 years agov68-banked: import missing fuzix.ld from v68
Paolo Pisati [Tue, 10 Jul 2018 17:29:37 +0000 (17:29 +0000)]
v68-banked: import missing fuzix.ld from v68

Signed-off-by: Paolo Pisati <p.pisati@gmail.com>
6 years agoMerge pull request #638 from piso77/v68_fixes
EtchedPixels [Tue, 10 Jul 2018 10:23:04 +0000 (11:23 +0100)]
Merge pull request #638 from piso77/v68_fixes

Resurrect the m68k arch, and hook v68 to Travis

6 years agotravis: hook v68 to the build
Paolo Pisati [Tue, 10 Jul 2018 06:15:00 +0000 (08:15 +0200)]
travis: hook v68 to the build

Signed-off-by: Paolo Pisati <p.pisati@gmail.com>
6 years agoue: 68000: fix compilation
Paolo Pisati [Tue, 10 Jul 2018 07:18:32 +0000 (07:18 +0000)]
ue: 68000: fix compilation

Signed-off-by: Paolo Pisati <p.pisati@gmail.com>
6 years agoue: 68000: try to workaround a weird dependecy/invokation problem...
Paolo Pisati [Tue, 10 Jul 2018 07:17:12 +0000 (07:17 +0000)]
ue: 68000: try to workaround a weird dependecy/invokation problem...

Signed-off-by: Paolo Pisati <p.pisati@gmail.com>
6 years agonetd: 68000: dummy Makefile
Paolo Pisati [Tue, 10 Jul 2018 06:58:50 +0000 (06:58 +0000)]
netd: 68000: dummy Makefile

Signed-off-by: Paolo Pisati <p.pisati@gmail.com>
6 years agocursesgames: 68000: fix compilation
Paolo Pisati [Tue, 10 Jul 2018 06:41:41 +0000 (06:41 +0000)]
cursesgames: 68000: fix compilation

Signed-off-by: Paolo Pisati <p.pisati@gmail.com>
6 years agocrt0: 68000: fix compilation
Paolo Pisati [Sat, 7 Jul 2018 23:02:45 +0000 (23:02 +0000)]
crt0: 68000: fix compilation

Signed-off-by: Paolo Pisati <p.pisati@gmail.com>
6 years agotravis: setup v68 toolchain
Paolo Pisati [Tue, 10 Jul 2018 06:13:51 +0000 (08:13 +0200)]
travis: setup v68 toolchain

Signed-off-by: Paolo Pisati <p.pisati@gmail.com>
6 years agotravis: don't pollute targets with foreign tool/chain
Paolo Pisati [Tue, 10 Jul 2018 05:46:35 +0000 (07:46 +0200)]
travis: don't pollute targets with foreign tool/chain

Signed-off-by: Paolo Pisati <p.pisati@gmail.com>
6 years agotrs80: remove flags for gfx ops we deleted
Alan Cox [Sun, 8 Jul 2018 23:10:32 +0000 (00:10 +0100)]
trs80: remove flags for gfx ops we deleted

6 years agotrs80m1: correct some graphics reporting
Alan Cox [Sun, 8 Jul 2018 23:08:35 +0000 (00:08 +0100)]
trs80m1: correct some graphics reporting

6 years agotrs80m1: Update the documentation
Alan Cox [Sun, 8 Jul 2018 16:56:58 +0000 (17:56 +0100)]
trs80m1: Update the documentation

It's getting complicated

6 years agotrs80m1: new prototype for genie serial
Alan Cox [Sun, 8 Jul 2018 15:39:19 +0000 (16:39 +0100)]
trs80m1: new prototype for genie serial

6 years agotrs80.h: update Genie comment
Alan Cox [Sun, 8 Jul 2018 15:39:05 +0000 (16:39 +0100)]
trs80.h: update Genie comment

6 years agotrs80: comment/typo fix boot code
Alan Cox [Sun, 8 Jul 2018 15:38:38 +0000 (16:38 +0100)]
trs80: comment/typo fix boot code

6 years agotrs80m1: Fix up the Video Genie handling for serial use halt on Model III
Alan Cox [Sun, 8 Jul 2018 15:36:41 +0000 (16:36 +0100)]
trs80m1: Fix up the Video Genie handling for serial use halt on Model III

The model III has a real interrupt driven serial port, so we can just halt
on it.

6 years agotrs80m1: report proper resolution for the Lowe LE-18
Alan Cox [Sun, 8 Jul 2018 15:36:20 +0000 (16:36 +0100)]
trs80m1: report proper resolution for the Lowe LE-18

6 years agotrs80m1: add initial bits for the Lowe Electronics LE18
Alan Cox [Sun, 8 Jul 2018 15:01:27 +0000 (16:01 +0100)]
trs80m1: add initial bits for the Lowe Electronics LE18

6 years agographics.h: add LOWE_LE18
Alan Cox [Sun, 8 Jul 2018 15:01:13 +0000 (16:01 +0100)]
graphics.h: add LOWE_LE18

6 years agotrs80m1: turn on keyboard bit map access
Alan Cox [Sun, 8 Jul 2018 14:04:38 +0000 (15:04 +0100)]
trs80m1: turn on keyboard bit map access

I forgot this earlier, but we also need it so you can set the keyboard map
for things like German TRS80 Model III

6 years agotrs80m1: update VG
Alan Cox [Sun, 8 Jul 2018 00:57:17 +0000 (01:57 +0100)]
trs80m1: update VG

6 years agotrs80m1: update status
Alan Cox [Sun, 8 Jul 2018 00:12:50 +0000 (01:12 +0100)]
trs80m1: update status

6 years agotrs80m1: note we need to make outchar for debugging other trs80 types
Alan Cox [Sun, 8 Jul 2018 00:11:50 +0000 (01:11 +0100)]
trs80m1: note we need to make outchar for debugging other trs80 types

6 years agotrs80m1: notes on serial port
Alan Cox [Sun, 8 Jul 2018 00:11:35 +0000 (01:11 +0100)]
trs80m1: notes on serial port

6 years agotimer: permit runtime decisions that we have no rtc to lock onto
Alan Cox [Sun, 8 Jul 2018 00:10:47 +0000 (01:10 +0100)]
timer: permit runtime decisions that we have no rtc to lock onto

6 years agotrs80m1: boot loader now also handles selector
Alan Cox [Sat, 7 Jul 2018 21:45:24 +0000 (22:45 +0100)]
trs80m1: boot loader now also handles selector

It's a bit tight but it fits. The code really wants a clean up and a squash

6 years agotrs80m1: update status
Alan Cox [Sat, 7 Jul 2018 19:30:03 +0000 (20:30 +0100)]
trs80m1: update status

6 years agotrs80m1: initial ChromaTRS bits
Alan Cox [Sat, 7 Jul 2018 19:27:24 +0000 (20:27 +0100)]
trs80m1: initial ChromaTRS bits

We don't put a console on it (we could) we just advertise it as a graphics
device and support the joystick ports.

The code needed to support it in console mode already exists in the MSX1 and
MTX512 ports, but really needs a VDP simulation adding to xtrs to debug sanely

6 years agomode: there is a difference between the 9918 and 9918A - we mean A
Alan Cox [Sat, 7 Jul 2018 19:26:42 +0000 (20:26 +0100)]
mode: there is a difference between the 9918 and 9918A - we mean A

6 years agotrs80: Fix backspace/delete
Alan Cox [Sat, 7 Jul 2018 18:51:41 +0000 (19:51 +0100)]
trs80: Fix backspace/delete

6 years agorc: use fsck -a
Alan Cox [Sat, 7 Jul 2018 18:50:50 +0000 (19:50 +0100)]
rc: use fsck -a

6 years agoinit: handle blank lines quietly, and fix explosion on bad lines
Alan Cox [Sat, 7 Jul 2018 18:50:19 +0000 (19:50 +0100)]
init: handle blank lines quietly, and fix explosion on bad lines

6 years agoed: switch to V7 ed
Alan Cox [Sat, 7 Jul 2018 18:49:50 +0000 (19:49 +0100)]
ed: switch to V7 ed

6 years agofsck: Fix use of filesystem names
Alan Cox [Sat, 7 Jul 2018 18:49:30 +0000 (19:49 +0100)]
fsck: Fix use of filesystem names

6 years agosyscall_other: make halt tell you it's done
Alan Cox [Sat, 7 Jul 2018 18:48:59 +0000 (19:48 +0100)]
syscall_other: make halt tell you it's done

Useful when you have a final sync to slow media, or a slow shutdown process
and you want to know when it's finally safe to hit off.

6 years agobasefs: add new files
Alan Cox [Sat, 7 Jul 2018 18:24:13 +0000 (19:24 +0100)]
basefs: add new files

6 years agoetc: update template files a bit
Alan Cox [Sat, 7 Jul 2018 18:23:02 +0000 (19:23 +0100)]
etc: update template files a bit

6 years agomkfs: exit with a valid return code
Alan Cox [Sat, 7 Jul 2018 15:36:36 +0000 (16:36 +0100)]
mkfs: exit with a valid return code

6 years agoue: add 6502 build rules
Alan Cox [Sat, 7 Jul 2018 14:10:47 +0000 (15:10 +0100)]
ue: add 6502 build rules

6 years agoLibrary: add strtok_r everywhere else
Alan Cox [Sat, 7 Jul 2018 14:04:54 +0000 (15:04 +0100)]
Library: add strtok_r everywhere else

6 years agostrtok_r: useful, trivial but was missing from the C library
Alan Cox [Sat, 7 Jul 2018 14:02:16 +0000 (15:02 +0100)]
strtok_r: useful, trivial but was missing from the C library

6 years agops: make it work like it's supposed to
Alan Cox [Sat, 7 Jul 2018 14:01:19 +0000 (15:01 +0100)]
ps: make it work like it's supposed to

This still needs work on times, but the kernel needs to catch up first!

6 years agops: reformat - no other changes
Alan Cox [Sat, 7 Jul 2018 00:15:51 +0000 (01:15 +0100)]
ps: reformat - no other changes

6 years agops: split up and begin tidy
Alan Cox [Sat, 7 Jul 2018 00:15:28 +0000 (01:15 +0100)]
ps: split up and begin tidy

6 years agoinit: allow 'c' option for console to claim related devices
Alan Cox [Fri, 6 Jul 2018 23:59:40 +0000 (00:59 +0100)]
init: allow 'c' option for console to claim related devices

6 years agoapps: build cpmfs etc
Alan Cox [Fri, 6 Jul 2018 23:59:16 +0000 (00:59 +0100)]
apps: build cpmfs etc

6 years agotrs80m1: typo
Alan Cox [Fri, 6 Jul 2018 23:42:17 +0000 (00:42 +0100)]
trs80m1: typo

6 years agotrs80: turn on input support and fix keyboard bits
Alan Cox [Fri, 6 Jul 2018 23:41:59 +0000 (00:41 +0100)]
trs80: turn on input support and fix keyboard bits

6 years agotrs80: remove prototypes for deleted code
Alan Cox [Fri, 6 Jul 2018 23:41:38 +0000 (00:41 +0100)]
trs80: remove prototypes for deleted code

6 years agotrs80: move the initializers out of the main flow
Alan Cox [Fri, 6 Jul 2018 23:41:16 +0000 (00:41 +0100)]
trs80: move the initializers out of the main flow

6 years agotrs80: introduce new files for input device handling
Alan Cox [Fri, 6 Jul 2018 23:40:36 +0000 (00:40 +0100)]
trs80: introduce new files for input device handling

6 years agoremount: add a fallback for finding /
Alan Cox [Fri, 6 Jul 2018 23:39:31 +0000 (00:39 +0100)]
remount: add a fallback for finding /

Otherwise it can be a bit fun fixing up a broken setup

6 years agoutils: add joystick and graphics test code
Alan Cox [Fri, 6 Jul 2018 23:39:02 +0000 (00:39 +0100)]
utils: add joystick and graphics test code

6 years agocpmfs: add help file
Alan Cox [Fri, 6 Jul 2018 23:38:00 +0000 (00:38 +0100)]
cpmfs: add help file

6 years agocave: fix redefinition of Z80 type
Alan Cox [Fri, 6 Jul 2018 23:37:02 +0000 (00:37 +0100)]
cave: fix redefinition of Z80 type

6 years agocpmfs: add Makefiles
Alan Cox [Fri, 6 Jul 2018 23:36:49 +0000 (00:36 +0100)]
cpmfs: add Makefiles

6 years agocpmfs: update types etc
Alan Cox [Fri, 6 Jul 2018 23:36:04 +0000 (00:36 +0100)]
cpmfs: update types etc

6 years agotrs80m1: update status
Alan Cox [Fri, 6 Jul 2018 21:24:46 +0000 (22:24 +0100)]
trs80m1: update status

6 years agotrs80m1: devinput sync with graphics changes
Alan Cox [Fri, 6 Jul 2018 21:22:46 +0000 (22:22 +0100)]
trs80m1: devinput sync with graphics changes

6 years agotrs80m1: fix up model 3 NMI vector (its a JP xx xx) and turn it off at boot
Alan Cox [Fri, 6 Jul 2018 21:21:58 +0000 (22:21 +0100)]
trs80m1: fix up model 3 NMI vector (its a JP xx xx) and turn it off at boot

Otherwise a couple of seconds in we get an NMI that randomly eats AF

6 years agotrs80m1: fix NMI handling up a bit for the Model III
Alan Cox [Fri, 6 Jul 2018 21:21:16 +0000 (22:21 +0100)]
trs80m1: fix NMI handling up a bit for the Model III

We have to be really careful about this as the ROM helpful trashes AF

6 years agotrs80m1: don't do kernel video writes when in micrografyx mode
Alan Cox [Fri, 6 Jul 2018 21:20:50 +0000 (22:20 +0100)]
trs80m1: don't do kernel video writes when in micrografyx mode

6 years agotrs80m1: sort out the graphics logic
Alan Cox [Fri, 6 Jul 2018 21:20:29 +0000 (22:20 +0100)]
trs80m1: sort out the graphics logic

6 years agographics.h: sync with kernel
Alan Cox [Fri, 6 Jul 2018 21:19:21 +0000 (22:19 +0100)]
graphics.h: sync with kernel

6 years agoinput: add user space include file
Alan Cox [Fri, 6 Jul 2018 21:19:01 +0000 (22:19 +0100)]
input: add user space include file

6 years agographics: The Microlabs Grafyx for Model III and IV are not the same
Alan Cox [Fri, 6 Jul 2018 21:18:17 +0000 (22:18 +0100)]
graphics: The Microlabs Grafyx for Model III and IV are not the same

6 years agoinput: rework the input layer concept a bit
Alan Cox [Fri, 6 Jul 2018 21:17:34 +0000 (22:17 +0100)]
input: rework the input layer concept a bit

- Don't write a length byte as we only report one message per read
- Handle signal exits properly
- Don't clash with networking

6 years agococo2cart: update README
Alan Cox [Fri, 6 Jul 2018 21:17:18 +0000 (22:17 +0100)]
coco2cart: update README

6 years agotrs80m1: add initial joystick/input device support
Alan Cox [Fri, 6 Jul 2018 00:16:35 +0000 (01:16 +0100)]
trs80m1: add initial joystick/input device support

6 years agotrs80m1: further selector work
Alan Cox [Fri, 6 Jul 2018 00:15:28 +0000 (01:15 +0100)]
trs80m1: further selector work

Generalize the fork code

6 years agotrs80m1: fix another selector bug and a warning
Alan Cox [Fri, 6 Jul 2018 00:14:07 +0000 (01:14 +0100)]
trs80m1: fix another selector bug and a warning

6 years agotrs80m1: report presence of hr1g globally
Alan Cox [Fri, 6 Jul 2018 00:12:51 +0000 (01:12 +0100)]
trs80m1: report presence of hr1g globally

We need this unfortunate visibility because if you have an HR1G you can't have
an Alpha joystick (polling the joystick turns off the graphics card!)

6 years agokernel: add modifiers to kbd events
Alan Cox [Fri, 6 Jul 2018 00:12:08 +0000 (01:12 +0100)]
kernel: add modifiers to kbd events

6 years agotrs80: clean up graphics
Alan Cox [Thu, 5 Jul 2018 21:59:26 +0000 (22:59 +0100)]
trs80: clean up graphics

As we can direct map stuff and the card is already slow as molasses there isn't
a good reason to support the Graphics ioctl ops except map so throw them out.

While we are at it update the README

6 years agococo2cart; update README
Alan Cox [Thu, 5 Jul 2018 21:56:35 +0000 (22:56 +0100)]
coco2cart; update README

full partitions don't fit

6 years agokernel: add a logical key for caps-lock
Alan Cox [Thu, 5 Jul 2018 21:13:51 +0000 (22:13 +0100)]
kernel: add a logical key for caps-lock

Makes some ports easier

6 years agotrs80m1: make trs80-bank more flexible
Alan Cox [Thu, 5 Jul 2018 12:01:40 +0000 (13:01 +0100)]
trs80m1: make trs80-bank more flexible

Rework trs80-bank so that anything that can be represented by

out someport, someconst - kernel bank 1
out someport, someconst - kernel bank 2

out someport, value - user banks

Can be handled with ease.

This code also adds selector support as the second bank type and others can now
be added without much trouble. It's not the whole story as the fork() code
also needs changing and the fast copier is a bit trickier.

6 years agoREADME: add a reminder about the IDE card
Alan Cox [Thu, 5 Jul 2018 12:00:38 +0000 (13:00 +0100)]
README: add a reminder about the IDE card