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
Symoon
Archivist
Posts: 2301
Joined: Sat Jan 14, 2006 12:44 am
Location: Paris, France

Re: Paste from clipboard problem

Post by Symoon »

Anyway if you're stuck, post your WAV file somewhere and I'll convert it (or at least try to ;) )
Prefereably a fast speed version.
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 »

DrBob wrote: Thu May 31, 2018 2:23 am 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.
I got that, what I was suggesting is that the data to paste into Oricutron is maybe too much, overflowing some internal buffer or something along those lines (an emulator bug, in this case). Pasting small programs works ok, but yours is quite long.

It is true that you can upload files to this forum, so I am not sure why you can't. You could also try to compress your text file and then attach it..
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 ThomH,
I have sent file.
Give me a fulcrum and a leaver long enough and I will move the world
User avatar
DrBob
2nd Star Corporal
Posts: 18
Joined: Tue May 29, 2018 6:26 pm

Re: Paste from clipboard problem

Post by DrBob »

Iss said- try the latest unofficial build from here: http://iss.sandacite.com/oricutron/ (you can choose 32 or 64 bit).
Tried that. it got the furthest so far but no cigar. Screen grab below. Note that the text window overlapped the monitor and the monitor window was not refreshed when moved until I went to F1 and 'back'.
monitor01.JPG
monitor02.JPG
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 »

Attached is:

(i) the listing* (zipped);
(ii) my attempt quickly to make a DSK of it.

I get an out-of-memory error when running the DSK version, so something has gone awry. I need to run off to work now so I won't even take a moment to speculate. I'm sure somebody else will be able to produce a TAP or provide some insight such as that the Oric 1 has more available memory than the Atmos, or that Sedoric affects free space for BASIC.

* line 8070 still had a 'got0' in it so I switched that to 'goto'.
Attachments
Blackjack.dsk
(1012.75 KiB) Downloaded 363 times
Blackjack.zip
(7.5 KiB) Downloaded 395 times
User avatar
DrBob
2nd Star Corporal
Posts: 18
Joined: Tue May 29, 2018 6:26 pm

Re: Paste from clipboard problem

Post by DrBob »

Iss said- 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 ... :)

It didn't seem to want to let me paste it in bits. HOWEVER, F3 and then F1 started it entering from the error. So I got all the text in, all be it with syntax error or line too long. I listed what was entered after and it was all there. Only needs patching for the errors and JAMs?
Give me a fulcrum and a leaver long enough and I will move the world
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 »

Okay I got it guys.

Problem is there are OCR errors. It seems our tools cannot handle some of them correctly. I tried bas2tap and generated a cloadable tap file, but the BASIC was corrupt because the line numbering was out of order. Due to OCR errors, that is. For instance:

Code: Select all

2010 whatever
2820 whatever
2030 whatever
That upsets the tool and the final BASIC program is wrong.

The syntax is bas2tap -b2t0 Blackjack.txt blackjack.tap

I corrected most of them, and also some other typos I found, and now the program can be CLOADED and run. I attach it here:
Blackjack-chema.zip
(15.15 KiB) Downloaded 380 times

Just tried it again and there is yet another error in 2800:

Code: Select all

FORK=0TO3:F0RI=1T04:F0RJ=1T013:...
with zeros instead of Os in the second and third FOR instructions.

I guess a lot of bug hunting should be done yet, but that is a start :)
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've been trying to clean the code up, but there are soooo many errors, that I gave up.

This is my last attempt. It runs out of DATAs in 2555, so some are missing from the data list above that line. I had to correct a few values, so probably something is wrong (a missing comma or something would be enough). I added an extra 2557 DATA line with some dummy values so the program continues. It asks for the number of players and directly tells you that game is over (you have no money).

Needs a lot of debugging... maybe converting the WAV version is a better way to go.
Blackjack-chemav2.zip
(15.01 KiB) Downloaded 394 times
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 »

Yep, very bad OCR!
Attached is my version of the fixes (listing + tap).
Actually it the same as Chema's, but I'm posting it because I used exactly the same line number 2557 to add missing DATA - lucky coincidence ... :P
Attachments
Blackjack-fix.zip
(15.53 KiB) Downloaded 370 times
User avatar
ibisum
Wing Commander
Posts: 1643
Joined: Fri Apr 03, 2009 8:56 am
Location: Vienna, Austria
Contact:

Re: Paste from clipboard problem

Post by ibisum »

This may not be of any use to the situation, but I recently ran into a few times with bas2tap that it produces corrupt output if the line numbers are too variant, or indeed big, and I solved the problem by using an online Basic-listing renumbering tool, which 'normalised' the line numbers throughout the listing, updating gosubs and whatnot .. a few times, until I did this, bas2tap produced bad listings on a real Oric...
User avatar
DrBob
2nd Star Corporal
Posts: 18
Joined: Tue May 29, 2018 6:26 pm

Re: Paste from clipboard problem

Post by DrBob »

Sorry folks to give you all this trouble. I don't want to waste your time unnecessarily. Your efforts are much appreciated.
I got it in pasted in by a fiddle,see post above; same file I emailed. Don't blame the OCR it was done from a printed listing on a 1984 dot matrix printer. I think it did quite well. I am trying to debug it at the moment. Getting out of memory error as I write!!!
I can assure you it did work in 1983.....but the ravages of time.....
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 »

No trouble! Preservation and the fun therein is why communities like this exist.
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 »

No trouble at all! It is nice to have these challenges from time to time :) You've probably spotted a bug in Oricutron, a problem with one of the tools in OSDK and preserved a program (more or less… some debugging is still necessary). And I had fun for some time trying to figure out what was happening.

As TomH said, this is what makes a community alive!
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 »

No trouble indeed: I did nothing :mrgreen:
User avatar
ibisum
Wing Commander
Posts: 1643
Joined: Fri Apr 03, 2009 8:56 am
Location: Vienna, Austria
Contact:

Re: Paste from clipboard problem

Post by ibisum »

Honestly this kind of trouble is the fun kind!
Post Reply