╔══════════════════════════════ ═══════════════════════════════╗
║▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░ Assembly language course ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒║
╚══════════════════════════════ ═══════════════════════════════╝
(c) Wlodek black.
003h. ASSEMBLY LANGUAGE.
Assembly language is a way of writing programs using
mnemonic notations for machine commands and a number of other techniques,
making the perception of program text convenient for humans. When
In this case, programming still remains detailed up to
processor machine instruction level. But the way the program is written
after all, not directly in the codes, but in a conditional way, facing the human
skill, language, the need for an intermediary between man and machine
Noah is preserved, as in high-level languages. This intermediary
- assembler program.
For MSX computers the standard assembler is MACRO-80
(M80). A program in the M80 language is written as text using
any text editor. The assembler processes text
file and, based on its contents, generates a so-called pro-
intermediate file (with .REL extension). The final result is
executable file type *.COM - created by the LINK program (editor
connections).
A somewhat cumbersome two-step process is chosen as follows:
general considerations:
1. Files of the .REL type can be created not only by assembler, but
and translators of high-level languages, for example, Fortran,Si.
It becomes possible to write separate parts of one program
in different languages. LINK will subsequently combine them into one;
2. Libraries of standard procedures can be easily connected. They can
stored in the form of REL files, without spending time on assembling
knowledge of their source texts;
3. When debugging a large program, already debugged modules can be
stored as REL files and reassembled as needed
There is only a small debuggable fragment. LINK does its job
works much faster than M80;
4. The source codes of large programs often do not fit on
one floppy disk, and in this case, assembling and assembling the program
from several source files we become the only one
possible method of creating a program.
...Why didn't I remove that non-Spectrum bit from this?
text? Here's why: the MACRO-80 assembler and its further (gross-
Siysk; author - Egor Voznesensky (SOLID SOFT)) extension -
assembler AS, as well as LINK and LD work perfectly on PROFI in
CP/M environment. Thanks to this, PROFI can be an excellent tool
a rustic machine for creating programs of any complexity. K
In addition, AS assembler supports command systems of two more powerful
new processors - Z180 and Z380 (based on the latter, it has already been created
computer standard MSX-4 - RAM 1..4 Mb, clock frequency 28 MHz,
hard drive IDE, etc.).
As for Spectrum assemblers, they- great many-
tough, especially for 128-K machines. I won't campaign for that
or another instrument - choose to your taste! About how to use-
about them, you can find out from the literature of INFORCOM.
An example of a simple program.
LD A,2
CALL #1601
LD DE,TEXT
LD BC,TEXT1-TEXT
CALL #203C
EI
RET
TEXT DEFB 22,0,0
DEFM "HELLO!"
TEXT1
.
What does this program do?..
[End of 3rd text].
(c) Wlodek Black
Tel.462-8902
(Vladimir)
Share your thoughts about the article