Re: [M100] wordstar 4 wants a z80

2020-11-13 Thread Jim Anderson
> -Original Message-
> 
> Exactly, altering the drive tables of the Linux emulator should enable
> execution of an M100 CP/M image I would think. Conversely, massaging the
> image to suit what the emulator expects might be the way to go. You'd
> need to be conversant with "CP/M Alteration Guide" - it contains all
> info regarding Disk Partition Table, etc.

Owww...  :)

I mean... I probably *could* become conversant with it... I've done worse 
before... I need a box of round tuits.







jim



Re: [M100] wordstar 4 wants a z80

2020-11-13 Thread Jim Anderson
> -Original Message-
> what I have, there are differences.  As you stated, if I took out the -
> DPOSIX_TTY from the Makefile, the github source compiled for me, and I
> could get the A> prompt, but the drive was empty so I couldn't test
> getunix.com and putunix.com because they weren't there.

Ah, that got me for a second when I first ran it, too - you have to gunzip 
A-Hdrive.gz (I don't know why it was gzipped when the whole source bundle was 
compressed into a zip file already).  There isn't a lot in that image (no pip! 
no stat!) but at least getunix.com and putunix.com are there.

> I can send you the 'legacy' code that I have if you are interested.
> z80.tgz is only 57823 bytes., the binary is around 200 k.  It gives some
> warnings but compiles OK, and I have left in the -DPOSIX_TTY.
> 
> My latest compile (it's a gentoo system):
> 
> ldd z80
> linux-vdso.so.1 (0x7ffce679a000)
> libc.so.6 => /lib64/libc.so.6 (0x7f62b8534000)
> /lib64/ld-linux-x86-64.so.2 (0x7f62b8719000)

Very similar on the binary I compiled from the github source on an ubuntu 
system here:

ldd z80
linux-vdso.so.1 (0x7fff8c155000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7f1a1126a000)
/lib64/ld-linux-x86-64.so.2 (0x7f1a1186c000)

I'd love to try the version you've got - at least try compiling the old source, 
and if I fail with that I might want to try the binary.  I'm also curious to 
hear whether you have the same problem I do with getunix and putunix in the new 
github source.







jim



Re: [M100] wordstar 4 wants a z80

2020-11-13 Thread Jim Anderson
> -Original Message-
> point is, it is not a straight binary dump.
> 
> Said another way, if there is an agreed format for making an M100 CP/M
> A: disk dump accessible on simulated CP/M, lets look at that for next
> drop of RXCUTL.

Well, for what it does (image backup/restore) whether it's a raw memory image 
or something that's usable as a virtual disk in an emulator, as long as the 
backup and restore are consistent with one another and performance of the 
backup/restore process is not impacted I guess it doesn't matter.  If it's more 
efficient or easier to backup/restore the current image format then maybe a 
tool to convert a backup into a vdisk might be useful?  Or, instead of trying 
to use it in one of these other CP/M emulators, maybe some way of loading a 
REXCPM backup image into/out of VirtualT?  (I haven't played with this in a 
while, honestly - I remember Philip made something available to run CP/M in 
VirtualT maybe a year or two ago which I did play with and got very excited 
over, but I have no idea what the current state of that is, maybe there is 
already a way to move REXCPM backup images back and forth to use them for CP/M 
in VirtualT...?) 







jim


Re: [M100] wordstar 4 wants a z80

2020-11-12 Thread Bert Put
G'day Philip,

Yep, I've read through that section several times in an attempt to
reconfigure the drive parameters on the Kaypro to support a larger disk
on the SD card reader.  But that one is currently beyond me. :-)

That's why I was so happy when you built a 3.5Mb drive on REXCPM.  And
I'll say it again: Thank you, and well done!

Cheers,Bert


On 11/12/20 12:36 PM, Philip Avery wrote:
> Exactly, altering the drive tables of the Linux emulator should enable
> execution of an M100 CP/M image I would think. Conversely, massaging the
> image to suit what the emulator expects might be the way to go. You'd
> need to be conversant with "CP/M Alteration Guide" - it contains all
> info regarding Disk Partition Table, etc.
> 
> Philip
> 


Re: [M100] wordstar 4 wants a z80

2020-11-12 Thread Philip Avery
Exactly, altering the drive tables of the Linux emulator should enable 
execution of an M100 CP/M image I would think. Conversely, massaging the 
image to suit what the emulator expects might be the way to go. You'd 
need to be conversant with "CP/M Alteration Guide" - it contains all 
info regarding Disk Partition Table, etc.


