FUZIX.git
9 years agoNow about 2/3 down the test suite! But we're reaching the really odd words.
David Given [Sun, 26 Jul 2015 21:46:08 +0000 (23:46 +0200)]
Now about 2/3 down the test suite! But we're reaching the really odd words.

9 years agoLots more words.
David Given [Sat, 25 Jul 2015 21:51:55 +0000 (23:51 +0200)]
Lots more words.

9 years agoActually, HERE is not indirect.
David Given [Sat, 25 Jul 2015 21:37:49 +0000 (23:37 +0200)]
Actually, HERE is not indirect.

9 years agoNow about half-way down the test suite.
David Given [Sat, 25 Jul 2015 21:36:32 +0000 (23:36 +0200)]
Now about half-way down the test suite.

9 years agoNow getting about 1/3 through the test suite.
David Given [Sat, 25 Jul 2015 16:26:29 +0000 (18:26 +0200)]
Now getting about 1/3 through the test suite.

9 years agoMade at least a start at running the test suite.
David Given [Thu, 23 Jul 2015 22:11:27 +0000 (00:11 +0200)]
Made at least a start at running the test suite.

9 years agoMutter mutter stupid upper case keywords.
David Given [Thu, 23 Jul 2015 19:39:58 +0000 (21:39 +0200)]
Mutter mutter stupid upper case keywords.

9 years agoUm, oops. latest and here are indirect. Also add some structured programming
David Given [Wed, 22 Jul 2015 21:37:32 +0000 (23:37 +0200)]
Um, oops. latest and here are indirect. Also add some structured programming
compilation words.

9 years agoAdd awk-based cheesyâ„¢ compiler; I can now write forth-ish in comments
David Given [Wed, 22 Jul 2015 20:41:03 +0000 (22:41 +0200)]
Add awk-based cheesyâ„¢ compiler; I can now write forth-ish in comments
and it's compiled into bytecode. No prologue needed, and no more hand-
written arrays of bytecode!

9 years agoNow read-file *actually* works. Replaced stdio with raw system calls;
David Given [Tue, 21 Jul 2015 21:09:55 +0000 (23:09 +0200)]
Now read-file *actually* works. Replaced stdio with raw system calls;
looks like stdio is calling sbrk and messing up our allocation. (Also,
smaller this way.) Going to need a way to work around that...

9 years agoread-file works! Although it seems that accept cannot tell the difference
David Given [Mon, 20 Jul 2015 21:15:22 +0000 (23:15 +0200)]
read-file works! Although it seems that accept cannot tell the difference
between eof and an empty line. Needs thought.

9 years agoWe can has compilation!
David Given [Mon, 20 Jul 2015 20:29:09 +0000 (22:29 +0200)]
We can has compilation!

9 years agoA tonne more words, and the interpreter works! The compiler may work too,
David Given [Wed, 15 Jul 2015 21:37:06 +0000 (23:37 +0200)]
A tonne more words, and the interpreter works! The compiler may work too,
but I don't have any defining words yet, so all you can do is comma.
It suddenly feels weirdly solid.

9 years agoMany fixes; now prints the prompt and gets as far as reading text from
David Given [Tue, 14 Jul 2015 19:34:56 +0000 (21:34 +0200)]
Many fixes; now prints the prompt and gets as far as reading text from
the user.

9 years agoMajor improvement; can read text from the console (in Forth!). Can't do
David Given [Mon, 13 Jul 2015 22:36:20 +0000 (00:36 +0200)]
Major improvement; can read text from the console (in Forth!). Can't do
anything with it yet, though.

9 years agoArchival draft of fforth; basic word structure laid out, self-modifying
David Given [Mon, 13 Jul 2015 20:00:27 +0000 (22:00 +0200)]
Archival draft of fforth; basic word structure laid out, self-modifying
evil fully deployed, and technically it even runs.

9 years agoMerge pull request #228 from beretta42/boot
EtchedPixels [Sun, 23 Aug 2015 20:04:19 +0000 (21:04 +0100)]
Merge pull request #228 from beretta42/boot

Boot

9 years agofuzix: coco3: README: updated for new cmdline param: "BOOT"
Brett Gordon [Thu, 13 Aug 2015 20:40:11 +0000 (16:40 -0400)]
fuzix: coco3: README: updated for new cmdline param: "BOOT"

