FUZIX.git
9 years ago/bin/sh: Minimal changes to get the real Bourne shell building
Alan Cox [Sat, 9 May 2015 23:14:15 +0000 (00:14 +0100)]
/bin/sh: Minimal changes to get the real Bourne shell building

There is a *lot* to do here to get this working (including writing setjmp
and longjmp for the 6809 port!). Getting it working on the other compilers
will need full ansification

Also note FIXME pieces for other bodges that will need dealing with before
its useful

Still it weights in at 28K so it should just about fit with some care on a
Dragon-nx-32 !

9 years agobuild-filesystem: Add build-mini-filesystem script
Alan Cox [Sat, 9 May 2015 22:02:45 +0000 (23:02 +0100)]
build-filesystem: Add build-mini-filesystem script

This builds a rootfs that will fit on a smaller disk (down to about 360K)
below that you are on your own.

9 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Sat, 9 May 2015 17:34:50 +0000 (18:34 +0100)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

9 years agodragon: Add missing swap_map define
Tormod Volden [Fri, 8 May 2015 20:23:22 +0000 (22:23 +0200)]
dragon: Add missing swap_map define

Also define CONFIG_LEGACY_EXEC for now, and add
an Applications/util linker script for this target.

However, userspace doesn't successfully execute yet.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agodragon ports: Fix signedness warning in devtty.c
Tormod Volden [Fri, 8 May 2015 20:23:21 +0000 (22:23 +0200)]
dragon ports: Fix signedness warning in devtty.c

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agomtx: Fix shift-uppercase and use more keysyms
Tormod Volden [Fri, 8 May 2015 20:23:20 +0000 (22:23 +0200)]
mtx: Fix shift-uppercase and use more keysyms

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agodragon: Switch COCO_KBD to CONFIG_COCO_KBD
Alan Cox [Sat, 9 May 2015 17:12:37 +0000 (18:12 +0100)]
dragon: Switch COCO_KBD to CONFIG_COCO_KBD

One day we'll get a nice configuration system so keep real platform type
config items with CONFIG_ naming.

9 years agodragon ports: Add CoCo keyboard map
Tormod Volden [Fri, 8 May 2015 20:23:19 +0000 (22:23 +0200)]
dragon ports: Add CoCo keyboard map

One of the few differences between Dragon and CoCo 1/2.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agodragon ports: Update keymaps to use keysyms
Tormod Volden [Fri, 8 May 2015 20:23:18 +0000 (22:23 +0200)]
dragon ports: Update keymaps to use keysyms

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoMerge pull request #176 from willsowerbutts/zetaboot
EtchedPixels [Sat, 9 May 2015 17:07:28 +0000 (18:07 +0100)]
Merge pull request #176 from willsowerbutts/zetaboot

Make zeta-v2 boot more flexible

9 years agozeta-v2: Minor optimisation to physical memory search
Will Sowerbutts [Sat, 9 May 2015 13:23:18 +0000 (14:23 +0100)]
zeta-v2: Minor optimisation to physical memory search

9 years agozeta-v2: Bug fix for false alarms when searching for kernel in memory
Will Sowerbutts [Fri, 8 May 2015 23:31:35 +0000 (00:31 +0100)]
zeta-v2: Bug fix for false alarms when searching for kernel in memory

9 years agozeta-v2: Fix error in comment
Will Sowerbutts [Fri, 8 May 2015 23:01:06 +0000 (00:01 +0100)]
zeta-v2: Fix error in comment

9 years agozeta-v2: Update documentation. Add UNA BIOS disk boot sector.
Will Sowerbutts [Fri, 8 May 2015 22:55:42 +0000 (23:55 +0100)]
zeta-v2: Update documentation. Add UNA BIOS disk boot sector.

9 years agozeta-v2: Relocate the kernel in physical memory on boot.
Will Sowerbutts [Fri, 8 May 2015 22:33:25 +0000 (23:33 +0100)]
zeta-v2: Relocate the kernel in physical memory on boot.

This will work if the kernel is loaded in either one contiguous 64KB
block, or two discrete 32K blocks. This should cover the common ROM and
CP/M boot techniques.