Philip

On 13/11/2020 3:22 am, Stephen Adolph wrote:

Perhaps Philip can comment when he sees this.
The tool I wrote to do backups, isn't purely a binary dump of the disk 
contents.

It could be, though.

What RXCUTL does (by memory here... ;) ) is there is a first byte 
providing the block #, followed by 16k of block data.   (or 32k, not 
sure now).

point is, it is not a straight binary dump.

Said another way, if there is an agreed format for making an M100 CP/M 
A: disk dump accessible on simulated CP/M, lets look at that for next 
drop of RXCUTL.



On Thu, Nov 12, 2020 at 9:10 AM Jim Anderson > wrote:


> -Original Message-
> I wonder if you changed the drive geometry info in CP/M to match the
> M100 definition, if it would work?

Probably - the readme says A: and B: emulate the 'ST-506 5Mb 5"
5Mb drive' and any other drives (C: and down) emulate 'traditional
8" 256k drives'.

I have no idea how to do that, though.  :(  I never got that deep
into CP/M.







        jim





Re: [M100] wordstar 4 wants a z80

2020-11-12 Thread Jonathan Yuen
Hello,

That's interesting because my 'ancient code' compiles and even works with 
putunix and getunix.  But when I looked at what was on github and what I have, 
there are differences.  As you stated, if I took out the -DPOSIX_TTY from the 
Makefile, the github source compiled for me, and I could get the A> prompt, but 
the drive was empty so I couldn't test getunix.com and putunix.com because they 
weren't there.

Here's a diff, z80-master is what I grabbed from github:

 diff bios.c ../Downloads/z80-master/bios.c
10c10
<  |  Copyright 1994-1995 by CodeGen, Inc.  All Rights Reserved.   |
---
>  |  Copyright 1994-1995,2000 by CodeGen, Inc.  All Rights Reserved.   
> |

and even differences in the code but I'm not going to put that in an email.  
Haven't checked any of the other files.

I can send you the 'legacy' code that I have if you are interested.  z80.tgz is 
only 57823 bytes., the binary is around 200 k.  It gives some warnings but 
compiles OK, and I have left in the -DPOSIX_TTY.

My latest compile (it's a gentoo system):

ldd z80
linux-vdso.so.1 (0x7ffce679a000)
libc.so.6 => /lib64/libc.so.6 (0x7f62b8534000)
/lib64/ld-linux-x86-64.so.2 (0x7f62b8719000)

and an old one I have sitting around (probably from a 32 bit system but it 
still works and its the one in the path)

ldd z80
linux-gate.so.1 (0xf7f1d000)
libc.so.6 => /lib/libc.so.6 (0xf7d26000)
/lib/ld-linux.so.2 (0xf7f1e000)

Jonathan

jonathan.y...@mykopat.slu.se

Från: M100 [m100-boun...@lists.bitchin100.com] för Jim Anderson 
[jim.ander...@kpu.ca]
Skickat: den 12 november 2020 15:02
Till: m...@bitchin100.com
Ämne: Re: [M100] wordstar 4 wants a z80

> -Original Message-
> It was written ages ago by someone named Pareg Patel.  I lost contact
> with him after a while but I recently found the source on github:
> [...]
> Just for a lark, I tried to compile just now and while it gave some
> errors, it did produce a useable binary (gcc 9.3.0, linux 5.4.48) but
> that was the original 25-year-old source I had from way back, not from
> github so that might have been fixed.

This is pretty fantastic!  I got it to compile (Ubuntu 18.04) with some errors 
just by removing -DPOSIX_TTY from the Makefile CFLAGS, and it does execute, but 
unfortunately that's as far as I can get with it - both the getunix and putunix 
utilities cause the emulator to segfault.  putunix gets as far as creating an 
empty file in unix before the segfault, getunix doesn't end up creating 
anything in CP/M (although it is able to access the unix filesystem, since it 
gives the message ERROR1 if I specify a file that doesn't exist, but segfaults 
if I specify a file which does exist).

I'd be curious to know whether the binary you just produced actually allows 
getunix and putunix to work or not.  Without them it's not too useful.  (On a 
lark, I also tried taking my REXCPM backup file and dropping it in place of the 
emulator's A: virtual disk file but as I expected that didn't work so well - 
DIR shows a few files I recognize from my M100 but it's all corrupt.)







jim

---
När du skickar e-post till SLU så innebär detta att SLU behandlar dina 
personuppgifter. För att läsa mer om hur detta går till, klicka här 
<https://www.slu.se/om-slu/kontakta-slu/personuppgifter/>
E-mailing SLU will result in SLU processing your personal data. For more 
information on how this is done, click here 
<https://www.slu.se/en/about-slu/contact-slu/personal-data/>


Re: [M100] wordstar 4 wants a z80

2020-11-12 Thread Stephen Adolph
Perhaps Philip can comment when he sees this.
The tool I wrote to do backups, isn't purely a binary dump of the disk
contents.
It could be, though.

What RXCUTL does (by memory here... ;) ) is there is a first byte providing
the block #, followed by 16k of block data.   (or 32k, not sure now).
point is, it is not a straight binary dump.

Said another way, if there is an agreed format for making an M100 CP/M A:
disk dump accessible on simulated CP/M, lets look at that for next drop of
RXCUTL.


On Thu, Nov 12, 2020 at 9:10 AM Jim Anderson  wrote:

> > -Original Message-
> > I wonder if you changed the drive geometry info in CP/M to match the
> > M100 definition, if it would work?
>
> Probably - the readme says A: and B: emulate the 'ST-506 5Mb 5" 5Mb drive'
> and any other drives (C: and down) emulate 'traditional 8" 256k drives'.
>
> I have no idea how to do that, though.  :(  I never got that deep into
> CP/M.
>
>
>
>
>
>
>
> jim
>
>


Re: [M100] wordstar 4 wants a z80

2020-11-12 Thread Jim Anderson
> -Original Message-
> I wonder if you changed the drive geometry info in CP/M to match the
> M100 definition, if it would work?

Probably - the readme says A: and B: emulate the 'ST-506 5Mb 5" 5Mb drive' and 
any other drives (C: and down) emulate 'traditional 8" 256k drives'.

I have no idea how to do that, though.  :(  I never got that deep into CP/M.







jim



Re: [M100] wordstar 4 wants a z80

2020-11-12 Thread Stephen Adolph
I wonder if you changed the drive geometry info in CP/M to match the M100
definition, if it would work?

On Thu, Nov 12, 2020 at 9:02 AM Jim Anderson  wrote:

>  (On a lark, I also tried taking my REXCPM backup file and dropping it in
> place of the emulator's A: virtual disk file but as I expected that didn't
> work so well - DIR shows a few files I recognize from my M100 but it's all
> corrupt.)
>
>
>
>
>
>
>
> jim
>
>


Re: [M100] wordstar 4 wants a z80

2020-11-12 Thread Jim Anderson
> -Original Message-
> It was written ages ago by someone named Pareg Patel.  I lost contact
> with him after a while but I recently found the source on github:
> [...]
> Just for a lark, I tried to compile just now and while it gave some
> errors, it did produce a useable binary (gcc 9.3.0, linux 5.4.48) but
> that was the original 25-year-old source I had from way back, not from
> github so that might have been fixed.

This is pretty fantastic!  I got it to compile (Ubuntu 18.04) with some errors 
just by removing -DPOSIX_TTY from the Makefile CFLAGS, and it does execute, but 
unfortunately that's as far as I can get with it - both the getunix and putunix 
utilities cause the emulator to segfault.  putunix gets as far as creating an 
empty file in unix before the segfault, getunix doesn't end up creating 
anything in CP/M (although it is able to access the unix filesystem, since it 
gives the message ERROR1 if I specify a file that doesn't exist, but segfaults 
if I specify a file which does exist).

I'd be curious to know whether the binary you just produced actually allows 
getunix and putunix to work or not.  Without them it's not too useful.  (On a 
lark, I also tried taking my REXCPM backup file and dropping it in place of the 
emulator's A: virtual disk file but as I expected that didn't work so well - 
DIR shows a few files I recognize from my M100 but it's all corrupt.)







jim



Re: [M100] wordstar 4 wants a z80

2020-11-11 Thread Jonathan Yuen
Hello,

That 'potted history of wordstar' at www.wordstar.org mentions a Unix version 
of wordstar 2000 but it didn't last long.

Jonathan

jonathan.y...@mykopat.slu.se

Från: M100 [m100-boun...@lists.bitchin100.com] för Bert Put [b...@bellsouth.net]
Skickat: den 10 november 2020 18:04
Till: m...@bitchin100.com
Ämne: Re: [M100] wordstar 4 wants a z80

On 11/10/20 10:53 AM, Joshua O'Keefe wrote:
> On Nov 10, 2020, at 8:41 AM, Jonathan Yuen  wrote:
>> my cpm emulator under Linux
>
> Hi Jonathan,
>
> What are you using for a CP/M emulator under Linux?  I haven't found one that 
> worked well enough for me, especially with WordStar.
>

In case anyone is interested, I found a Wordstar clone at
http://wordtsar.ca/ that runs natively under linux.  Not fully
functional, he claims it's Alpha but has written some large books with
it, so it may be of interest to some here.

Cheers,Bert
---
När du skickar e-post till SLU så innebär detta att SLU behandlar dina 
personuppgifter. För att läsa mer om hur detta går till, klicka här 
<https://www.slu.se/om-slu/kontakta-slu/personuppgifter/>
E-mailing SLU will result in SLU processing your personal data. For more 
information on how this is done, click here 
<https://www.slu.se/en/about-slu/contact-slu/personal-data/>


Re: [M100] wordstar 4 wants a z80

2020-11-11 Thread Jonathan Yuen
Hello,

It was written ages ago by someone named Pareg Patel.  I lost contact with him 
after a while but I recently found the source on github:

https://github.com/tjmerritt/z80

I know this is going to sound pretty weird, but I was using an aix machine at 
the time and I needed something where I could write documents, so I actually 
used the emulator, ran wordstar 3.3 for CPM in an xterrm, and it was an 
environment I was familiar with.  Didn't actually print, just exported the 
files.  This was before I went over LaTeX.

I haven't tested a lot of programs under the emulator, some things I wrote in 
assembly, supercalc, wordstar 3.3 (and now 4) and classic adventure.  And I 
confess I haven't recompiled it for a while, the binary seems to be happy with 
all the changes I've run it through but it was only been in Linux lately.  Some 
of the files in the directory I saved were time stamped in the mid-90's.

Just for a lark, I tried to compile just now and while it gave some errors, it 
did produce a useable binary (gcc 9.3.0, linux 5.4.48) but that was the 
original 25-year-old source I had from way back, not from github so that might 
have been fixed.

In addition to AIX I think I had it functional on a DEC alpha machine at some 
point.

Jonathan

jonathan.y...@mykopat.slu.se

Från: M100 [m100-boun...@lists.bitchin100.com] för Joshua O'Keefe 
[maj...@nachomountain.com]
Skickat: den 10 november 2020 17:53
Till: m...@bitchin100.com
Ämne: Re: [M100] wordstar 4 wants a z80

On Nov 10, 2020, at 8:41 AM, Jonathan Yuen  wrote:
> my cpm emulator under Linux

Hi Jonathan,

What are you using for a CP/M emulator under Linux?  I haven't found one that 
worked well enough for me, especially with WordStar.
---
När du skickar e-post till SLU så innebär detta att SLU behandlar dina 
personuppgifter. För att läsa mer om hur detta går till, klicka här 
<https://www.slu.se/om-slu/kontakta-slu/personuppgifter/>
E-mailing SLU will result in SLU processing your personal data. For more 
information on how this is done, click here 
<https://www.slu.se/en/about-slu/contact-slu/personal-data/>


Re: [M100] wordstar 4 wants a z80

2020-11-10 Thread Bert Put



On 11/10/20 10:53 AM, Joshua O'Keefe wrote:
> On Nov 10, 2020, at 8:41 AM, Jonathan Yuen  wrote:
>> my cpm emulator under Linux
> 
> Hi Jonathan,
> 
> What are you using for a CP/M emulator under Linux?  I haven't found one that 
> worked well enough for me, especially with WordStar.
> 

In case anyone is interested, I found a Wordstar clone at
http://wordtsar.ca/ that runs natively under linux.  Not fully
functional, he claims it's Alpha but has written some large books with
it, so it may be of interest to some here.

Cheers,Bert


Re: [M100] wordstar 4 wants a z80

2020-11-10 Thread Joshua O'Keefe
On Nov 10, 2020, at 8:41 AM, Jonathan Yuen  wrote:
> my cpm emulator under Linux

Hi Jonathan,

What are you using for a CP/M emulator under Linux?  I haven't found one that 
worked well enough for me, especially with WordStar.