FUZIX.git
8 years agotrs80: test implementation of "exchange" operator
Alan Cox [Sun, 25 Oct 2015 14:13:15 +0000 (14:13 +0000)]
trs80: test implementation of "exchange" operator

On the TRS80 at least it should be much faster than read/write

8 years agodragon-nx-32: consistent formatting within file
Alan Cox [Sun, 25 Oct 2015 14:12:59 +0000 (14:12 +0000)]
dragon-nx-32: consistent formatting within file

8 years agoMerge pull request #274 from davidgiven/fforth
EtchedPixels [Sun, 25 Oct 2015 13:18:18 +0000 (13:18 +0000)]
Merge pull request #274 from davidgiven/fforth

Add support for fetching command line arguments.

8 years agoAdd support for fetching command line arguments.
David Given [Sun, 25 Oct 2015 13:16:14 +0000 (14:16 +0100)]
Add support for fetching command line arguments.

8 years agoMerge pull request #272 from davidgiven/overlays
EtchedPixels [Sun, 25 Oct 2015 09:51:38 +0000 (09:51 +0000)]
Merge pull request #272 from davidgiven/overlays

MSP430 overlay support

8 years agoMerge pull request #270 from beretta42/dgn_vid
EtchedPixels [Sun, 25 Oct 2015 09:50:07 +0000 (09:50 +0000)]
Merge pull request #270 from beretta42/dgn_vid

Dragon-nx32: Merge Read/Write, bug fix

8 years agoMerge pull request #271 from beretta42/video
EtchedPixels [Sun, 25 Oct 2015 09:49:00 +0000 (09:49 +0000)]
Merge pull request #271 from beretta42/video

coco3: graphics: add read/write

8 years agoWe can afford another process now (in the slack space).
David Given [Sat, 24 Oct 2015 19:31:55 +0000 (21:31 +0200)]
We can afford another process now (in the slack space).

8 years agoPush syscall_exec16, syscall_fs2, syscall_other and the discardable boot-time
David Given [Sat, 24 Oct 2015 19:25:50 +0000 (21:25 +0200)]
Push syscall_exec16, syscall_fs2, syscall_other and the discardable boot-time
stuff into a demand loaded overlay from high memory. Saves a whole 2kB of user
space! (Which, TBF, is about 10%.)

8 years agofix whitespace
Brett Gordon [Sat, 24 Oct 2015 16:04:41 +0000 (12:04 -0400)]
fix whitespace

8 years agodragon-nx32: graphics: clean up read buffer copy
Brett Gordon [Sat, 24 Oct 2015 15:18:44 +0000 (11:18 -0400)]
dragon-nx32: graphics: clean up read buffer copy

8 years agodragon-nx32: graphics: fold in read/write together.
Brett Gordon [Sat, 24 Oct 2015 15:09:01 +0000 (11:09 -0400)]
dragon-nx32: graphics: fold in read/write together.

8 years agococo3: graphics: simpler video ptr calc routine
Brett Gordon [Sat, 24 Oct 2015 04:05:30 +0000 (00:05 -0400)]
coco3: graphics: simpler video ptr calc routine

8 years agococo3: graphics: merged code paths for video read / write
Brett Gordon [Sat, 24 Oct 2015 03:58:08 +0000 (23:58 -0400)]
coco3: graphics: merged code paths for video read / write

warning: self modifying code.

8 years agococo3: graphics: correct bounds checking, gfxioc_read semantics
Brett Gordon [Sat, 24 Oct 2015 03:56:25 +0000 (23:56 -0400)]
coco3: graphics: correct bounds checking, gfxioc_read semantics

8 years agococo3: graphics: fix endianess of read.
Brett Gordon [Fri, 23 Oct 2015 06:33:21 +0000 (02:33 -0400)]
coco3: graphics: fix endianess of read.

8 years agococo3: graphics: fix bounds checking
Brett Gordon [Fri, 23 Oct 2015 06:10:14 +0000 (02:10 -0400)]
coco3: graphics: fix bounds checking

8 years agococo3: graphics: fix little endianess
Brett Gordon [Fri, 23 Oct 2015 06:09:43 +0000 (02:09 -0400)]
coco3: graphics: fix little endianess