9 years agozeta-v2: Build a CP/M loader for the kernel
Will Sowerbutts [Fri, 8 May 2015 22:45:14 +0000 (23:45 +0100)]
zeta-v2: Build a CP/M loader for the kernel

9 years agomtx: keymaps updated to use the keysyms
Alan Cox [Mon, 27 Apr 2015 22:39:31 +0000 (23:39 +0100)]
mtx: keymaps updated to use the keysyms

9 years agodragon-nx32: Fix ctrl and shift sending NUL bytes
Tormod Volden [Mon, 27 Apr 2015 06:58:21 +0000 (08:58 +0200)]
dragon-nx32: Fix ctrl and shift sending NUL bytes

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoEnable ctrl + lowercase on various platforms
Tormod Volden [Mon, 27 Apr 2015 17:32:15 +0000 (19:32 +0200)]
Enable ctrl + lowercase on various platforms

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoFix ctrl and shift sending NUL bytes on various platforms
Tormod Volden [Mon, 27 Apr 2015 17:32:14 +0000 (19:32 +0200)]
Fix ctrl and shift sending NUL bytes on various platforms

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoREADME.md: update
Alan Cox [Sun, 26 Apr 2015 22:01:13 +0000 (23:01 +0100)]
README.md: update

9 years agomtx: update README
Alan Cox [Sun, 26 Apr 2015 21:56:32 +0000 (22:56 +0100)]
mtx: update README

9 years agozx128: still hunting swap bugs
Alan Cox [Sun, 26 Apr 2015 21:52:54 +0000 (22:52 +0100)]
zx128: still hunting swap bugs

9 years agonc100: Set CONFIG_LEGACY_EXEC for now
Alan Cox [Sun, 26 Apr 2015 21:51:49 +0000 (22:51 +0100)]
nc100: Set CONFIG_LEGACY_EXEC for now

The fixes in rd_memcpy need thought

9 years agomtx: fix the annoying bug that we have '<' and '>' swapped
Alan Cox [Sun, 26 Apr 2015 21:42:16 +0000 (22:42 +0100)]
mtx: fix the annoying bug that we have '<' and '>' swapped

9 years agomtx: move DISCARD so a debugging kernel fits
Alan Cox [Sun, 26 Apr 2015 21:35:09 +0000 (22:35 +0100)]
mtx: move DISCARD so a debugging kernel fits

9 years agomtx: Add floppy support for raw mode
Alan Cox [Sun, 26 Apr 2015 21:34:33 +0000 (22:34 +0100)]
mtx: Add floppy support for raw mode

We need this in order to stamp out users of CONFIG_LEGACY_RAW

9 years agomtx: add swap macros
Alan Cox [Sun, 26 Apr 2015 21:34:08 +0000 (22:34 +0100)]
mtx: add swap macros

9 years agomalloc: scrub "register"
Alan Cox [Sun, 26 Apr 2015 21:33:49 +0000 (22:33 +0100)]
malloc: scrub "register"

This still needs some cleaning and a test harness

9 years agodragon-nx32: Optimized bank copy routine for fork
Tormod Volden [Sun, 26 Apr 2015 16:50:01 +0000 (18:50 +0200)]
dragon-nx32: Optimized bank copy routine for fork

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agodragon-nx32: Enable ctrl modifier also for lower-case
Tormod Volden [Sun, 26 Apr 2015 16:49:59 +0000 (18:49 +0200)]
dragon-nx32: Enable ctrl modifier also for lower-case

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoMerge pull request #167 from willsowerbutts/ideopt
EtchedPixels [Fri, 24 Apr 2015 21:34:07 +0000 (22:34 +0100)]
Merge pull request #167 from willsowerbutts/ideopt

Tiny optimisation for devide_read_data()/devide_write_data()

9 years agoTiny optimisation for devide_read_data()/devide_write_data()
Will Sowerbutts [Fri, 24 Apr 2015 20:37:44 +0000 (21:37 +0100)]
Tiny optimisation for devide_read_data()/devide_write_data()

9 years agoMerge pull request #166 from willsowerbutts/ppide
EtchedPixels [Fri, 24 Apr 2015 20:19:05 +0000 (21:19 +0100)]
Merge pull request #166 from willsowerbutts/ppide

PPIDE for Zeta 2 SBC

