Jump to content
IGNORED

AppleWin - Outputting to txt file rather then a printer?


Snafu-1982

Recommended Posts

I'm just starting to use AppleWin, and am finding it a great emulator for the old Apple IIe computer my father had back in the early 80s. I've got a pile of old discs which I'm going to get converted to .dsk images by someone in new zealand.

When I get the disks converted, I'll be very kean to look at all my old programs that I used to do in basic. Unfortunately the limited screen size in the AppleWin (or for that matter on the old apple) would make viewing the entire program listing somewhat tricky. If it's a long program, it will just scroll right through to the end.

What I used to do in the olden days was kick the apple IIe into printer mode by entering a statement like print chr$ (12), then the printer would just start. The statement above could be completely wrong, it's been a good 28 years since I used an apple. I was amazed that I could still type in a FOR NEXT program the other day for the fun of it.

So anyway is there away of kicking the AppleWin into printer mode, but rather then a printer, it would place the outputting material into a .txt file that I can open in notepad on my windows XP system?

Link to comment
Share on other sites

You mean like so?

 

]LIST

10 REM -- DOS 3.3 HELLO
20 REM
30 TEXT : PRINT
40 HOME
50 PRINT "DOS VERSION 3.3 08/25/80"
60 PRINT : PRINT "APPLE II PLUS OR ROMCARD SYSTEM MASTER"
70 REM
80 REM --POKE LANGUAGE CARD FINDER
90 POKE 768,0: POKE 769,173: POKE 770,0: POKE 771,224: POKE 772,72: POKE 773,173: POKE 774,129: POKE 775,192: POKE 776,104:
95 POKE 777,72: POKE 778,205: POKE 779,0: POKE 780,224: POKE 781,208: POKE 782,35: POKE 783,173: POKE 784,131: POKE 785,192:
100 POKE 786,173: POKE 787,131: POKE 788,192: POKE 789,169: POKE 790,165: POKE 791,141: POKE 792,0: POKE 793,208: POKE 794,205:
105 POKE 795,0: POKE 796,208: POKE 797,208: POKE 798,19: POKE 799,74: POKE 800,141: POKE 801,0: POKE 802,208: POKE 803,205:
110 POKE 804,0: POKE 805,208: POKE 806,208: POKE 807,10: POKE 808,173: POKE 809,129: POKE 810,192: POKE 811,173: POKE 812,129:
115 POKE 813,192: POKE 814,169: POKE 815,1: POKE 816,208: POKE 817,2: POKE 818,169: POKE 819,0: POKE 820,141: POKE 821,0:
120 POKE 822,3: POKE 823,104: POKE 824,205: POKE 825,0: POKE 826,224: POKE 827,240: POKE 828,3: POKE 829,173: POKE 830,128:
125 POKE 831,192: POKE 832,96:
155 CALL 769
160 IF PEEK (768) < > 1 THEN 250
170 REM
180 REM --IF THERE, LOAD INTG AND PA#1
190 REM
200 VTAB 10: PRINT "(LOADING INTEGER INTO LANGUAGE CARD)"
210 PRINT "BLOAD INTBASIC,A$D000"
220 REM --WRITE PROTECT THE CARD
230 A = PEEK ( - 16254): REM $C082
240 END
250 REM
260 REM --NO CARD OR CAN'T RELOAD
270 REM
280 IF PEEK (768) = 0 THEN END
290 PRINT : PRINT "...LANGUAGE CARD CANNOT BE RELOADED": PRINT " UNTIL THE SYSTEM IS REBOOTED..."
300 END

The Advanced configuration tab is your friend as are the included help file and the following AppleSoft commands.

<Ctrl-S>

<Space>

PR#1

PR#3

PR#0

POKE 33,33

LIST

LIST x,x

LIST x,

LIST ,x

Edited by Keatah
Link to comment
Share on other sites

I smell a noob. Instead of being the prototypical asshole I decided to be generous for a moment. Read.

 

To make a listing like I did, you need to set up through the Advanced tab, it's all self explanatory pretty much.

 

Then you load your BASIC program.

 

Then you redirect to the simulated printer in slot-1 via Applesoft Command PR#1

 

If you don't like the "short and stubby format" you enter POKE 33,33 before the PR#1, this has the effect of nulling the early linefeeds. Read some books to find out why it works. This will temporarily garble the screen a little. It does this on the real hardware too.

 

Then you type LIST

 

Then you open the text file. And there you have it.

 

To recap

 

LOAD MYPROGRAM

POKE 33,33

PR#1

LIST

.

.

.

.

finished!

 

Poke 33,40 gets you back to normal viewing, or a simulated <ctrl-reset> will also work.

 

Be aware the virtual hardcopy text file output will be cleared with a PR#0. In the real Apple this turns off the printer redirect. In the emulator it wipes the file.

 

There is way to copy/paste the visible text on the emulator screen into the clipboard, <fn> + <ctrl> <PRINT SCREEN> on the PC side.

 

You may also substitute PR#3 in place of PR#1. This has the added benefit of putting the emulated Apple II into 80-column mode. You may then do a PR#1 and LIST.

 

Also while viewing a long listing you may use <ctrl-s> to pause the listing, press any key to resume scrolling.

 

Some variants of the LIST command:

LIST the entire program

LIST x,x selected range of line numbers

LIST ,x selected range of line numbers beginning at 0 and ending at x

LIST x, selected range of line numbers beginning at x and ending at the last line

 

Another way, but bypassing Applewin entirely is to use Ciderpress http://ciderpress.sourceforge.net/

And if you're so inclined you may transfer disks back and forth between the PC<->Apple and make your own disk images via ADTpro http://adtpro.sourceforge.net/

Both have great tutorials!

 

Essential tools to get on the Apple II would be Copy II+ v8.4 and Copy II+ 9.1 (3-disk version)

ftp://ftp.apple.asimov.com/pub/apple_II/images/disk_utils/copy_ii/

ftp://ftp.apple.asimov.com/pub/apple_II/documentation/applications/misc/

 

..that and one of the System Master disks ftp://ftp.apple.asimov.com/pub/apple_II/images/masters/

The first DOS 3.3 disks will do nicely. And a Pro-DOS disk for good measure.

 

This should be all you'll ever need. You wanna do anything more you're on your own.

 

END

  • Like 1
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...