9 years agofuzix: coco3: boot.s: increase filename buffer to handle ":drive#" syntax,
Brett Gordon [Thu, 13 Aug 2015 20:33:23 +0000 (16:33 -0400)]
fuzix: coco3: boot.s: increase filename buffer to handle ":drive#" syntax,
verbose error if kernel file is not found.

9 years agofuzix: coco3: boot.s: scan cmdline for kernel file.
Brett Gordon [Thu, 13 Aug 2015 19:53:30 +0000 (15:53 -0400)]
fuzix: coco3: boot.s: scan cmdline for kernel file.

9 years agofuzix: coco3: boot.s: bugfix: cmdline passing does not work in all
Brett Gordon [Thu, 13 Aug 2015 17:43:27 +0000 (13:43 -0400)]
fuzix: coco3: boot.s: bugfix: cmdline passing does not work in all
cases.  boot.s now goes to the basic program itself to grok the cmdline, NOT
the crunch/uncrunch buffer.

9 years agofcc: hide float/double warning on Z80
Alan Cox [Sat, 22 Aug 2015 08:43:43 +0000 (09:43 +0100)]
fcc: hide float/double warning on Z80

Or it's going to get annoying when we do x86 and 68000

9 years agoLibrary/libs: use $(MAKE) for the Z80 build at least
Alan Cox [Sat, 22 Aug 2015 08:24:32 +0000 (09:24 +0100)]
Library/libs: use $(MAKE) for the Z80 build at least

9 years agodoupdt: remove unused variable
Alan Cox [Sat, 22 Aug 2015 08:24:12 +0000 (09:24 +0100)]
doupdt: remove unused variable

9 years agokernel: use $(MAKE) so that FreeBSD folks can define it as gmake
Alan Cox [Sat, 22 Aug 2015 08:21:47 +0000 (09:21 +0100)]
kernel: use $(MAKE) so that FreeBSD folks can define it as gmake

9 years agocpu-z80: use the findsdcc script
Alan Cox [Sat, 22 Aug 2015 08:21:34 +0000 (09:21 +0100)]
cpu-z80: use the findsdcc script

9 years agofindsdcc: guess the library path from the binary
Alan Cox [Sat, 22 Aug 2015 08:21:01 +0000 (09:21 +0100)]
findsdcc: guess the library path from the binary

9 years agocurses: remove test examples that shouldn't have been committed
Alan Cox [Sat, 22 Aug 2015 07:44:24 +0000 (08:44 +0100)]
curses: remove test examples that shouldn't have been committed

9 years agoREADME.md: ought to mention the COCO3
Alan Cox [Fri, 21 Aug 2015 20:40:10 +0000 (21:40 +0100)]
README.md: ought to mention the COCO3

9 years agocurses-test: define main arguments
Alan Cox [Fri, 21 Aug 2015 20:27:20 +0000 (21:27 +0100)]
curses-test: define main arguments

9 years agotermcap: outc should be int return
Alan Cox [Fri, 21 Aug 2015 20:22:47 +0000 (21:22 +0100)]
termcap: outc should be int return

9 years agocurses: fix prototypes up a bit
Alan Cox [Fri, 21 Aug 2015 20:22:16 +0000 (21:22 +0100)]
curses: fix prototypes up a bit

We really need to add "chtype" and move to the proper modern definitions

9 years agocurses: small cleanups and fixme notes
Alan Cox [Fri, 21 Aug 2015 20:21:50 +0000 (21:21 +0100)]
curses: small cleanups and fixme notes

9 years agotermcap: add lost header information
Alan Cox [Fri, 21 Aug 2015 19:59:32 +0000 (20:59 +0100)]
termcap: add lost header information

It's not clear who filed off most of the copyright info in the past (it's PD
so they were entitled to even if it's rude), but we'll restore the proper
credits

9 years agocurses: some small test programs
Faisal Abbas [Mon, 17 Aug 2015 12:35:06 +0000 (17:35 +0500)]
curses: some small test programs

9 years agoetc-files: add termcap db
Faisal Abbas [Mon, 17 Aug 2015 12:35:05 +0000 (17:35 +0500)]
etc-files: add termcap db

9 years agolibs: Makefile and other changes for curses support
Faisal Abbas [Mon, 17 Aug 2015 12:35:03 +0000 (17:35 +0500)]
libs: Makefile and other changes for curses support