9 years agozeta-v2: Add support for PPIDE storage
Will Sowerbutts [Fri, 24 Apr 2015 19:47:01 +0000 (20:47 +0100)]
zeta-v2: Add support for PPIDE storage

9 years agodevide: Support for IDE controllers which do not expose the IDE
Will Sowerbutts [Fri, 24 Apr 2015 19:45:25 +0000 (20:45 +0100)]
devide: Support for IDE controllers which do not expose the IDE
registers directly on the CPU bus

9 years agop112: Move device_init() to DISCARD segment
Will Sowerbutts [Fri, 24 Apr 2015 18:59:22 +0000 (19:59 +0100)]
p112: Move device_init() to DISCARD segment

9 years agozeta-v2: Move kernel down to start at address 0x0088
Will Sowerbutts [Mon, 20 Apr 2015 19:30:59 +0000 (20:30 +0100)]
zeta-v2: Move kernel down to start at address 0x0088

9 years agoKernel: Platform TTY_INIT_BAUD can override the default baud rate for
Will Sowerbutts [Fri, 17 Apr 2015 19:20:34 +0000 (20:20 +0100)]
Kernel: Platform TTY_INIT_BAUD can override the default baud rate for
all ttys (including the console)

9 years agovfprintf: use int not short for va_arg
Alan Cox [Fri, 24 Apr 2015 11:43:17 +0000 (12:43 +0100)]
vfprintf: use int not short for va_arg

This is needed on 6809, but should be correct for the general case.

9 years agolowlevel-6809.s: ashlsi3 workaround
Tormod Volden [Fri, 24 Apr 2015 11:08:48 +0000 (13:08 +0200)]
lowlevel-6809.s: ashlsi3 workaround

When calling ashlsi3 (taken from the libgcc source) the arguments
are not set up on the stack as the ashlsi3 code expects.

It might be a bug in gcc-6809, but until we get this sorted out,
use this little prologue to have the function work correctly.

This was the last hurdle to get a relatively usable system going.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoprocess.c: Signal masks are 32 bit
Tormod Volden [Wed, 22 Apr 2015 20:47:25 +0000 (22:47 +0200)]
process.c: Signal masks are 32 bit

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agolowlevel-6809.s: Fix up signal dispatch routine
Tormod Volden [Wed, 22 Apr 2015 20:47:24 +0000 (22:47 +0200)]
lowlevel-6809.s: Fix up signal dispatch routine

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agodragon-nx32: Add jump to null_handler at 0
Tormod Volden [Wed, 22 Apr 2015 20:47:23 +0000 (22:47 +0200)]
dragon-nx32: Add jump to null_handler at 0

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years ago6809: Require lwtools 4.11
Tormod Volden [Wed, 22 Apr 2015 20:47:22 +0000 (22:47 +0200)]
6809: Require lwtools 4.11

Earlier releases have a index d,s bug that bites us.

Also it seems to build fine on a native 64-bit build of gcc 4.6.4
with William Astle's 6809 patch (from the lwtools repo).

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agostdio: tag macros for review
Alan Cox [Tue, 21 Apr 2015 22:48:06 +0000 (23:48 +0100)]
stdio: tag macros for review

If the isfoo macros were a lose, then odds on this is as well

9 years agocrt0_6809: Initialize stdio
Tormod Volden [Tue, 21 Apr 2015 21:19:29 +0000 (23:19 +0200)]
crt0_6809: Initialize stdio

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agodragon-nx32: Add missing step in build instructions
Tormod Volden [Tue, 21 Apr 2015 21:19:28 +0000 (23:19 +0200)]
dragon-nx32: Add missing step in build instructions

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agozx128: tidy tricks.s slightly
Alan Cox [Mon, 20 Apr 2015 22:28:43 +0000 (23:28 +0100)]
zx128: tidy tricks.s slightly

We are still blowing up when we swap in and return to the process

9 years agodragon32-nx: Preserve U and Y during task switching
Tormod Volden [Mon, 20 Apr 2015 21:22:48 +0000 (23:22 +0200)]
dragon32-nx: Preserve U and Y during task switching

