The PSION Organiser II Homepage
Forum Home Forum Home Help Help Search Search Members Members Login Login Register Register

Welcome, Guest. Please Login or Register.
Why register?
   The Psion Organiser II Forum
   User Forum
   Help
(Moderator: Mikesan)
   Question for Jaap - Notepads in OPK Editor
« No topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: Question for Jaap - Notepads in OPK Editor  (Read 60 times)
MartinReid
Mega Power Member




   
WWW

Posts: 136
Question for Jaap - Notepads in OPK Editor
« on: Apr 6th, 2019, 10:28pm »
Quote Quote Modify Modify

Dear Jaap
 
I'm having difficulty with NotePads in the OPK Editor.
 
While trying to create a pack; I try to [Import Item] Name.NTS I get a File format not recognised [OK] message.
 
If I [Add New Item] [Notepad] I can cut and paste the notepad contents. Which I can [Export Item] as OB7's and can then [Import Item] them into another [New Pack].
 
Is there a way to [Import Item] NTS files direct.
 
Sincerely and in good faith
Martin
« Last Edit: Apr 7th, 2019, 2:14pm by MartinReid »
jaap
Power Member




   
WWW

Posts: 60
Re: Question for Jaap - Notepads in OPK Editor
« Reply #1 on: Apr 8th, 2019, 10:05am »
Quote Quote Modify Modify

Hi Martin,
I see I forgot to implement that option. I do import .OPL and .ODB files, but not .NTS files. Thanks for pointing this out.
I should be able to add that fairly easily.

Jaap Scherphuis
https://www.jaapsch.net/psion/
jaap
Power Member




   
WWW

Posts: 60
Re: Question for Jaap - Notepads in OPK Editor
« Reply #2 on: Apr 8th, 2019, 6:33pm »
Quote Quote Modify Modify

Importing .NTS files should work now. Let me know if there are any problems.

Jaap Scherphuis
https://www.jaapsch.net/psion/
MartinReid
Mega Power Member




   
WWW

Posts: 136
Re: Question for Jaap - Notepads in OPK Editor
« Reply #3 on: Apr 9th, 2019, 3:31pm »
Quote Quote Modify Modify

Thanks Jaap, working now.
 
Now I'm trying to get my head round BOOT.BIN! When in OPK Editor, In the header I set the pack to 32k then set bootable. Then I [Import Item] BOOT.BIN - The data block value changes but there is no sign of BOOT.BIN. Am I right that it is there somewhere and to go ahead and load the BOOT.OPL ? Or is setting the pack to bootable already adding the BOOT.BIN?
 
Next do I need to TRANSlate BOOT.OPL to OB3 or is it translated on the hoof?
 
Sorry to be such a pain
Sincerely
Martin
 
Addendum...
 
Well what a performance..
 
Spent all day trying to OPLTRANslate ADDTOP from the development manual. Knew there had to be something wrong when the OPK editor listed the contents of the OB3. In desperation I tried ATRAN as recommended ages ago by Nikos and it nailed it by placing the cursor right on the 'error'.
 
It seems there are two errors in the developer manual firstly it lists an OPL in the .BLD file
 
EXAMPLE 16, NOCOPY
BOOT BIN     [!Boot file]
TABLE ODB    [!Data file]
PROC1 OB3 RUN     [!First procedure]
PROC2 OB3 RUN2    [!Second procedure]
BOOT OPL     [!Boot file]
 
Which of course should be BOOT OB3
 
But more importantly there is a typo in the ADDTOP listing
 
POKEB $2187+I%,ASC(MIDS(item$,I%,1))
 
Can you see it?  
 
Mistakenly I cut and pasted this from the on line manual and didn't spot it. Checked Jaaps INSMENU: which doesn't have the error,  and still didn't spot it. Until ATAN put the cursor right on it.
 
1989 that manual. I wonder how many other's have had the problem in the last 30 years.
 
Anyway have a smile at my expense
Sincerely Martin
« Last Edit: Apr 11th, 2019, 7:03am by MartinReid »
jaap
Power Member




   
WWW

Posts: 60
Re: Question for Jaap - Notepads in OPK Editor
« Reply #4 on: Apr 11th, 2019, 8:57am »
Quote Quote Modify Modify

on Apr 9th, 2019, 3:31pm, MartinReid wrote:
Now I'm trying to get my head round BOOT.BIN! When in OPK Editor, In the header I set the pack to 32k then set bootable. Then I [Import Item] BOOT.BIN - The data block value changes but there is no sign of BOOT.BIN. Am I right that it is there somewhere and to go ahead and load the BOOT.OPL ? Or is setting the pack to bootable already adding the BOOT.BIN?

 
If you import a BIN file like BOOT.BIN in the opk editor, it will ask if you want to use it as boot code. If you click yes, it will update the pack header appropriately. The boot code is visible in the pack contents only as an unnamed "Data block". The name is not stored on the pack.
 
In the case of BOOT.BIN, you will have to add a translated BOOT procedure, i.e. BOOT.OB3. Unfortunately the opk editor is not able to translate procedures, so you should translate it before importing it.
 
 
on Apr 9th, 2019, 3:31pm, MartinReid wrote:
It seems there are two errors in the developer manual firstly it lists an OPL in the .BLD file
 
EXAMPLE 16, NOCOPY
BOOT BIN [!Boot file]
TABLE ODB [!Data file]
PROC1 OB3 RUN [!First procedure]
PROC2 OB3 RUN2 [!Second procedure]
BOOT OPL [!Boot file]
 
Which of course should be BOOT OB3
 
But more importantly there is a typo in the ADDTOP listing
 
POKEB $2187+I%,ASC(MIDS(item$,I%,1))

 
The latter was an error I introduced when I OCRed it to create the webpage. The former is probably how it is in the manual. I have fixed both errors now in the online version.

Jaap Scherphuis
https://www.jaapsch.net/psion/
MartinReid
Mega Power Member




   
WWW

Posts: 136
Re: Question for Jaap - Notepads in OPK Editor
« Reply #5 on: Apr 11th, 2019, 9:19am »
Quote Quote Modify Modify

Dear Jaap (and anyone else using the The Organiser Developer Manual)
 
The manual has the typo MIDS instead of MID$
 
POKEB $2187+I%,ASC(MIDS(item$,I%,1))
 
But now it is good for those using the online version.
 
Sincerely
Martin
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« No topic | Next topic »

The Psion Organiser II Forum » Powered by YaBB 1 Gold - SP 1.1!
YaBB 2000-2002,
Xnull. All Rights Reserved.
top