Paste from clipboard problem

Comments, problems, suggestions about Oric emulators (Euphoric, Mess, Amoric, etc...) it's the right place to ask. And don't hesitate to give your tips and tricks that help using these emulations in the best possible way on your favorite operating system.
User avatar
DrBob
2nd Star Corporal
Posts: 18
Joined: Tue May 29, 2018 6:26 pm

Paste from clipboard problem

Post by DrBob »

I am new to the oricutron emulator since I found two oric1 of my son's from 1983 stored in my garage. So I investigated the emulator on line, only to find that getting a program from paper or tape to emulator proved impossible.
I am using oricutron 1.2 (from petergordon.org.uk/oricutron/) on win-7-pro-x64 running on an ASUS Z97-P MoBo. I transferred the program using OCR from 19 printed sheets into a disk file. I corrected the conversion errors which gave me a typed a program,
in plain text, in a notepad .txt file. I copied this file into the clipboard; CTRL+C intending to use the menu in oricutron; F1. clicking on 'Paste from clipboard'
to read the program into the processor. However, I find it stops by going into the Monitor which indicates that an illegal op-code 32hex has been executed; mnemonic JAM.
The program lists on the emulator as it goes but it stops at a random place in the listing; there is not a syntax error at the stop; the same clipboard copy is used each time. Sometimes only one line is entered sometimes lots sometimes less.
This has been confirmed by another oricutron user.

I also have the original oric1 tape; slow and fast. so I thought use wav2tape.exe from 'Euphoric tools' at sourceforge.net/projects/euphorictools/files/Tape%20tools/WAV%20format/
Oh dream-on, They do not run on win7 but do not say on what they do run! Are there instructions on using them, for Dummies like me?
So now I am stuck. Can anyone help?
Give me a fulcrum and a leaver long enough and I will move the world
ThomH
Flying Officer
Posts: 238
Joined: Thu Oct 13, 2016 9:55 pm

Re: Paste from clipboard problem

Post by ThomH »

I can't strongly comment as to Oricutron, but are you willing to supply the listing and/or WAV to allow investigation of potential other routes to conversion?

Despite that proviso, I'm very confident that Oricutron is designed to load WAVs directly. Did you try loading without an attempt at using an intermediate conversion tool?
User avatar
Chema
Game master
Posts: 3013
Joined: Tue Jan 17, 2006 10:55 am
Location: Gijón, SPAIN
Contact:

Re: Paste from clipboard problem

Post by Chema »

I am not sure why pasting fro the clipboard does not work, but if you can share the listing (in txt format) we could try to see what is going wrong or find an alternative.

On the conversion tools, they are old and only work under MSDOS. I have a win98 laptop just for that... Some might be recompiled so they run on Windows. In any case transferring a tape to a wav is not an easy process. We have a local expert here: Symoon :wink:
User avatar
DrBob
2nd Star Corporal
Posts: 18
Joined: Tue May 29, 2018 6:26 pm

Re: Paste from clipboard problem

Post by DrBob »

Thanks for the reply.
I don't quite understand your first comment. it is a notepad text file of a basic program copied into clipboard and the pated into oricutron through its menu F1. The error has been verified by the guy who registered me for this forum .See part listing below, there are 19 pages. I am not aware that .wav files can be read directly into oricutron. can you point me to where this is described how to do it.
0REMRev7.016/10/1984
1INK0:PAPER3:HIRES:HIMEM#97FF:PAPER2:INK0:PRINTCHR$(17)
2DIMCD%(3,6,13),PK%(208),TC(5,10),BT(4,4),TT(4,4),PT%(288),BJ%(4),MU(4,3)
3A$=CHR$(96)+"DOCTODRBOB'SSOFTWARE":X=5:Y=10:GOSUB2978:WAIT300:GOSUB2700
4DIMPR(4,200):GN=0:LI=1:BT=1:GOSUB2980:PB=1
5GOSUB2800:REMFILLPACKMATRIX
6GOSUB1400:REMFILLCARDMATRIX
7GOSUB1600:REMDEFINEK,Q,J
8GOSUB2400:REMDEFINESUITES
9GOSUB2700:REMCLEARMESSAGE
10GOSUB7600:G0SUB2923:REMNO.OFPLAYERS
11GOSUB2700:REMCLEARMESSAGE
12REMENDOFINITIALISATION
13REM
25GOSUB2600:GOSUB2700:REMSHUFFLE
26GOSUB7000
30GOSUB2700:GOSUB3000:REMPLACEBETS
31GOSUB2730:D1=1:C1=1:FORI=1TONP
32IFBT(I,1)=0ORBT(I,1)+BT(1,2)=0THEND1=1:GOTO38
35GOSUB4600:GOSUB3100
37X=2+(I-1)*9:GOUB1000:DI=2
38NEXTI:CURSET12,191,3:FILL2,37,64
Give me a fulcrum and a leaver long enough and I will move the world
ThomH
Flying Officer
Posts: 238
Joined: Thu Oct 13, 2016 9:55 pm

