FUZIX.git
9 years agopx4plus: get it all building again
Alan Cox [Sun, 29 Mar 2015 09:20:06 +0000 (10:20 +0100)]
px4plus: get it all building again

Still much left to do before it'll be bootable.

9 years agopx4plus: add memory open/close for sidecar
Alan Cox [Sun, 29 Mar 2015 09:15:10 +0000 (10:15 +0100)]
px4plus: add memory open/close for sidecar

9 years agopx4plus: minor updates
Alan Cox [Sun, 29 Mar 2015 00:17:38 +0000 (00:17 +0000)]
px4plus: minor updates

9 years agopx4,7508: expand the 7508 code a bit further
Alan Cox [Sat, 28 Mar 2015 23:24:12 +0000 (23:24 +0000)]
px4,7508: expand the 7508 code a bit further

Still much to do including things like the keyboard decoding. Also not
clear what we should do with a lot of the events.

9 years agopx4,sio: return the number of missed interrupts
Alan Cox [Sat, 28 Mar 2015 23:23:21 +0000 (23:23 +0000)]
px4,sio: return the number of missed interrupts

Much cleaner than globals for it all

9 years agopx4plus: carry on fleshing out all the I/O interfaces
Alan Cox [Sat, 28 Mar 2015 22:28:09 +0000 (22:28 +0000)]
px4plus: carry on fleshing out all the I/O interfaces

9 years agosuperblock: magic number should not be signed
Alan Cox [Sat, 28 Mar 2015 13:08:42 +0000 (13:08 +0000)]
superblock: magic number should not be signed

9 years agodragon: add used() in tty_sleeping to silence warning
Tormod Volden [Fri, 27 Mar 2015 23:15:42 +0000 (00:15 +0100)]
dragon: add used() in tty_sleeping to silence warning

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agofsck: adjust message
Alan Cox [Sat, 28 Mar 2015 12:49:54 +0000 (12:49 +0000)]
fsck: adjust message

9 years agomkfs: Print message if host endianness differs
Tormod Volden [Fri, 27 Mar 2015 23:15:39 +0000 (00:15 +0100)]
mkfs: Print message if host endianness differs

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoChange 6809 EMAGIC to 7E (JMP extended)
Tormod Volden [Fri, 27 Mar 2015 23:15:38 +0000 (00:15 +0100)]
Change 6809 EMAGIC to 7E (JMP extended)

0E is JMP direct page, so 7E is easier to use.

Also change it in the not-finished zero trap.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agotarget.mk: Add target.mk files present in my tree but that I forgot to add
Alan Cox [Sat, 28 Mar 2015 12:41:32 +0000 (12:41 +0000)]
target.mk: Add target.mk files present in my tree but that I forgot to add

As noted by Tormod

9 years agopx4plus: further updates mostly to the cartridge RAM logic
Alan Cox [Fri, 27 Mar 2015 23:27:01 +0000 (23:27 +0000)]
px4plus: further updates mostly to the cartridge RAM logic

9 years agoswap: correct comment
Alan Cox [Fri, 27 Mar 2015 20:13:49 +0000 (20:13 +0000)]
swap: correct comment

9 years agopx4plus: Further updates
Alan Cox [Fri, 27 Mar 2015 20:13:00 +0000 (20:13 +0000)]
px4plus: Further updates

This fleshes out the task switching, splits up the various ROM and cartridge
logic and begins to put the rest of the system together

9 years agoMerge pull request #151 from willsowerbutts/ctypefix
EtchedPixels [Thu, 26 Mar 2015 10:42:28 +0000 (10:42 +0000)]
Merge pull request #151 from willsowerbutts/ctypefix

Library: minor ctype build fixes

9 years agoMerge pull request #152 from davidgiven/apps
EtchedPixels [Mon, 23 Mar 2015 21:22:41 +0000 (21:22 +0000)]
Merge pull request #152 from davidgiven/apps

V7 app fixes

9 years agoAnsification, constification and smallifying pass --- now builds on 6502
David Given [Mon, 23 Mar 2015 21:13:50 +0000 (22:13 +0100)]
Ansification, constification and smallifying pass --- now builds on 6502
and Z80 (and without warnings on gcc5). Added dummy execl and execlp
implementations for cc65 as at requires them.