9 years agolibs: add termcap for curses
Faisal Abbas [Mon, 17 Aug 2015 12:35:02 +0000 (17:35 +0500)]
libs: add termcap for curses

Copied from Applications/util.

9 years agocurses library for fuzix
Faisal Abbas [Mon, 17 Aug 2015 12:35:01 +0000 (17:35 +0500)]
curses library for fuzix

Copied from minix-vmd project with a few minute changes.
tparam.c file from uzix-libc.

9 years agofuzix: coco3: booter improvement
Brett Gordon [Wed, 12 Aug 2015 14:05:46 +0000 (10:05 -0400)]
fuzix: coco3: booter improvement

--001a11c1d8d614b481051d1db7c7
Content-Type: text/plain; charset=UTF-8

Added kernel loading thermometer.

--
Brett M. Gordon,
beretta42@gmail.com

<div dir="ltr"><div>Added kernel loading thermometer.</div><div><br></div>-- <br><div class="gmail_signature">Brett M. Gordon,<br><a href="mailto:beretta42@gmail.com" target="_blank">beretta42@gmail.com</a></div>
</div>

9 years agoFrom: Brett Gordon <beretta42@gmail.com>
Alan Cox [Fri, 21 Aug 2015 18:44:43 +0000 (19:44 +0100)]
From: Brett Gordon <beretta42@gmail.com>

coco3: Allow each vt screen to have its own mode

9 years ago68hc11: further updating to start to put the eeprom together
Alan Cox [Sun, 26 Jul 2015 14:21:44 +0000 (15:21 +0100)]
68hc11: further updating to start to put the eeprom together

9 years agocpu.def: export 68hc11 config registers to the C code
Alan Cox [Sun, 26 Jul 2015 13:03:14 +0000 (14:03 +0100)]
cpu.def: export 68hc11 config registers to the C code

9 years agoeeprom: further updating
Alan Cox [Sun, 26 Jul 2015 13:02:48 +0000 (14:02 +0100)]
eeprom: further updating

9 years ago68hc11: outchar belongs in platform (some platforms might use another uart)
Alan Cox [Sun, 26 Jul 2015 13:02:18 +0000 (14:02 +0100)]
68hc11: outchar belongs in platform (some platforms might use another uart)

9 years ago68hc11: start trying to tidy up the definitions
Alan Cox [Sun, 26 Jul 2015 12:39:35 +0000 (13:39 +0100)]
68hc11: start trying to tidy up the definitions

9 years agobank16k: Fixes for some of the swap issues
Alan Cox [Sun, 26 Jul 2015 12:38:24 +0000 (13:38 +0100)]
bank16k: Fixes for some of the swap issues

Fix up some of the problems Brett Gordon found, but in a slightly different
way. Also fix up (hopefully) handling where the swap base is not 0.

Not yet all sorted and tested

9 years agobank16k: first small fix to move towards working 16k bank swap
Brett Gordon [Sun, 26 Jul 2015 12:19:27 +0000 (13:19 +0100)]
bank16k: first small fix to move towards working 16k bank swap

9 years ago68hc11test: begin fitting in firmware
Alan Cox [Sat, 25 Jul 2015 21:20:37 +0000 (22:20 +0100)]
68hc11test: begin fitting in firmware

9 years agoeeprom: draft out firmware interfaces
Alan Cox [Sat, 25 Jul 2015 21:20:17 +0000 (22:20 +0100)]
eeprom: draft out firmware interfaces

9 years agolowlevel-68hc11: export needed methods
Alan Cox [Sat, 25 Jul 2015 21:19:34 +0000 (22:19 +0100)]
lowlevel-68hc11: export needed methods

9 years ago68hc11test: update memory maps
Alan Cox [Sat, 25 Jul 2015 21:19:05 +0000 (22:19 +0100)]
68hc11test: update memory maps

9 years ago68hc11test: further development work
Alan Cox [Sat, 25 Jul 2015 21:18:35 +0000 (22:18 +0100)]
68hc11test: further development work

9 years agoTODO: note more work to be done
Alan Cox [Tue, 21 Jul 2015 22:34:13 +0000 (23:34 +0100)]
TODO: note more work to be done

9 years ago68hc11: flesh out more of the support code
Alan Cox [Tue, 21 Jul 2015 22:34:00 +0000 (23:34 +0100)]
68hc11: flesh out more of the support code