Re: Paste from clipboard problem

Post by ThomH »

Sorry for being a little vague about this; Oricutron doesn't actually work on my machine for reasons I've never bothered to diagnose because I'm the author of a different Oric emulator. Not for Windows, but I was thinking I could try my copy and paste solution, being a completely different implementation, and if that works just save it to DSK and send it on over. I'll try those 38 lines and let you know how that goes.

Otherwise, from other forum posts I obliquely understand that the 'insert tape' menu option should just allow you to select a WAV. Then it's the ordinary CLOAD process.
User avatar
DrBob
2nd Star Corporal
Posts: 18
Joined: Tue May 29, 2018 6:26 pm

Re: Paste from clipboard problem

Post by DrBob »

happy to send the file but attach file is disabled in your forum contact.

Will try the wav input you suggested but probably tomorrow. these things run into hours very easily.
Give me a fulcrum and a leaver long enough and I will move the world
User avatar
peacer
Flight Lieutenant
Posts: 451
Joined: Wed Jun 09, 2010 9:23 pm
Location: Turkey
Contact:

Re: Paste from clipboard problem

Post by peacer »

DrBob wrote: Wed May 30, 2018 9:26 pm Thanks for the reply.
I don't quite understand your first comment. it is a notepad text file of a basic program copied into clipboard and the pated into oricutron through its menu F1. The error has been verified by the guy who registered me for this forum .See part listing below, there are 19 pages. I am not aware that .wav files can be read directly into oricutron. can you point me to where this is described how to do it.
0REMRev7.016/10/1984
1INK0:PAPER3:HIRES:HIMEM#97FF:PAPER2:INK0:PRINTCHR$(17)
2DIMCD%(3,6,13),PK%(208),TC(5,10),BT(4,4),TT(4,4),PT%(288),BJ%(4),MU(4,3)
3A$=CHR$(96)+"DOCTODRBOB'SSOFTWARE":X=5:Y=10:GOSUB2978:WAIT300:GOSUB2700
4DIMPR(4,200):GN=0:LI=1:BT=1:GOSUB2980:PB=1
5GOSUB2800:REMFILLPACKMATRIX
6GOSUB1400:REMFILLCARDMATRIX
7GOSUB1600:REMDEFINEK,Q,J
8GOSUB2400:REMDEFINESUITES
9GOSUB2700:REMCLEARMESSAGE
10GOSUB7600:G0SUB2923:REMNO.OFPLAYERS
11GOSUB2700:REMCLEARMESSAGE
12REMENDOFINITIALISATION
13REM
25GOSUB2600:GOSUB2700:REMSHUFFLE
26GOSUB7000
30GOSUB2700:GOSUB3000:REMPLACEBETS
31GOSUB2730:D1=1:C1=1:FORI=1TONP
32IFBT(I,1)=0ORBT(I,1)+BT(1,2)=0THEND1=1:GOTO38
35GOSUB4600:GOSUB3100
37X=2+(I-1)*9:GOUB1000:DI=2
38NEXTI:CURSET12,191,3:FILL2,37,64
I checked this much on Oricutron and it is pasted perfectly. Can you send all the program ?
User avatar
Chema
Game master
Posts: 3013
Joined: Tue Jan 17, 2006 10:55 am
Location: Gijón, SPAIN
Contact:

Re: Paste from clipboard problem

Post by Chema »

I am starting to think that the problem is the program is too big. If we could grab the txt with the complete program, we could try to use the development kit to create a tap from the sources...

Dbug, it would be nice if attaching files other than images were possible :wink:
User avatar
Symoon
Archivist
Posts: 2301
Joined: Sat Jan 14, 2006 12:44 am
Location: Paris, France

