Promotion - Black crow viewer.

 CREATE A DATABASE FOR    
       BLACK CROW VIEWER       
                                         
(C) 2000 Max                            
-------------------------------------------------------
 Heh, some kind of tradition turns out to be
gifts of shells from me. How are you probably
but, remember the 2nd issue of "Crow", where I
gave everyone his miniWindoWs, which
who, despite his wretchedness, had some
which success among programmers - I saw in
work on your brainchild in several programs
max. I hope this gift will be so...
is in demand by someone.  If such a from-
wait, how does the "Tech Maker" shell use-
success, then my “rulez” will probably
gives him competition.                  
   The viewer (hereinafter referred to as the shell) is intended
on for easy viewing of color texts
with graphics and musical accompaniment.
Can be used to create help files,
newspapers and magazines.  Number of texts
limited by the physical size of the tr-dos disk
or 128 files. Maximum allowed
text size from 65535 to 70000 bytes. For-
it depends on its complexity.              
   Comes complete with shell
text translator programin format
locks, which compresses the successive
bytes of text and thereby reducing
Shaya its physical size. Under the text in
the shell is allocated 64 kilobytes (4 pages)
tsy). The text can be made in color, displayed
three fonts, illustrate. In short,
the magazine shell is almost completely identical
on the shell in question.
Like? Then read on...          
                                         
   So, in the "Appendix" there are two codes
block - "VIEWER_1.С"and "VIEWER_2.С", which
which is this very shell. Immediately
I will disappoint the especially lazy ones - such lafas as
in "TM" there is no here and to obtain of course
the product will need to be worked on -
mi.  I mean automatic compilation
tor BASIC loader, music, text and
shells. But I give more opportunities
tey.                                     
                                         
   There are also restrictions. Still, I pi-
lard this shell for myself, and only then
I decided to give it to the public. Restrictions on
use is not imposed by the shell, but
its utility is a text conversion program
to shell format: requires a computer with
expanded memory via port #7FFD(6 bits)
up to 256 kilobytes. In fact, only the areas
Pentagon-256/512 givers can use
create a shell for your own purposes. That's how it is
beamed.                                
                                         
   Let's start with the preparatory work. Needed
take text typed in any text
editor and format it by length
lines of 31, 41 or 62 characters. It's related
with the presence of a scroll bar on the screen, which
which occupies one familiar space. Then we can-
You can color the text in Tech Maker or
in WinWord.  To illustrate text
you need to use ONLY Tech Maker v1.10f,
because. only this damn editor puts
sprite tokens into the text.  I'm sorry, but
large volumes of text will have to be divided
pour into parts, because TM cannot accommodate
contains more than 32K. If you want to highlight
in the text some lines are of a different size
font type, then you need to put controls
tokens ONLY at the beginning of the line, otherwise an error
The translator program is beating.  Shift tokens
font: 1 - 32 characters; 2 - 41 or 62. Not
Be surprised - this is how it should be. And the thing is,
that for all text you need to order a flag
size (where - read below).  If size
If 41 characters are ordered in a line, then code 2 is
child is understood so that the currentline size
by 62 characters and vice versa.  How to install
create sprites according to the text - read the instructions -
tions to TM and translator.                  
In the "Translator" there are options "Add"/
"Subtract line", which are intended to eliminate
fix glitches with the scroll bar: in some
In some texts there may be the following "under-
insanity" - scrolling the text with the bar until the
It turns out that the bar handle is already
rested on the lower border of its field, and the pair
lines of text have not yet appeared on the screen. Byva-
It turns out that all the lines of text came out, and the pen
the bar jumps up after its release.
These are the kind of glitches we need to fight by
changing the number of lines in the text. Pro-
Unfortunately, this glitch can’t be killed correctly.
nyu...                                   
   Suitable for musical settings
any music from any editor, including
even SQ Tracker.  Music should be com-
peeled to address 49152 (#C000) and be
with a player!  Music file size is not
must exceed the size #3000 bytes!      
   The background image has its own requirements:
Vania: its packed (without unpacker)
size should not be larger 4096 (#1000)
byte! Background music and screensavers are posted
on one page: #3000+#1000=#4000 times-
Spectrum page measures.                  
                                         
   After the text is ready, recode
transferred to the shell format must be done as follows:
blowing:                                  
1) pack the received blocks with the program
   "HRUST v1.xx", including the shell. When
   This pack everythingWITHOUT AN UNPACKER!!!!
2) Pack the background image.           
3) write a BASIC loader.            
4) follow it write loader (goes to
   complete with shell as listing.
   It contains a couple of comments and a line-
   sequence of shell files).    
