FUZIX.git
9 years agosocz80: poll the ethernet kernel side
Alan Cox [Sun, 15 Mar 2015 16:09:34 +0000 (16:09 +0000)]
socz80: poll the ethernet kernel side

We don't want to wake/execute user code with context switches each time.

TODO: Add a sensible ethernet controller wrapper in VHDL so that it looks
like a DMA ethernet controller

9 years agoMerge pull request #144 from davidgiven/shrinkage2
EtchedPixels [Sun, 15 Mar 2015 15:08:20 +0000 (15:08 +0000)]
Merge pull request #144 from davidgiven/shrinkage2

Remove scanf dependencies to reduce the size of the apps

9 years agoMerge pull request #143 from davidgiven/ucp-fixes
EtchedPixels [Sun, 15 Mar 2015 15:04:58 +0000 (15:04 +0000)]
Merge pull request #143 from davidgiven/ucp-fixes

ucp fixes

9 years agoRemoved dependencies on scanf unless it's really needed, as it's huge.
David Given [Sun, 15 Mar 2015 14:06:06 +0000 (15:06 +0100)]
Removed dependencies on scanf unless it's really needed, as it's huge.

--HG--
extra : source : 738e62d4775321d341419dcf34d82f71889040b7

9 years agoDon't report a failure exit code on EOF or 'exit' command in batch mode.
David Given [Sun, 15 Mar 2015 11:19:30 +0000 (12:19 +0100)]
Don't report a failure exit code on EOF or 'exit' command in batch mode.

9 years agoError reporting is now reported to stderr; get supports an optional
David Given [Sun, 15 Mar 2015 00:59:18 +0000 (01:59 +0100)]
Error reporting is now reported to stderr; get supports an optional
extra parameter which allows the source and destination paths to be
different.

--HG--
extra : source : fc4e25e6019586e6038775672b5633d4ec47dc88

9 years agoMerge pull request #141 from erkinalp/master
EtchedPixels [Sat, 14 Mar 2015 09:22:23 +0000 (09:22 +0000)]
Merge pull request #141 from erkinalp/master

Fixed type error

9 years agoMerge pull request #140 from skiselev/master
EtchedPixels [Sat, 14 Mar 2015 09:21:52 +0000 (09:21 +0000)]
Merge pull request #140 from skiselev/master

zeta-v2: Add UART type autodetection

9 years agoFixed type error
Erkin Alp Güney [Sat, 14 Mar 2015 08:16:57 +0000 (10:16 +0200)]
Fixed type error

9 years agozeta-v2: fix comments
Sergey Kiselev [Sat, 14 Mar 2015 06:32:59 +0000 (23:32 -0700)]
zeta-v2: fix comments

9 years agoMerge branch 'detect_uart'
Sergey Kiselev [Sat, 14 Mar 2015 06:19:27 +0000 (23:19 -0700)]
Merge branch 'detect_uart'

9 years agozeta-v2: implement UART auto detection; enable FIFO on UARTs that support it; move...
Sergey Kiselev [Sat, 14 Mar 2015 06:18:49 +0000 (23:18 -0700)]
zeta-v2: implement UART auto detection; enable FIFO on UARTs that support it; move device initialization code to _DISCARD

9 years agoMerge pull request #138 from skiselev/master
EtchedPixels [Thu, 12 Mar 2015 23:26:00 +0000 (23:26 +0000)]
Merge pull request #138 from skiselev/master

zeta-v2: adopt UART code from P112, implement tty_setup

9 years agoMerge branch 'uart_fixes'
Sergey Kiselev [Thu, 12 Mar 2015 22:51:32 +0000 (15:51 -0700)]
Merge branch 'uart_fixes'

9 years agoMerge pull request #137 from skiselev/master
EtchedPixels [Thu, 12 Mar 2015 22:29:14 +0000 (22:29 +0000)]
Merge pull request #137 from skiselev/master

p112 and zeta-v2: use common FDC code