8 years agococo3: connect gfxioc through to underlaying assembler code
Brett Gordon [Thu, 22 Oct 2015 17:44:20 +0000 (13:44 -0400)]
coco3: connect gfxioc through to underlaying assembler code

8 years agococo3: bugfix uget/uput: don't assume regular kernel mapping
Brett Gordon [Thu, 22 Oct 2015 17:37:28 +0000 (13:37 -0400)]
coco3: bugfix uget/uput: don't assume regular kernel mapping

the kernel mmu could be another state - namely a video state.

8 years agococo3: add basic gfx_read/gfx_write routine.
Brett Gordon [Thu, 22 Oct 2015 17:17:27 +0000 (13:17 -0400)]
coco3: add basic gfx_read/gfx_write routine.

8 years agococo3: uput/uget bugfix: restore kernel's mmu while iterating
Brett Gordon [Thu, 22 Oct 2015 17:08:32 +0000 (13:08 -0400)]
coco3: uput/uget bugfix: restore kernel's mmu while iterating

8 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Sat, 24 Oct 2015 12:56:51 +0000 (13:56 +0100)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

8 years agolibc: add ctermid
Alan Cox [Sat, 24 Oct 2015 12:56:07 +0000 (13:56 +0100)]
libc: add ctermid

Yes this is a cheap implementation but it works as we have a proper
/dev/tty now

8 years agodragon-nx-32: make read/write lay buffers out the same
Alan Cox [Fri, 23 Oct 2015 21:42:33 +0000 (22:42 +0100)]
dragon-nx-32: make read/write lay buffers out the same

As suggested by Brett

8 years agonc100: set TEXT on both the NC100 and NC200 defaults
Alan Cox [Fri, 23 Oct 2015 21:42:20 +0000 (22:42 +0100)]
nc100: set TEXT on both the NC100 and NC200 defaults

8 years agoMerge pull request #269 from davidgiven/typos
EtchedPixels [Fri, 23 Oct 2015 20:34:01 +0000 (21:34 +0100)]
Merge pull request #269 from davidgiven/typos

Enable multiprocess mode for the msp430

8 years agoEnable multiprocess mode. Pipes work!
David Given [Fri, 23 Oct 2015 19:10:43 +0000 (21:10 +0200)]
Enable multiprocess mode. Pipes work!

8 years agoRemember to set the flag to tell the kernel we're in an interrupt.
David Given [Fri, 23 Oct 2015 17:51:41 +0000 (19:51 +0200)]
Remember to set the flag to tell the kernel we're in an interrupt.

8 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Fri, 23 Oct 2015 13:37:41 +0000 (14:37 +0100)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

8 years agolibc: add getw/putw
Alan Cox [Fri, 23 Oct 2015 13:37:24 +0000 (14:37 +0100)]
libc: add getw/putw

8 years agoMerge pull request #268 from beretta42/dgn_fix
EtchedPixels [Fri, 23 Oct 2015 12:50:01 +0000 (13:50 +0100)]
Merge pull request #268 from beretta42/dgn_fix

Dragon-nx32 graphics fixes

8 years agolibc: Update API list
Alan Cox [Fri, 23 Oct 2015 10:10:27 +0000 (11:10 +0100)]
libc: Update API list

8 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Fri, 23 Oct 2015 10:09:14 +0000 (11:09 +0100)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

8 years agodragon-nx32: graphics: fix bounds checking for reading/writing
Brett Gordon [Fri, 23 Oct 2015 06:18:36 +0000 (02:18 -0400)]
dragon-nx32: graphics: fix bounds checking for reading/writing

axis where swapped.

8 years agodragon-nx32: graphics: fix little endian bug in read/write
Brett Gordon [Fri, 23 Oct 2015 06:17:03 +0000 (02:17 -0400)]
dragon-nx32: graphics: fix little endian bug in read/write

8 years agoThere is now only one place where the user base address is set. Bumped it
David Given [Thu, 22 Oct 2015 20:14:57 +0000 (22:14 +0200)]
There is now only one place where the user base address is set. Bumped it
up another couple of notches.

8 years agoMerge pull request #267 from beretta42/discard
EtchedPixels [Thu, 22 Oct 2015 12:14:09 +0000 (13:14 +0100)]
Merge pull request #267 from beretta42/discard

CoCo3: use discard space for extra buffers

