FUZIX.git
8 years agoMerge pull request #282 from beretta42/issue
EtchedPixels [Sat, 14 Nov 2015 14:26:59 +0000 (14:26 +0000)]
Merge pull request #282 from beretta42/issue

bank16k's:  pass byte count to swapwrite/read not block count.

8 years agobank16k's: pass byte count to swapwrite/read not block count.
Brett Gordon [Fri, 13 Nov 2015 14:19:39 +0000 (09:19 -0500)]
bank16k's:  pass byte count to swapwrite/read not block count.

8 years agoLevels: first proposal of how we define a "level 1" Fuzix system
Alan Cox [Sun, 8 Nov 2015 17:20:28 +0000 (17:20 +0000)]
Levels: first proposal of how we define a "level 1" Fuzix system

We need some kind of line for the smaller 8bit boxes and having everyone with
different random varieties of features will be a support nightmare

8 years agoLibrary/libs: add telldir, seekdir and rewinddir
Faisal Abbas [Sun, 8 Nov 2015 16:16:00 +0000 (21:16 +0500)]
Library/libs: add telldir, seekdir and rewinddir

 - Also set reclen to 31 in readdir.
 - Tested on z80pack.
 - Only compile-tested on 6809.

8 years agodevsd: sdcc hack broke big-endian
Tormod Volden [Wed, 4 Nov 2015 20:06:39 +0000 (21:06 +0100)]
devsd: sdcc hack broke big-endian

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
8 years agodragon-nx32: SPI: read out blk_op before mapping user process
Tormod Volden [Fri, 6 Nov 2015 23:24:57 +0000 (00:24 +0100)]
dragon-nx32: SPI: read out blk_op before mapping user process

I wish I had seen Brett's similar fix for IDE before debugging
this...

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
8 years ago6809 platforms: Trim spaces in assembly operands
Tormod Volden [Thu, 5 Nov 2015 23:52:45 +0000 (00:52 +0100)]
6809 platforms: Trim spaces in assembly operands

lwasm, like most 6809 assemblers, ignores everything
after a space, believing it is comments.

The next version of lwasm will have a pragma to allow
spaces and instead require a semicolon for comments.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
8 years agodragon-nx32: More SPI fixes
Tormod Volden [Tue, 3 Nov 2015 23:15:40 +0000 (00:15 +0100)]
dragon-nx32: More SPI fixes

In particular, spaces in assembly operands are bad since the
assembler believes everything after a space is comments.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
8 years agoMerge pull request #281 from davidgiven/travis
EtchedPixels [Mon, 2 Nov 2015 20:25:20 +0000 (20:25 +0000)]
Merge pull request #281 from davidgiven/travis

Fix Travis setup

8 years agoMerge from upstream.
David Given [Mon, 2 Nov 2015 20:01:14 +0000 (21:01 +0100)]
Merge from upstream.

8 years agodragon-nx32: vtattr_notify
Alan Cox [Mon, 2 Nov 2015 12:28:50 +0000 (12:28 +0000)]
dragon-nx32: vtattr_notify

8 years agovtattr_notify: Fix other Z80 platforms
Alan Cox [Mon, 2 Nov 2015 12:27:38 +0000 (12:27 +0000)]
vtattr_notify: Fix other Z80 platforms

8 years agovt: formatting
Alan Cox [Mon, 2 Nov 2015 12:27:10 +0000 (12:27 +0000)]
vt: formatting

8 years agoMerge pull request #280 from davidgiven/msp430
EtchedPixels [Mon, 2 Nov 2015 11:11:08 +0000 (11:11 +0000)]
Merge pull request #280 from davidgiven/msp430

Better MSP430 overlay support

8 years agoMerge pull request #279 from beretta42/vt
EtchedPixels [Mon, 2 Nov 2015 10:48:30 +0000 (10:48 +0000)]
Merge pull request #279 from beretta42/vt

Some more color vt.

8 years agoAll syscall banks can now be used as overlays; saves lots of space --- we have
David Given [Sun, 1 Nov 2015 22:51:46 +0000 (23:51 +0100)]
All syscall banks can now be used as overlays; saves lots of space --- we have
room for a 27kB userland now! Also moves unlinki and the guts of _sync into
common code because they're called from multiple banks.

