Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.sinclair > #887 > unrolled thread

p file spec wanted

Started byPatrick Schaefer <pa.schaefer@web.de>
First post2012-04-23 22:02 +0200
Last post2012-04-25 11:34 +0200
Articles 17 — 5 participants

Back to article view | Back to comp.sys.sinclair


Contents

  p file spec wanted Patrick Schaefer <pa.schaefer@web.de> - 2012-04-23 22:02 +0200
    Re: p file spec wanted "Paul E Collins" <equi+web@cl4.invalid> - 2012-04-24 11:51 +0100
      Re: p file spec wanted "GzavSnap" <zx81.pas.de.spam.ordi5.chez.free.en.france> - 2012-04-24 16:43 +0200
        Re: p file spec wanted "GzavSnap" <zx81.pas.de.spam.ordi5.chez.free.en.france> - 2012-04-24 16:44 +0200
          Re: p file spec wanted "Chris Young" <chris.usenet@mail-filter.com> - 2012-04-24 18:16 +0100
            Re: p file spec wanted "GzavSnap" <zx81.pas.de.spam.ordi5.chez.free.en.france> - 2012-04-27 22:13 +0200
              Re: p file spec wanted Patrick Schaefer <pa.schaefer@web.de> - 2012-04-27 23:20 +0200
                Re: p file spec wanted "GzavSnap" <zx81.pas.de.spam.ordi5.chez.free.en.france> - 2012-04-29 15:06 +0200
                  Re: p file spec wanted "GzavSnap" <zx81.pas.de.spam.ordi5.chez.free.en.france> - 2012-04-29 15:16 +0200
                  Re: p file spec wanted Patrick Schaefer <pa.schaefer@web.de> - 2012-04-29 23:21 +0200
                    Re: p file spec wanted "GzavSnap" <zx81.pas.de.spam.ordi5.chez.free.en.france> - 2012-04-30 20:59 +0200
                      Re: p file spec wanted Patrick Schaefer <pa.schaefer@web.de> - 2012-04-30 22:57 +0200
                Re: p file spec wanted Patrick Schaefer <pa.schaefer@web.de> - 2012-05-01 13:43 +0200
          OT: Re: p file spec wanted Peter Liebert-Adelt <peter@zschopower.de> - 2012-04-25 11:31 +0200
            Re: Re: p file spec wanted "GzavSnap" <zx81.pas.de.spam.ordi5.chez.free.en.france> - 2012-04-27 22:03 +0200
      Re: p file spec wanted Patrick Schaefer <pa.schaefer@web.de> - 2012-04-24 20:17 +0200
        Re: p file spec wanted Peter Liebert-Adelt <peter@zschopower.de> - 2012-04-25 11:34 +0200

#887 — p file spec wanted

FromPatrick Schaefer <pa.schaefer@web.de>
Date2012-04-23 22:02 +0200
Subjectp file spec wanted
Message-ID<9vlqqeFjmjU1@mid.individual.net>
Hi all,

where can I find a description of the .p file format used by the emulators?

"p" is not really a good keyword for Google :-(


Thx
Patrick

[toc] | [next] | [standalone]


#899

From"Paul E Collins" <equi+web@cl4.invalid>
Date2012-04-24 11:51 +0100
Message-ID<op.wc9m4lezdjgvhv@flay.home>
In reply to#887
On Mon, 23 Apr 2012 21:02:22 +0100, Patrick Schaefer <pa.schaefer@web.de>  
wrote:

> Hi all,
> where can I find a description of the .p file format used by the  
> emulators?
> "p" is not really a good keyword for Google :-(

There's some information here:

http://forum.tlienhard.com/ts1000/www.ts1000.us/cgi-bin/yabb/YaBB.pl-board=PROGRAM;action=display;num=1124824515.htm

Eq.

[toc] | [prev] | [next] | [standalone]


#909

From"GzavSnap" <zx81.pas.de.spam.ordi5.chez.free.en.france>
Date2012-04-24 16:43 +0200
Message-ID<4f96bc26$0$6817$426a74cc@news.free.fr>
In reply to#899
http://www.mofeel.net/785-comp-sys-sinclair/3158-2.aspx 

[toc] | [prev] | [next] | [standalone]


#910

From"GzavSnap" <zx81.pas.de.spam.ordi5.chez.free.en.france>
Date2012-04-24 16:44 +0200
Message-ID<4f96bc56$0$1685$426a74cc@news.free.fr>
In reply to#909
Hi,

The "P" file is not really a format !
It's the ZX81 memory dump, without any file tag.

It include:
- The Zx81 Basic system mémory.
- The Basic programme memory.
- The D_file (video memory).
- The Vars (Basic Variables memory : A$, num...)
You had to rebuild the Zx81 memory to create a "P" file.
... or get a "P" martice file and change somes values.
-> Vb81 Xur resources ?

[toc] | [prev] | [next] | [standalone]


#914

From"Chris Young" <chris.usenet@mail-filter.com>
Date2012-04-24 18:16 +0100
Message-ID<4F96EDF2.MD-1.4.17.chris.young@unsatisfactorysoftware.co.uk>
In reply to#910
On Tue, 24 Apr 2012 16:44:42 +0200 da kidz on comp.sys.sinclair were rappin'
to MC GzavSnap:

> The "P" file is not really a format !
> It's the ZX81 memory dump, without any file tag.

Surely it's simply whatever the ZX81 writes when you type SAVE?  This
may or may not be the same as a complete memory dump.

Chris


-- 
+-------------------------------------------+
| Unsatisfactory Software - "because it is" |
|  http://www.unsatisfactorysoftware.co.uk  |
| Your Sinclair: A Celebration              |
+- http://www.yoursinclair.co.uk -----------+

DISCLAIMER: I may be making all this stuff up again.

[toc] | [prev] | [next] | [standalone]


#942

From"GzavSnap" <zx81.pas.de.spam.ordi5.chez.free.en.france>
Date2012-04-27 22:13 +0200
Message-ID<4f9b02c3$1$20184$426a74cc@news.free.fr>
In reply to#914
"Chris Young" <chris.usenet@mail-filter.com> wrote in message 
news:4F96EDF2.MD-1.4.17.chris.young@unsatisfactorysoftware.co.uk...
| On Tue, 24 Apr 2012 16:44:42 +0200 da kidz on comp.sys.sinclair were 
rappin'
| to MC GzavSnap:
|
| > The "P" file is not really a format !
| > It's the ZX81 memory dump, without any file tag.
|
| Surely it's simply whatever the ZX81 writes when you type SAVE?  This
| may or may not be the same as a complete memory dump.
|
| Chris
In fact, there's two "p" release !
The real binary dump using a "SAVE" command, on the ZX81. (from a Wav file)
filenamE + binary dump
And a second release whitout name ... (from Xtender emulator)
The name is include in the printer buffer.


[toc] | [prev] | [next] | [standalone]


#943

FromPatrick Schaefer <pa.schaefer@web.de>
Date2012-04-27 23:20 +0200
Message-ID<a00gtvFcgjU1@mid.individual.net>
In reply to#942
Am 27.04.2012 22:13 schrieb GzavSnap:

> And a second release whitout name ... (from Xtender emulator)
> The name is include in the printer buffer.

Ok, that one seems to be more common. I have a i8251 UART at "my 
similar-to-Wilf's-ZX97" machine and wrote a routine that allows me to 
shoot a .p file into the ZX at 9k6. The first byte is stored at 4009h 
and then bytes are receved until the value given in 4014.15h is reached 
or break is pressed. Works fine!

How do I have to set NXTLIN to get rid of the autostart? To DFILE-1?


Best regards
Patrick


[toc] | [prev] | [next] | [standalone]


#947

From"GzavSnap" <zx81.pas.de.spam.ordi5.chez.free.en.france>
Date2012-04-29 15:06 +0200
Message-ID<4f9d3cc1$0$6458$426a74cc@news.free.fr>
In reply to#943
| | How do I have to set NXTLIN to get rid of the autostart? To DFILE-1?
The NXTLIN is used in the Basic Monitor (ROM) and is set to the Next Basic 
address line.
This pointer is a 16bits value.
You had to retrive the right address line in the Basic chained lines.
Not easy to retrive the Basic line offset in the memory, but try to launch 
your "p" file on the first line ! (the first REM... like a Run command)
The D_file adresse is the summ of all of memory Basic parts... (after Basic 
lines)
>> Basic memory + &76 + &76 + 32xcharacters+&76 (RETURN)+ (...)
The Vars can be empty.
Juste Have a look to Text2P C# res, include in "ZxBasic" 
(http://dskcenter.free.fr/zxtools.html)
Or upload a TASM (tasmo) assembler blank demo ... 

[toc] | [prev] | [next] | [standalone]


#948

From"GzavSnap" <zx81.pas.de.spam.ordi5.chez.free.en.france>
Date2012-04-29 15:16 +0200
Message-ID<4f9d3f16$0$1684$426a74cc@news.free.fr>
In reply to#947
... Or Use the Vb81 XuR tools...
text->"P" alow to compile ASM and Rems in a "P" file.

[toc] | [prev] | [next] | [standalone]


#953

FromPatrick Schaefer <pa.schaefer@web.de>
Date2012-04-29 23:21 +0200
Message-ID<a05pn9Fe83U1@mid.individual.net>
In reply to#947
Am 29.04.2012 15:06 schrieb GzavSnap:

> > How do I have to set NXTLIN to get rid of the autostart? To DFILE-1?
> The NXTLIN is used in the Basic Monitor (ROM) and is set to the Next
> Basic address line.
> This pointer is a 16bits value.
> You had to retrive the right address line in the Basic chained lines.
> Not easy to retrive the Basic line offset in the memory, but try to launch
> your "p" file on the first line ! (the first REM... like a Run command)

This is the value where it is set now. Therefore the program is executed 
immediately after loading. Now I would like to patch the .p file to 
prevent this autostart, so that I can save my file to RAMdisk before it 
is run the first time.


> You had to retrive the right address line in the Basic chained lines.

Which line is addressed when the progam is NOT running? Do I have to set 
it after the last line (i.e. start of the variable area resp. DFILE-1 
when no vars are present), or is there a special value for "number 
invalid -- we are in edit mode"?


Patrick

[toc] | [prev] | [next] | [standalone]


#961

From"GzavSnap" <zx81.pas.de.spam.ordi5.chez.free.en.france>
Date2012-04-30 20:59 +0200
Message-ID<4f9ee22e$0$20165$426a74cc@news.free.fr>
In reply to#953
Hi,
Have a look to the little ASM program at the bottom of this page...
http://zx81.ordi5.free.fr/n6/download/Ordi5-06/Ordi-5_06_17.png

It able to load and break a "p" file and ignore the autorun command. 

[toc] | [prev] | [next] | [standalone]


#962

FromPatrick Schaefer <pa.schaefer@web.de>
Date2012-04-30 22:57 +0200
Message-ID<a08clnFisU1@mid.individual.net>
In reply to#961
Am 30.04.2012 20:59 schrieb GzavSnap:

> Have a look to the little ASM program at the bottom of this page...
> http://zx81.ordi5.free.fr/n6/download/Ordi5-06/Ordi-5_06_17.png

Thank you!

> It able to load and break a "p" file and ignore the autorun command.

This translates into

	call FAST
	setb 7, D
	jp NEXT_PROG

NEXT_PROG is where we end up after the load command, and bit 7 of D is 
usually the Carry flag returned by the NAME (03A8h) routine.

But when does NAME set the Carry (which is what we are faking here)?


Patrick

[toc] | [prev] | [next] | [standalone]


#963

FromPatrick Schaefer <pa.schaefer@web.de>
Date2012-05-01 13:43 +0200
Message-ID<a0a0jiF11jU1@mid.individual.net>
In reply to#943
Am 27.04.2012 23:20 schrieb Patrick Schaefer:

> How do I have to set NXTLIN to get rid of the autostart? To DFILE-1?

Now I've found the answer:

The ZX-Team "USB File Manager" code contains a function to disable the 
Autostart
http://forum.tlienhard.com/phpbb3/viewtopic.php?f=2&t=593&p=4101&hilit=autostart#p4165

You have to set NXTLIN = DFILE.


Patrick

[toc] | [prev] | [next] | [standalone]


#924 — OT: Re: p file spec wanted

FromPeter Liebert-Adelt <peter@zschopower.de>
Date2012-04-25 11:31 +0200
SubjectOT: Re: p file spec wanted
Message-ID<jn8g8v$tr6$1@online.de>
In reply to#910
Am 24.04.2012 16:44, schrieb GzavSnap:
> Hi,
>
> The "P" file is not really a format !
> It's the ZX81 memory dump, without any file tag.
>
> It include:
> - The Zx81 Basic system mémory.
> - The Basic programme memory.
> - The D_file (video memory).
> - The Vars (Basic Variables memory : A$, num...)
> You had to rebuild the Zx81 memory to create a "P" file.
> ... or get a "P" martice file and change somes values.
> ->  Vb81 Xur resources ?
>
>

Salué Xavier, we missed you at 16th ZX-TEAM-meeting!

Peter

[toc] | [prev] | [next] | [standalone]


#941

From"GzavSnap" <zx81.pas.de.spam.ordi5.chez.free.en.france>
Date2012-04-27 22:03 +0200
Message-ID<4f9b02c3$0$20184$426a74cc@news.free.fr>
In reply to#924
"Peter Liebert-Adelt" <peter@zschopower.de> wrote in message 
news:jn8g8v$tr6$1@online.de...
| Am 24.04.2012 16:44, schrieb GzavSnap:
|| Salué Xavier, we missed you at 16th ZX-TEAM-meeting!
| Peter
Sorry !
8-(


[toc] | [prev] | [next] | [standalone]


#915

FromPatrick Schaefer <pa.schaefer@web.de>
Date2012-04-24 20:17 +0200
Message-ID<9vo91pFricU1@mid.individual.net>
In reply to#899
Am 24.04.2012 12:51 schrieb Paul E Collins:

> There's some information here:
>
> http://forum.tlienhard.com/ts1000/www.ts1000.us/cgi-bin/yabb/YaBB.pl-board=PROGRAM;action=display;num=1124824515.htm

Ok, that's easy. I just have to dump memory from VERSN (4009h) until the 
value given in VARS (4010.4011h).

Thank you very much!


Patrick

[toc] | [prev] | [next] | [standalone]


#925

FromPeter Liebert-Adelt <peter@zschopower.de>
Date2012-04-25 11:34 +0200
Message-ID<jn8gdp$tr6$2@online.de>
In reply to#915
Am 24.04.2012 20:17, schrieb Patrick Schaefer:
> Am 24.04.2012 12:51 schrieb Paul E Collins:
>
>> There's some information here:
>>
>> http://forum.tlienhard.com/ts1000/www.ts1000.us/cgi-bin/yabb/YaBB.pl-board=PROGRAM;action=display;num=1124824515.htm
>>
>
> Ok, that's easy. I just have to dump memory from VERSN (4009h) until the
> value given in VARS (4010.4011h).
>
> Thank you very much!
>
>
> Patrick
>

Hallo Patrick,

vielleicht ein guter Tip für Dich ist das deutschsprachige ZX81-Forum:
http://forum.tlienhard.com/phpBB3/viewforum.php?f=2

Peter

[toc] | [prev] | [standalone]


Back to top | Article view | comp.sys.sinclair


csiph-web