Although we were not modifying them in our assembly routines,
the C code around depend on these registers (gcc-6809 expects
them to be preserved across function calls), so when a process
is switched in it needs the same U and Y as when it was switched
out, whether by switchout or fork.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoz80pack: Fix the micropack build and the swap
Alan Cox [Mon, 20 Apr 2015 22:09:14 +0000 (23:09 +0100)]
z80pack: Fix the micropack build and the swap

9 years agozx128: update tricks
Alan Cox [Mon, 20 Apr 2015 21:42:25 +0000 (22:42 +0100)]
zx128: update tricks

Add swap in hooks
Various bug fixes
Some debugging (for now)
Helper for the new banker to avoid an unneeded exchange on a swapin

9 years agozx128: link the new banker
Alan Cox [Mon, 20 Apr 2015 21:42:14 +0000 (22:42 +0100)]
zx128: link the new banker

9 years agozx128: we pre-initialize these
Alan Cox [Mon, 20 Apr 2015 21:41:54 +0000 (22:41 +0100)]
zx128: we pre-initialize these

9 years agomicrodrive: remove stuff that is now in the banker where it should be
Alan Cox [Mon, 20 Apr 2015 21:41:32 +0000 (22:41 +0100)]
microdrive: remove stuff that is now in the banker where it should be

9 years agozx128: turn on custom banker
Alan Cox [Mon, 20 Apr 2015 21:41:15 +0000 (22:41 +0100)]
zx128: turn on custom banker

9 years agozx128: introduce a private banker so we can do swap nicely
Alan Cox [Mon, 20 Apr 2015 21:40:54 +0000 (22:40 +0100)]
zx128: introduce a private banker so we can do swap nicely

9 years agomicrodrive: map the correct page
Alan Cox [Mon, 20 Apr 2015 21:40:33 +0000 (22:40 +0100)]
microdrive: map the correct page

9 years agoubee: this isn't a usable port but just keep the line in sync
Alan Cox [Mon, 20 Apr 2015 21:40:04 +0000 (22:40 +0100)]
ubee: this isn't a usable port but just keep the line in sync

9 years agozx128: use screen for debug
Alan Cox [Mon, 20 Apr 2015 21:38:14 +0000 (22:38 +0100)]
zx128: use screen for debug

9 years agoz80pack: update config.h for new style swap
Alan Cox [Mon, 20 Apr 2015 21:37:46 +0000 (22:37 +0100)]
z80pack: update config.h for new style swap

9 years agotrs80: bring in line with new swap (compile tested only)
Alan Cox [Mon, 20 Apr 2015 21:33:23 +0000 (22:33 +0100)]
trs80: bring in line with new swap (compile tested only)

9 years agobankfixed: correct p_page error
Alan Cox [Mon, 20 Apr 2015 21:33:07 +0000 (22:33 +0100)]
bankfixed: correct p_page error

9 years agoswap: Assorted fixes and changes
Alan Cox [Mon, 20 Apr 2015 21:26:14 +0000 (22:26 +0100)]
swap: Assorted fixes and changes

The swapper writes memory out in chunks that it knows fit one "page",
whether that is a bank number of a page number. It also provides a
swap_map function so you can map swap.

Rather than pass the process it passes the correct page number for each
write and no write crosses a bank.

Also allow the use of page2 for memory while swapping. That just requires
the value to be saved.

This changes the swap API so various drivers will need fixes and testing. It
should however take us closer to having the swap interface properly split
from the memory model, and to allowing swap in awkward cases like 16K banking.

9 years agoz80: Fix IRQ handling for NMOS devices
Alan Cox [Mon, 20 Apr 2015 21:25:02 +0000 (22:25 +0100)]
z80: Fix IRQ handling for NMOS devices

9 years agoz80: fix banked di/irqrestore
Alan Cox [Mon, 20 Apr 2015 21:24:44 +0000 (22:24 +0100)]
z80: fix banked di/irqrestore

9 years agozx128: swap in logic
Alan Cox [Sun, 19 Apr 2015 22:08:38 +0000 (23:08 +0100)]
zx128: swap in logic

With this in place we swap data out, we read it back in and then we crash.
Further debugging needed yet.

9 years agozx128: Fix swap out
Alan Cox [Sun, 19 Apr 2015 20:52:41 +0000 (21:52 +0100)]
zx128: Fix swap out

We still don't swap in correctly (we panic) but the outgoing swap now appears
to work and writes 32K to the microdrive.