5) write packed without unpacker
   two parts of the algorithm, music and screen. 
6) write all packed texts.       
7) Some commander to combine into
   single block of received files.         
                                         
   That's it! The resulting program is not linked
to disk, can run on any computer
tere and be freely copied. Now about
database for texts that need to be created
give in assembler.  Don't be alarmed, there's nothing there
what does not need to be encoded - just specifying
enter all window and text parameters, select
file and upload STS`om to disk. Not
should look for this listing in the appendix:
it's not there, so write this text down
disk, in any editor, remove everything unnecessary,
and then convert to the format of your favorite
bimogo assembler. I recommend ALASM :)   
   For clarity of the shell and base operation
data I provide data for "Black Crow"
us #4". This will make it clearer, I hope...   
                                         
;(C) 2000 Max. Data for the log ~BC#4~
 ORG #6000 ;algorithm part 1
+ INCBIN "CROW_1"               
        ORG #DB00.7 ;algorithm part 2
+ INCBIN "CROW_2"               
        ORG #С000.6 ;music up to #3000!
+ INCBIN "ВС_SONG"; not packed!   
        ORG #F000,6 ;screen up to #1000!
+ INCBIN "ВС_SCR";packed!      
;---------------------------------------
ORG #В500 ;data up to 2048! 
;------ addresses for installing windows      
;and tables in the journal.                     
                                         
        DEFW RMENU ;main menu window
        DEFW TSFIL ;size/track/sector
        DEFW TBASIC ;program headers  
                       ;ramm in the application
;------ main menu                     
                                         
RMENU DEFB 1 ;line 0
        DEFB 14 ;column 1
        DEFB 18 ;length 2
        DEFB 12 ;height 3
        DEFB 70 ;window color 4
        DEFW 0 ;next window/#0000 5
 DEFW TMENU ;txt menu 7
        DEFW SMENU ;jp then progs 9
        DEFM "CONTENT";          11
        NOP ;end header    
TMENU DEFB "PROGRAMMERS...",13    
        DEFB "CRAZY HANDS", 13      
        DEFB "WHITE PARROT...",13    
        DEFB "PROOF...",13        
        DEFB "GAME LIBRARY...",13DEFB "MISCELLANEOUS...",13           
        DEFB "APPLICATION...",13       
        DEFB "output",0                
SMENU DEFB 1 ;=next WindoW    
        DEFW RPROG ;program window 
        DEFB 0 ;=load txt       
        DEFW T33; text descriptor
        DEFB 1                        
        DEFW RPOP ;"parrot"       
        DEFB 1                        
        DEFW RRASK ;"promotion"     
        DEFB 1                        
        DEFW RGAME ;"game library"      
 DEFB 1                        
        DEFW RRAZ ;"miscellaneous"        
        DEFB 1                        
        DEFW RPRI ;"application"    
        DEFB 3 ;=exit then ALASM;)
                                         
;------ secondary windows              
                                         
RPROG DEFB 6,7,23,9,104             
        DEFW 0,TPROG,SPROG            
        DEFB "programmers",0        
TPROG DEFB "PROGRAM STRUCTURE", 13  
        DEFB "MODERN PROGRAMS", 13
        DEFB "FAST SCROLLER", 13   
        DEFB "INTERCEPTION IM 1",13       
        DEFB "THORY",0               
SPROG NOP                              
        DEFW T2                       
        NOPDEFW G28                      
        NOP                              
        DEFW T21                      
 NOP                              
        DEFW T18                      
        NOP                              
        DEFW T7                       
                                         
RPOP DEFB 7,8,23,9,67              
        DEFW 0,TROP,SPOP              
        DEFB "fun section",0       
TROR DEFB "INTERNET POXMETOLOGIST", 13 
        DEFB "AND ITS USEFUL TIPS", 13
        DEFB "MARRY A CODER", 13
        DEFB "NEWLYWEDS-2", 13       
        DEFB "JOKES ABOUT STIRLITZ",0  
SPOP NOP                              
        DEFW T1                       
        NOP                              
        DEFW T12                      
        NOP                              
        DEFW T15                      
        NOP                              
        DEFW T14                      
        NOP                              
 DEFW T11                      
                                         
RRASK DEFB 8,5,25,8,113             
        DEFW 0,TRASK,SRASK            
        DEFB "promotion",0            
TRASK DEFB "SOFT FROM KHARKOV", 13    
        DEFB"GLUK RESET SERVICE v5.2"
        DEFB 13,"REVIEW OF NEW SYSTEMS"
        DEFB 13,"CRIME SANTA CLAUS-2" 
        NOP                              
SRASK NOP                              
        DEFW T3                       
        NOP                              
        DEFW T9                       
        NOP                              
        DEFW T24                      
        NOP                              
        DEFW T29                      
                                         
RGAME DEFB 8,6,24,10,105            
        DEFW 0,TGAME,SGAME            
        DEFB "game library",0             
TGAME DEFB "IN THE WORLD ~NETHER~",13     
        DEFB "SCENARIOS OF FUTURE GAMES", 13
        DEFB "IMPRESSIONS OF THE RAVEN"  
        DEFB 13,"SUPER LASER SQUAD",13
        DEFB "~AMAZING~ MASTERPIECE",13
        DEFB "TOY REVIEW",0        
SGAME NOP                              
        DEFW T8                       
        NOP                              
        DEFW T4                       
        NOP                              
        DEFW T20                      
        NOP                              
        DEFW T16                      
        NOP                              
        DEFW T23                      
        NOPDEFW T31                      
                                         
RRAZ DEFB 10,7,18,9,120            
        DEFW 0,TRAZ,SRAZ              
        DEFB "miscellaneous",0               
TRAZ DEFB "INTEL OUTSIDE...",13    
        DEFB "SCARECROW...",13        
        DEFB "TRIBUNA...",13          
        DEFB "AD txt",13         
        DEFB "AD gfx",0          
SRAZ DEFB 1 ;open neW WindoW 
        DEFW RINT ;"intel outside" 
        DEFB 1                        
        DEFW RSTR ;"scarecrow"     
        DEFB 1                        
        DEFW RTRI ;"stand"       
        NOP                              
        DEFW T25                      
        NOP                              
        DEFW G26 ;graphics!        
                                         
RINT DEFB 14,4,25,6,77             
        DEFW 0,TINT,SINT              
        DEFB "intel outside",0        
TINT DEFB "HOW TO TINT WINDOWS`95"
        DEFB 13,"PHONE SEX",0  