8 years agoMerge pull request #266 from beretta42/uput
EtchedPixels [Thu, 22 Oct 2015 12:13:26 +0000 (13:13 +0100)]
Merge pull request #266 from beretta42/uput

coco3: added fast banked/windowing uget / uput xfer routines.

8 years agoMerge pull request #265 from beretta42/video
EtchedPixels [Thu, 22 Oct 2015 12:12:37 +0000 (13:12 +0100)]
Merge pull request #265 from beretta42/video

coco3: reset vert scroll reg on boot.

8 years agolibc: add a few more missing bits
Alan Cox [Thu, 22 Oct 2015 10:58:03 +0000 (11:58 +0100)]
libc: add a few more missing bits

8 years agococo3: discard/buffers: make asm match C
Brett Gordon [Thu, 22 Oct 2015 06:36:41 +0000 (02:36 -0400)]
coco3: discard/buffers: make asm match C

8 years agococo3: discard: import of more dragon code
Brett Gordon [Thu, 22 Oct 2015 06:24:08 +0000 (02:24 -0400)]
coco3: discard: import of more dragon code

8 years agococo3: reset vert scroll reg on boot.
Brett Gordon [Wed, 14 Oct 2015 20:40:17 +0000 (16:40 -0400)]
coco3: reset vert scroll reg on boot.

8 years agococo3: added fast banked/windowing uget / uput xfer routines.
Brett Gordon [Thu, 22 Oct 2015 02:53:05 +0000 (22:53 -0400)]
coco3: added fast banked/windowing uget / uput xfer routines.

8 years agoAPI.list: so we know where we are with the SVID API
Alan Cox [Wed, 21 Oct 2015 20:54:51 +0000 (21:54 +0100)]
API.list: so we know where we are with the SVID API

8 years agolibs: update TODO
Alan Cox [Wed, 21 Oct 2015 20:54:13 +0000 (21:54 +0100)]
libs: update TODO

8 years agogethostname: Fix typo
Alan Cox [Wed, 21 Oct 2015 20:54:01 +0000 (21:54 +0100)]
gethostname: Fix typo

8 years agolibc: add new swab.c file
Alan Cox [Wed, 21 Oct 2015 20:53:41 +0000 (21:53 +0100)]
libc: add  new swab.c file

8 years agolibc: Add the missing swab() function from SYS5
Alan Cox [Wed, 21 Oct 2015 20:47:57 +0000 (21:47 +0100)]
libc: Add the missing swab() function from SYS5

8 years agoabort: note buglet
Alan Cox [Wed, 21 Oct 2015 20:47:37 +0000 (21:47 +0100)]
abort: note buglet

8 years agotypes.h: add useconds_t
Alan Cox [Wed, 21 Oct 2015 14:59:05 +0000 (15:59 +0100)]
types.h: add useconds_t

8 years agolibc: Add usleep
Alan Cox [Wed, 21 Oct 2015 11:46:09 +0000 (12:46 +0100)]
libc: Add usleep

It's just another mapping onto _pause()

8 years agolibclean: fix the changes to actually work
Alan Cox [Wed, 21 Oct 2015 10:09:49 +0000 (11:09 +0100)]
libclean: fix the changes to actually work

8 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Wed, 21 Oct 2015 09:59:06 +0000 (10:59 +0100)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

8 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Wed, 21 Oct 2015 09:14:08 +0000 (10:14 +0100)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

8 years agolibclean: find the libraries properly
Alan Cox [Wed, 21 Oct 2015 09:13:45 +0000 (10:13 +0100)]
libclean: find the libraries properly

8 years agotty: minor fixes to error handling in ioctls
Alan Cox [Tue, 20 Oct 2015 21:09:18 +0000 (22:09 +0100)]
tty: minor fixes to error handling in ioctls

8 years agoMerge pull request #263 from davidgiven/typos
EtchedPixels [Tue, 20 Oct 2015 20:37:43 +0000 (21:37 +0100)]
Merge pull request #263 from davidgiven/typos

Minor MSP430 fixes

8 years agoMerge from upstream.
David Given [Tue, 20 Oct 2015 17:23:28 +0000 (19:23 +0200)]
Merge from upstream.

8 years agoActually, let's just put <stdint.h> at the top of config.h instead of moving
David Given [Tue, 20 Oct 2015 17:23:12 +0000 (19:23 +0200)]
Actually, let's just put <stdint.h> at the top of config.h instead of moving
the queue stuff to cpu.h. (A hypothetical device with more memory wouldn't
want it.)

