commas (,), you must enclose the string

 

in double quotes. It is illegal so have a

 

double quote within string data or a

 

string literal. (""BASIC"" is illegal.)

STATEMENT

SYNTAX/FUNCTION

INPUT

INPUT [!] ["prompt string literal";]

 

variable [, variable] ...

 

Requests data from the keyboard (to be

 

typed in). Each value must be separated

 

from the preceeding value by a comma (,).

 

The last value typed should be followed by

 

a carriage return. A "?" is displayed as a

 

prompt character. Only constants may be

 

typed in as a response to an INPUT state-

 

ment, such as 4.5E-3 or "CAT." If more

 

data was requested in an INPUT statement

 

than was typed in, a "??" is printed and

 

the rest of the data should be typed in. If

 

more data was typed in than was requested,

 

the warning "EXTRA IGNORED" will be

 

displayed. Strings must be input in the

 

same format as they are specified in DATA

 

statements.

 

Optionally displays a prompt string

 

("VALUE") before requesting data from

 

the keyboard. If RETURN is typed to an

 

input statement, BASIC returns to com-

 

command mode. Typing CONT after an

 

INPUT command has been interrupted

 

will cause execution to resume at the

 

INPUT statement.

 

If the optional character ! is included

 

following INPUT, then the prompts from

 

the INPUT statement and the user's entries

 

will be printed (even if the printer is

 

turned off) and displayed.

STATEMENT

SYNTAX/FUNCTION

POS

POS (expression)

 

Gives the current position of the cursor on

 

the display. The leftmost character position

 

on the display is position zero. A dummy

 

operand--0 or 1--must be used.

STATEMENT

SYNTAX/FUNCTION

PRINT

PRINT [!] expression [, expression]

 

Prints the value of expressions on the

 

display/printer. If the list of values to be

 

printed out does not end with a comma

 

(,) or a semicolon (;), then a carriage

 

return/line feed is executed after all the

 

values have been printed. Strings enclosed

 

in quotes (") may also be printed. If a

 

semicolon separates two expressions in

 

the list, their values are printed next to

 

each other. If a comma appears after an

 

expression in the list, and the print head

 

is at print position 11 or more, then a

 

carriage return/line feed is executed. If

 

the print head is before print position 11,

 

then spaces are printed until the carriage

 

is at the beginning of the next 10 column

 

field. If there is a blank string enclosed in

 

quotes, as in line 370 of the examples,

EXAMPLE

3 INPUT V,W,W2

5 INPUT "VALUE";V

15 INPUT! "VALUE";V

EXAMPLE

260 PRINT POS(I)

EXAMPLE

360 PRINT X,Y;Z

370 PRINT " "

380 PRINT X,Y;

390 PRINT "VALUE IS";A

400 PRINT A2,B,

Page 243
Image 243
Apple II Statement SYNTAX/FUNCTION Input, Statement SYNTAX/FUNCTION POS, Statement SYNTAX/FUNCTION Print, Print Value ISA

II specifications

The Apple II, launched in April 1977, was one of the first highly successful mass-produced microcomputer products. It marked a significant leap in personal computing, setting standards for future developments in the industry. Created by Steve Wozniak and Steve Jobs, the Apple II differentiated itself with its user-friendly design, appealing aesthetics, and robust capabilities.

One of the standout features of the Apple II was its open architecture, which allowed users to expand and enhance the computer's functionality. This design enabled hundreds of third-party hardware and software developers to contribute to its ecosystem, resulting in an array of peripherals, including printers, modems, and storage devices. The Apple II utilized a MOS Technology 6502 microprocessor running at a clock speed of 1 MHz. Initially equipped with 4 KB of RAM, the machine could be expanded to 48 KB, accommodating more complex applications and programs.

The Apple II was also notable for its colorful graphics. It was one of the first computers to support color display, offering a 6-color palette with a resolution of 280x192 pixels in 16 colors when using its Color Graphics Card. This feature significantly enhanced the visual appeal of games and educational software developed for the platform, making computing more accessible and entertaining for various audiences.

Apple's commitment to user experience was evident in the design of the machine. It featured an integrated keyboard and a plastic case, which was both durable and visually appealing. The self-contained design included drive bays for floppy disk drives, allowing for quicker data access than traditional tape drives. It also supported audio output, enabling sound effects and music, a novelty at the time.

The introduction of the Apple DOS operating system further underscored the machine's capabilities. DOS streamlined file management and made it easier for users to navigate and manage their data. The combination of hardware and software positioned the Apple II as an educational tool and a gaming platform, fostering a vibrant software ecosystem.

The Apple II family continued to evolve, with variations like the Apple II+, IIe, and IIgs being introduced over the years. These iterations brought enhancements in memory, processing power, and graphics capabilities. The legacy of the Apple II endures, not only as a foundational product in personal computing but also as a symbol of innovation that paved the way for future advancements in technology. Its impact is still felt today, as it inspired countless developers and shaped the trajectory of the computer industry.