Assembler - off-screen graphics: how to draw on the border.

ZX Press #01
┌■■■■■■■■■■■■■ ■■■■■■■■■■■■■■■■■■■■■■■■■■■┐
│ Off-screen graphics  │
├■■■■■■■■■■■■■■■■■■■■ ■■■■■■■■■■■■■■■■■■■■┤
│ Nikolai Vitenko │
│ Music: Alexey (VAN) Vitenko/K.S.Soft │
└■■■■■■■■■■■■■■■■■■■■ ■■■■■■■■■■■■■■■■■■■■┘
░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░
                                          
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ Editor's note
                                          
There has been a lot of talk about curb effects.
interesting, but very, very little was given
specific examples that allow modernization
by copying the source program (eraser-program)
Zhen) to improve his own ways -
ity in this, for many, “dark” area
programming in SPECCY.  But, on
examples with comments from an “experienced” person on
much easier to learn...                  
                                          
Editor's note ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
                                          
 Greetings to all fans of "SPECCY"!                                          
    I, VNN,would like to first of all congratulate
to you with the release of our city (and
in the future, perhaps famous for his
outside) magazine "ZX-Press".            
                                          
    Denis (DWT) asked me to write about
so-called "border"-effects.         
                                          
    I want to warn you right away: I'm not cool.
I’m a programmer and if I write anything, it’s
only for friends or for your own pleasure
actions.                                    
                                          
    However, I'm always happy to share
the experience I have.           
                                          
    The series of articles is designed for users
who know at least a little assembler. B
Appendix to the magazine can be found as-
sample texts in the format "MASM 1.1".   
 All program examples are tested for
my computer (Pentagon 1024+TurboVG93+
LPT-Covox+ AY-3-8910+ 71680 takts INT+Disk
Drive "TEAS FDSSGFR"),and fully operational
capable.░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ 
                                          
    So let's begin. What kind of bullshit is this?
BORDER -effect?.  This is a creation on BORDER
(hereinafter in the text I will call it border-
rom) any action other than installation
any one color. If you did-
if there are 2 colors at the same time, then this, although
dead, but curb effect.          
                                          
    Well, let's try with examples:             
                                          
    First in BASIC:                   
10 BORDER 0:BORDER 1:BORDER 2:BORDER 3:BOR
DER 4:BORDER 5:BORDER 6:BORDER 7:GOTO 10  
                                          
 By typing this program and running it, you
you will see fast running different things on the screen
colored stripes.  How to stop them?
It's very easy to insert at the beginning of a line or
before the statement GOTO 10, PAUSE 1. And that’s it,
your stripes will be as if nailed down.           
                                          
                                          
    But have you noticed how wide they are? A
you want them to be one peak thick -
sat down? Then you need to know assembler and a few things
about your computer. For example: How many clock cycles does your computer have? 
           How many lines does it draw (on the screen
           completely with curb)?         
 How many cycles does it spend on drawing?
           one line (with the curb)?
           How many lines does it draw from the beginning? 
           screen to the beginning of the square?     
                                          
 All this data can be determined from
with the power of the music program "BRAIN CRASH".
It is in the appendix to this issue of the magazine
nala.                                     
                                          
                                          
    Example program with border effect
there in assembler format"MASM 1.1".
It is called "BORDER1".  This program
allows you to get horizontal stripes
one pixel thick and adjust them to
your computer.  Comments for mastering
The program is quite enough. And for those who
or not for a long timeworked onMASMe,or at all
did not work in it, then to read the comments -
Tariev in RUSSIAN language must be pressed
S.S.+C.S., F.                             
                                          
                                          
    In the next issue of the magazine we will look at
trim question: how to make vertical
border effect? (vertical stripes).  
 That's all for now. If anyone has any
If you have any questions, please contact us. My address and
You will find the editorial address in the section "AUTO-
RY". See you again in the next issue!
                                          
 Last revision: 08/08/1999
░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░

Share your thoughts about the article