8 years agotrs80/dragon: should be setting the multimode flag
Alan Cox [Tue, 20 Oct 2015 16:49:54 +0000 (17:49 +0100)]
trs80/dragon: should be setting the multimode flag

8 years agographics: We defintiely want blit for some hardware
Alan Cox [Tue, 20 Oct 2015 16:45:03 +0000 (17:45 +0100)]
graphics: We defintiely want blit for some hardware

8 years agotrs80: recover discardable buffers
Alan Cox [Tue, 20 Oct 2015 14:50:17 +0000 (15:50 +0100)]
trs80: recover discardable buffers

8 years agokernel.def: add buffer size to Z80 port
Alan Cox [Tue, 20 Oct 2015 14:49:45 +0000 (15:49 +0100)]
kernel.def: add buffer size to Z80 port

8 years agogames: start adding our games stuff
Alan Cox [Tue, 20 Oct 2015 14:48:09 +0000 (15:48 +0100)]
games: start adding our games stuff

Begin with qrun, which promptly get us about 100 games 8)

8 years agoz80: add size_t / ssize_t as we now need them
Alan Cox [Tue, 20 Oct 2015 08:33:32 +0000 (09:33 +0100)]
z80: add size_t / ssize_t as we now need them

8 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Tue, 20 Oct 2015 08:28:57 +0000 (09:28 +0100)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

8 years agoFigure out the proper magic numbers for the header.
David Given [Mon, 19 Oct 2015 21:27:39 +0000 (23:27 +0200)]
Figure out the proper magic numbers for the header.

8 years agoNow that kernel.h no longer includes <stdint.h>, we need to move the queue
David Given [Mon, 19 Oct 2015 21:24:01 +0000 (23:24 +0200)]
Now that kernel.h no longer includes <stdint.h>, we need to move the queue
definitions to cpu.h (because we haven't seen stdint.h when config.h is
included).

8 years agoFix typo.
David Given [Mon, 19 Oct 2015 21:20:15 +0000 (23:20 +0200)]
Fix typo.

8 years agocpu-msp340: push bits back into the CPU header instead
Alan Cox [Mon, 19 Oct 2015 20:53:20 +0000 (21:53 +0100)]
cpu-msp340: push bits back into the CPU header instead

8 years agosyscall_exec16: revert unneeded ifdeffery in core code
Alan Cox [Mon, 19 Oct 2015 20:52:54 +0000 (21:52 +0100)]
syscall_exec16: revert unneeded ifdeffery in core code

8 years agokernel.h: small tidy up of queue ifdeffery
Alan Cox [Mon, 19 Oct 2015 20:52:30 +0000 (21:52 +0100)]
kernel.h: small tidy up of queue ifdeffery

8 years agobrk: revert the MSP340 change to brk()
Alan Cox [Mon, 19 Oct 2015 20:48:41 +0000 (21:48 +0100)]
brk: revert the MSP340 change to brk()

brk sets the memory address to the one asked. If you misalign in then it's
your problem in userspace.

Some of our sbrk() users in userspace may well be wrong, but they need to be
fixed not brk()!

8 years agokernel.h: remove stdint.h
Alan Cox [Mon, 19 Oct 2015 20:40:23 +0000 (21:40 +0100)]
kernel.h: remove stdint.h

This was added by the msp340 port, but
- Not all our compilers have stdint.h
- The msp340 includes it from cpu.h anyway

8 years agoMerge pull request #262 from davidgiven/msp430
EtchedPixels [Mon, 19 Oct 2015 20:37:36 +0000 (21:37 +0100)]
Merge pull request #262 from davidgiven/msp430

MSP430 port

8 years agoUndo more unnecessary changes from upstream.
David Given [Mon, 19 Oct 2015 18:30:59 +0000 (20:30 +0200)]
Undo more unnecessary changes from upstream.

8 years agoBackport the ugetp/uputp changes from upstream.
David Given [Mon, 19 Oct 2015 18:19:35 +0000 (20:19 +0200)]
Backport the ugetp/uputp changes from upstream.

8 years agoDon't force alignment on platforms that don't need it.
David Given [Mon, 19 Oct 2015 17:56:23 +0000 (19:56 +0200)]
Don't force alignment on platforms that don't need it.