--HG--
extra : source : 05427ece25076498a378abe9a783fb018bc70efd

9 years agoLibrary: minor ctype build fixes
Will Sowerbutts [Mon, 23 Mar 2015 19:10:30 +0000 (19:10 +0000)]
Library: minor ctype build fixes

9 years agopx4plus: Initial cut of banking support
Alan Cox [Sun, 22 Mar 2015 21:48:33 +0000 (21:48 +0000)]
px4plus: Initial cut of banking support

Nothing runnable yet but we now build the PX4/PX4 Plus as a set of banked ROM
images which is what is needed. The actual box has

64K RAM (some used for video)
32K OS ROM (CP/M) - overlays low 32K if switched in
2 x up to 32K ROM - overlay 0x6000-0xDFFF

The "intelligent" RAMdisc and the sidecar RAM discs are not memory mapped but
can be used for task switching/swap.

The floppy drive is serial attached at a whopping 19200 baud.

9 years agobinmunge: warn on overflows
Alan Cox [Sun, 22 Mar 2015 21:47:09 +0000 (21:47 +0000)]
binmunge: warn on overflows

9 years agoMerge pull request #148 from davidgiven/ctype2
EtchedPixels [Sun, 22 Mar 2015 19:12:36 +0000 (19:12 +0000)]
Merge pull request #148 from davidgiven/ctype2

Smaller ctype implementation

9 years agoNew ctype implementation: about 100 bytes or so smaller on most binaries.
David Given [Sat, 21 Mar 2015 22:46:34 +0000 (23:46 +0100)]
New ctype implementation: about 100 bytes or so smaller on most binaries.
Also includes unit test.

9 years agoDid a smallification and header fix pass. Still passes the unit tests!
David Given [Sat, 21 Mar 2015 22:12:01 +0000 (23:12 +0100)]
Did a smallification and header fix pass. Still passes the unit tests!

--HG--
extra : source : 49f4625dc1e0a95f94779069e144e8a2d7c4a9e3

9 years agozx128: Fix a nasty stack scribble in tricks.s
Alan Cox [Sat, 21 Mar 2015 21:36:21 +0000 (21:36 +0000)]
zx128: Fix a nasty stack scribble in tricks.s

With this change things look rather better. Swap support is still needed in
order to be able to run more than two processes at a time. Right now that
isn't supported by tricks.s, by the IDE driver or by the microdrive driver.

9 years agoREADME.md: update
Alan Cox [Sat, 21 Mar 2015 21:36:05 +0000 (21:36 +0000)]
README.md: update

9 years agoMerge pull request #150 from geijoenr/master
EtchedPixels [Sat, 21 Mar 2015 21:07:17 +0000 (21:07 +0000)]
Merge pull request #150 from geijoenr/master

vt: return to mode 0 after ESC Y

9 years agoRevert to out-of-line (smaller) version of ctype. Now with unit test!
David Given [Sat, 21 Mar 2015 20:25:00 +0000 (21:25 +0100)]
Revert to out-of-line (smaller) version of ctype. Now with unit test!
Which passes!

--HG--
rename : Library/libs/isspace.c => Library/libs/isblank.c
rename : Library/libs/isspace.c => Library/libs/isprint.c

9 years agoMerge from master.
David Given [Sat, 21 Mar 2015 20:04:58 +0000 (21:04 +0100)]
Merge from master.

9 years agovt: return to mode 0 after ESC Y
geijoenr [Sat, 21 Mar 2015 17:46:08 +0000 (17:46 +0000)]
vt: return to mode 0 after ESC Y

9 years agoApplications/V7: Batch two from last night
Alan Cox [Thu, 19 Mar 2015 14:05:59 +0000 (14:05 +0000)]
Applications/V7: Batch two from last night

9 years agoApplications/V7: Add the first batch of ANSIfied V7 apps
Alan Cox [Wed, 18 Mar 2015 22:52:18 +0000 (22:52 +0000)]
Applications/V7: Add the first batch of ANSIfied V7 apps