SINT NOP                              
 DEFW T10                      
        NOP                              
        DEFW T13                      
                                         
RSTR DEFB 15,5,24,7,68DEFW 0,TSTR,SSTR              
        DEFB "horror films",0             
TSTR DEFB "THE (X) FILES",13       
        DEFB "VIRUS HELP"     
        DEFB 13,"TERMINATORS OF THE FUTURE"
        NOP                              
SSTR NOP                              
        DEFW T5                       
        NOP                              
        DEFW T6                       
        NOP                              
        DEFW T19                      
                                         
RTRI DEFB 15,5,25,9,105            
        DEFW 0,TTRI,STRI              
        DEFB "voice of the people",0          
TTRI DEFB "THE REFLECTIONS ON THE TOPIC", 13 
 DEFB "INTERESTING TIPS", 13
        DEFB "UKRAINIAN NATIONALISM" 
        DEFB 13,"PIDARSOFT. REACTION"  
        DEFB 13,"EDITORIAL",0       
STRI NOP                              
        DEFW T17                      
        NOP                              
        DEFW T22                      
        NOP                              
        DEFW T30                      
        NOP                              
        DEFW T32                      
        DEFB 0                        
        DEFW T27                      
                                         
;------window "application"                
                                         
RPRI DEFB 11,3,26,10,86            
        DEFW 0,TPRI,SPRI              
        DEFB "APPLICATION",0           
TPRI DEFB "GLUK RESET SERVICE v5.3i"
        DEFB 13                       
 DEFB "BEEPER PROTECT SYSTEM",13
        DEFB "for children ~FIGUS 128~",13
        DEFB "game ~RANA RAMA~",13    
        DEFB "Solitaire ~PYRAMID~", 13  
        DEFB "~VIKING~"               
        NOP                              
SPRI DEFS 18.2 ;6*3=18          
                                         
;------ headers of Basic files for applications
;marriage. 9 bytes each (with extension "B").   
                                         
TBASIC DEFM "GLUK TS B"              
        DEFM "BPSv1.0bB"              
        DEFM "FIGUS128V"              
        DEFM "RANARAMAB"              
        DEFM "Domino B"              
        DEFM "WIKING+ B"              
                                         
;------ data for articles                
                                         
Т1 DEFB 0 ;NN music file   
        DEFB 16 ;NN txt files    
DEFB #FF ;end files       
        DEFB 2 ;41 symbols      
        DEFM "Pohmetologist"; up to 16 bytes  
        NOP ;end             
                                         
T2 DEFB 1,17,18,#FF,2            
        DEFB "STRUCTURE",0            
                                         
T3 DEFB 2,19,#FF,2               
        DEFB "IN ARCHIVE",0              
                                         
T4 DEFB 3,20,21,#FF,2            
        DEFB "SCRIPT",0             
                                         
T5 DEFB 4,22,#FF,1               
        DEFB "TNE (X) FILES",0        
                                         
T6 DEFB 5,23,#FF,1               
        DEFB "Virusology",0          
                                         
T7 DEFB 6,24,#FF,2               
        DEFB "O modemah",0            
                                         
T8 DEFB 7,25,26,27,#FF,3         
        DEFB "Peace ~NETHER~",0         
                                         
T9 DEFB 8,28,29,#FF,2            
        DEFB "GLUK present...",0      
                                         
T10 DEFB 9,30,31,#FF,2            
        DEFB "Torture WindoWs!",0     
                                         
T11 DEFB10,32,33,34,35,#FF,2     
        DEFB "JOKES",0             
                                         
Т12 DEFB 11,36,37,#FF,2           
        DEFB "Cyber pohmetologist",0      
                                         
Т13 DEFB 12.38,#FF,2              
        DEFB "Phone sex",0     
                                         
T14 DEFB 13,39,40,41,42,#FF,2     
        DEFB "Notes of a Wife-I",0       
                                         
T15 DEFB 14.43,#FF,2              
        DEFB "Girls",0             
                                         
Т16 DEFB 15.44,#FF,2              
        DEFB "~Laser Squad~",0     
                                         
T17 DEFB 0.45,#FF,2               
        DEFB "Tribune",0              
                                         
Т18 DEFB 1.46,#FF,2               
        DEFB "Down with IM 2!",0          
                                         
Т19 DEFB 2,47,48,#FF,2            
        DEFB "Myths of the 20th century",0         
                                         
Т20 DEFB 3,49,50,#FF,2            
        DEFB "~Black Raven~",0       
                                         
T21 DEFB 4.51,#FF,2               
        DEFB "Installer",0          
                                         
T22DEFB 5.52,#FF,2               
 DEFB "Tips ;)",0            
                                         
Т23 DEFB 6,53,54,#FF,2            
        DEFB "Masterpiece",0               
                                         
Т24 DEFB 7,55,56,#FF,2            
        DEFB "System overview",0       
                                         
Т25 DEFB 8,57,58,#FF,2            
        DEFB "Advertising",0              
                                         
;data for loading and outputting graphics    
                                         
G26 DEFB 9 ;NN music           
        DEFB 59 ;NN shared file scr.
        DEFB #FF ;end of list        
        NOP ;sign "graphics"   
        DEFB 5 ;number of screen colors  
                                         
   This is where we need to make a separate point. I
supported full screen output in the shell
files (advertising, comics, etc.) For this -
you need to take HRUST, pack all the screens
We are without an unpacker. Then any command -
rum that can do this, combine
compressed screens into single files, but to do
this is so that the total size of one volume
The total file did not exceed 64 sectors, i.e. in
The Spectrum page fit freely. you
you can make up to 4 such files.Paco-
The actual dimensions of the pictures themselves do not matter
have.  It turns out that in one go you can
upload up to 20 images depending on
from their complexity.                         
                                         
T27 DEFB 10.60,#FF,2              
        DEFB "Word to the author!",0        
                                         
G28 DEFB 11.61,#FF,0.9            
                                         
Т29 DEFB 12,62,63,64,#FF,2        
        DEFB "CSC:DEJA VU-2",0        
                                         
Т30 DEFB 13.65,#FF,2              
 DEFB "POLICY",0             
                                         
Т31 DEFB 14,66,67,68,#FF,2        
        DEFB "TOY REVIEW",0        
                                         
Т32 DEFB 15,69,70,#FF,2           
        DEFB "Mailbox",0        
                                         
T33 DEFB 0.71,#FF,3               
        DEFB "CIRCUIT ENGINEERING",0         
                                         
;----- table of file sizes in sectors
;for the first file, indicate its track and  
;sector of occurrence on the disk as the beginning    
;package of files. It is necessary for further development
;couple of “sector/track” parameters.          
                                         
