Re: [colorforth] colorForth under Qemu
- Subject: Re: [colorforth] colorForth under Qemu
- From: Terry Loveall <loveall@xxxxxxxxx>
- Date: Tue, 20 Dec 2005 14:25:21 -0800
More tech about saving and restoring from qemu:
Qemu has a control panel that you access with 'Ctrl-Alt-2'. A 'help' command
lists 'savevm' and 'loadvm'. Running 'savevm dud.bin' creates a virtual image
that is re-entrant, i.e. restarting qemu, switching to the control panel,
entering 'loadvm dud.bin' and switching back to the main app with 'Ctrl-Alt-1'
restarts where you left off.
A quick check shows that the start of the saved RAM image is located at offset
0x237 from the start of dud.bin. This means that it is possible to read and
write modifications to colorForth.
As an aside, it looks like networking might be usable from within qemu. It
provides a virtual NIC in the form of a PCI NE2000 located at I/O address
0xc100, using irq 11.
Regards,
Terry
On Tue, 20 Dec 2005 10:19:49 -0800 (PST)
John Drake <jmdrake_98@xxxxxxxxx> wrote:
>
>
> --- Terry Loveall <loveall@xxxxxxxxx> wrote:
>
> > To answer my own question, I have got my modified
> > 800x600 colorForth to _run_
> > under qemu-0.7.0. Won't boot 'cause the qemu
> > emulated floppy interface is not
> > set up at fd chip level. Probably would work if the
> > floppy I/O was BIOS based.
> >
> > Instead, I have a bare DOS boot image with just
> > io.sys, msdos.sys, command.com
> > and c4.com. Tell qemu to boot this floppy image and
> > when it comes up to a DOS
> > command line, execute c4.com. This loads into memory
> > and then copies 64k to
> > address 0 and runs colorForth, so the floppy I/O is
> > never used.
> >
> > You have 64k of colorForth and block screens. The
> > 'alt' key used is the _left_
> > alt key. Aside from that and not being able to write
> > to floppy, colorForth
> > works just fine.
>
> Hello Terry. Due to the fact that my main
> ColorForth machine is on it's last legs I
> decided to give this a try. (Often I just use
> CFW, but lately I was trying to do some stuff
> that isn't working under it. More on that in
> another post).
>
> Anyway I'm running Windows XP. For anyone else
> that's following this route, I wrote a batch
> file similair to your qemu.sh:
>
> qemu\qemu -L qemu\ -localtime -user-net -boot a -fda
> c4th.img
>
> Basically I just needed to reverse the slashes
> and remove the $@ at the end.
>
> Not being able to save my colorforth work under
> it is a drag. It's interesting that I can save
> to the "DOS image" (like creating "copy con"
> text files.)
>
> Anyway, thanks for the work.
>
> Regards,
>
> John M. Drake
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: colorforth-unsubscribe@xxxxxxxxxxxxxxxxxx
> For additional commands, e-mail: colorforth-help@xxxxxxxxxxxxxxxxxx
> Main web page - http://www.colorforth.com
>
---------------------------------------------------------------------
To unsubscribe, e-mail: colorforth-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: colorforth-help@xxxxxxxxxxxxxxxxxx
Main web page - http://www.colorforth.com