9 years agodragon-nx32: After unstashing stack, use new stack pointer right away
Tormod Volden [Sun, 19 Apr 2015 16:43:45 +0000 (18:43 +0200)]
dragon-nx32: After unstashing stack, use new stack pointer right away

The following jsr will otherwise possibly clobber the stack.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agodragon-nx32: Don't stuff uarea on switch to self
Tormod Volden [Sun, 19 Apr 2015 16:43:44 +0000 (18:43 +0200)]
dragon-nx32: Don't stuff uarea on switch to self

A little bit of optimization. More can be done on
the amount being copied over.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agodragon{,-nx32}: Block interrupts during DriveWire operations
Tormod Volden [Sun, 19 Apr 2015 16:43:43 +0000 (18:43 +0200)]
dragon{,-nx32}: Block interrupts during DriveWire operations

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agodragon: fork() must return zero to child
Tormod Volden [Sun, 19 Apr 2015 16:43:42 +0000 (18:43 +0200)]
dragon: fork() must return zero to child

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agodragon-nx32: Get dofork() into shape
Tormod Volden [Sun, 19 Apr 2015 16:43:41 +0000 (18:43 +0200)]
dragon-nx32: Get dofork() into shape

Copy the process memory into the new process memory.
Prepare the old process to come back as if it was
switched out. And return zero in child process.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agodragon-nx32: runticks is 16 bit
Tormod Volden [Sun, 19 Apr 2015 16:43:40 +0000 (18:43 +0200)]
dragon-nx32: runticks is 16 bit

This is wrong for many other ports as well.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agocrt_6809: Fix argument and environ passing
Tormod Volden [Sun, 19 Apr 2015 16:43:39 +0000 (18:43 +0200)]
crt_6809: Fix argument and environ passing

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoinclude/syscall_name.h: fcntl and ioctl are variadic
Tormod Volden [Thu, 16 Apr 2015 22:00:20 +0000 (00:00 +0200)]
include/syscall_name.h: fcntl and ioctl are variadic

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years ago6809 Fix syscall glue for variadic functions
Tormod Volden [Thu, 16 Apr 2015 22:00:19 +0000 (00:00 +0200)]
6809 Fix syscall glue for variadic functions

gcc6809 uses a fastcall calling convention with the first argument
in X, the second and up on the stack. However, variadic functions
get all the arguments on the stack. We therefore mangle the stack
for these functions so that they appear as fastcall to the kernel.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years ago6809: Adjust syscall argument passing to caller convention
Tormod Volden [Thu, 16 Apr 2015 22:00:18 +0000 (00:00 +0200)]
6809: Adjust syscall argument passing to caller convention

The calling user process will put the first argument in
X and the rest on the stack. Make sure this get carried over
to u_argn etc correctly.

Also make sure the return values from the system call is
handed back to the caller through the rti.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agodragon-nx32: Put kernel_flag in common
Tormod Volden [Thu, 16 Apr 2015 22:00:17 +0000 (00:00 +0200)]
dragon-nx32: Put kernel_flag in common

So that we can can use the empty SAM macros in
unix_syscall_entry, with user bank active.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agolowlevel-6809.s: u_callno is 8 bit
Tormod Volden [Thu, 16 Apr 2015 22:00:16 +0000 (00:00 +0200)]
lowlevel-6809.s: u_callno is 8 bit

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoAdd const in utils/dosread include/regexp.h libs/atoi
Tormod Volden [Tue, 14 Apr 2015 21:23:07 +0000 (23:23 +0200)]
Add const in utils/dosread include/regexp.h libs/atoi

gcc likes to have it consistent.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoconsts: Fix other consts
Alan Cox [Wed, 15 Apr 2015 11:44:25 +0000 (12:44 +0100)]
consts: Fix other consts

Originally from Tormod Volden but I had to fix the DOS mangling of some
of the files to apply them

9 years agodosread: remove DOS formatting
Alan Cox [Wed, 15 Apr 2015 11:42:26 +0000 (12:42 +0100)]
dosread: remove DOS formatting

(and correct missing const on main argv[] via Tormod Volden)

