Programmers - Khimkov-style assembler.

Di Halt #01
                                          
         ASSEMBLY IN XUMUKOBCKU.         

                   "If you want to be 
                   happy, be it."  

             Kozma Prutkov, "Thoughts and 
             aphorisms", #80.              

    Well, I think your whole family has already 
gathered near your blue screen 
black and white monitor, or maybe 
grandpa's old TV to 
learn a little about such a wonderful language 
programming like assembler.          
    I won't teach you programming, 
(I don’t have such a profession), I’d better show you 
a couple of examples of how to wield this powerful 
tongue...                                 
    First download some 
assembler, it is best to load it from 
tape, because tape is more reliable than disk, the more 
more practice has shown that more 
some mistakes are not your fault 
yourself and not because of your childhood 
was difficult, but due to the fact that the assembler 
was loaded from disk, not tape, so 
what you choose, what is more valuable to you - time, 
or a well-functioning program.          
    After loading the assembler, 
you can write a program.  For example, you 
you need to display 3 sprites on the screen: in 
enter the HL register pair with the disk number 
on which sprites are stored, in 
registerpair DE - name 
TV to which you want to output 
sprites, and put them in the register pair BC 
number of sprites (in pixels), then 
execute the LDIR command - and you're done.    
 As you can see, everything is very simple.       
    Well, now I’ll try to explain to you, 
how to connect the 7th page of RAM. First 
you need to snatch from any (unnecessary) 
books, or notebooks, page number 7, 
and, having first removed the body of his 
computer, put it on the chips 
dynamic memory, just put 
be careful not to disturb the bits, 
which are located exactly there, otherwise they 
(bits) may be gone from you forever 
memory.  Now you can type text on 
assembler:                               
     LD A, page number;               
      LD aircraft, what to connect to;           
     OUT (C), A; connect.              
    In this way you can connect any 
page, and to anything.           
                                          
                                          
     Now the section "SECRETS OF SPECKY".     
    In this section I will tell you about 
one very interesting secret that I 
I figured it out when I disassembled the ROM chip. 
You probably know what's in your "car" 
there is such a register IR, if you don’t know, 
then my advice to you ishurry up and run to 
the nearest maternity hospital and tell me what is yours 
Spectrum started talking to itself 
yourself.                                    
    So, essentially there are two 
register, interrupt register and register 
regeneration, well, in the register 
regeneration of dynamic memory chips 
The 7th bit does not change, but if 
write one and run the subroutine, 
which is located in ROM under the address 
#0231, then the BC register will contain 
ROM address where you can run 
Tetris game, which is hidden in 
regular proprietary ROM.                   
    If nothing works out for you, 
then you need to tear the ROM from the chip 
fifth leg and apply +25 volts to it, 
then everything will work out, believe me.        
    It follows from this: you need to be as close as possible 
meets your electronic friend, 
because in our good old Sinclair it’s like this 
there are many secrets that await you and me 
open.                                  
    I'm currently working on routines 
food synthesis, progress will be reported 
additionally in the next issue of the magazine  
 "DI HALT".                              

    Until we meet again, friends.               

                    Chemist.                

Share your thoughts about the article