8 years agographics: minor updates to headers
Alan Cox [Sun, 1 Nov 2015 21:25:37 +0000 (21:25 +0000)]
graphics: minor updates to headers

8 years agovt: add new platform function to header file
Brett Gordon [Sun, 1 Nov 2015 21:19:27 +0000 (16:19 -0500)]
vt:  add new platform function to header file

8 years agovt.c: cover VT_SIMPLE with noop vtattrib_notify
Brett Gordon [Sun, 1 Nov 2015 21:16:57 +0000 (16:16 -0500)]
vt.c: cover VT_SIMPLE with noop vtattrib_notify

8 years agoTypo fix
Alan Cox [Sun, 1 Nov 2015 21:16:02 +0000 (21:16 +0000)]
Typo fix

8 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Sun, 1 Nov 2015 21:09:53 +0000 (21:09 +0000)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

8 years agoubee: missed this in the old commits
Alan Cox [Sun, 1 Nov 2015 21:02:56 +0000 (21:02 +0000)]
ubee: missed this in the old commits

Not yet anything useful here... still need to write the disk manipulation
toolchain

8 years agoqrun: first steps on graphics support
Alan Cox [Sun, 1 Nov 2015 17:02:57 +0000 (17:02 +0000)]
qrun: first steps on graphics support

8 years agococo3: devtty: initialize palettes to match vt.h definitions.
Brett Gordon [Sun, 1 Nov 2015 16:38:11 +0000 (11:38 -0500)]
coco3: devtty: initialize palettes to match vt.h definitions.

8 years agococo3: vt: more flesh-out of vtattr_notify().
Brett Gordon [Sun, 1 Nov 2015 16:22:07 +0000 (11:22 -0500)]
coco3: vt: more flesh-out of vtattr_notify().

8 years agococo3: implement vtattr_notify(), testing just for now.
Brett Gordon [Sun, 1 Nov 2015 15:37:07 +0000 (10:37 -0500)]
coco3: implement vtattr_notify(), testing just for now.

8 years agovt.c: add vtattr_notify() platform call.
Brett Gordon [Sun, 1 Nov 2015 15:24:37 +0000 (10:24 -0500)]
vt.c: add vtattr_notify() platform call.

8 years agoMerge pull request #278 from beretta42/video
EtchedPixels [Sun, 1 Nov 2015 15:54:12 +0000 (15:54 +0000)]
Merge pull request #278 from beretta42/video

coco3: color video debugging

8 years agovt.c: bugfix: add closing parens.
Brett Gordon [Sun, 1 Nov 2015 13:45:04 +0000 (08:45 -0500)]
vt.c: bugfix: add closing parens.

8 years agococo3: vt: simplify looping syntax.
Brett Gordon [Sun, 1 Nov 2015 13:42:52 +0000 (08:42 -0500)]
coco3: vt: simplify looping syntax.

8 years agococo3: vt: bug fix: use wider counter for line clearing.
Brett Gordon [Sun, 1 Nov 2015 13:40:38 +0000 (08:40 -0500)]
coco3: vt: bug fix: use wider counter for line clearing.

8 years agovt: add tiny hooks for colour support
Alan Cox [Sun, 1 Nov 2015 10:15:21 +0000 (10:15 +0000)]
vt: add tiny hooks for colour support

8 years agoMSP430 toolchain installer requires the 32 bit libraries.
David Given [Sat, 31 Oct 2015 11:21:27 +0000 (12:21 +0100)]
MSP430 toolchain installer requires the 32 bit libraries.