TSFIL DEFB6 ;sector and        
        DEFB 12 ;track 1st file 
                        ;your texts   
        DEFB #0D ;song 0 
        DEFB #09 ;              1 
 DEFB #09 ;              2 
        DEFB #0B ;              3 
        DEFB #0E ;              4 
        DEFB #0E ;              5 
        DEFB #08 ;              6 
        DEFB #0D ;              7 
        DEFB #10 ;              8 
        DEFB #0C ;              9 
        DEFB #0C ;              10
        DEFB #0E ;              11
        DEFB #09 ;              12
        DEFB #0C ;              13
        DEFB #0C ;              14
        DEFB #07 ;              15
;txt                                     
        DEFB #19 ;TXT1 16
        DEFB #25 ;TXT2 17
        DEFB #1B ;              18
        DEFB #1A ;TXT3 19
        DEFB #28 ;TXT4 20
        DEFB #1B ;              21
        DEFB #0B ;TXT5 22
 DEFB #09 ;TXT6 23
        DEFB #0F ;TXT7 24
        DEFB #23 ;TXT8 25
        DEFB #22 ;              26
        DEFB #03 ;              27
        DEFB#27     ;TXT9          28
        DEFB    #06     ;              29
        DEFB    #1A     ;TXT10         30
        DEFB    #1A     ;              31
        DEFB    #25     ;TXT11         32
        DEFB    #25     ;              33
        DEFB    #25     ;              34
        DEFB    #0F     ;              35
        DEFB    #23     ;TXT12         36
        DEFB    #20     ;              37
        DEFB    #19     ;TXT13         38
        DEFB    #24     ;TXT14         39
        DEFB    #25     ;              40
        DEFB    #26     ;              41
        DEFB    #13     ;              42
        DEFB    #1С     ;TXT15         43
        DEFB    #20     ;TXT16         44
        DEFB    #1D     ;TXT17         45
        DEFB    #09     ;TXT18         46
        DEFB    #27     ;TXT19         47
        DEFB    #1С     ;              48
        DEFB    #26     ;TXT20         49
        DEFB    #1В     ;              50
        DEFB    #08     ;TXT21         51
        DEFB    #10     ;TXT22         52
        DEFB    #22     ;TXT23         53
        DEFB    #19     ;              54
        DEFB    #22     ;TXT24         55
        DEFB    #11     ;              56
        DEFB    #27     ;TXT25         57
        DEFB    #12     ;              58
        DEFB    #3С     ;GFX26/5 files 59
        DEFB    #20     ;TXT27         60DEFB    #38     ;GFX28/9 files 61
        DEFB    #2F     ;TXT29         62
        DEFB    #2С     ;              63
        DEFB    #04     ;              64
        DEFB    #25     ;TXT30         65
        DEFB    #2В     ;TXT31         66
        DEFB    #26     ;              67
        DEFB    #06     ;              68
        DEFB    #28     ;TXT32         69
        DEFB    #12     ;              70
        DEFB    #14     ;TXT33         71
                                         
        NOP             ;end table...    
                                         
SIZE    EQU     $-#В500 ;размер файла    
                        ;данных оболочки 
;+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+==+=+
;ТОКЕНЫ МЕНЮ:                            
;------------                            
;0,DEFW DATA TXT - load txt              
;1,DEFW NEW WIND - open next WindoW      
;2,DEFW 0        - load basic program    
;3,DEFW 0        - exit то ALASM.        
                                         
;ДАННЫЕ ДЛЯ LOAD СТАТьИ:                 
;-----------------------                 
;       DEFB    N file music             
;       DEFB    N file txt 1             
;       DEFB    N file txt 2;       DEFB N...                    
;       DEFB #FF - end txt files      
;       DEFB 1=31, 2=41, 3=62 symbols 
;       DEFM "WINDOW TITLE"         
;       NOP end of data             
                                         
;DATA FOR LOAD GFX BLOCKS:             
;--------------------------             
;1 block includes several gfx files    
;       DEFB N file music             
;       DEFB N file GFX 1             
;       DEFB N...                    
;       DEFB #FF - end of GFX blocks     
;       NOP GFX mode marker        
;       DEFB n - total quantity     
;gfx files, i.e. screen`s. DON'T MISTAKE! 
;+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
 ORG #8000 ;for RUN         
                                         
   There is no desire to describe in detail the details
when working with the shell: something described
but in the built-in instructions for converting
driver, you will understand something yourself - there is no
nothing complicated. I hope that my shell
will it be useful to someone?  If there is -
the desire to modify it or remake the trans-
text editor for your computer - send it
to my address (look for the addresschief editor
ra in the "Editor's Note" section) THREE dollars and
I will send EVERYTHING! translator sources and equipment
boxes.                                   

Share your thoughts about the article