9 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Thu, 12 Mar 2015 22:28:45 +0000 (22:28 +0000)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

9 years agotools: fcc: add -D support; fix --Werror
Sergey Kiselev [Thu, 12 Mar 2015 21:56:14 +0000 (14:56 -0700)]
tools: fcc: add -D support; fix --Werror

9 years agosocz80: Add socz80 to the platforms
Alan Cox [Thu, 12 Mar 2015 13:16:15 +0000 (13:16 +0000)]
socz80: Add socz80 to the platforms

9 years agomsx1: fix link
Alan Cox [Thu, 12 Mar 2015 11:59:46 +0000 (11:59 +0000)]
msx1: fix link

9 years agopx4plus: bring other bits up to date
Alan Cox [Thu, 12 Mar 2015 11:59:23 +0000 (11:59 +0000)]
px4plus: bring other bits up to date

This is still just a size testing build

9 years agomsx1: fix old dispatch signal reference
Alan Cox [Thu, 12 Mar 2015 11:58:49 +0000 (11:58 +0000)]
msx1: fix old dispatch signal reference

9 years agomsx2: add missing header from sd change
Alan Cox [Thu, 12 Mar 2015 11:58:32 +0000 (11:58 +0000)]
msx2: add missing header from sd change

9 years agotty_sleeping: propogate into remaining platforms
Alan Cox [Thu, 12 Mar 2015 11:58:14 +0000 (11:58 +0000)]
tty_sleeping: propogate into remaining platforms

9 years agozx128: tricks tidy
Alan Cox [Thu, 12 Mar 2015 10:00:53 +0000 (10:00 +0000)]
zx128: tricks tidy

9 years agosyscall_fs2: fix build with ACCT enabled
Alan Cox [Thu, 12 Mar 2015 10:00:30 +0000 (10:00 +0000)]
syscall_fs2: fix build with ACCT enabled

9 years ago8086: sync cpu.h definitions add inline define
Alan Cox [Thu, 12 Mar 2015 10:00:12 +0000 (10:00 +0000)]
8086: sync cpu.h definitions add inline define

9 years agozeta-v2: adopt UART code from P112, implement tty_setup
Sergey Kiselev [Thu, 12 Mar 2015 04:58:39 +0000 (21:58 -0700)]
zeta-v2: adopt UART code from P112, implement tty_setup

9 years agoMerge pull request #135 from erkinalp/patch-2
EtchedPixels [Thu, 12 Mar 2015 00:19:09 +0000 (00:19 +0000)]
Merge pull request #135 from erkinalp/patch-2

Update Makefile for factor

9 years agozx128: tidy up tricks.s further, make low_bank a simple ptab ptr
Alan Cox [Wed, 11 Mar 2015 23:30:47 +0000 (23:30 +0000)]
zx128: tidy up tricks.s further, make low_bank a simple ptab ptr

9 years agozx128: Add motor timeout logic for Microdrive
Alan Cox [Wed, 11 Mar 2015 23:25:05 +0000 (23:25 +0000)]
zx128: Add motor timeout logic for Microdrive

9 years agozxvideo: fix scrolling clearing of bottom line
Alan Cox [Wed, 11 Mar 2015 23:24:27 +0000 (23:24 +0000)]
zxvideo: fix scrolling clearing of bottom line

Missed a case when adjusting for banked calls

9 years agop112 and zeta-v2: use common FDC code
Sergey Kiselev [Wed, 11 Mar 2015 20:43:43 +0000 (13:43 -0700)]
p112 and zeta-v2: use common FDC code

9 years agozx128: Fix fork() copier
Alan Cox [Wed, 11 Mar 2015 11:27:18 +0000 (11:27 +0000)]
zx128: Fix fork() copier

We now get to the login prompt, but logging in ends rather badly.

9 years agoMerge pull request #136 from skiselev/master
EtchedPixels [Wed, 11 Mar 2015 11:11:27 +0000 (11:11 +0000)]
Merge pull request #136 from skiselev/master

