Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Linux: the choice of a GNU generation -- ksh@cis.ufl.edu put this on Tshirts in '93


devel / comp.os.cpm / Re: Error when running z80pack with -x option

SubjectAuthor
* Error when running z80pack with -x optionPaolo Amoroso
`* Re: Error when running z80pack with -x optionUdo Munk
 `* Re: Error when running z80pack with -x optionPaolo Amoroso
  `* Re: Error when running z80pack with -x optionUdo Munk
   +* Re: Error when running z80pack with -x optionPaolo Amoroso
   |`* Re: Error when running z80pack with -x optionUdo Munk
   | `* Re: Error when running z80pack with -x optiondott.Piergiorgio
   |  `- Re: Error when running z80pack with -x optionUdo Munk
   `* Re: Error when running z80pack with -x optionPaolo Amoroso
    `* Re: Error when running z80pack with -x optionUdo Munk
     `* Re: Error when running z80pack with -x optionPaolo Amoroso
      `* Re: Error when running z80pack with -x optionUdo Munk
       `* Re: Error when running z80pack with -x optionPaolo Amoroso
        `* Re: Error when running z80pack with -x optionUdo Munk
         `- Re: Error when running z80pack with -x optionPaolo Amoroso

1
Error when running z80pack with -x option

<6e7f8ed2-baef-4932-a365-17f0a9f49b06n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2858&group=comp.os.cpm#2858

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:620a:28c9:: with SMTP id l9mr20500444qkp.360.1635274807262;
Tue, 26 Oct 2021 12:00:07 -0700 (PDT)
X-Received: by 2002:a54:418a:: with SMTP id 10mr402851oiy.13.1635274806692;
Tue, 26 Oct 2021 12:00:06 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Tue, 26 Oct 2021 12:00:06 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2.35.23.231; posting-account=uOUOHg4AAADo8AO9B3SI43ekV3AA6lU0
NNTP-Posting-Host: 2.35.23.231
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6e7f8ed2-baef-4932-a365-17f0a9f49b06n@googlegroups.com>
Subject: Error when running z80pack with -x option
From: paolo.am...@gmail.com (Paolo Amoroso)
Injection-Date: Tue, 26 Oct 2021 19:00:07 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 54
 by: Paolo Amoroso - Tue, 26 Oct 2021 19:00 UTC

Is the -x filename option of the z80pack CP/M emulation scripts supposed to boot CP/M and run the filename executable program? If so, I have an issue with -x.

Here's a Linux shell session in which I try to run the te screen editor by Miguel Garcia:

paoloamoroso@penguin:~/cpm/sim$ ./cpm2 -x te.com

####### ##### ### ##### ### # #
# # # # # # # # ## ##
# # # # # # # # # # #
# ##### # # ##### ##### # # # #
# # # # # # # # #
# # # # # # # # # #
####### ##### ### ##### ### # #

Release 1.37, Copyright (C) 1987-2021 by Udo Munk

CPU speed is unlimited, CPU executes undocumented instructions
Loader statistics for file te.com:
START : FFFFH
END : 0000H
LOADED: 0002H (2)

Booting...

INT disabled and HALT Op-Code reached at 7704
paoloamoroso@penguin:~/cpm/sim$

Executing the same command with the -f option results in a different error, and sometimes the session hangs at Booting... (omitting the banner and version number for brevity):

paoloamoroso@penguin:~/cpm/sim$ ./cpm2 -f4 -x te.com

[...]

CPU speed is 4 MHz, CPU executes undocumented instructions
Loader statistics for file te.com:
START : FFFFH
END : 0000H
LOADED: 0002H (2)

Booting...

E (1535) system: Op-code trap at e91b fd f5
paoloamoroso@penguin:~/cpm/sim$

The error happens with any CP/M program. The same executable files that cause an error with -x run fine when copied to a disk image and invoked from CCP.

I'm using z80pack on Crostini Linux, the Chrome OS Linux container that currently runs Debian Buster. z80pack otherwise works great with the same setup.

Any insight or suggestions? Am I using the -x option or the argument incorrectly?

Re: Error when running z80pack with -x option

<372449af-f75b-42eb-a544-78c7e51e7c80n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2859&group=comp.os.cpm#2859

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:ac8:7fd5:: with SMTP id b21mr27690366qtk.101.1635275464402;
Tue, 26 Oct 2021 12:11:04 -0700 (PDT)
X-Received: by 2002:a9d:655a:: with SMTP id q26mr20198325otl.130.1635275464108;
Tue, 26 Oct 2021 12:11:04 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Tue, 26 Oct 2021 12:11:03 -0700 (PDT)
In-Reply-To: <6e7f8ed2-baef-4932-a365-17f0a9f49b06n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=87.122.13.213; posting-account=RHtB3AoAAABZlu_FJY7ySUmJrtfW41bO
NNTP-Posting-Host: 87.122.13.213
References: <6e7f8ed2-baef-4932-a365-17f0a9f49b06n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <372449af-f75b-42eb-a544-78c7e51e7c80n@googlegroups.com>
Subject: Re: Error when running z80pack with -x option
From: udo.m...@freenet.de (Udo Munk)
Injection-Date: Tue, 26 Oct 2021 19:11:04 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 1
 by: Udo Munk - Tue, 26 Oct 2021 19:11 UTC

With option -x the code gets loaded and executed, there is no CP/M and the program will
run off.

Re: Error when running z80pack with -x option

<fc3b8041-da25-4410-a060-63d81419ea57n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2860&group=comp.os.cpm#2860

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:620a:29d2:: with SMTP id s18mr4476131qkp.418.1635277999357;
Tue, 26 Oct 2021 12:53:19 -0700 (PDT)
X-Received: by 2002:a05:6808:1921:: with SMTP id bf33mr610762oib.118.1635277999034;
Tue, 26 Oct 2021 12:53:19 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Tue, 26 Oct 2021 12:53:18 -0700 (PDT)
In-Reply-To: <372449af-f75b-42eb-a544-78c7e51e7c80n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2.35.23.231; posting-account=uOUOHg4AAADo8AO9B3SI43ekV3AA6lU0
NNTP-Posting-Host: 2.35.23.231
References: <6e7f8ed2-baef-4932-a365-17f0a9f49b06n@googlegroups.com> <372449af-f75b-42eb-a544-78c7e51e7c80n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <fc3b8041-da25-4410-a060-63d81419ea57n@googlegroups.com>
Subject: Re: Error when running z80pack with -x option
From: paolo.am...@gmail.com (Paolo Amoroso)
Injection-Date: Tue, 26 Oct 2021 19:53:19 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 0
 by: Paolo Amoroso - Tue, 26 Oct 2021 19:53 UTC

Thanks Udo, I misunderstood what -x does. I thought cpmsim booted CP/M and passed the -x argument to the operating system for execution, instead it runs the argument in a Z80 system with no operating system environment.

Re: Error when running z80pack with -x option

<17996ade-1900-490c-840d-02e9b25027bcn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2861&group=comp.os.cpm#2861

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:620a:1a8f:: with SMTP id bl15mr21507884qkb.315.1635284977439;
Tue, 26 Oct 2021 14:49:37 -0700 (PDT)
X-Received: by 2002:a9d:609:: with SMTP id 9mr21882598otn.231.1635284977152;
Tue, 26 Oct 2021 14:49:37 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Tue, 26 Oct 2021 14:49:36 -0700 (PDT)
In-Reply-To: <fc3b8041-da25-4410-a060-63d81419ea57n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=87.122.13.213; posting-account=RHtB3AoAAABZlu_FJY7ySUmJrtfW41bO
NNTP-Posting-Host: 87.122.13.213
References: <6e7f8ed2-baef-4932-a365-17f0a9f49b06n@googlegroups.com>
<372449af-f75b-42eb-a544-78c7e51e7c80n@googlegroups.com> <fc3b8041-da25-4410-a060-63d81419ea57n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <17996ade-1900-490c-840d-02e9b25027bcn@googlegroups.com>
Subject: Re: Error when running z80pack with -x option
From: udo.m...@freenet.de (Udo Munk)
Injection-Date: Tue, 26 Oct 2021 21:49:37 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 1
 by: Udo Munk - Tue, 26 Oct 2021 21:49 UTC

Correct, you can use -x to load a monitor or some other boot code, passing arguments to CP/M for execution
after cold boot is not implemented in the OS.

Re: Error when running z80pack with -x option

<e3c52d66-851b-4c90-966c-dc3637d02e27n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2862&group=comp.os.cpm#2862

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:622a:180f:: with SMTP id t15mr30009056qtc.33.1635321557736;
Wed, 27 Oct 2021 00:59:17 -0700 (PDT)
X-Received: by 2002:a9d:609:: with SMTP id 9mr23649330otn.231.1635321557370;
Wed, 27 Oct 2021 00:59:17 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Wed, 27 Oct 2021 00:59:17 -0700 (PDT)
In-Reply-To: <17996ade-1900-490c-840d-02e9b25027bcn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2.35.23.231; posting-account=uOUOHg4AAADo8AO9B3SI43ekV3AA6lU0
NNTP-Posting-Host: 2.35.23.231
References: <6e7f8ed2-baef-4932-a365-17f0a9f49b06n@googlegroups.com>
<372449af-f75b-42eb-a544-78c7e51e7c80n@googlegroups.com> <fc3b8041-da25-4410-a060-63d81419ea57n@googlegroups.com>
<17996ade-1900-490c-840d-02e9b25027bcn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e3c52d66-851b-4c90-966c-dc3637d02e27n@googlegroups.com>
Subject: Re: Error when running z80pack with -x option
From: paolo.am...@gmail.com (Paolo Amoroso)
Injection-Date: Wed, 27 Oct 2021 07:59:17 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 3
 by: Paolo Amoroso - Wed, 27 Oct 2021 07:59 UTC

I thought the z80pack -x option worked like the CP/M emulator by Joe Allen[1], which can take an executable .com file as a command line argument and run it inside the CP/M environment.

[1] https://github.com/jhallen/cpm

Re: Error when running z80pack with -x option

<20d28a1f-6f13-403c-b7e1-c72617b8f12dn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2863&group=comp.os.cpm#2863

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:620a:1207:: with SMTP id u7mr8138336qkj.189.1635505217727;
Fri, 29 Oct 2021 04:00:17 -0700 (PDT)
X-Received: by 2002:a05:6830:19e6:: with SMTP id t6mr7997800ott.79.1635505217480;
Fri, 29 Oct 2021 04:00:17 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Fri, 29 Oct 2021 04:00:17 -0700 (PDT)
In-Reply-To: <e3c52d66-851b-4c90-966c-dc3637d02e27n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=87.122.12.177; posting-account=RHtB3AoAAABZlu_FJY7ySUmJrtfW41bO
NNTP-Posting-Host: 87.122.12.177
References: <6e7f8ed2-baef-4932-a365-17f0a9f49b06n@googlegroups.com>
<372449af-f75b-42eb-a544-78c7e51e7c80n@googlegroups.com> <fc3b8041-da25-4410-a060-63d81419ea57n@googlegroups.com>
<17996ade-1900-490c-840d-02e9b25027bcn@googlegroups.com> <e3c52d66-851b-4c90-966c-dc3637d02e27n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <20d28a1f-6f13-403c-b7e1-c72617b8f12dn@googlegroups.com>
Subject: Re: Error when running z80pack with -x option
From: udo.m...@freenet.de (Udo Munk)
Injection-Date: Fri, 29 Oct 2021 11:00:17 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 4
 by: Udo Munk - Fri, 29 Oct 2021 11:00 UTC

If you want that prepare a modified CP/M without cold boot, that jumps to 0100H instead
of into the CCP and load it together with the CP/M program. Also setup DI!HLT @ 0 instead
of the usual JMP, probably no point in warm booting if the program terminates.

BTW, the -x option can load files in Intel Hex or Mostek binary format, not a plain binary.

Re: Error when running z80pack with -x option

<sm39nl$r9q$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2864&group=comp.os.cpm#2864

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: chiedete...@ask.me (dott.Piergiorgio)
Newsgroups: comp.os.cpm
Subject: Re: Error when running z80pack with -x option
Date: Fri, 5 Nov 2021 13:57:25 +0100
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <sm39nl$r9q$1@dont-email.me>
References: <6e7f8ed2-baef-4932-a365-17f0a9f49b06n@googlegroups.com>
<372449af-f75b-42eb-a544-78c7e51e7c80n@googlegroups.com>
<fc3b8041-da25-4410-a060-63d81419ea57n@googlegroups.com>
<17996ade-1900-490c-840d-02e9b25027bcn@googlegroups.com>
<e3c52d66-851b-4c90-966c-dc3637d02e27n@googlegroups.com>
<20d28a1f-6f13-403c-b7e1-c72617b8f12dn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 5 Nov 2021 12:57:25 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="8f48cd9cd77fc2c90e1d9620048ccc3e";
logging-data="27962"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18b3ZxBv3wJo5wilZHEBEt+rMs2+DiUcFYrf3oPEyJOJg=="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
Cancel-Lock: sha1:vnsG+/TLwtLyXYg92vIIBTMwczE=
In-Reply-To: <20d28a1f-6f13-403c-b7e1-c72617b8f12dn@googlegroups.com>
Content-Language: en-GB
 by: dott.Piergiorgio - Fri, 5 Nov 2021 12:57 UTC

On 29/10/21 13:00, Udo Munk wrote:
> If you want that prepare a modified CP/M without cold boot, that jumps to 0100H instead
> of into the CCP and load it together with the CP/M program. Also setup DI!HLT @ 0 instead
> of the usual JMP, probably no point in warm booting if the program terminates.
>
> BTW, the -x option can load files in Intel Hex or Mostek binary format, not a plain binary.
>

Aside that is easy to get (or cobble together...) a bin2hex converter, I
think that a binary loader isn't a bad addition, the only complication
being that the switch need two parameters (the binary file and its
address in memory)

Best regards from Italy,
dott. Piergiorgio.

Re: Error when running z80pack with -x option

<f12e676e-36db-4610-ba00-339b69b9703dn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2866&group=comp.os.cpm#2866

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:622a:54f:: with SMTP id m15mr54657676qtx.365.1636124964345;
Fri, 05 Nov 2021 08:09:24 -0700 (PDT)
X-Received: by 2002:a9d:61ce:: with SMTP id h14mr17141251otk.135.1636124964135;
Fri, 05 Nov 2021 08:09:24 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Fri, 5 Nov 2021 08:09:23 -0700 (PDT)
In-Reply-To: <sm39nl$r9q$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=89.245.101.215; posting-account=RHtB3AoAAABZlu_FJY7ySUmJrtfW41bO
NNTP-Posting-Host: 89.245.101.215
References: <6e7f8ed2-baef-4932-a365-17f0a9f49b06n@googlegroups.com>
<372449af-f75b-42eb-a544-78c7e51e7c80n@googlegroups.com> <fc3b8041-da25-4410-a060-63d81419ea57n@googlegroups.com>
<17996ade-1900-490c-840d-02e9b25027bcn@googlegroups.com> <e3c52d66-851b-4c90-966c-dc3637d02e27n@googlegroups.com>
<20d28a1f-6f13-403c-b7e1-c72617b8f12dn@googlegroups.com> <sm39nl$r9q$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f12e676e-36db-4610-ba00-339b69b9703dn@googlegroups.com>
Subject: Re: Error when running z80pack with -x option
From: udo.m...@freenet.de (Udo Munk)
Injection-Date: Fri, 05 Nov 2021 15:09:24 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 8
 by: Udo Munk - Fri, 5 Nov 2021 15:09 UTC

dott.Piergiorgio schrieb am Freitag, 5. November 2021 um 13:57:27 UTC+1:
> Aside that is easy to get (or cobble together...) a bin2hex converter, I
> think that a binary loader isn't a bad addition, the only complication
> being that the switch need two parameters (the binary file and its
> address in memory)

That is why z80pack includes a bin2hex in cpmsim/srctools.
And that is why it loads Intel hex and Mostek binary, because theses include
load address(es).

Re: Error when running z80pack with -x option

<1e7cdc63-9222-4caa-9e69-b9e04c2bf266n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2891&group=comp.os.cpm#2891

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a0c:ebca:: with SMTP id k10mr15276157qvq.51.1636730003347;
Fri, 12 Nov 2021 07:13:23 -0800 (PST)
X-Received: by 2002:aca:5f44:: with SMTP id t65mr13315971oib.97.1636730003160;
Fri, 12 Nov 2021 07:13:23 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Fri, 12 Nov 2021 07:13:22 -0800 (PST)
In-Reply-To: <17996ade-1900-490c-840d-02e9b25027bcn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.94.139.184; posting-account=uOUOHg4AAADo8AO9B3SI43ekV3AA6lU0
NNTP-Posting-Host: 5.94.139.184
References: <6e7f8ed2-baef-4932-a365-17f0a9f49b06n@googlegroups.com>
<372449af-f75b-42eb-a544-78c7e51e7c80n@googlegroups.com> <fc3b8041-da25-4410-a060-63d81419ea57n@googlegroups.com>
<17996ade-1900-490c-840d-02e9b25027bcn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1e7cdc63-9222-4caa-9e69-b9e04c2bf266n@googlegroups.com>
Subject: Re: Error when running z80pack with -x option
From: paolo.am...@gmail.com (Paolo Amoroso)
Injection-Date: Fri, 12 Nov 2021 15:13:23 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Paolo Amoroso - Fri, 12 Nov 2021 15:13 UTC

After running a program with the -x option, is there any way of inspecting the machine state such as the contents of the registers or memory?

Re: Error when running z80pack with -x option

<c2c1deb1-8f0b-4788-9f07-b9a7e814e0e4n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2892&group=comp.os.cpm#2892

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:620a:754:: with SMTP id i20mr13172870qki.312.1636732297505;
Fri, 12 Nov 2021 07:51:37 -0800 (PST)
X-Received: by 2002:a9d:7e84:: with SMTP id m4mr13134009otp.102.1636732297292;
Fri, 12 Nov 2021 07:51:37 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!border1.nntp.ams1.giganews.com!nntp.giganews.com!feeder1.cambriumusenet.nl!feed.tweak.nl!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Fri, 12 Nov 2021 07:51:37 -0800 (PST)
In-Reply-To: <1e7cdc63-9222-4caa-9e69-b9e04c2bf266n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=89.245.108.54; posting-account=RHtB3AoAAABZlu_FJY7ySUmJrtfW41bO
NNTP-Posting-Host: 89.245.108.54
References: <6e7f8ed2-baef-4932-a365-17f0a9f49b06n@googlegroups.com>
<372449af-f75b-42eb-a544-78c7e51e7c80n@googlegroups.com> <fc3b8041-da25-4410-a060-63d81419ea57n@googlegroups.com>
<17996ade-1900-490c-840d-02e9b25027bcn@googlegroups.com> <1e7cdc63-9222-4caa-9e69-b9e04c2bf266n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c2c1deb1-8f0b-4788-9f07-b9a7e814e0e4n@googlegroups.com>
Subject: Re: Error when running z80pack with -x option
From: udo.m...@freenet.de (Udo Munk)
Injection-Date: Fri, 12 Nov 2021 15:51:37 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 6
 by: Udo Munk - Fri, 12 Nov 2021 15:51 UTC

paolo....@gmail.com schrieb am Freitag, 12. November 2021 um 16:13:24 UTC+1:
> After running a program with the -x option, is there any way of inspecting the machine state such as the contents of the registers or memory?

Yes, with option -s the complete machine state, registers and 64KB memory of bank 0 are written
into a file core.z80 which can be inspected.
For post mortem analysis z80sim -l is helpful, with the ICE it is possible to look at CPU registers
and memory that were saved into a core.z80 file.

Re: Error when running z80pack with -x option

<cd8b1edf-926e-416b-a9e7-9b73de8f726en@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2893&group=comp.os.cpm#2893

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a37:b5c4:: with SMTP id e187mr13242521qkf.27.1636732637287;
Fri, 12 Nov 2021 07:57:17 -0800 (PST)
X-Received: by 2002:a05:6830:1be4:: with SMTP id k4mr13160406otb.101.1636732636966;
Fri, 12 Nov 2021 07:57:16 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Fri, 12 Nov 2021 07:57:16 -0800 (PST)
In-Reply-To: <c2c1deb1-8f0b-4788-9f07-b9a7e814e0e4n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.94.139.184; posting-account=uOUOHg4AAADo8AO9B3SI43ekV3AA6lU0
NNTP-Posting-Host: 5.94.139.184
References: <6e7f8ed2-baef-4932-a365-17f0a9f49b06n@googlegroups.com>
<372449af-f75b-42eb-a544-78c7e51e7c80n@googlegroups.com> <fc3b8041-da25-4410-a060-63d81419ea57n@googlegroups.com>
<17996ade-1900-490c-840d-02e9b25027bcn@googlegroups.com> <1e7cdc63-9222-4caa-9e69-b9e04c2bf266n@googlegroups.com>
<c2c1deb1-8f0b-4788-9f07-b9a7e814e0e4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <cd8b1edf-926e-416b-a9e7-9b73de8f726en@googlegroups.com>
Subject: Re: Error when running z80pack with -x option
From: paolo.am...@gmail.com (Paolo Amoroso)
Injection-Date: Fri, 12 Nov 2021 15:57:17 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Paolo Amoroso - Fri, 12 Nov 2021 15:57 UTC

Thanks, I see the core.z80 dump generated by the -s option is a binary file. Is it in a standard file format I can inspect with some tool?

Re: Error when running z80pack with -x option

<3fb4a916-5129-41dd-ba9f-b500fce402ban@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2894&group=comp.os.cpm#2894

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a37:f902:: with SMTP id l2mr13129206qkj.511.1636734112896;
Fri, 12 Nov 2021 08:21:52 -0800 (PST)
X-Received: by 2002:aca:5f44:: with SMTP id t65mr13716895oib.97.1636734112560;
Fri, 12 Nov 2021 08:21:52 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Fri, 12 Nov 2021 08:21:52 -0800 (PST)
In-Reply-To: <cd8b1edf-926e-416b-a9e7-9b73de8f726en@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=89.245.108.54; posting-account=RHtB3AoAAABZlu_FJY7ySUmJrtfW41bO
NNTP-Posting-Host: 89.245.108.54
References: <6e7f8ed2-baef-4932-a365-17f0a9f49b06n@googlegroups.com>
<372449af-f75b-42eb-a544-78c7e51e7c80n@googlegroups.com> <fc3b8041-da25-4410-a060-63d81419ea57n@googlegroups.com>
<17996ade-1900-490c-840d-02e9b25027bcn@googlegroups.com> <1e7cdc63-9222-4caa-9e69-b9e04c2bf266n@googlegroups.com>
<c2c1deb1-8f0b-4788-9f07-b9a7e814e0e4n@googlegroups.com> <cd8b1edf-926e-416b-a9e7-9b73de8f726en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3fb4a916-5129-41dd-ba9f-b500fce402ban@googlegroups.com>
Subject: Re: Error when running z80pack with -x option
From: udo.m...@freenet.de (Udo Munk)
Injection-Date: Fri, 12 Nov 2021 16:21:52 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2052
 by: Udo Munk - Fri, 12 Nov 2021 16:21 UTC

paolo....@gmail.com schrieb am Freitag, 12. November 2021 um 16:57:17 UTC+1:
> Thanks, I see the core.z80 dump generated by the -s option is a binary file. Is it in a standard file format I can inspect with some tool?

The binary file just contains the CPU registers and memory contents. As I said, it can be loaded with -l
into z80sim and then CPU registers and memory can be inspected. Or you can write your own tools,
the file format is trivial, for order of contents see here:
https://github.com/udo-munk/z80pack/blob/master/z80core/sim0.c
Functions save_core() and load_core().

Re: Error when running z80pack with -x option

<547f8301-bac0-438c-aee0-78fc5c8b01a0n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2901&group=comp.os.cpm#2901

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:ac8:5c54:: with SMTP id j20mr4842158qtj.121.1636890462078;
Sun, 14 Nov 2021 03:47:42 -0800 (PST)
X-Received: by 2002:a9d:6a56:: with SMTP id h22mr24292585otn.135.1636890461846;
Sun, 14 Nov 2021 03:47:41 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sun, 14 Nov 2021 03:47:41 -0800 (PST)
In-Reply-To: <3fb4a916-5129-41dd-ba9f-b500fce402ban@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.94.139.184; posting-account=uOUOHg4AAADo8AO9B3SI43ekV3AA6lU0
NNTP-Posting-Host: 5.94.139.184
References: <6e7f8ed2-baef-4932-a365-17f0a9f49b06n@googlegroups.com>
<372449af-f75b-42eb-a544-78c7e51e7c80n@googlegroups.com> <fc3b8041-da25-4410-a060-63d81419ea57n@googlegroups.com>
<17996ade-1900-490c-840d-02e9b25027bcn@googlegroups.com> <1e7cdc63-9222-4caa-9e69-b9e04c2bf266n@googlegroups.com>
<c2c1deb1-8f0b-4788-9f07-b9a7e814e0e4n@googlegroups.com> <cd8b1edf-926e-416b-a9e7-9b73de8f726en@googlegroups.com>
<3fb4a916-5129-41dd-ba9f-b500fce402ban@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <547f8301-bac0-438c-aee0-78fc5c8b01a0n@googlegroups.com>
Subject: Re: Error when running z80pack with -x option
From: paolo.am...@gmail.com (Paolo Amoroso)
Injection-Date: Sun, 14 Nov 2021 11:47:42 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Paolo Amoroso - Sun, 14 Nov 2021 11:47 UTC

When I start the emulator with the -l option, it exits to the shell after running the code in the loaded core file, so I'm not sure to inspect the registers or memory. However, I wrote some Bash scripts[1] for inspecting z80pack core files.

[1] https://groups.google.com/g/comp.os.cpm/c/T6Aj_XciVnY/m/kJ6CEPvnBwAJ

Re: Error when running z80pack with -x option

<3ff24beb-c111-4a33-bb5c-d721b2f7e3e0n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2903&group=comp.os.cpm#2903

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:622a:346:: with SMTP id r6mr31668588qtw.185.1636892931259;
Sun, 14 Nov 2021 04:28:51 -0800 (PST)
X-Received: by 2002:aca:3b02:: with SMTP id i2mr38006760oia.85.1636892930949;
Sun, 14 Nov 2021 04:28:50 -0800 (PST)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.dns-netz.com!news.freedyn.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sun, 14 Nov 2021 04:28:50 -0800 (PST)
In-Reply-To: <547f8301-bac0-438c-aee0-78fc5c8b01a0n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=89.245.71.175; posting-account=RHtB3AoAAABZlu_FJY7ySUmJrtfW41bO
NNTP-Posting-Host: 89.245.71.175
References: <6e7f8ed2-baef-4932-a365-17f0a9f49b06n@googlegroups.com>
<372449af-f75b-42eb-a544-78c7e51e7c80n@googlegroups.com> <fc3b8041-da25-4410-a060-63d81419ea57n@googlegroups.com>
<17996ade-1900-490c-840d-02e9b25027bcn@googlegroups.com> <1e7cdc63-9222-4caa-9e69-b9e04c2bf266n@googlegroups.com>
<c2c1deb1-8f0b-4788-9f07-b9a7e814e0e4n@googlegroups.com> <cd8b1edf-926e-416b-a9e7-9b73de8f726en@googlegroups.com>
<3fb4a916-5129-41dd-ba9f-b500fce402ban@googlegroups.com> <547f8301-bac0-438c-aee0-78fc5c8b01a0n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3ff24beb-c111-4a33-bb5c-d721b2f7e3e0n@googlegroups.com>
Subject: Re: Error when running z80pack with -x option
From: udo.m...@freenet.de (Udo Munk)
Injection-Date: Sun, 14 Nov 2021 12:28:51 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2184
 by: Udo Munk - Sun, 14 Nov 2021 12:28 UTC

paolo....@gmail.com schrieb am Sonntag, 14. November 2021 um 12:47:42 UTC+1:
> When I start the emulator with the -l option, it exits to the shell after running the code in the loaded core file, so I'm not sure to inspect the registers or memory. However, I wrote some Bash scripts[1] for inspecting z80pack core files.

Which simulation are you using? You need to build and use z80sim included in z80pack,
it will not start running anything, also not with option -l. At the prompt type ? for help.

The other emulation will continue to execute the saved machine state when used
with option -l.

Re: Error when running z80pack with -x option

<062047ea-8af7-422d-b9d4-6baf9f245081n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=2904&group=comp.os.cpm#2904

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:622a:346:: with SMTP id r6mr31936627qtw.185.1636895576378;
Sun, 14 Nov 2021 05:12:56 -0800 (PST)
X-Received: by 2002:a9d:6d01:: with SMTP id o1mr24705974otp.227.1636895576109;
Sun, 14 Nov 2021 05:12:56 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sun, 14 Nov 2021 05:12:55 -0800 (PST)
In-Reply-To: <3ff24beb-c111-4a33-bb5c-d721b2f7e3e0n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.94.139.184; posting-account=uOUOHg4AAADo8AO9B3SI43ekV3AA6lU0
NNTP-Posting-Host: 5.94.139.184
References: <6e7f8ed2-baef-4932-a365-17f0a9f49b06n@googlegroups.com>
<372449af-f75b-42eb-a544-78c7e51e7c80n@googlegroups.com> <fc3b8041-da25-4410-a060-63d81419ea57n@googlegroups.com>
<17996ade-1900-490c-840d-02e9b25027bcn@googlegroups.com> <1e7cdc63-9222-4caa-9e69-b9e04c2bf266n@googlegroups.com>
<c2c1deb1-8f0b-4788-9f07-b9a7e814e0e4n@googlegroups.com> <cd8b1edf-926e-416b-a9e7-9b73de8f726en@googlegroups.com>
<3fb4a916-5129-41dd-ba9f-b500fce402ban@googlegroups.com> <547f8301-bac0-438c-aee0-78fc5c8b01a0n@googlegroups.com>
<3ff24beb-c111-4a33-bb5c-d721b2f7e3e0n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <062047ea-8af7-422d-b9d4-6baf9f245081n@googlegroups.com>
Subject: Re: Error when running z80pack with -x option
From: paolo.am...@gmail.com (Paolo Amoroso)
Injection-Date: Sun, 14 Nov 2021 13:12:56 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Paolo Amoroso - Sun, 14 Nov 2021 13:12 UTC

Got it, you're of course right. I was running cpmsim instead of z80sim.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor