Hi

 

This is a late reply to Adrian Ives and others interested:

 

On February 20, 2011 Adrian requested the parameter sheet for the QL Master
Spy Editor.

 

I wrote this program in assembler in 1988 along with some others.

 

After digging in the loft a bit I found the following for version 2.

 

The Master Spy is unusually self-contained as you load it into itself to
edit its configuration. You can then save it from itself as an executable
file. So it is its own configuration program.

 

Even 23 years ago program configuration data was normally held separately
from the executables.

 

So the basic idea (if I remember correctly) is to load the executable file
into itself, locate the text "PARS", measure an offset from that, and poke a
byte or two in exactly the right place. Then save the result as an
executable and test.

 

>>> 

 

THE MASTER SPY EDITOR : VERSION 2 PARAMETER SHEET : To be used with the
configuration chapter in the Master Spy manual.

 

OFFSET           FLAG    NAME               BYTES DEFAULT         RANGE
DESCRIPTION

 

PARS
START of parameters. Read in 'Master', <CTRL><D> PARS <ENTER> to find this
first.

33                     SL        STK_LEN          2          15
1-QLLIMIT         The maximum number of Views on stack. This is limited by
your hardware system.

167                   MN       MN_LINES        1          24/20tv
3-24                  Main console lines.

168                   MN       MN_COLS         1          80/72tv
40-84                Main console columns.

169                   MN       MN_BORDER   1          239
0-255                Main console border colour.

170                   MN       MN_PAPER      1          0
0-255                Main console paper colour.

171                   MN       MN_INK            1          4
0-255                Main console ink colour.

174                   EC        EC_LINES         1          25
3-25                  Echo console lines.

175                   EC        EC_COLS         1          80
0-80                  Echo console columns.

176                   EC        EC_PORDER    1          239
0-255                Echo console border colour.

177                   EC        EC_PAPER       1          0
0-255                Echo console paper colour.

178                   EC        EC_INK             1          4
0-255                Echo console ink colour.

181                   CM       CM_PAPER      1          4
0-255                Command console paper colour.

182                   CM       CM_INK            1          0
0-255                Command console ink colour.

183                   CM       CM_ALTPAP     1          2
0-255                Command console highlight paper colour.

184                   CM       CM_ALTINK      1          7
0-255                Command console highlight ink colour.

187                   ER        ER_PAPER       1          2
0-255                Error message paper colour.

188                   ER        ER_INK             1          7
0-255                Error message ink colour.

191                   SC        SCOLUMNS      1          32
0-WIDTH           Number of columns scrolled by <ALT><UP>/<DOWN> (0 will
scroll the whole screen).

194                   SI         FG_STRIMG      1          1
0-1                    Store images to provide fast refresh times ? 0(no)
1(yes)

197                   KD       KEY_VU           1          210
0-255                Switch to the VIEW one UP on the stack             =
<CTRL><UP>             < KEY

198                   KD       KEY_VD           1          218
0-255                Switch to the VIEW one DOWN on the stack       =
<CTRL><DOWN>       < DEFINITIONS

199                   KD       KEY_SU           1          209
0-255                SCROLL the View UP on the file
= <ALT><UP>                                       <

200                   KD       KEY_SD           1          217
0-255                SCROLL the View DOWN on the file                   =
<ALT><DOWN>                                 <

201                   KD       KEY_PL            1          197
0-255                PAN View LEFT across file
= <SHIFT><ALT><LEFT>                       <

202                   KD       KEY_PR           1          205
0-255                PAN View RIGHT across file
= <SHIFT><ALT><RIGHT>                     <

203                   KD       KEY_LS            1          193
0-255                Cursor to LINE START
= <ALT><LEFT>                                    <

204                   KD       KEY_LE            1          201
0-255                Cursor to LINE END
= <ALT><RIGHT>                                  <

205                   KD       KEY_WU          1          213
0-255                Cursor one WINDOW depth UP                          =
<SHIFT><ALT><UP>                          <

206                   KD       KEY_WD          1          221
0-255                Cursor one WINDOW depth DOWN                    =
<SHIFT><ALT><DOWN>                    <

207                   KD       KEY_WL           1          196
0-255                Cursor one WORD LEFT
= <SHIFT><LEFT>                                <

208                   KD       KEY_WR          1          204
0-255                Cursor one WORD RIGHT
= <SHIFT><RIGHT>                               <

209                   KD       KEY_DLU         1          211
0-255                DELETE LINE(S) UP
= <CTRL><ALT><UP>                           <

210                   KD       KEY_DLD         1          219
0-255                DELETE LINE(S) DOWN
= <CTRL><ALT><DOWN>                     <

211                   KD       KEY_DLL          1          195
0-255                DELETE LINE LEFT of cursor (excl)                   =
<CTRL><ALT><LEFT>                        <

212                   KD       KEY_DLR         1          203
0-255                DELETE LINE RIGHT of cursor (inc)                   =
<CTRL><ALT><RIGHT>                      <

213                   KD       KEY_DWL        1          198
0-255                DELETE WORD LEFT
= <CTRL><SHIFT><LEFT>                    <

214                   KD       KEY_DWR        1          206
0-255                DELETE WORD RIGHT
= <CTRL><SHIFT><RIGHT>                   <

215                   KD       KEY_TOP         1          215
0-255                TOP of file
= <SHIFT><CTRL><ALT><UP>              <

216                   KD       KEY_BOT         1          223
0-255                BOTTOM of file
= <SHIFT><CTRL><ALT><DOWN>        <

217                   KD       KEY_SNL         1          10
0-255                Standard New Line
= <ENTER>                                          <

218                   KD       KEY_INL           1          254
0-255                Intelligent New Line (auto-indenting)
= <SHIFT><ENTER>                             <

247                   HP        HP_MlNLEN      4          20480
0-QLLIMIT         Workspace minimum : This ensures that any small files have
adequate space.

251                   HP        HP_OVERHD    4          10240
0-QLLIMIT         Workspace overhead : The free space (bytes) added to the
file/index lengths.

457                   KY        KY_NEWDEL    2          15
0-65535             Key repeat delay if FG_SETKEY=1: Affects the QL's
response time to one keypress.

459                   KY        KY_NEWFRQ    2          1
0-65535             Key repeat frequency if FG_SETKEY:1. Affects the QL's
response to keys held down.

556                   EN        ECHO_LEN       1          9
0-36                  Length of the default 'Echo' file name.

557                   EN        ECHO_NAME    36         mdv1_help
Echo file name text offered when you press <F1>. Poke length of text in
ECHO_LEN.

625                   JP        JOB_PRIOR      1          32
1-127                Job priority (SBasic = 32). Affects the Master Spy's
share of processor time.

628                   SK        FG_SETKEY     1          1
0-1                    Alter the key response on Spy exec/quit ?
(KY_NEWDEL/KY_NEWFRQ) 0(no) 1(Yes).

631                   AO       FG_OVERWR   1          0
0-1                    'File Write' overwrite action 0(confirm overwrite)
1(auto-overwrite).

634                   CS        FG_CPSCAN    1          0
0-1                    Scan CAPS status ? 0(no) 1(yes). Switch off if Spy
interferes with other jobs.

637                   SP        FG_SKIP          1          0
0-1                    Skip 'read' screen messages ? 0(no) 1(yes) for
background monitoring of network.

652                   FN        FN_LENGTH     1          0
0-36                  Length of default 'Read' file name.

653                   FN        FN_TEXT          36         BLANK TEXT
STRING                Read file name text. Type it in starting at the
offset.

749                   EL        EL_MKBYTS     2          128
WID-32767        Max number of bytes in each line. Not less than main
console width in characters.

756                   FD        FD_LENGTH     1          0
0-32                  Length of default Down/Up Find string.

757                   FD        FD_STRING      32         BLANK TEXT STRING
Down/Up Find string. Type in the text here.

792                   EX        EX_OLDLEN     1          0
0-64                  Length of string to be exchanged.

793                   EX        EX_OLDSTR     64         BLANK TEXT STRING
Text of string to be exchanged.

858                   EX        EX_NEWLEN    1          0
0-64                  Length of replacement string.

859                   EX        EX_NEWSTR    64         BLANK TEXT STRING
Text of replacement string.

926                   BN        BNAME_LEN    1          0
0-36                  Length of 'Block Write' file name.

927                   BN        BNAME_TXT     36         BLANK TEXT STRING
Block Write file name text starts here.

967                   DF        FG_FIND          1          1
1-2                    Direction of find. Used by <F2> with the text in
FD_STRING 1(down) 2(up).

970                   DE       FG_EXCHNG    1          1
1-2                    Direction of exchange 1(down) 2(up). Used by
<SHIFT><F2>. See EX flags above.

973                   RE        FG_REPEAT     1          1
0-1                    Repeatedly exchange ? 0(no) 1(yes).

976                   QE       FG_QUERY      1          1
0-1                    Query each exchange ? 0(no) 1(yes).

1091                 MT        MAIN_TAB        2          10
0-32767             Tab setting. The <TABULATION> key moves the cursor to a
multiple of this.

1095                 MD       FG_EDMODE   1          1
0-1                    Edit mode flag. Spy default mode for non-exec files
0(Overwrite) 1(Insert).

1098                 ST        FG_STATUS     1          1
0-2                    Which level of status line information? 0(off)
1(basic) 2(advanced).

 

For the record I wrote for the QL:

1.      The Spy Editor (in assembler) 
2.      Master Spy Editor (in assembler) 
3.      Mailmerge (in assembler) 
4.      Archivist 128K and 256K versions based on Psion ArchiveRTM 
5.      Cardfile 128K and 256K versions based on Psion ArchiveRTM 
6.      Mailfile 128K and 256K versions based on Psion ArchiveRTM 
7.      Librarian 128K and 256K versions based on Psion ArchiveRTM 
8.      Stripper for reducing files to pure text (in assembler) 

 

I originally accidentally sent this to [email protected]. Sorry about
that if it was a problem.

 

Hope this helps.

 

Best wishes

Richard Howe (Computer Technician)

Applied Research Kernel

 

 

_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to