ERASERAREAsoftSiberian Alliance
"There is nothing in the world
It's the little things that matter."
(c) S. Holmes
That's why it appeared in our newspaper
this small section. There will be
various modifications and alterations were printed
programs that allow you to work with n-
We're a little more comfortable. And of course there will be prints
there are ways to eliminate small glitches
kovs left by the authors specifically for
us :).
Today in this section there is a program that
Almost everyone (or even everyone) knows code.
ry - ALASM 4. 1 . This is the most convenient asm
for machines with memory higher128kilobytes, but
it also has some disadvantages, such as
however, in any other program. For example
in the version with 42 characters per scrolling line
text is much slower than in 64-SIM
free version. This is due to the fact that in
The 42-character version of the command is used
LDIR in the scrolling subsection. And ifreplace
LDIR to the chain LDI, then you can speed up
scroller is approximately 30 thousand ticks.And,
Of course, you can speed up printing (but this
some other time).
To speed things up you need to do the following:
changes in the program:
1.From the address #BFOO enter in sequence
activity:
LDI ; 32 pieces
RET
2.From the address #87D6 enter serial
ness:
LD C, D
LD (HL), 0
CALL #BFOO
This siteprograms clears one
screen line.
3. From addresses #875A and #8785 enter the following
lines:
LD C, #20
CALL #BFOO
And this area is responsible for the transfer of
moving one place up and down according to
responsibly.
These were addresses for ALASM with font
volume 6x8. For the version with 6x7 pixel characters
fishing changes are exactly the same, only addressed
sa others:
1. #BFOO
2. #87EF
3. #8766 and #8791
The changes made are exactly the same.
Another drawback of this ASMA (with sim-
oxen 6x7 and 6x8) - packed symbol-
ny set. And if you're sick of it
look, but there are no other fonts, I advise
look at the attachment to this issue. There
you will find about a dozen fonts ready
for installation inALASM 6x8.All fonts are re-
made (and slightly redrawn) by me from sim-
free sets included withZX-ASM`y
In addition, there you will find a program
for translation of standard fonts (2048
bytes or 8 sectors) in ALASM' format
mat. The program is of course poorly written, but
performs its functions properly.
If you sit for hours in ASMA, then
The current modification will probably be useful to you.
It highlights the current line with the color paper,
different from the one installed in
everyone asma. Thanks to which you can see clearly
on which line the cursor is located. This
very convenient when viewing large lists -
gov. So, to implement the improvement it will be necessary to
trying to writesmall program:
ORG #BFЧ1
PUSH DE ;we save registers that can
PUSH BC ;to be mowed down
PUSH AF
LD HL,#5800 ;address in the attributes to which
OLD_ADR EQU $-2 ;painted the line last time
CALL ERS_LN ;erased selection
BALDA LD HL,(#8OBF) ;here are the cursor coordinates
ADD HL,HL ;calculate the address in the attributes
ADD HL,HL
ADD HL,HL
LD H,#1b
ADD HL,HL
ADD HL,HLLD (OLD_ADR),HL ;to erase when next. call
LD A,#4F ;stripe color, it is better to set
;such that it can be seen, but in
;it didn't catch my eye.
CALL PRINT ;print strip
POP AF ;restore what was saved
POP BC
POP DE
LD HL,(#C023) ;a this is what we wrote instead
;xaem call this p/p
RET
ERS_LN LD A,(IX+b2) ;color specified in the setup
PRINT LD D,H
LD E,LINC E
LD BC,#1F
LD (HL),A ;
JP #33C3 ;LDIR: RET in BASIC 48 ROM.
Then push this program intoALASMad-
res specified in ORG and replace three bytes
in ASMA body at:
- #9F0C in the version with 4x8 characters;
- #9FOF in the version with 6x8 characters.
For the version with 6x7 characters, this modification
not npokahaet, because there are 27 lines of text
(or 26:)) with 22 attribute lines.
If you have made the first revision of the assembly
Blair (acceleration), then instead of JP #33С3,
you can put JP #BFO2 - it’s located there
31 LDI pieces. You can do the same
in ALASM with 4x8 characters, address only
other: JP #8733. * * *
In my opinion, in some programs with
arrow interface there is one ma-
one small flaw - not very pretty
arrow. I solved this drawback nonpa-
twist Therefore, in today's issue, in
in the application you will find a whole bunch of arrows
all kinds of shapes and sizes and even non-
how many rotating arrows. If you don't
In my opinion, in some programs with
arrow interface there is one ma-
one small flaw - not very pretty
arrow. I solved this drawback nonpa-
twist Therefore, in today's issue, in
in the application you will find a whole bunch of arrows
all kinds of shapes and sizes and even non-
how many rotating arrows. If you don't
will like none of the features there
lok, then you can, through simple transformations,
calls to bring the sprites to the form you need
we.
All arrows are drawn by me in a note-
sprite editor Sprite EDitor
(SED final). I hope these arrows to someone
be needed.
Today there are no more small things. To the next
blowing numberWe'll find something else :).
Share your thoughts about the article