zeta-v2: Add floppy support (stolen from P112)

9 years agoMerge remote-tracking branch 'upstream/master'
Sergey Kiselev [Wed, 11 Mar 2015 07:27:45 +0000 (00:27 -0700)]
Merge remote-tracking branch 'upstream/master'

9 years agozeta-v2: Add floppy support (stolen from P112)
Sergey Kiselev [Wed, 11 Mar 2015 07:22:44 +0000 (00:22 -0700)]
zeta-v2: Add floppy support (stolen from P112)

9 years agozx128: Fix further minor bank related bugs
Alan Cox [Tue, 10 Mar 2015 21:59:37 +0000 (21:59 +0000)]
zx128: Fix further minor bank related bugs

fork() still crashes but we are a bit closer

9 years agoUpdate Makefile
Erkin Alp Güney [Tue, 10 Mar 2015 09:26:03 +0000 (11:26 +0200)]
Update Makefile

9 years agodragon: Optimize put/get functions slightly
Tormod Volden [Mon, 9 Mar 2015 23:47:40 +0000 (00:47 +0100)]
dragon: Optimize put/get functions slightly

leax and leay modify the zero bit (leau and leas don't).

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agodragon: Fix put/get copy index post-increment
Tormod Volden [Mon, 9 Mar 2015 23:47:39 +0000 (00:47 +0100)]
dragon: Fix put/get copy index post-increment

Because 6809 assembly is not a C dialect or something :p

Alternatively we could do it in steps of 2 by using D instead
of A but then we must change the check for zero Y.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agodragon: Fix stack offsets in usermem get/put functions
Tormod Volden [Mon, 9 Mar 2015 23:47:38 +0000 (00:47 +0100)]
dragon: Fix stack offsets in usermem get/put functions

In commit 9b442847 the CC register was added to the stack, but the
new offsets to the passed values were not correctly modified.
The CC register takes only one byte on the stack.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agodragon: Clear out .bss sections in crt0.s
Tormod Volden [Mon, 9 Mar 2015 23:47:37 +0000 (00:47 +0100)]
dragon: Clear out .bss sections in crt0.s

There is still some memory cleaning in setup.s but this
is where it belongs.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agolibs: Add enter.s for __enter and __enter_s for the modified sdcc
Alan Cox [Mon, 9 Mar 2015 21:39:45 +0000 (21:39 +0000)]
libs: Add enter.s for __enter and __enter_s for the modified sdcc

9 years agozx128: set the vectors right
Alan Cox [Mon, 9 Mar 2015 21:39:24 +0000 (21:39 +0000)]
zx128: set the vectors right

9 years agodevmdv: fix load to user
Alan Cox [Mon, 9 Mar 2015 21:38:59 +0000 (21:38 +0000)]
devmdv: fix load to user

We need this fixed to load /init into the right addresses

9 years agobinman: simplify code a bit
Alan Cox [Mon, 9 Mar 2015 19:13:09 +0000 (19:13 +0000)]
binman: simplify code a bit

fcc now always passes a progbase, so require it

9 years agofcc: various fixups
Alan Cox [Mon, 9 Mar 2015 19:12:10 +0000 (19:12 +0000)]
fcc: various fixups

- Pass the progload base to binman unconditionally
- Handle progload as a variable generically
- Fix passing of freed memory (caused strange error reports with apparently
  valid sdcc command lines)

9 years agolibs: Fix typo in Makefile
Alan Cox [Sun, 8 Mar 2015 22:06:02 +0000 (22:06 +0000)]
libs: Fix typo in Makefile

9 years agofcc: Some updates for -t platform support
Alan Cox [Sun, 8 Mar 2015 22:05:46 +0000 (22:05 +0000)]
fcc: Some updates for -t platform support

9 years agoutils: Allow platform to be passed for special builds
Alan Cox [Sun, 8 Mar 2015 22:05:23 +0000 (22:05 +0000)]
utils: Allow platform to be passed for special builds

9 years agolibs: Support Z80 variant builds
Alan Cox [Sun, 8 Mar 2015 21:40:31 +0000 (21:40 +0000)]
libs: Support Z80 variant builds

Allow PLATFORM to be set and make it use a different crt0 and syscall.s file.
We need this for platforms like ZX128 where we can't use the normal RST calls.

For relocatable binaries when we get there the syscall vector is going to need
to be discoverable - perhaps passed in a register or on the passed stack ?

9 years agotools: remove fstomdv, it's now part of blankmdv
Alan Cox [Sun, 8 Mar 2015 21:40:05 +0000 (21:40 +0000)]
tools: remove fstomdv, it's now part of blankmdv

9 years agozx128: remove a FIXME ret
Alan Cox [Sun, 8 Mar 2015 21:19:09 +0000 (21:19 +0000)]
zx128: remove a FIXME ret

Not saying this code is right yet, but the ret isn't needed

9 years agozx128: Add syscall entry point
Alan Cox [Sun, 8 Mar 2015 21:16:32 +0000 (21:16 +0000)]
zx128: Add syscall entry point

This needs some further thought. If we are going to support relocatable
binaries we will need some way to fix up the syscall entry point on them.

9 years agoblankmdv: Allow an fs to be added
Alan Cox [Sun, 8 Mar 2015 19:27:52 +0000 (19:27 +0000)]
blankmdv: Allow an fs to be added

Add an argument so you can supply a file system to add to the cartridge as it
is built.

9 years agozx128: Fix stacking of arguments on switchin/switchout
Alan Cox [Sun, 8 Mar 2015 19:27:24 +0000 (19:27 +0000)]
zx128: Fix stacking of arguments on switchin/switchout

With this fixed we can get to the point of trying to load init properly

9 years agozx128: update for tty_sleeping
Alan Cox [Sun, 8 Mar 2015 18:58:16 +0000 (18:58 +0000)]
zx128: update for tty_sleeping

9 years agoplus3: tag in progres devfd seek so I remember to add error handling
Alan Cox [Sun, 8 Mar 2015 18:04:07 +0000 (18:04 +0000)]
plus3: tag in progres devfd seek so I remember to add error handling

Once it works at all anyway...

9 years ago6502: video needs to be in SEG3 to make stuff fit
Alan Cox [Sun, 8 Mar 2015 18:03:49 +0000 (18:03 +0000)]
6502: video needs to be in SEG3 to make stuff fit

9 years agotgl6502: remove bogus NMI bit
Alan Cox [Sun, 8 Mar 2015 18:03:33 +0000 (18:03 +0000)]
tgl6502: remove bogus NMI bit

9 years agolowlevel-6502: Fix NMI confusion
Alan Cox [Sun, 8 Mar 2015 18:03:00 +0000 (18:03 +0000)]
lowlevel-6502: Fix NMI confusion

We never use NMI which is forunate as half the code though the NMI trap
was a string to print and half code to execute.

9 years agomtx: bring up to date with tty_sleeping change
Alan Cox [Sun, 8 Mar 2015 18:02:26 +0000 (18:02 +0000)]
mtx: bring up to date with tty_sleeping change

9 years ago6502: cc65 doesn't grok inline
Alan Cox [Sun, 8 Mar 2015 18:02:08 +0000 (18:02 +0000)]
6502: cc65 doesn't grok inline

9 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Sun, 8 Mar 2015 18:01:54 +0000 (18:01 +0000)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

9 years agoMerge pull request #134 from erkinalp/utils
EtchedPixels [Sun, 8 Mar 2015 17:53:33 +0000 (17:53 +0000)]
Merge pull request #134 from erkinalp/utils

gets_s() from C11,
factor from toybox

9 years agoFixed prototype macro
Erkin Alp Güney [Sun, 8 Mar 2015 16:49:20 +0000 (18:49 +0200)]
Fixed prototype macro

This is a macro, space is illegal here

9 years agoxputc() does not exist in FUZIX
Erkin Alp Güney [Sun, 8 Mar 2015 16:46:12 +0000 (18:46 +0200)]
xputc() does not exist in FUZIX

9 years agofactor: main() signature corrected, header fixup
Erkin Alp Güney [Sun, 8 Mar 2015 16:43:32 +0000 (18:43 +0200)]
factor: main() signature corrected, header fixup

9 years agoC11: gets_s() prototype added
Erkin Alp Güney [Sun, 8 Mar 2015 16:40:46 +0000 (18:40 +0200)]
C11: gets_s() prototype added

9 years agomodified factor
Erkin Alp Güney [Sun, 8 Mar 2015 16:36:45 +0000 (18:36 +0200)]
modified factor

9 years agoC11 improvements and factor
Erkin Alp Güney [Sun, 8 Mar 2015 15:38:25 +0000 (17:38 +0200)]
C11 improvements and factor
C11: gets_s() added
prime factorisation utility added

9 years agoC11 improvements and factor
Erkin Alp Güney [Sun, 8 Mar 2015 15:38:25 +0000 (17:38 +0200)]
C11 improvements and factor
C11: gets_s() added
prime factorisation utility added

9 years agovt: allow for platforms whose keyboard is not a scan map
Alan Cox [Sat, 7 Mar 2015 21:20:36 +0000 (21:20 +0000)]
vt: allow for platforms whose keyboard is not a scan map

9 years agonc100: tty_sleeping
Alan Cox [Sat, 7 Mar 2015 20:01:34 +0000 (20:01 +0000)]
nc100: tty_sleeping

9 years agoMerge pull request #132 from willsowerbutts/dietsd
EtchedPixels [Sat, 7 Mar 2015 12:41:14 +0000 (12:41 +0000)]
Merge pull request #132 from willsowerbutts/dietsd

devsd: Do not pass drive number as function argument

9 years agoMerge pull request #133 from skiselev/master
EtchedPixels [Sat, 7 Mar 2015 12:40:58 +0000 (12:40 +0000)]
Merge pull request #133 from skiselev/master

zeta-v2: RAM disk cleanup, README fixes

9 years agodevsd msx2: Restore previous drive selection behaviour
Will Sowerbutts [Fri, 6 Mar 2015 23:08:16 +0000 (23:08 +0000)]
devsd msx2: Restore previous drive selection behaviour

9 years agozeta-v2: Update block device names and numbers
Sergey Kiselev [Fri, 6 Mar 2015 17:14:20 +0000 (09:14 -0800)]
zeta-v2: Update block device names and numbers

9 years agozeta-v2: README typo fix
Sergey Kiselev [Fri, 6 Mar 2015 17:10:35 +0000 (09:10 -0800)]
zeta-v2: README typo fix

9 years agozeta-v2: Update shadow MPGSEL registers copy, so that RAM disk can run with interrupt...
Sergey Kiselev [Fri, 6 Mar 2015 01:42:27 +0000 (17:42 -0800)]
zeta-v2: Update shadow MPGSEL registers copy, so that RAM disk can run with interrupts enabled; Misc clean-ups (README file, config.h)

9 years agodevsd: Do not pass drive number as function argument
Will Sowerbutts [Fri, 6 Mar 2015 10:28:07 +0000 (10:28 +0000)]
devsd: Do not pass drive number as function argument

None of our existing platforms support multiple cards. This change moves
the SD drive number into a global variable which platform drivers can
access if required.

This change reduces code size by just over 200 bytes.

9 years agoMerge pull request #131 from skiselev/master
EtchedPixels [Thu, 5 Mar 2015 19:12:33 +0000 (19:12 +0000)]
Merge pull request #131 from skiselev/master

zeta-v2: Initial support for Zeta SBC V2 platform

9 years agozeta-v2: Initial support for Zeta SBC V2 platform
Sergey Kiselev [Thu, 5 Mar 2015 18:16:07 +0000 (10:16 -0800)]
zeta-v2: Initial support for Zeta SBC V2 platform

9 years agodragon: Build with simple.c instead of single.c
Tormod Volden [Sun, 1 Mar 2015 12:46:41 +0000 (13:46 +0100)]
dragon: Build with simple.c instead of single.c

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agodragon: Add missing .globl directive
Tormod Volden [Sun, 1 Mar 2015 12:46:39 +0000 (13:46 +0100)]
dragon: Add missing .globl directive

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agodragon: Add empty tty_sleeping()
Tormod Volden [Sun, 1 Mar 2015 12:46:38 +0000 (13:46 +0100)]
dragon: Add empty tty_sleeping()

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years ago6809: Remove stray #endif in cpu.h
Tormod Volden [Sun, 1 Mar 2015 12:46:37 +0000 (13:46 +0100)]
6809: Remove stray #endif in cpu.h

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoplus3: Initial files for spectrum +3
Alan Cox [Sat, 28 Feb 2015 14:04:06 +0000 (14:04 +0000)]
plus3: Initial files for spectrum +3

This is just development in progress to make it easier to see how to split
the 128 and the plus 3 features.

9 years agopcw8256: Get back building
Alan Cox [Fri, 27 Feb 2015 17:36:35 +0000 (17:36 +0000)]
pcw8256: Get back building

The floppy driver is still not behaving and I'm not sure why

9 years agosimple: no cache flusher needed
Alan Cox [Thu, 26 Feb 2015 22:43:50 +0000 (22:43 +0000)]
simple: no cache flusher needed

9 years agoMerge pull request #130 from willsowerbutts/fixes
EtchedPixels [Thu, 26 Feb 2015 09:59:36 +0000 (09:59 +0000)]
Merge pull request #130 from willsowerbutts/fixes

Fixes

9 years agop112, n8vem-mark4: Drop BOOT_TTY in favour of TTYDEV.
Will Sowerbutts [Sun, 22 Feb 2015 21:41:29 +0000 (21:41 +0000)]
p112, n8vem-mark4: Drop BOOT_TTY in favour of TTYDEV.

9 years agomonitor-z80: Record entry SP
Will Sowerbutts [Sun, 22 Feb 2015 23:50:27 +0000 (23:50 +0000)]
monitor-z80: Record entry SP

9 years agon8vem-mark4: Stub for tty_sleeping()
Will Sowerbutts [Tue, 24 Feb 2015 21:10:46 +0000 (21:10 +0000)]
n8vem-mark4: Stub for tty_sleeping()

9 years agodevide: Reset all drives before initialisation
Will Sowerbutts [Tue, 24 Feb 2015 21:11:23 +0000 (21:11 +0000)]
devide: Reset all drives before initialisation

9 years agoKernel: Bug fix for failed _open on devices
Will Sowerbutts [Wed, 25 Feb 2015 00:13:04 +0000 (00:13 +0000)]
Kernel: Bug fix for failed _open on devices

9 years agoKernel: Minor bug fix for tty_open
Will Sowerbutts [Wed, 25 Feb 2015 00:17:03 +0000 (00:17 +0000)]
Kernel: Minor bug fix for tty_open

9 years agoMerge pull request #129 from willsowerbutts/bugfixes
EtchedPixels [Sun, 22 Feb 2015 18:07:33 +0000 (18:07 +0000)]
Merge pull request #129 from willsowerbutts/bugfixes

Bugfixes

9 years agoKernel: Bug fix: _execve() did not dereference executable's inode when successful.
Will Sowerbutts [Sun, 22 Feb 2015 17:58:45 +0000 (17:58 +0000)]
Kernel: Bug fix: _execve() did not dereference executable's inode when successful.

9 years agoKernel: Improve idump() output
Will Sowerbutts [Sun, 22 Feb 2015 17:59:20 +0000 (17:59 +0000)]
Kernel: Improve idump() output