9 years ago68hc11: small updates
Alan Cox [Tue, 21 Jul 2015 22:04:28 +0000 (23:04 +0100)]
68hc11: small updates

9 years agoplatform-coco3: added blkdevs to BOOTDEVICES, enable "high-speed poke" on boot.
Brett Gordon [Sat, 18 Jul 2015 20:30:32 +0000 (16:30 -0400)]
platform-coco3: added blkdevs to BOOTDEVICES, enable "high-speed poke" on boot.

9 years agocpu-68hc11: add cpu definition
Alan Cox [Tue, 21 Jul 2015 20:35:28 +0000 (21:35 +0100)]
cpu-68hc11: add cpu definition

9 years agocpu-68hc11: image.mk
Alan Cox [Tue, 21 Jul 2015 20:35:02 +0000 (21:35 +0100)]
cpu-68hc11: image.mk

9 years agoMakefile: add 68hc11test
Alan Cox [Tue, 21 Jul 2015 20:34:16 +0000 (21:34 +0100)]
Makefile: add 68hc11test

Not remotely useful or usable yet

9 years agomicropack: state of play update, add thoughts on overlays
Alan Cox [Tue, 21 Jul 2015 20:33:36 +0000 (21:33 +0100)]
micropack: state of play update, add thoughts on overlays

9 years agostdio: remove iffy putchar etc macros
Alan Cox [Tue, 21 Jul 2015 20:31:14 +0000 (21:31 +0100)]
stdio: remove iffy putchar etc macros

These don't cover all cases safely and for a tiny box aren't really worth
the hit anyway.

9 years agosyscall_exec32: give the same treatment to 32bit
Alan Cox [Tue, 21 Jul 2015 20:30:25 +0000 (21:30 +0100)]
syscall_exec32: give the same treatment to 32bit

Untested, might need to some tweaking. For 32 with 16 user space we probably
want to use exec16.c

9 years agoexec: extract type dependancies for pointers
Alan Cox [Tue, 21 Jul 2015 20:28:58 +0000 (21:28 +0100)]
exec: extract type dependancies for pointers

