ArticleslgStudy

science

ASIC programming language

ASIC programming language is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand ASIC programming language rather than just read about it. In short: ASIC is a compiler and integrated development environment for a subset of the BASIC programming language. It was released for MS-DOS and compatible systems as shareware.

ASIC programming language — main illustration
ASIC programming language — illustration

Key takeaways

  • ASIC programming language belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect ASIC programming language to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of ASIC programming language from memory before moving on to harder problems.

Reference excerpt

ASIC is a compiler and integrated development environment for a subset of the BASIC programming language. It was released for MS-DOS and compatible systems as shareware. Written by Dave Visti of 80/20 Software, it was one of the few BASIC compilers legally available for download from BBSes. ASIC allows compiling to an EXE or COM file. A COM file for the Hello world program is 360 bytes. ASIC has little or no support for logical operators, control structures, and floating-point arithmetic. These shortcomings resulted in the tongue-in-cheek motto, "ASIC: It's almost BASIC!"

Features ASIC is strongly impoverished in comparison with its contemporary BASICs. The features of ASIC are selected to make a program be easily and directly compiled into machine language. Thus, many language constructs of ASIC are equivalent to constructs of assembly language.

Program elements Neither identifiers nor keywords are case-sensitive. Any DIM statements, if specified, must precede all other statements except REM statements or blank lines. All DATA statements must be placed at the beginning of the program, before all other statement types, except DIM, REM statements, or blank lines.

Expressions ASIC does not have the exponentiation operator ^. ASIC does not have boolean operators (AND, OR, NOT etc.).

Arrays The size of array specified in the DIM statement must be a literal constant. A single DIM allows declaring only one array.

Input and output PRINT's arguments must be a literal or variable. PRINT does not allow combined expressions as its arguments, nor strings concatenated with ; or +. If a PRINT command ends with ; or ,, then the next PRINT command will resume in the position where this one left off, just as though its argument were appended to the argument of the current PRINT command. The PRINT statement prints integer values six characters wide. They are aligned to the right (no trailing spaces).

LOCATE row, column Moves the text cursor to the position (column, row), where 0 ≤ column and 0 ≤ row. The position (0, 0) is the upper left corner.

Graphics PSET (row,column),color Turns on the pixel of the color color at position (column, row), where 0 ≤column and 0 ≤ row. The position (0, 0) is the upper left corner.

Control Structures A boolean condition may be only a comparison of numbers or strings, but not a comparison of combined expressions. A literal cannot be the left operand of comparison (e.g. can be X = 2, not 2 = X).

Decisions After THEN, there may be a sequence of statements delimited by ELSE or ENDIF. An example:

Contrary to other BASICs, statements cannot be put between THEN and the end of the line. An if-statement can realize the conditional jump. In this case, after THEN there may be a label.

Looping In FOR, after TO there may be only a number - literal or variable - but not a combined expression. The STEP clause does not exist in ASIC.

Branching In a GOTO statement, the label must be followed by a colon.

Subroutines In a GOSUB statement, the label must be followed by a colon.

BAS2ASI This utility, serving to convert GW-BASIC programs to ASIC syntax, in the version 5.0 does not support some GW-BASIC features. Examples: STEP in the for loop is not converted. The program

is converted into

The exponentiation operator ^ is not converted. The program

is converted into

References

External links ASIC 5.00 + Libraries + Linker Category:ASIC Tasks implemented in ASIC on rosettacode.org

Worked examples

Example 1 — a first encounter with ASIC programming language

Start with the simplest possible case. Write down what ASIC programming language claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to ASIC programming language before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about ASIC programming language ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of ASIC programming language

In research
ASIC programming language appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses ASIC programming language in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
ASIC programming language is common in secondary-school and first-year university syllabi. It links to neighbouring topics BASIC programming language family, so understanding it makes those chapters shorter.
In everyday life
Look for ASIC programming language outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “ASIC programming language” →

How to study ASIC programming language in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what ASIC programming language means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain ASIC programming language out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is ASIC programming language in simple terms?

ASIC is a compiler and integrated development environment for a subset of the BASIC programming language. It was released for MS-DOS and compatible systems as shareware.

Why does ASIC programming language matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study ASIC programming language?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on ASIC programming language.

Tags

  • BASIC programming language family

Keep exploring