EasyManuals Logo

Atari 65XE User Manual

Atari 65XE
135 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #88 background imageLoading...
Page #88 background image
83
HIGHER MATH
Your ATARI Computer is a fancy calculator. When you enter two
numbers into the program below, the computer will tell you their
greatest common denominator. For example, if you enter 690911 and
11214017, you'll soon discover that their greatest common
denominator is 53147.
10 ? CHR$(125) :? "Enter two numbers. Press Return after
each entry. "
20 INPUT N1,N2
30 GOSUB 90
40 ? "Their GCD is "; :? AN
50 POKE 752,1:POSITION 10,10: ? "Press Start to
continue."
60 IF PEEK(53279)<>6 THEN GOTO 60
78 POKE 752,0:? CHR$(125) :GOTO 10
80 REM ****SUBROUTINE****
90 AN=0:POKE 195,0:TRAP 130: M=(N1>=N2)*N1+(N2>N1)*N2:
N=(M=N1)*N2+(M=N2)*N1
100 IF INT(N1)<>N1 OR INT (N2)<>N2 THEN RETURN
110 P=M-INT (M/N)*N:M=N:N=P
120 IF P<>0 THEN GOTO 110
130 AN=M*(PEEK(195)=0):RETURN

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Atari 65XE and is the answer not in the manual?

Atari 65XE Specifications

General IconGeneral
CPUMOS Technology 6502C
CPU Speed1.79 MHz (NTSC) / 1.77 MHz (PAL)
RAM64 KB
ROM16 KB
Release Year1985
GraphicsANTIC and GTIA
Display Resolution320x192
SoundPOKEY sound chip, 4 channels
Operating SystemAtari BASIC
PortsJoystick, Cartridge
StorageExternal 5.25" floppy disk drive

Related product manuals