9 years agodragon-nx32: Add system build instructions to README
Tormod Volden [Tue, 14 Apr 2015 21:23:17 +0000 (23:23 +0200)]
dragon-nx32: Add system build instructions to README

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoAdd -X reverse endian option to build-filesystem script
Tormod Volden [Tue, 14 Apr 2015 21:23:16 +0000 (23:23 +0200)]
Add -X reverse endian option to build-filesystem script

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agocrt0_6809.s: Pass environ, argv and argc to main()
Tormod Volden [Tue, 14 Apr 2015 21:23:15 +0000 (23:23 +0200)]
crt0_6809.s: Pass environ, argv and argc to main()

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years ago6809 util: Link utilities with libgcc
Tormod Volden [Tue, 14 Apr 2015 21:23:14 +0000 (23:23 +0200)]
6809 util: Link utilities with libgcc

For example a number of math functions are needed.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years ago6809 libs: Use our str* and mem* functions
Tormod Volden [Tue, 14 Apr 2015 21:23:13 +0000 (23:23 +0200)]
6809 libs: Use our str* and mem* functions

We will not be using the gcc stdlib when building
userland utilities.

And rename our own "libc" so that lwlink can find it.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoLibrary: Add putchar_wrapper.c for use with libgcc
Tormod Volden [Tue, 14 Apr 2015 21:23:12 +0000 (23:23 +0200)]
Library: Add putchar_wrapper.c for use with libgcc

Once we link in libgcc.a it seems we need the putchar
without underscore (in C).

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agocrt0_6809.s: Set load page value for dragon-nx32
Tormod Volden [Tue, 14 Apr 2015 21:23:11 +0000 (23:23 +0200)]
crt0_6809.s: Set load page value for dragon-nx32

This must be changed back for e.g. the "dragon" port.
Clearly this must be done in a better way.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agocrt0_6809.s: Create a .header section for executables
Tormod Volden [Tue, 14 Apr 2015 21:23:10 +0000 (23:23 +0200)]
crt0_6809.s: Create a .header section for executables

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agocrt0_6809.s: Fix typo in linker symbols strings
Tormod Volden [Tue, 14 Apr 2015 21:23:09 +0000 (23:23 +0200)]
crt0_6809.s: Fix typo in linker symbols strings

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agosyscall6809.s: Use correct SWI number
Tormod Volden [Tue, 14 Apr 2015 21:23:08 +0000 (23:23 +0200)]
syscall6809.s: Use correct SWI number

Use SWI as set up in the vector table.

This is not NitrOS-9, I guess...

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agozx128/mdv: strengthen tools and fix the header write size
Alan Cox [Tue, 14 Apr 2015 00:00:49 +0000 (01:00 +0100)]
zx128/mdv: strengthen tools and fix the header write size

We now appear to read/write the fs correctly. Not yet sure why swap is
bombing out with an error 3 on sector 155.

9 years agozx128: further swap fixes
Alan Cox [Mon, 13 Apr 2015 23:01:43 +0000 (00:01 +0100)]
zx128: further swap fixes

9 years agozx128: further steps to working Microdrive read/write
Alan Cox [Mon, 13 Apr 2015 22:51:57 +0000 (23:51 +0100)]
zx128: further steps to working Microdrive read/write

This fixes the motor select logic. We can now have multiple devices loaded
without getting in a nasty mess. Still a write corruption problem to be tracked
down and writes to mdv3 (swap) bomb for reasons not yet understood

9 years agozx128: initial code for swap on microdrive
Alan Cox [Mon, 13 Apr 2015 21:28:02 +0000 (22:28 +0100)]
zx128: initial code for swap on microdrive

Wheee...

9 years agobankfixed: deal with casting of SWAPBASE
Alan Cox [Mon, 13 Apr 2015 21:26:45 +0000 (22:26 +0100)]
bankfixed: deal with casting of SWAPBASE

9 years agodragon-nx32 README: Add bit from Tormod that I lost
Tormd Volden [Mon, 13 Apr 2015 11:14:29 +0000 (12:14 +0100)]
dragon-nx32 README: Add bit from Tormod that I lost

9 years ago6809: Try building Applications/utils
Tormod Volden [Sun, 12 Apr 2015 23:00:19 +0000 (01:00 +0200)]
6809: Try building Applications/utils

Still missing some bits though.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>