┌──────────────────────────┐
│ ─── PROGRAMMING ─── │
└──────────────────────────┘
This magazine section will
intended for those who
enjoys programming
or wants to learn programming
vat. It will also be useful
for those who have already mastered enough
programming technique in ma-
tire codes and knows very well
assembler In this section the journal
nala you can publish
algorithms for your developments,
the procedures you wrote in
machine codes, interesting
programs in BASIC, etc.
Such an exchange of accumulated experience
in programming there will be
useful to everyone. By exchanging your
with knowledge you can significantly
faster, more efficient and
write your own at a high level
programs.
Publishers reserve
right to select programs.
Preference is given to self-
developments.
To publish the program
necessary:
a) Assembly text with
comments (preferably in
ZX Word format).
b) Code part.
───────────────────────────────
OUTPUT TEXT MESSAGES 8*16
───────────────────────────────
Zubrikov D.E.
-------------
Recently,
many ways to print
text messages like
using the standard set or
loadable and sprite based
which is preferred
due to its variety of shapes,
sizes, etc.
But I want to offer your
attention to the printing subroutine
using a downloadable font
created in ARTSTUDIOby
A/a principle.
You may ask what the difference is and
advantage over sprite
font? Main advantage
Of course it takes up memory. (All
subroutine along with font
takes about 1kB, for
comparison sprite font about
ZkB on average)
Well, about the other advantages or
The disadvantages are for you to judge.
Now about theprogram:
1. The program was typed from the address
43000 and takes 1100 bytes
along with one text
message. (see appendix)
2. The program starts with
addresses 43050 followed by
output to BASIC.
────────────────────────────────
Further to your attention
the listing itself is provided
programs with detailed explanations
all actions.
For the first time this subroutine is used
used in the loader-description-
research for the game REAL PRESIDENT company
ADDICTIVE GAMES LTD. restore
captured and Russified by me.
LD HL,43844 switching
LD (23606),HL font
LD A,#02 open channel
CALL 05633 "S"
LDDE,44000 text
message
CALL M1 subroutine
print top
letters
LD DE,44000
CALL M2 subroutine
print bottom
letters
LD HL,15360 switching
to standard
LD (23606),HL set
RET return to
BASIC
M1 LD BC,00039 quantity
characters
for printing
LD A,#14 installation
positions
LD (44005),A print
K1 LD A,B
OR C immediate
seal
DEC Sun text
messages from
reverse
RET Z output to
calling
procedure
LD A,(DE)
INC DE
RST 10
JR K1
M2 LD BC, 00039 quantity
characters
for printing
LD A,#15 installation
positions
printing on
LD (44005),A unit
more
K2 LD A,B
OR C
DEC Sun print
messages
from current
checking
RET Z
LD A,(DE)
INC DE
PUCH BC
LD B,#40 restrictions
for printing
characters
K3 SR B if
normal
then increaseby 20
JP C, K4 and seal
character if
no, then
DJNZ K3 is being printed
current
symbol
LD B,#20
K5 INC A
DJNZ K5
K4 POR VS
RST 10
JR K2
44000 11
44001 00 - PAPER
44002 10
44003 01 - INK
44004 16
44005 15 - TABULATION BY
HORIZONTAL
44006 00 - LEFT POSITION
PRINT
44007...44039 - TEXT
MESSAGE
As you already understand, first we
type a capital letter and then
under it is small. Based on
this you can now
yourself using one
from editors, for example
ARTSTUDIO create your own fonts.
This subroutine is
the basis for a more powerful
program to be fenced off
already dear users.
────────────────────────────────
Well, now we'll talk about
another program. You can po-
look how impressive this one isprogram
ma displays the menu. You can use
use this procedure at your own
their programs. About how to use
this procedure will be called
further.

Share your thoughts about the article