8 years agoFix some whitespace changes that shouldn't have been changed (for cleaner
David Given [Mon, 19 Oct 2015 17:50:44 +0000 (19:50 +0200)]
Fix some whitespace changes that shouldn't have been changed (for cleaner
diffs with upstream).

8 years agoMerge from master.
David Given [Mon, 19 Oct 2015 17:41:15 +0000 (19:41 +0200)]
Merge from master.

8 years agosyscall_6502: fix warning
Alan Cox [Mon, 19 Oct 2015 11:34:29 +0000 (12:34 +0100)]
syscall_6502: fix warning

8 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Mon, 19 Oct 2015 10:52:08 +0000 (11:52 +0100)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

8 years agotrs80: add missed header file
Alan Cox [Mon, 19 Oct 2015 10:51:55 +0000 (11:51 +0100)]
trs80: add missed header file

8 years agoMerge pull request #261 from davidgiven/games
EtchedPixels [Mon, 19 Oct 2015 10:50:32 +0000 (11:50 +0100)]
Merge pull request #261 from davidgiven/games

Fix the games

8 years agoUpdate documentation to mention the MSP430.
David Given [Sun, 18 Oct 2015 20:17:11 +0000 (22:17 +0200)]
Update documentation to mention the MSP430.

8 years agoMove MSP430 README to the new Documentation directory.
David Given [Sun, 18 Oct 2015 20:13:32 +0000 (22:13 +0200)]
Move MSP430 README to the new Documentation directory.

8 years agoMerge from master.
David Given [Sun, 18 Oct 2015 17:53:52 +0000 (19:53 +0200)]
Merge from master.

8 years agoMerge pull request #259 from davidgiven/sh
EtchedPixels [Sun, 18 Oct 2015 12:49:35 +0000 (13:49 +0100)]
Merge pull request #259 from davidgiven/sh

sh now builds and runs on modern computers.

8 years agoBackgammon is small enough to fit now.
David Given [Sat, 17 Oct 2015 23:02:32 +0000 (01:02 +0200)]
Backgammon is small enough to fit now.

8 years agoReduce memory requirement; make sure buffers get flush properly before
David Given [Sat, 17 Oct 2015 23:02:22 +0000 (01:02 +0200)]
Reduce memory requirement; make sure buffers get flush properly before
waiting for the user; and remove the dependency on paper-based terminals.

8 years agoFlush stdout before getting the user's response (otherwise the user never
David Given [Sat, 17 Oct 2015 22:47:31 +0000 (00:47 +0200)]
Flush stdout before getting the user's response (otherwise the user never
sees anything).

8 years agoCleaned up the new kprintf a bit.
David Given [Sat, 17 Oct 2015 22:40:31 +0000 (00:40 +0200)]
Cleaned up the new kprintf a bit.

8 years agoReturn kputunum() to upstream's version.
David Given [Sat, 17 Oct 2015 22:33:46 +0000 (00:33 +0200)]
Return kputunum() to upstream's version.

8 years agoUpstream already got this fix, in a slightly different form. Use theirs.
David Given [Sat, 17 Oct 2015 22:28:33 +0000 (00:28 +0200)]
Upstream already got this fix, in a slightly different form. Use theirs.

8 years agoFix a whole bunch of show-stopping bugs --- how did this ever work?
David Given [Sat, 17 Oct 2015 22:10:19 +0000 (00:10 +0200)]
Fix a whole bunch of show-stopping bugs --- how did this ever work?

8 years agoFlush stdout before getting the user's response (otherwise the user never
David Given [Sat, 17 Oct 2015 22:47:31 +0000 (00:47 +0200)]
Flush stdout before getting the user's response (otherwise the user never
sees anything).

8 years agoReduce memory requirement; make sure buffers get flush properly before
David Given [Sat, 17 Oct 2015 23:02:22 +0000 (01:02 +0200)]
Reduce memory requirement; make sure buffers get flush properly before
waiting for the user; and remove the dependency on paper-based terminals.

8 years agoFix a whole bunch of show-stopping bugs --- how did this ever work?
David Given [Sat, 17 Oct 2015 22:10:19 +0000 (00:10 +0200)]
Fix a whole bunch of show-stopping bugs --- how did this ever work?