Jump to content

russg's Photo

russg

Member Since 3 Nov 2008
OFFLINE Last Active Dec 14 2017 2:05 PM

Posts I've Made

In Topic: Help with converting a Microsoft Basic line to Atari Basic

Wed Dec 13, 2017 8:15 PM

10 CLOSE #1

20 OPEN #1,8,0,"P:"

30 FOR N =1 TO 10

40 READ A:PUT #1;A

50 NEXT N

60 CLOSE #1

100 DATA 1,2,3,4,5,ANY NUMBER TO 10 ENTRIES

 

THE DATA SHOULD BE THE ASCII CODES FOR THE CHARACTER YOU WANT TO SEND.

EG. 65 FOR A "A"

 

 

It has been a long time, so I think it is correct.

 

The 850 should recognize the "P:" device.

 

You don't want to use "LPT"s.

 

The 'A's in line 40 could be any letter, like "X"

I got around to entering my print program in Altirra.

Everything was OK, except line 40 PUT #1;A.    ....  The PUT statement needs a comma, not a semicolon. .... 40 READ A:PUT #1,A

 

Line 100 could be

100 DATA 65,66,67,68,69,70,71,72,73,74  to print "ABCDEFGHIJ"

 

You could have ATASCII strings in the DATA.

You'd need a 5 DIM A$(10):A$="F":A$(10)=A$:A$(2)=A$.  This gives a A$ inited with 10 'F's to access any part of the string, up to 10 characters.

That sequence of code comes from 'Your Atari Computer' Poole and McNiff, a way to initialize a string variable and fill it with characters.

I forget why that is necessary lots of times, initing a string variable.  After initing, you can access any part of the string eg. ? A$(2,9).

You could use the string to store stuff and access any part of it in your program.

Then 100 DATA STRING1,STR2, STR3,S4,S5,S6,S7,S8,S9,S10

You could READ A$ in the FOR NEXT loop.  Atari BASIC knows where you are in the DATA statements, doesn't repeat the STRING1.


In Topic: Help with converting a Microsoft Basic line to Atari Basic

Mon Dec 11, 2017 8:05 AM

LPRINT will still work on Atari BASIC just like it does in MS BASIC, you don't need to use OPEN/CLOSE statements to use the printer.

 

You can check out the commands here... https://www.scribd.c...1948-Rev-b-1983

 

The problem with LPRINT is it is a 'line' print, it always puts a 155 at the end.  I think a semicolon somewhere fixes that.


In Topic: Help with converting a Microsoft Basic line to Atari Basic

Mon Dec 11, 2017 8:03 AM

10 CLOSE #1

20 OPEN #1,8,0,"P:"

30 FOR N =1 TO 10

40 READ A:PUT #1;A

50 NEXT N

60 CLOSE #1

100 DATA 1,2,3,4,5,ANY NUMBER TO 10 ENTRIES

 

THE DATA SHOULD BE THE ASCII CODES FOR THE CHARACTER YOU WANT TO SEND.

EG. 65 FOR A "A"

 

 

It has been a long time, so I think it is correct.

 

The 850 should recognize the "P:" device.

 

You don't want to use "LPT"s.

 

The 'A's in line 40 could be any letter, like "X"

 

You have to load a 'driver' for the P: device.  I don't remember how.  Maybe not since it is a standard device.


In Topic: Help with converting a Microsoft Basic line to Atari Basic

Mon Dec 11, 2017 6:26 AM

10 CLOSE #1

20 OPEN #1,8,0,"P:"

30 FOR N =1 TO 10

40 READ A:PUT #1;A

50 NEXT N

60 CLOSE #1

100 DATA 1,2,3,4,5,ANY NUMBER TO 10 ENTRIES

 

THE DATA SHOULD BE THE ASCII CODES FOR THE CHARACTER YOU WANT TO SEND.

EG. 65 FOR A "A"

 

 

It has been a long time, so I think it is correct.

 

The 850 should recognize the "P:" device.

 

You don't want to use "LPT"s.

 

The 'A's in line 40 could be any letter, like "X"


In Topic: Looking for the best Atari BASIC games

Wed Oct 11, 2017 8:38 AM

Hey guys, rounding out my collection of Atari software, am looking for the best BASIC games, thus far I have:

 

* Energy Czar

* SCRAM

* Blackjack

* Goldrush

* Oilwell

* Kingdom

 

Not counting the various games by Automated Simulations, Adventure Intl, etc..

 

-Thom

Here's a game I play on emulator (altirra).  It originates from an HP41 handheld text game.

I wrote it in BASIC, and compiled it with the ABC compiler.

The .BAS file will play OK, but is a little slow if I remember.

I guess it is for old people like me.  I don't do hand-eye action games.

The game is played with two seven sided dice (?).  You roll the dice and try

to accumulate points to goal you set when you begin.  If you roll one snakeye,

you lose a turn and the program plays.  If you roll two snakeyes, you go back

to zero points.  You hit the spacebar to roll another time.  You hit any other key

to stop rolling and let the computer play.  I set goal of 250 most of the time.

Lower goal is faster game.