Galaksija BASIC
   HOME

TheInfoList



OR:

Galaksija BASIC was the
BASIC BASIC (Beginners' All-purpose Symbolic Instruction Code) is a family of general-purpose, high-level programming languages designed for ease of use. The original version was created by John G. Kemeny and Thomas E. Kurtz at Dartmouth College ...
interpreter of the Galaksija build-it-yourself home computer from
Yugoslavia Yugoslavia (; sh-Latn-Cyrl, separator=" / ", Jugoslavija, Југославија ; sl, Jugoslavija ; mk, Југославија ;; rup, Iugoslavia; hu, Jugoszlávia; rue, label=Pannonian Rusyn, Югославия, translit=Juhoslavija ...
. While being partially based on code taken from
TRS-80 The TRS-80 Micro Computer System (TRS-80, later renamed the Model I to distinguish it from successors) is a desktop microcomputer launched in 1977 and sold by Tandy Corporation through their Radio Shack stores. The name is an abbreviation of '' ...
Level 1 BASIC, which the creator believed to have been a
Microsoft BASIC Microsoft BASIC is the foundation software product of the Microsoft company and evolved into a line of BASIC interpreters and compiler(s) adapted for many different microcomputers. It first appeared in 1975 as Altair BASIC, which was the first ve ...
,Antonić, Voja (creator)
1983 - Galaksija
/ref> the extensive modifications of Galaksija BASIC—such as to include rudimentary
array An array is a systematic arrangement of similar objects, usually in rows and columns. Things called an array include: {{TOC right Music * In twelve-tone and serial composition, the presentation of simultaneous twelve-tone sets such that the ...
support, video generation code (as the
CPU A central processing unit (CPU), also called a central processor, main processor or just processor, is the electronic circuitry that executes instructions comprising a computer program. The CPU performs basic arithmetic, logic, controlling, and ...
itself did it in absence of dedicated video circuitry) and generally improvements to the
programming language A programming language is a system of notation for writing computer programs. Most programming languages are text-based formal languages, but they may also be graphical. They are a kind of computer language. The description of a programming ...
—is said to have left not much more than flow-control and
floating point In computing, floating-point arithmetic (FP) is arithmetic that represents real numbers approximately, using an integer with a fixed precision, called the significand, scaled by an integer exponent of a fixed base. For example, 12.345 can be ...
code remaining from the original. The core implementation of the interpreter was fully contained in the 4 
KiB The byte is a unit of digital information that most commonly consists of eight bits. Historically, the byte was the number of bits used to encode a single character of text in a computer and for this reason it is the smallest addressable unit ...
ROM "A" or "1". The computer's original
mainboard A motherboard (also called mainboard, main circuit board, mb, mboard, backplane board, base board, system board, logic board (only in Apple computers) or mobo) is the main printed circuit board (PCB) in general-purpose computers and other expand ...
had a reserved slot for an extension ROM "B" or "2" that added more commands and features such as a built-in
Zilog Z80 The Z80 is an 8-bit microprocessor introduced by Zilog as the startup company's first product. The Z80 was conceived by Federico Faggin in late 1974 and developed by him and his 11 employees starting in early 1975. The first working samples wer ...
assembler Assembler may refer to: Arts and media * Nobukazu Takemura, avant-garde electronic musician, stage name Assembler * Assemblers, a fictional race in the ''Star Wars'' universe * Assemblers, an alternative name of the superhero group Champions of A ...
.


ROM "A"/"1" symbols and keywords

The core implementation, in ROM "A" or "1", contained 3 special symbols and 32 keywords: ; : begins a
comment Comment may refer to: * Comment (linguistics) or rheme, that which is said about the topic (theme) of a sentence * Bernard Comment (born 1960), Swiss writer and publisher Computing * Comment (computer programming), explanatory text or informat ...
(equivalent of standard BASIC REM command) ; : Equivalent of standard BASIC DATA statement ; : prefix for hex numbers ; : Allocates an array of strings, like DIM, but can allocate only array with name A$ ; : serves as
PEEK Polyether ether ketone (PEEK) is a colourless organic thermoplastic polymer in the polyaryletherketone (PAEK) family, used in engineering applications. The polymer was first developed in November 1978, later being introduced to the market by Vic ...
when used as a function (e.g. PRINT BYTE(11123)) and
POKE Poke may refer to: Arts, entertainment, and media * Poke (''Ender's Game''), a fictional character * Poke (game), a two-player card game * Poke, a fictional bar owner in the television series '' Treme'' * The Poke, a British satirical website Fo ...
when used as a command (e.g. BYTE 11123,123). ; : Calls BASIC subroutine as GOSUB in most other BASICs (e.g. CALL 100+4*X) ; : converts an
ASCII ASCII ( ), abbreviated from American Standard Code for Information Interchange, is a character encoding standard for electronic communication. ASCII codes represent text in computers, telecommunications equipment, and other devices. Because of ...
numeric code into a corresponding character (string) ; : draws (command) or inspects (function) a pixel at given coordinates (0<=x<=63, 0<=y<=47). ; : displays the clock or time controlled by content of Y$ variable. Not in standard ROM ; : causes specified program line to be edited ; : standard part of IF-ELSE construct (Galaksija did not use THEN) ; : compare alphanumeric values X$ and Y$ ; : standard
FOR loop In computer science a for-loop or for loop is a control flow statement for specifying iteration. Specifically, a for loop functions by running a section of code repeatedly until a certain condition has been satisfied. For-loops have two part ...
; : standard
GOTO GoTo (goto, GOTO, GO TO or other case combinations, depending on the programming language) is a statement found in many computer programming languages. It performs a one-way transfer of control to another line of code; in contrast a function ca ...
command ; : equivalent of standard BASIC CLS command - clears the screen ; : protects n characters from the top of the screen from being scrolled away ; : standard part of IF-ELSE construct (Galaksija did not use THEN) ; : user entry of variable ; : a function that returns the greatest integer value equal to or lesser than n ; : test whether a particular
keyboard Keyboard may refer to: Text input * Keyboard, part of a typewriter * Computer keyboard ** Keyboard layout, the software control of computer keyboards and their mapping ** Keyboard technology, computer keyboard hardware and firmware Music * Musi ...
key is pressed ; : lists the program. Optional numeric argument specifies the first line number to begin listing with. ; : returns memory consumption data ''(need details here)'' ; : clears the current BASIC program ; : clears BASIC program and moves beginning of BASIC area ; : standard terminator of
FOR loop In computer science a for-loop or for loop is a control flow statement for specifying iteration. Specifically, a for loop functions by running a section of code repeatedly until a certain condition has been satisfied. For-loops have two part ...
; : loads a program from tape ; : loads program to different address ; : Returns address of the variable ; : Printing numeric or string expression. ; : Return from BASIC subroutine ; : function (takes no arguments) that returns a random number between 0 and 1. ; : runs (executes) BASIC program. Optional numeric argument specifies the line number to begin execution with. ; : saves a program to tape. Optional two arguments specify memory range to be saved ''(need details here)''. ; : standard part of
FOR loop In computer science a for-loop or for loop is a control flow statement for specifying iteration. Specifically, a for loop functions by running a section of code repeatedly until a certain condition has been satisfied. For-loops have two part ...
; : stops execution of BASIC program ; : replacement for READ and RESTORE. If the parameter is variable name, acts as READ, if it is number, acts as RESTORE ; : "undraws" (resets) at specified coordinates (see DOT) ; : Stops the clock, not part of ROM ; : Calls machine code subroutine ; : Double byte PEEK and POKE


ROM "B"/"2" additional symbols and keywords

The extended BASIC features, in ROM "B" or "2", contained one extra reserved symbol and 22 extra keywords: * * * * * * * * * * * * * * * * * * * *


See also

*
Voja Antonić Vojislav "Voja" Antonić ( sr-cyr, Воја Антонић, ʾ, 12 July 1952) is a Serbian inventor, journalist, and writer. He is known for creating a build-it-yourself home computer Galaksija and originating a related "Build your own computer ...
, creator of Galaksija and this
BASIC BASIC (Beginners' All-purpose Symbolic Instruction Code) is a family of general-purpose, high-level programming languages designed for ease of use. The original version was created by John G. Kemeny and Thomas E. Kurtz at Dartmouth College ...


References


External links


Uputstvo za upotrebu
user manual online, complete, original, in Serbian language {{BASIC Microsoft BASIC Programming tools Galaksija (computer) BASIC interpreters