Re: Paste from clipboard problem

Post by Symoon »

If it's all in TXT already, why not use a tool like TXT2BAS?

EDIT: ok, basically, that's what Chema said right above :mrgreen:
User avatar
Chema
Game master
Posts: 3013
Joined: Tue Jan 17, 2006 10:55 am
Location: Gijón, SPAIN
Contact:

Re: Paste from clipboard problem

Post by Chema »

Actually Symoon, that is a great idea. The tool he is talking about is part of the development toolchain we use. I wonder if you could just use it standalone... It is worth a try.

Download it from http://miniserve.defence-force.org/svn/ ... as2tap.exe

The documentation is here http://osdk.defence-force.org/index.php ... ge=bas2tap

So I think you should only copy the tool and your file with the program to a folder, open a command prompt and type bas2tap -b2t0 yourfile.txt result.tap (considering that the file containing your program in text is called yourfile.txt) and result.tap should be a tape image you can CLOAD into Oricutron. Once loaded, you can LIST the program or RUN it.

Hope this helps...
User avatar
iss
Wing Commander
Posts: 1637
Joined: Sat Apr 03, 2010 5:43 pm
Location: Bulgaria
Contact:

Re: Paste from clipboard problem

Post by iss »

Bas2tap will do the job!

Else Oricutron's copy and paste functions should work too. My two suggestions for you:
- try the latest unofficial build from here: http://iss.sandacite.com/oricutron/ (you can choose 32 or 64 bit).
- try to paste the listing in smaller parts i.e. select 20-30 lines copy/paste, than next 20-30 lines and so on ... :)
At end don't forget to save your program with: CSAVE"TEST" - this will create TEST.TAP in Oricutron's folder (or in the TAPES/ sub-folder).
User avatar
Symoon
Archivist
Posts: 2301
Joined: Sat Jan 14, 2006 12:44 am
Location: Paris, France

Re: Paste from clipboard problem

Post by Symoon »

I was thinking about the TXT2BAS tool here, that produces a TAP file:
http://oric.free.fr/TOOLS/
(But being old, it might only run on 32-bits systems).

Is it the same as in OSKD?
User avatar
DrBob
2nd Star Corporal
Posts: 18
Joined: Tue May 29, 2018 6:26 pm

Re: Paste from clipboard problem

Post by DrBob »

wow thanks guys. Quite a lot to soak up there.
Peacer Did you try it more than once I sometimes get a couple of hundred lines before it stops; once I only got one. Don't know exactly how to send ~1254 lines of text to you. Is it a timing problem. my machine is an ASUS z97-p with Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz, 4001 Mhz, 4 Core(s), 8 Logical Processor(s)


Chema The program was developed on a 49k oric1 in 1983 so it fits. I had a stupid thought that it could be the font but I don't see how.

Symoon Not aware of txt2bas will look it up. anything I run would have to work on w7px64 or much work will be involved in resurrecting a win98 machine.

Chema Thanks for the links Chema.

Iss I guess no one else has had the paste problem then. Your suggestion sounds a goer.

Thank you one and all for your suggestions.
Give me a fulcrum and a leaver long enough and I will move the world
User avatar
NekoNoNiaow
Flight Lieutenant
Posts: 272
Joined: Sun Jan 15, 2006 10:08 pm
Location: Montreal, Canadia

Re: Paste from clipboard problem

Post by NekoNoNiaow »

DrBob wrote: Wed May 30, 2018 7:46 pm I am new to the oricutron emulator since I found two oric1 of my son's from 1983 stored in my garage.
I love the idea that you took advantage of this discovery to experiment with the machine!
Did you already use these machines back in 1983 or are you exploring their capacities out of curiosity?

In any case, you are in good hands, happy tinkering!
ThomH
Flying Officer
Posts: 238
Joined: Thu Oct 13, 2016 9:55 pm

Re: Paste from clipboard problem

Post by ThomH »

Is attaching files restricted until you have a certain post count perhaps?

If you want to email it to me then it's the gmail account thomas.harte ; if you do so then I'll assume it's okay to attach here?

The attached DSK has the first 38 lines transcribed, though I guess that's not so helpful on its own.
Attachments
1984.dsk
(1012.75 KiB) Downloaded 347 times
Post Reply