Jump to content
IGNORED

Copying text from a BASIC listing to the PC


Recommended Posts

Hmm, can't you LIST it to one of the H: devices in the emulator? Should give you a text file. One of them even handles ATASCII to ASCII conversion I think. Sorry don't have a windows machine here to try it but I've done it in the past. How about printer support in the emulator? Doesn't that create txt files?

Link to comment
Share on other sites

Hmm, can't you LIST it to one of the H: devices in the emulator? Should give you a text file. One of them even handles ATASCII to ASCII conversion I think. Sorry don't have a windows machine here to try it but I've done it in the past. How about printer support in the emulator? Doesn't that create txt files?

Thanks spookt, I've just tried this by enabling "H: Patch for hard disk access" (atari800win+) and then listing the file using LIST "H:TEST"

It has produced a PC file but the lines are not truncated

e.g.

10 REM

20 ? "HELLO"

Becomes:

10 REM ›20 ? "HELLO"›

 

[edit just seen other post will give that a try, thanks Rybags

The H6 method works fine. Thanks again. Jason

10 REM

20 ? "WASUUP"

Edited by therealbountybob
Link to comment
Share on other sites

Hmm, can't you LIST it to one of the H: devices in the emulator? Should give you a text file. One of them even handles ATASCII to ASCII conversion I think. Sorry don't have a windows machine here to try it but I've done it in the past. How about printer support in the emulator? Doesn't that create txt files?

Thanks spookt, I've just tried this by enabling "H: Patch for hard disk access" (atari800win+) and then listing the file using LIST "H:TEST"

It has produced a PC file but the lines are not truncated

e.g.

10 REM

20 ? "HELLO"

Becomes:

10 REM ›20 ? "HELLO"›

 

[edit just seen other post will give that a try, thanks Rybags

The H6 method works fine. Thanks again. Jason

10 REM

20 ? "WASUUP"

 

It converted the "HELLO" to "WASUUP". PCs prefer WASUUP.

  • Like 1
Link to comment
Share on other sites

Hmm, can't you LIST it to one of the H: devices in the emulator? Should give you a text file. One of them even handles ATASCII to ASCII conversion I think. Sorry don't have a windows machine here to try it but I've done it in the past. How about printer support in the emulator? Doesn't that create txt files?

Thanks spookt, I've just tried this by enabling "H: Patch for hard disk access" (atari800win+) and then listing the file using LIST "H:TEST"

It has produced a PC file but the lines are not truncated

e.g.

10 REM

20 ? "HELLO"

Becomes:

10 REM ›20 ? "HELLO"›

 

[edit just seen other post will give that a try, thanks Rybags

The H6 method works fine. Thanks again. Jason

10 REM

20 ? "WASUUP"

 

It converted the "HELLO" to "WASUUP". PCs prefer WASUUP.

Aaaahh :idea:

Link to comment
Share on other sites

  • 4 months later...
There is a program called MemoPad (at joyfulcoder.net) which will read and convert text files between ascii/atascii. I believe this will serve your purposes quite well!

 

Thank you for the MemoPad plug. MemoPad is actually on my .com site. The full URL is joyfulcoder.com/memopad/

I was going to ask how to take some basic code listed in a post and transfer this to the Atari but I remembered this thread; I have just used the memopad program above and convered this nicely :)

 

Great work Joyful coder, here's a long overdue :thumbsup:

Link to comment
Share on other sites

I don't know which "emulator" you are using. But, as rybags said, you can set up the "P:" device (printer) to output directly to notepad, or whatever. As a matter of fact, I use this when just "listing" any file on the Atari in emulation. You get a better view of your file.

 

The nice thing about it is, you never have to actually save the output at all. It opens up directly in notepad. You can copy and paste from it and close it without a trace.

 

Here's what the setting looks like in Atari800WinPLus (Select Menu: Atari -> Settings):

 

post-6369-125964888431_thumb.png

 

After that's been setup, you can just type the following command (or any relevant variation) to shoot it into notepad:

 

L. "p:

Have Fun...

Edited by MrFish
Link to comment
Share on other sites

Hmm, can't you LIST it to one of the H: devices in the emulator? Should give you a text file. One of them even handles ATASCII to ASCII conversion I think. Sorry don't have a windows machine here to try it but I've done it in the past. How about printer support in the emulator? Doesn't that create txt files?

Thanks spookt, I've just tried this by enabling "H: Patch for hard disk access" (atari800win+) and then listing the file using LIST "H:TEST"

It has produced a PC file but the lines are not truncated

e.g.

10 REM

20 ? "HELLO"

Becomes:

10 REM ›20 ? "HELLO"›

 

[edit just seen other post will give that a try, thanks Rybags

The H6 method works fine. Thanks again. Jason

10 REM

20 ? "WASUUP"

 

It converted the "HELLO" to "WASUUP". PCs prefer WASUUP.

Aaaahh :idea:

 

What about doing the reverse-- suppose you have the following in notepad on PC:

 

10 ?"WASSUUP is bad English"

20 REM GOTO 10

 

and you want to get it into Atari. ENTER "C:" works after you replace CR/LF with 155 but any faster method for BASIC?

Link to comment
Share on other sites

 

What about doing the reverse-- suppose you have the following in notepad on PC:

 

10 ?"WASSUUP is bad English"

20 REM GOTO 10

 

and you want to get it into Atari. ENTER "C:" works after you replace CR/LF with 155 but any faster method for BASIC?

Not that I know of - when coding on the real machine (which I rarely do these days), I use the LIST / ENTER method. Two possible solutions - 1, write a BASIC tokenizer on the PC. 2 - you could always ENTER the program on the emulator, save it, then LOAD it on the real machine. I doubt that would really save time though.

 

Stephen Anderson

Link to comment
Share on other sites

Very Easy. Just use the ConTEXT programmer's file editor with Memopad.

 

You can assign the whole function of EOL conversion directly to a single Function-Key press in ConTEXT. The function Key launches Memopad & passes it the file currently being edited in the ConTEXT editor.

 

Looks like this:

 

post-7682-12597658999_thumb.jpg

 

Edit your memopad.ini file to open the Memopad window at the screen co-ords that you want.

 

I have an ATARI BASIC automatic code syntax highlighter that I made for ConTEXT. I'll upload it later if anyone wants it.

 

In ConTEXT, under Environment Options --> Execute Keys:

 

Setup a Function Key for BAS & LST, pass %n to Memopad.

 

Does the whole thing automagically. If you have any questions, just ask.

Edited by UNIXcoffee928
Link to comment
Share on other sites

Very Easy. Just use the  ConTEXT programmer's file editor with Memopad.

Ok but how do you manage the "special" ATASCII chars ?

 

I have the same problem: I have a lot of old newspapers full of basic programms i'd like to transfer to my A8.

 

Since i'm lazy :ponder: , that what i do:

 

- Scan then OCR the programm to a .txt

- Convert the .txt to ATASCII with atari800win

- Spend my nights to enter the special chars with atari800win :roll:

But it's time consumming and not really easy...

 

MemoPad is a good piece of software, it just needs the ability to edit files...

 

In fact, the Atari scene is really missing a good programming tool, something like the Commodore 64 .prg Generator

 

Screen%20codes.jpg

 

Any volonteer ? :D

Link to comment
Share on other sites

Here is the highlighter file for ATARI BASIC:

 

ATARI-BASIC.zip

 

Keywords #1 contains COMMANDS

 

Keywords #2 contains FUNCTIONS

 

Keywords #3 contains OPERATORS

 

 

I built the Highlighter file from the table in De Re Atari, located here:

 

http://www.atariarch...ere/chapt10.php

 

 

You can directly edit the highlighter file, for major tweaks (BASIC XE, etc), otherwise, for just changing the colors, it's fastest to do it directly through the palette editor in ConTEXT, itself.

 

You may want to fiddle with "Keywords3", to get it to correctly override the built-in Operator finder. I haven't gotten around to it. If you can't get it to override, just move STEP & THEN into the Keywords1 commands, and delete the line of data in Keywords3, to let it handle operators normally (as native operators).

 

Glad that you like ConTEXT! After I got turned on to it, it became my Primary Windows Editor, replacing the aged "Programmer's File Editor" (PFE32), which was my former favorite. (PFE32 is still good for dealing with GIGANTAMONGOUS files, despite it's sore-thumb of missing CTRL-A for selecting all). 

 

ConTEXT is wonderful, also, because of it's unlimited tabbing feature. You can have multiple files open in new tabs, and re-arrange the tabs. This is particularly wonderful, when you set ConTEXT as your NOTEPAD.EXE replacement... the end effect, when you print with P: in an Atari Emulator, is that each file printed WILL AUTOMATICALLY APPEAR AS A NEW TAB in ConTEXT!!!

 

Another great feature is that ConTEXT supports VERTICAL SELECTION! That's right, hold the ALT key, and select columns. This feature lets you manipulate text VERY quickly, and I hadn't seen it anywhere since the old-days in CygnusEd for the Amiga (which was, and still is one of the fastest text editors ever devised.).

 

That should keep you busy for a while. ConTEXT is an editor that you can live in, like emacs.

 

I will also recommend installing the Digital Mars C Compiler. This will allow you to compile standard ANSI code right in ConTEXT.

 

As for managing Atari Special Characters... It is a tough one... the fastest thing that I could tell you is to write a program on the Atari that changes the characters to their CHR$ equivalent. The program would read a *.BAS file, and parse it looking for, and replacing the special characters, then write a separate output file with the contents changed. You will run into a problem with the Atari's fixed line length for statements, though, particularly on those long lines filled with special characters, in magazine programs.

 

There is a perl script that will de-tokenize an Atari BASIC file. (A) right way to do the above would be to write a c program use that perl script to detokenize the BASIC file, then perform the data manipulation described above, right on a modern machine. A workaround for the fixed line-length problem would be to have the program create sequential files, like libraries, and insert file read commands in the lines looking for the special characters. However, this will result in disk accesses, when your BASIC program runs.

 

I'm sure that there are other right ways to do it. some being more right than others. The biggest problem IS that ATASCII just simply is not ASCII, and it has very specific codes that cause conflicts with standard ASCII... this is why it makes sense to me to just toss the traditional use of special characters in BASIC, and, instead, use the proper control-codes, for all future programs, and for lifecycle maintenance of legacy programs. That's just my take on things, though.

 

OK, have fun with ConTEXT!

Link to comment
Share on other sites

Fuu...I think for the best editing is Pixlator :thumbsup:

 

http://www.mipro-online.de/waseo/ATARI_XL_XE/atari_xl_xe.html

 

For transfer, there is ATR PlungIn for Total Commander

 

http://gury.atari8.info/pc_files.htm

 

And other way is Atadim.

 

1.In basic simply save the program as .LST ( LIST"D:PROGR.LST" )

2. Then via Total Commander with plugin open ATR file, copy the PROGR.LST to pc harddisk

3. Load PROGR.LST to the Pixlator, in this editor you can see the Atari SYMBOLS!... or is there any oher and better editor?

 

Paladina :D

Link to comment
Share on other sites

Fuu...I think for the best editing is Pixlator :thumbsup:

 

http://www.mipro-onl...tari_xl_xe.html

 

For transfer, there is ATR PlungIn for Total Commander

 

http://gury.atari8.info/pc_files.htm

 

And other way is Atadim.

 

 

Hmmm... I had never seen this before (Pixlator). Thanks for sharing paladina. This has some useful features.

 

I never cared too much for Total Commander. Although, functionally I guess it works well.

 

Atadim is great. My only complaint is that it is "drag-n-drop" only.

Edited by MrFish
Link to comment
Share on other sites

<SNIP>

Atadim is great. My only complaint is that it is "drag-n-drop" only.

I have started using the 'Send To' feature of Windows Explorer. Opens Atadim with the ATR that you 'Send To' it.

 

Yea, I agree it would be nice if Atadim had a open file dialogue 'Button'.icon_twisted.gif

 

Yea... you can also use the "Open With" funtion to open directly. Once you open a single ATR from "Open with", using Atadim, it will always appear on the "Open with" context menu. Only thing is, I don't always to want dig a file out of it's multi-nested location so I can right click on it. I can easily get at them from a file dialog by having a "custom places bar" set up using TweakUI.

Edited by MrFish
Link to comment
Share on other sites

 

- Convert the .txt to ATASCII with atari800win

 

 

I have found a problem with the atari800win+ ASCI-ATASCI converter.

IF the CR-LF combo is split on a 4K boundry, It doesn't get converted.

ie $0D (CR) is at $1FFF and $0A (LF) is at $2000.

Causes al sorts of problems when files don't assemble properly in Mac65

 

James

Link to comment
Share on other sites

 

- Convert the .txt to ATASCII with atari800win

 

 

I have found a problem with the atari800win+ ASCI-ATASCI converter.

IF the CR-LF combo is split on a 4K boundry, It doesn't get converted.

ie $0D (CR) is at $1FFF and $0A (LF) is at $2000.

Causes al sorts of problems when files don't assemble properly in Mac65

 

James

Interesting - it has the same "feature" as the Antic display RAM counters :) Damn 12-bit counters.

 

Stephen Anderson

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...