Change line 30 to be 30 A(I) = I
50 FOR I = 0 TO 20
60 PRINT A(I)
70 NEXT I
--
You received this message because you are subscribed to the Google Groups "Altair-Duino" group.
To unsubscribe from this group and stop receiving emails from it, send an email to altair-duino...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/altair-duino/ef8683c3-e4e6-4860-998a-f328a3e74912n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Altair-Duino" group.
To unsubscribe from this group and stop receiving emails from it, send an email to altair-duino...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/altair-duino/3cc31bdf-f9c2-4bb9-8ea0-f36058a9ea98n%40googlegroups.com.

===
That book is for people that don't know how to do anything. The book starts with how to use the PRINT statement, I'm into page 25 and the book is still showing how to use the PRINT statement. At this rate the book is too small as it will need a few thousand pages to cover all the BASIC statements.
===No you should actually read those areas you find simplistic because the print statement in basic is much more powerful then you think it is. there is a reason why its so extensive and while much of it might be known to you there are functions it can do that you most likely have never used, understood or have seen before.in order to follow the author of a book you have to take it from the beginning to understand his way of teaching/explaining. much of it might be a chore to get through but you should at least remind yourself of it because you will be coming back to it later.example is the MS Mbasic-80 manual:The Microsoft Mbasic-80 manual is actually really good;The problem is you have to understand what the hell they are talking about before you even read it.In fact just about every manual from the era of early computing into the early 1980s comes from the standpoint of the user already knows what is going on and the manual just needs a little guidance.This was because its from a time when the people playing around with home micro computers were grad students, or already highly skilled in the field of computers.The computers most of us were exposed to as kids came after this time when they were translating things so a layman could understand it.today you don't need any type of real manual or guidance to use a computer or application because its been designed that way.because of how GOOGLE works its impossible to really search for early 1980s Basic and its examples.what you need to do is search for GWBASIC and QBASIC examples. that will lead you to sites like PETE'S Qbasic site.GWbasic and MBasic 5.0+ are basically the same, minus the GPL functions you can adapt GWBASIC code back to Mbasic and you can adapt Qbasic code back to Mbasic when you use it as Pseudo code.that gives you enough combined with the MBasic-80 manual to port basic programs, and questions and more examples come from sites like Pete's you will find.now there are books for GWbasic that are a great reference :Programming in GW-BASIC by P. K. McBride (Author)these books again start off for the beginner but quickly advance through complex topics.now your thinking what in the world does IBM graphics and GWbasic have to do with a 1977 Altair that does not have a graphics card (unless you want to bring the Dazzler into this)?its simply this: the ASCII Terminal card gives you most of the graphics functions of IBM BASIC 1.0 and BASIC 2.0sending serial characters is really no different then sending instructions to some Nvidia Graphics card on a modern PC.once you understand you can express an advanced 3d graphics shape as a series of String characters it becomes child's playjust like when your sending VT100 escape codes to allow a cursor to move around. its the terminal display itself and what it can do that gives the computer a lot of power.that little graphics patch i made for the terminal I/O massively increases the capabilities of the ASCII terminal much like a TEK terminal except the ASCII Terminal is WAY WAY Faster and you can even go to a ESP32 terminal emulator adding full color display.and it all comes back to the amazing functions of the basic PRINT command, so read through and refresh your memory its actually has merit.
yes and the code provided is the framework.its creating a Dimensioned array of 21 integers because it starts from zero unless you tell it all arrays must start from 1 which is OPTION BASE.next it is reading information from the data statement that would be later in the program not shown.thus filling Array A 0 to 20 with data integer information.so it is filling the arrayfrom there you could read back the information by accessing the loaded array.STUFF=A(1)print stuffor print A(15) would output the data stored at that point in the array.So if i added to that example100 data 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,2110 DIM A(20),B(5)
20 FOR I=0 TO 20
30 READ A(I)
40 NEXT I
100 DATA 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21then ran the program and typed PRINT A(20) by hand it would return 21because its been loaded into the array at line 30 inside the loop that filled in the array with data.a two dimensional array is DIM A(20,20)a three DIM A(20,20,20)thus i could access a 3 dimensional array as print A(1,4,10)if you wanted 2 arraysDIM A(20,20,20),B(10)the manual is good, it not easy to understand given; because you don't know what your looking at.In this case you would have to look up the READ Section 2.54 and then DATA to understand everything.now there are ton of different version of the MBASIC 5.XX manual some more complete then others, some have all the the appendix some do not, some have the additional BASCOM manual some have the additional Linker manual and might have the M80 compiler as well.there are a few versions of the manual that cover advanced disk functions and lay out a really nice simple inventory program that a store in the early 1980s would of killed for.there is also some accounting programs buried in some manuals that could be adapted for complex book keeping and formatted output via the printer.However they are all the same on explaining the functions and commands as you have seen.What will happen is you will learn by examples, find a beginner book then go back to the MBASIC manual and have more of an understanding what is going on, then you realize it was telling you same information.these early manuals all expect the person to have a understanding of what is going on and they skip over the introduction and get right to it.
To view this discussion on the web visit https://groups.google.com/d/msgid/altair-duino/f7702d36-2fc4-4cd3-8b01-a473a7bea207n%40googlegroups.com.