Also add the need BSD style copyright on them

9 years agoLICENCE: clarify
Alan Cox [Wed, 18 Mar 2015 22:52:03 +0000 (22:52 +0000)]
LICENCE: clarify

9 years agostdlib.h: atoi/atol are const strings
Alan Cox [Wed, 18 Mar 2015 22:51:45 +0000 (22:51 +0000)]
stdlib.h: atoi/atol are const strings

9 years agotmpfile/mkstemp: Add all the other bits
Alan Cox [Tue, 17 Mar 2015 22:21:32 +0000 (22:21 +0000)]
tmpfile/mkstemp: Add all the other bits

9 years agomkstemps: mkstemp/mkstemps API first cut
Alan Cox [Tue, 17 Mar 2015 22:17:25 +0000 (22:17 +0000)]
mkstemps: mkstemp/mkstemps API first cut

9 years agoitoa: say goodbye
Alan Cox [Tue, 17 Mar 2015 22:17:00 +0000 (22:17 +0000)]
itoa: say goodbye

9 years agoerror(): use _itoa
Alan Cox [Tue, 17 Mar 2015 22:11:57 +0000 (22:11 +0000)]
error(): use _itoa

We can then kill off itoa

9 years agoC spec requires the ctype functions to be valid for unsigned chars, so
David Given [Tue, 17 Mar 2015 20:20:27 +0000 (21:20 +0100)]
C spec requires the ctype functions to be valid for unsigned chars, so
casting to char is invalid. We cast to uint8_t instead. Bonus: smaller
code!

--HG--
extra : source : b75c83c0539dd462bee151beab76938eca046294

9 years agoREADME.md: small updates
Alan Cox [Tue, 17 Mar 2015 13:42:11 +0000 (13:42 +0000)]
README.md: small updates

9 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Tue, 17 Mar 2015 12:21:15 +0000 (12:21 +0000)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

9 years agoutils: Changes in the Makefiles turned off optimisation
Alan Cox [Tue, 17 Mar 2015 12:12:13 +0000 (12:12 +0000)]
utils: Changes in the Makefiles turned off optimisation

Turn it back on!

9 years agofcc: Change optimisation behaviour
Alan Cox [Tue, 17 Mar 2015 12:10:54 +0000 (12:10 +0000)]
fcc: Change optimisation behaviour

-O1/-O2 turn on minor optimisation and serious optimisation
-O3 now does the same as -O2 but turns off optimise for size
-O4 turns on "I've got all day" optimisation levels for sdcc

9 years agofactor: fix the mess
Alan Cox [Tue, 17 Mar 2015 12:10:38 +0000 (12:10 +0000)]
factor: fix the mess

Grumble

9 years agoMerge pull request #147 from geijoenr/master
EtchedPixels [Tue, 17 Mar 2015 00:16:48 +0000 (00:16 +0000)]
Merge pull request #147 from geijoenr/master

msx2 : rework vdp driver

9 years agoReplace table-based ctype implementation with a code-based one; slower,
David Given [Mon, 16 Mar 2015 21:27:43 +0000 (22:27 +0100)]
Replace table-based ctype implementation with a code-based one; slower,
but smaller.

--HG--
extra : source : 7b3fa3e9be82eda290589e21dda60ad78e1fcda0

9 years agomsx2: add new vdp driver based on v99xx
geijoenr [Mon, 16 Mar 2015 20:19:01 +0000 (20:19 +0000)]
msx2: add new vdp driver based on v99xx

with this don't need the bios anymore to initialize
the vdp, and have more flexibility to later implement
multiple VT.

9 years agomsx2: use font6x8
geijoenr [Mon, 16 Mar 2015 10:28:13 +0000 (10:28 +0000)]
msx2: use font6x8

required to initialize vdp from Fuzix instead of
from the bios; besides, this font looks better.

9 years agov99xx: add vdp driver
geijoenr [Mon, 16 Mar 2015 10:24:10 +0000 (10:24 +0000)]
v99xx: add vdp driver