8 years agoBetter isolation of toolchains (try not to install the ones we don't use).
David Given [Fri, 30 Oct 2015 23:01:44 +0000 (00:01 +0100)]
Better isolation of toolchains (try not to install the ones we don't use).

8 years agoMerge pull request #277 from beretta42/video
EtchedPixels [Thu, 29 Oct 2015 19:29:49 +0000 (19:29 +0000)]
Merge pull request #277 from beretta42/video

CoCo3: color text screens

8 years agococo3: video: make text cursor a inverted block.
Brett Gordon [Thu, 29 Oct 2015 18:44:08 +0000 (14:44 -0400)]
coco3: video: make text cursor a inverted block.

8 years agomake tty2 a pleasant green on black default.
Brett Gordon [Thu, 29 Oct 2015 18:20:30 +0000 (14:20 -0400)]
make tty2 a pleasant green on black default.

8 years agococo3: low level video driver now does color attributes.
Brett Gordon [Thu, 29 Oct 2015 18:12:46 +0000 (14:12 -0400)]
coco3: low level video driver now does color attributes.

8 years agoCoCo3: give each vt it's own color attributes, turn on color text
Brett Gordon [Thu, 29 Oct 2015 18:11:28 +0000 (14:11 -0400)]
CoCo3: give each vt it's own color attributes, turn on color text

8 years agoWork around sdcc oddness (it defines strcpy() as a macro).
David Given [Wed, 28 Oct 2015 23:25:35 +0000 (00:25 +0100)]
Work around sdcc oddness (it defines strcpy() as a macro).

8 years agoUpdate the MSP430 toolchain to the new one (because TI deleted the old one).
David Given [Wed, 28 Oct 2015 23:02:31 +0000 (00:02 +0100)]
Update the MSP430 toolchain to the new one (because TI deleted the old one).

8 years agoBuild each platform in its own job.
David Given [Wed, 28 Oct 2015 22:41:24 +0000 (23:41 +0100)]
Build each platform in its own job.

8 years agokernel: wire up the missing syscalls
Alan Cox [Wed, 28 Oct 2015 11:32:19 +0000 (11:32 +0000)]
kernel: wire up the missing syscalls

8 years agomicropack: update documentation
Alan Cox [Tue, 27 Oct 2015 19:32:25 +0000 (19:32 +0000)]
micropack: update documentation

8 years agomicropack: further work on banked syscalls
Alan Cox [Tue, 27 Oct 2015 19:25:26 +0000 (19:25 +0000)]
micropack: further work on banked syscalls

Move swap on a slot, assume swap bank 0 is preloaded with 4K x n images by
bank number (bank 0 is free and means "any").

8 years agokernel.def: add fields needed for some asm I/O hooks
Alan Cox [Tue, 27 Oct 2015 19:25:01 +0000 (19:25 +0000)]
kernel.def: add fields needed for some asm I/O hooks

8 years agomicropack: add tools to find and build syscall bank map dynamically
Alan Cox [Tue, 27 Oct 2015 16:51:03 +0000 (16:51 +0000)]
micropack: add tools to find and build syscall bank map dynamically

We dont yet use it!

8 years agosyscall: overlay basics
Alan Cox [Tue, 27 Oct 2015 15:56:47 +0000 (15:56 +0000)]
syscall: overlay basics

Split our syscall_fs2 into fs2/fs3 to get the sizes right
Include syscall_fs3 in all the platforms
New link rules for syscalls so we can overlay them
Initial bits to build (but not yet run) overlaid on 64K Z80

This breaks the msp430 for the moment (sorry !)

8 years agoz80: framework for RST shortening of function preamble
Alan Cox [Sun, 25 Oct 2015 21:45:19 +0000 (21:45 +0000)]
z80: framework for RST shortening of function preamble

Another 200 bytes. Need to think harder about what RST to ultimately use to
avoid mucking up CP/M emulator, and would be good to keep it a common value
so most platform userspace can also use the same hook

8 years agomicropack: use single process mode correctly, use David's direct uget/uput*
Alan Cox [Sun, 25 Oct 2015 21:26:59 +0000 (21:26 +0000)]
micropack: use single process mode correctly, use David's direct uget/uput*

Saves us about 700 bytes

8 years agopanic: slight squash from de-duplication
Alan Cox [Sun, 25 Oct 2015 21:07:31 +0000 (21:07 +0000)]
panic: slight squash from de-duplication

8 years agokernel: extra panic texts into defines
Alan Cox [Sun, 25 Oct 2015 14:16:42 +0000 (14:16 +0000)]
kernel: extra panic texts into defines

No real change yet but basis for very memory tight ports to use codes
instead

8 years agographics: add EXG operator
Alan Cox [Sun, 25 Oct 2015 14:15:10 +0000 (14:15 +0000)]
graphics: add EXG operator

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