With the bits in cpu/*.h we can now express the pointer types separately so
that we can build a platform with 32bit kernel and 16bit user pointers or
the reverse (eg 286 'large' binaries with a small model kernel).

9 years agodragon-nx32; fix pul
Alan Cox [Tue, 21 Jul 2015 20:16:25 +0000 (21:16 +0100)]
dragon-nx32; fix pul

9 years agodragon-nx-32: fix stupid bug in optimised idle
Alan Cox [Tue, 21 Jul 2015 20:14:00 +0000 (21:14 +0100)]
dragon-nx-32: fix stupid bug in optimised idle

9 years ago68hc11: fill out a bit more of the code
Alan Cox [Tue, 21 Jul 2015 20:13:44 +0000 (21:13 +0100)]
68hc11: fill out a bit more of the code

9 years ago6809: tag an item to check
Alan Cox [Mon, 20 Jul 2015 21:47:13 +0000 (22:47 +0100)]
6809: tag an item to check

9 years ago68hc11: initial lowlevel code
Alan Cox [Mon, 20 Jul 2015 21:46:50 +0000 (22:46 +0100)]
68hc11: initial lowlevel code

9 years ago68hc11test: initial incomplete compile testing for HC11
Alan Cox [Mon, 20 Jul 2015 21:46:17 +0000 (22:46 +0100)]
68hc11test: initial incomplete compile testing for HC11

9 years ago68hc11: fix rules.mk
Alan Cox [Mon, 20 Jul 2015 21:44:45 +0000 (22:44 +0100)]
68hc11: fix rules.mk

9 years agoz80fixedbank: experimentally enable interrupts for swapper
Alan Cox [Fri, 17 Jul 2015 22:29:47 +0000 (23:29 +0100)]
z80fixedbank: experimentally enable interrupts for swapper

Note also we should now be able to sort out fork()

9 years agolowlevel-z80: set insys when pre-empting, fix a scribble in some modes
Alan Cox [Fri, 17 Jul 2015 22:27:53 +0000 (23:27 +0100)]
lowlevel-z80: set insys when pre-empting, fix a scribble in some modes

We must update the udata before mapping process memory as we are not
guaranteed that won't vanish the udata.

Set u_insys so that the following case cannot occur once we begin loosening
irq disabled areas

IRQ
pre-empt
ei
swapper()

IRQ
pre-empt
*boom*

9 years agoinode: note a spot we need to optimise
Alan Cox [Fri, 17 Jul 2015 22:26:06 +0000 (23:26 +0100)]
inode: note a spot we need to optimise

9 years agocpu: lay groundwork for 32bit kernel / 16bit user etc
Alan Cox [Fri, 17 Jul 2015 22:25:34 +0000 (23:25 +0100)]
cpu: lay groundwork for 32bit kernel / 16bit user etc

ugetp/uputp for user pointer sizes
uptr_t holds a userspace pointer

9 years agotrs80: update README
Alan Cox [Fri, 17 Jul 2015 22:25:00 +0000 (23:25 +0100)]
trs80: update README

9 years agomkfs: fast format option
Brett Gordon [Thu, 16 Jul 2015 13:30:07 +0000 (09:30 -0400)]
mkfs: fast format option

--089e0103e64ae50a2e051afe11ce
Content-Type: text/plain; charset=UTF-8

a new mkfs w/ fast formating (just i blocks) using getopt()

--
Brett M. Gordon,
beretta42@gmail.com

<div dir="ltr">a new mkfs w/ fast formating (just i blocks) using getopt()<br clear="all"><div><br></div>-- <br><div class="gmail_signature">Brett M. Gordon,<br><a href="mailto:beretta42@gmail.com" target="_blank">beretta42@gmail.com</a></div>
</div>

9 years agoplatform-coco3: sdc driver bugfixes
Brett Gordon [Wed, 15 Jul 2015 04:42:23 +0000 (00:42 -0400)]
platform-coco3: sdc driver bugfixes

--001a11c3371cba70e5051ae2949a
Content-Type: text/plain; charset=UTF-8

* conditionally compile sdc_init(): It kills a becker port DW server
otherwise.
* remove half-arsed rawmode check.
* slightly nicer kernel message on boot-up.

--
Brett M. Gordon,
beretta42@gmail.com

<div dir="ltr"><div>* conditionally compile sdc_init(): It kills a becker port DW server otherwise.</div><div>* remove half-arsed rawmode check.</div><div>* slightly nicer kernel message on boot-up.</div><div><br></div><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Brett M. Gordon,<br><a href="mailto:beretta42@gmail.com" target="_blank">beretta42@gmail.com</a></div>
</div>

9 years agofuzix path
Brett Gordon [Sun, 12 Jul 2015 15:48:45 +0000 (11:48 -0400)]
fuzix path

--001a113d2c22535242051aaf8a38
Content-Type: text/plain; charset=UTF-8

* preliminary CoCoSDC "enhanced" mode drivers written.

--
Brett M. Gordon,
beretta42@gmail.com

<div dir="ltr">* preliminary CoCoSDC &quot;enhanced&quot; mode drivers written.<br clear="all"><div><br></div>-- <br><div class="gmail_signature">Brett M. Gordon,<br><a href="mailto:beretta42@gmail.com" target="_blank">beretta42@gmail.com</a></div>
</div>

9 years agoFrom: Hemstra Bart Jeroen <bart-jeroen@hemstra.com>
Alan Cox [Tue, 7 Jul 2015 14:42:53 +0000 (15:42 +0100)]
From: Hemstra Bart Jeroen <bart-jeroen@hemstra.com>

trs80: move bootloader to use sdasz80/sdldz80

I converted the boot loader to SDASZ80, the result assembles neatly into 256 bytes. I included the file so if you like you can check it and place it in github. I didn't change the (complex) makefile, I assembled it with:

sdasz80 -o trs80load.s
sdldz80 -i trs80load.rel
makebin -s 256 trs80load.ihx trs80load.bin
dd if=trs80load.bin of=mydisk.jv3 bs=1 seek=8704 conv=notrunc

[added Make bits - Alan]

9 years agoplatform-coco3: implement IDE
Brett Gordon [Mon, 6 Jul 2015 12:02:42 +0000 (08:02 -0400)]
platform-coco3: implement IDE

--047d7b41cc5cd5d441051a33ae0e
Content-Type: text/plain; charset=UTF-8

update to platform-coco3:

* now does IDE via blkdev
* shared dragon-nx32's ide transfer routine(s)
* (re)implements mbr.c for coco's partitioning scheme

--
Brett M. Gordon,
beretta42@gmail.com

<div dir="ltr"><div>update to platform-coco3:</div><div><br></div><div>* now does IDE via blkdev</div><div>* shared dragon-nx32&#39;s ide transfer routine(s)</div><div>* (re)implements mbr.c for coco&#39;s partitioning scheme</div><div><br></div><div><br></div>-- <br><div class="gmail_signature">Brett M. Gordon,<br><a href="mailto:beretta42@gmail.com" target="_blank">beretta42@gmail.com</a></div>
</div>

9 years agoIDE bugfix for dragon-nx32
Brett Gordon [Sat, 4 Jul 2015 14:52:05 +0000 (10:52 -0400)]
IDE bugfix for dragon-nx32

--94eb2c094236ea23be051a0dd016
Content-Type: text/plain; charset=UTF-8

Here's a bug fix that make IDE work for 6809 stuff.
* bugfix: removed spaces in operand to test the rawflag in blk_op (lwasm
treats as comments)
* bugfix: moved accesses to blk_ops around to before we switch to
userspace: blk_ops is in kernel space to it goes *poof* when we flip to
user-space

The good news is we can share ide.s directly, as these bug fixes make IDE
work for the coco3 platform too.

I haven't tried this on real hardware, but on fake hardware it works great!
:)

--
Brett M. Gordon,
beretta42@gmail.com

<div dir="ltr"><div>Here&#39;s a bug fix that make IDE work for 6809 stuff.  </div><div>* bugfix: removed spaces in operand to test the rawflag in blk_op (lwasm treats as comments)</div><div>* bugfix: moved accesses to blk_ops around to before we switch to userspace: blk_ops is in kernel space to it goes *poof* when we flip to user-space</div><div><br></div><div>The good news is we can share ide.s directly, as these bug fixes make IDE work for the coco3 platform too.</div><div><br></div><div>I haven&#39;t tried this on real hardware, but on fake hardware it works great! :)</div><div><br></div><div><br></div>-- <br><div class="gmail_signature">Brett M. Gordon,<br><a href="mailto:beretta42@gmail.com" target="_blank">beretta42@gmail.com</a></div>
</div>

9 years agotrs80: fix missed file discard.c
Alan Cox [Thu, 2 Jul 2015 17:05:50 +0000 (18:05 +0100)]
trs80: fix missed file discard.c

9 years agofuzix: platform-coco3: better drivewire virtual serial port support
Brett Gordon [Mon, 29 Jun 2015 12:59:13 +0000 (08:59 -0400)]
fuzix: platform-coco3: better drivewire virtual serial port support

* Support for multiple virtual serial and "9server" windows
* Added 'dw' application for simple/testing Drivewire Command/Control API

--
Brett M. Gordon,
beretta42@gmail.com

9 years agoMerge pull request #218 from willsowerbutts/una
EtchedPixels [Tue, 30 Jun 2015 10:51:58 +0000 (11:51 +0100)]
Merge pull request #218 from willsowerbutts/una

zeta-v2: _trap_reboot now disables memory paging entirely

9 years agozeta-v2: _trap_reboot now disables memory paging entirely
Will Sowerbutts [Mon, 29 Jun 2015 20:53:01 +0000 (21:53 +0100)]
zeta-v2: _trap_reboot now disables memory paging entirely

9 years agoMerge pull request #216 from willsowerbutts/tinyfixes
EtchedPixels [Fri, 26 Jun 2015 21:23:44 +0000 (22:23 +0100)]
Merge pull request #216 from willsowerbutts/tinyfixes

A number of small fixes

9 years agozeta-v2: Implement _trap_reboot
Will Sowerbutts [Fri, 26 Jun 2015 19:39:08 +0000 (20:39 +0100)]
zeta-v2: Implement _trap_reboot

9 years agop112: Implement _trap_reboot
Will Sowerbutts [Fri, 26 Jun 2015 19:38:56 +0000 (20:38 +0100)]
p112: Implement _trap_reboot

9 years agop112: Add missing includes in discard.c
Will Sowerbutts [Fri, 26 Jun 2015 19:38:44 +0000 (20:38 +0100)]
p112: Add missing includes in discard.c

9 years agomonitor-z80: Add Jump command
Will Sowerbutts [Fri, 26 Jun 2015 19:38:28 +0000 (20:38 +0100)]
monitor-z80: Add Jump command

9 years agoFuzix: platform-coco3: no more stashing, progtop = 0xe000
Brett Gordon [Fri, 26 Jun 2015 06:35:27 +0000 (02:35 -0400)]
Fuzix: platform-coco3: no more stashing, progtop = 0xe000

I fixed up the coco3 platform's udata/progtop/banking:
  * no more udata/stack stashing on switch-in/switch-out
  * Progtop now set at 0xe000, the last 8k mmu bank (could go higher)

--
Brett M. Gordon,
beretta42@gmail.com

9 years agoFrom: prateemmandal
Alan Cox [Fri, 26 Jun 2015 11:03:34 +0000 (12:03 +0100)]
From: prateemmandal

[FUZIX] make for z80pack fails with error ?ASlink-Warning-Undefined Global '_trap_reboot' referenced by module 'syscall_other' (#215)

I am trying to follow https://sinrega.org/?p=218 to build a Fuzix OS disk image and it fails with following  error:

prateem@prateem-VirtualBox:~$ tail -10 fuzix_build_failure.log
Must remake target `sdldz80'.
cc -g -O2 -Wall -Wno-parentheses -DINDEXLIB -DUNIX -I.  -o sdldz80 lk_readnl.o lkaomf51.o lkar.o lkarea.o lkdata.o lkelf.o lkeval.o lkhead.o lklex.o lklib.o lklibr.o lklist.o lkmain.o lkmem.o lknoice.o lkout.o lkrel.o lkrloc.o lkrloc3.o lks19.o lksdcclib.o lksym.o sdld.o lksdcdb.o lkbank.o
Successfully remade target file `sdldz80'.
make[1]: Leaving directory `/home/prateem/work/FUZIX/Kernel/tools/bankld'
      Successfully remade target file `tools/bankld/sdldz80'.
    Must remake target `fuzix.ihx'.
tools/bankld/sdldz80 -n -k /usr/share/sdcc/lib/z80 -f platform-z80pack/fuzix.lnk

?ASlink-Warning-Undefined Global '_trap_reboot' referenced by module 'syscall_other'
make: *** [fuzix.ihx] Error 2

I was able to fix it by making the following changes (but I am not sure if this is the right fix):

9 years agotrs80: fix white space
Alan Cox [Fri, 26 Jun 2015 11:03:14 +0000 (12:03 +0100)]
trs80: fix white space

9 years agobank94: not yet in use or tested
Alan Cox [Tue, 23 Jun 2015 21:31:06 +0000 (22:31 +0100)]
bank94: not yet in use or tested

Initial pieces to support the use of 0x94 as the secondary bank control
register as used by some of the TRS80 expansions.

9 years agotrs80: split out the banking logic
Alan Cox [Tue, 23 Jun 2015 21:30:48 +0000 (22:30 +0100)]
trs80: split out the banking logic

9 years agop_top must be set in process.c as well for bank16k
Brett Gordon [Mon, 22 Jun 2015 13:41:04 +0000 (09:41 -0400)]
p_top must be set in process.c as well for bank16k

I'm not exactly sure, but I think I found a bug in the bank16k
implementation.  When ptab_alloc() calls pagemap_alloc(), p_top is not
set yet.  pagemap_alloc, then proceeds to assign only one bank to the
new processes.  Assuming normal copy forking, should p_top be set to
the parent's p_top *before* calling pagemap_alloc() ?

This fix seems to make my coco3 UDATA mods start working

9 years agoplatform-coco3: Forgot to commit/add link script for Applications/utils
Brett Gordon [Wed, 17 Jun 2015 13:40:33 +0000 (09:40 -0400)]
platform-coco3: Forgot to commit/add link script for Applications/utils

platform-coco3:  Forgot to commit/add link script for Applications/utils.

side note:  I'll be more careful about trailing white space /
indentation. Do we prefer tabs or spaces in C code? I'll change my
emacs to give the C code a bit more indentation.

--
Brett M. Gordon,
beretta42@gmail.com

9 years agoCoCo3 Fuzix (take two)
Brett Gordon [Wed, 17 Jun 2015 11:25:08 +0000 (12:25 +0100)]
CoCo3 Fuzix (take two)

UDATA/Banking is still non-ideal.
DriveWire virtual terminal still need help.
Stupid Comments fixed
devlpr removed

9 years agococo3: trailing space stripping
Alan Cox [Wed, 17 Jun 2015 11:24:11 +0000 (12:24 +0100)]
coco3: trailing space stripping