for now minimal functionality to support VT in TEXT2 mode

9 years agoMerge pull request #146 from davidgiven/libc
EtchedPixels [Mon, 16 Mar 2015 10:21:15 +0000 (10:21 +0000)]
Merge pull request #146 from davidgiven/libc

Correct license on strlen.c

9 years agoMerge from master.
David Given [Sun, 15 Mar 2015 22:56:11 +0000 (23:56 +0100)]
Merge from master.

9 years agoCorrect license --- BSD, not MIT.
David Given [Sun, 15 Mar 2015 22:54:28 +0000 (23:54 +0100)]
Correct license --- BSD, not MIT.

9 years agoMerge pull request #145 from davidgiven/libc
EtchedPixels [Sun, 15 Mar 2015 22:02:32 +0000 (22:02 +0000)]
Merge pull request #145 from davidgiven/libc

Libc tweaks

9 years agoNever write your own stringlib function. They're always wrong.
David Given [Sun, 15 Mar 2015 21:32:23 +0000 (22:32 +0100)]
Never write your own stringlib function. They're always wrong.

--HG--
extra : source : edba20538064196b2309e94b20e085b51024ea88

9 years agoFix accidentally borked utime() declaration.
David Given [Sun, 15 Mar 2015 19:34:34 +0000 (20:34 +0100)]
Fix accidentally borked utime() declaration.

--HG--
extra : source : 1ccbf1d315a8846a0b07f87de43ed1a2b9e8ee3d

9 years agoethernet: avoid dumb sdcc emitting of _gs code
Alan Cox [Sun, 15 Mar 2015 16:23:10 +0000 (16:23 +0000)]
ethernet: avoid dumb sdcc emitting of _gs code

9 years agotty.c: add support for tcflow
Faisal Abbas [Sun, 15 Mar 2015 13:05:27 +0000 (13:05 +0000)]
tty.c: add support for tcflow

9 years agotcflow.c: tcflow implementation
Faisal Abbas [Sun, 15 Mar 2015 13:05:26 +0000 (13:05 +0000)]
tcflow.c: tcflow implementation

9 years agotcflow: add flags for ioctl switch
Faisal Abbas [Sun, 15 Mar 2015 13:05:25 +0000 (13:05 +0000)]
tcflow: add flags for ioctl switch

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 agoFix some more prototypes (size_t != necessarily unsigned int).
David Given [Sun, 15 Mar 2015 14:46:28 +0000 (15:46 +0100)]
Fix some more prototypes (size_t != necessarily unsigned int).

--HG--
extra : source : a0cb877563230b965060390110a14aea8a6091c5

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 agoOops; missed some getc()s.
David Given [Sun, 15 Mar 2015 13:30:09 +0000 (14:30 +0100)]
Oops; missed some getc()s.

--HG--
extra : source : f4f96e8ae50e564d30caf8943555e3ff8b248bf1

9 years agoMinor tweaks to produce less code.
David Given [Sun, 15 Mar 2015 13:20:47 +0000 (14:20 +0100)]
Minor tweaks to produce less code.

--HG--
extra : source : 428c10531d28c32a1dab12ea81717c5fcd3db62b

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 agoFix some type issues to be more standard (and work with cc65's overly
David Given [Sat, 14 Mar 2015 13:42:15 +0000 (14:42 +0100)]
Fix some type issues to be more standard (and work with cc65's overly
picky type checker).

--HG--
extra : source : c896b634f0a79897190063ca710c131bd7c95bc7

9 years agoOops --- the ACK is BSD licensed, not MIT...
David Given [Sun, 15 Mar 2015 11:48:22 +0000 (12:48 +0100)]
Oops --- the ACK is BSD licensed, not MIT...

9 years agoAdded, fixed, and type-safed a bunch of stringlib functions. Fixed some
David Given [Sun, 15 Mar 2015 01:01:21 +0000 (02:01 +0100)]
Added, fixed, and type-safed a bunch of stringlib functions. Fixed some
incorrect prototypes in the headers.

--HG--
extra : source : 3aa32af0f4d668e3adf3ede31e9e015c2a4e0b4b

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'