ZX Format #05
11 декабря 1996

Programmers - a description and history of the creation MEM.

<b>Programmers</b> - a description and history of the creation MEM.
MEMHELP (TALES OF CREATION).

music by DNK
(C) KAMIKADZE O.B. FUCKSOFT
________________________________


           Proud Vratnik Satan

           Shed blood on the light

           And the Holy Sword of War

           Cut the Secret ...

           (KORROZIA METALLA 92)

 Programm "meme" was written
for several reasons:


    First: tired all kinds of goats, which
investigation is whether their own limitations, or misery
their pathology (and call the product that can not proizodit 
full decoding of the address port, the word "computer" - 
language not rotated), stubbornly produce white light on some

software, sometimes
like it is good, but because
indicate incomplete address port
do not work on normal machines (PROFI, SCORPION, etc.),
for wherewith, as we know, the future
Sinclair - compatible market.
Particularly depressing their "adaptation"
already known programs under this
pathological decoding. Buy program from a hard-earned money - 
and it does not plow ... Anger does not cover sports

- So would have made in the face! But where
she, the muzzle?? Too many years
smart people firmly: pointed
FULL address of the port! Do you think
can convince an idiot? ..
Therefore, we ask a fallen idiots and do not read on - all
equal to no avail. It is better to play
in "PREVIEW" ...

    Second: the aforementioned
Honorable computers observed incompatibility of ports and
method of switching pages
when it comes to memory,
greater than 128k.

    Third: not all
computers of the same model
an equal amount of RAM. U PROFI,
For example, there are options for 256K,
512K, 768k, 1M. There are stories about
512K SCORPIONe, which can
will be in the near future ...

    Fourth: page RAM
can be located and did not Streak:
for example at the same PROFI in the base model at 512K is 
observed such a strange picture of the physical location of 
memory: first, 256K RAM (# 0 - # 0F), then a hole in the

512K (# 10 - # 2F), and finally another
256K RAM (# 30 - # 3F), although sometimes
and a row ...

    Fifthly: on some machines, is nice for a large number of 
pages, connecting NOT ALL RAM (eg 512K instead of 1M) gets out 
into the light of such a pathology, as the intersection Pages: 
Refer to one side, and connects the other (or a few others), or 
a single page, you can call on different numbers, or ... 
Evaporated list. Is this good or bad - debatable, but in terms 
of error-free turning pages - certainly disgusting. We have to 
make maps of RAM, called the physical pages LUNs, accessed 
through a special (software) memory manager ... MRAC!


    Sixthly: the last time
have often appeared oriented programs only
a car: TASM256
(SCORPION), HONEY COMMANDER
(ATM), MEGACOPY (PROFI), and many others. The same with 
igruhami. On these computers, they use all their advantages, but

in others they do not go, or go
but flawed. But all the difference
is 99% of cases not
use of additional
unique hardware features, and in prose method
turning pages, or their number. Thus, the authors of these
programs (sometimes very good
and that the most offensive, unique) lose a huge part
its potential audience, and
in consequence, the credibility and financial gain.
# The Seventh: observed
reverse pattern, however idiotic: The authors, wishing "to work 
for everyone," intentionally lower level programs using the 
most minuscule and pressing SCORPION PROFI or to the level of

128, or even 48k. It is clear that not
always need these bells and whistles, but
Otherwise, feel
left in the cold: has
megabytes of memory, and kopiruesh,
using 128k, ie jab
and pulls out the disks (and confused
furiously cursing) 6 times. Or
with the available 256K SCORPIONe,
bold, graphically fancy
igruha every 1-2 minutes begins to fidget on the disk, reading 
for 16k files (and they may be

and 16 units of 1k) at each level, and levels, eg 14.
Tragicomedy ...

    Eighth, Ninth, in the Tenth ... You can grow old, listed 
but not covered and percentage of reasons, and yet of course, I 
still can not remember all of them. You have, probably also did 
not once appeared a supplement to

sorrowful list of pathology, while
you read the vacancies libel.

    Moral of the story is:
competently written program
obliged to use as possible all available
computer memory, if it can improve its quality,
convenience, speed, volume
data. In some cases,
of course not necessarily, but
when it comes to, for example,
copyist, databases,
electronic drives, window intefeysah to conservation, 
multiblock igruhah and other bells and whistles, then the 
maximum use of all the memory - and no doubt necessary! And in 
addition to work on other computers, not disdaining anything, 
not even 48k. 

    Problem at first glance incompatible, but only at first
look. The program itself should
Specifies whether the computer figure out the real number of 
pages available RAM, their actual addresses and their method of 
paging. After agree to enter this data

from the keyboard every time you run or install a distribution 
on account SETURov ROM (apparently secure) the threat

that when writing it zagnetsya would not want anyone,
including potential buyers of your programs.


     Just, just that my programm and deals with the 
unpretentious name of MEM. Using it in your programs, you can 
achieve all that I wanted to literate programmers who are 
familiar sense of comfort work with large amounts of memory. 
Giving it "for free" any wish, I hope that she will bring him 
comfort and benefit, nick - good

SOFTWARE, for which no sorry
will have to pay hard-earned money ...


   Programm itself is written in
a set of routines in a format GENS4 + (alas, alas - for the 
sake of reducing the amount it had to surpass in TASM. Ed.). 
Identifies PROFI, SCORPION, SINCLAR 128, SINCLAIR 48. 
Unfortunately, with no data by ATM, I could not include it in

this list. It was run-
on such machines as PROFI,
SCORPION, PENTAGON, ZONA, 128k and
48k, and therefore declared operational.


    There are multiple entry points, each of which must
considered separately:


     CONF: quiz
configuration. Is restored to the register and the type of car 
"s" SINCLAIR 1948, "S" SINCLAIR 128 "C"-SCORPION 256, "P"-PROFI 
and duplicating it in a variable (CONF);

in the variable (DELA) - number
pages and a table of their real
Location beginning with
TABL and ending byte
# FF. If you're not going to delete the page or jump in mixed 
mode or 48 (See below), then exit

this procedure, all further
this byte # FF, no longer useful, and therefore can be loaded
there anything you want and use this memory area, at its 
discretion. If you are still povycherkivat going (and)

posmeshivat, this region will become unnecessary after deletion 
and (or) mixing. Preserves all registers except the AF, but 
operates using to 1 byte of each page with the number specified 
in the label POINT. Installs behind the current

Page 7. Kills himself
the process, changing its
the body of the variables and Table
pages, so the second time does not
may be caused by (and it is not
needed). Also makes some changes in the procedure body
LISTER, pointing to the specified port is in the process of 
identification. It is advisable to run it for another

in the boot, so nothing
damaged in the post.


    ERASER: deletion of the physical number of pages listed in 
the register A list pages of RAM and a corresponding

reduction in the number of pages in a variable (DELA). Makes 
sense if any pages are not going to scroll, for example, 2 and 
5. Thus they are removed from the table and no longer involved 
in the process of paging LUNs (see below).

At the end of deleting all
unnecessary pages, she becomes unnecessary and can be deported 
in the manner indicated in the previous paragraph. Retains all

registers except AF. Can only be run after the procedure
CONF.


    LISTER: produces paging
According to the established procedure in the port of CONF and 
logical number page listed in the register

A. (logical unit number sense
in the case where not all right with the number of individuals, 
such as when certain pages deleted or when a piquant situation: 
found page number # 01 ... # 0F,

# 30 ... # 3F, and the programmer to
more convenient to call them in order,
ie # 00 ... # 1F, and not to fool
his head intricate pattern of physical rooms. In this
If it is convenient to specify the number that page is in
page table.) Return to
A physical register number
page and duplicate it in a variable (MARK). Preserves all 
registers except AF, ignores the number of pages, more than was 
installed. This procedure can be started only after the 
configuration was set procedure CONF, otherwise kaput. 

    (It is worth recalling that
all machines, which are
speech okromya PROFI with memory,
less than 1M, for nevycherknutyh
pages of the logical and physical facilities are the same).

PROFI: leafing through the physical pages PROFI on port # DFFD, 
on number listed in the register A.

Preserves all registers. SCORP:
the same for SCORPIONa port
# 1FFD. S_128: the same for
SINCLAIR 128 ports # 7FFD.

UN128: Puts the pathology of 128
in mixed mode, ie 48-ROMs
but with open # 7FFD-port. This
is useful when 128-I PZUha not the topic (which is almost
always), but still have to look through. Tries to keep all
registers, but it includes a mode
interrupts and allow them. After
its execution, if you return to
BASIC, you will see is not 128, and 48
editor. In the event that started from the mixed mode or 48 -
nothing happens. After doing becomes unnecessary and
can be repressed.

UN48: Puts the pathology in 48
mode, ie close latch
# 7FFD port. Scrolling usual
way, of course, becomes impossible. (I'm not referring to 
specific ways possible, such as the PROFI or SCORPIONe). 
Preserves all the registers, but she runs with all UN128

consequences. After
its execution, all subprogrammes
MEM become unnecessary, and they occupy memory can be used at 
their discretion. 

SIMILARITY BABKA:

(The symbol * denotes the address
load MEM)

1 - Procedures:
* +61 CONF: definition of the configuration and installation of 
the port. * +337 ERASER: deletion

pages from the table.
* +38 LISTER: paging logical pages to the established
port.
* PROFI \ paging physical * +12 SCORP - FIR pages to * +24 
S_128 / corresponding 

              port.

* +367 UN128: translation of pathology in
Mixed mode.
* +429 UN48: translation of pathology in
48 mode.

2 - Variables:
* +61 CONF: Set configuration:
"S" - SINCLAIR 48
"S" - SINCLAIR 128
"C" - SCORPION 256
"P" - PROFI
* +62 DELA: identification number
pages.
* +63 TABL: Home page tables.

MARK: a copy of the physical facilities
the current page. Default
# 5B5C, which corresponds to a variable 128k BASIC BANKM.
POINT: a byte address recognition
page (the contents are killed). By default, # FFFF, ie
Last.


    Advice to those who misunderstood: the
under load to load
MEM, mix (preferably) by UN128, run CONF, then delete the 
unwanted pages by ERASER, after which the necessary will remain 
just a piece of length of 64 bytes + the number

pages. (Maximum length - in
If PROFI 1M with nevycherknutymi
page = 128 bytes). To translate the 48 mode is enough
just run the UN48. Then
You can load, run, flipping (if not clicked), etc.


    MARK POINT variables and you can install any of which
like more to come, but I venture to remind you that the POINT
should be in the range
# C000 ... # FFFF, and MARK - just
Conversely, it should not.


    Also, do not count them for insulting the request to have
UIS aaplet not pageable
pages, and if possible not
2 and 5, flipping pages, as well as
keep in mind that the pagination
(Both physical and logical) starts with 0, ie perelistnut only 
page number is less than the variable (DELA) and certainly more 
so no flipping pages in 48k car (since paging port on it is not 
installed, the table of pages is not compiled and pathology 
reset). By the way, And this programm is not distinguish KAY 
256 of SCORPIONa, as she had only one problem -

memory. And SCORPIONa helpful
page 8 of the strike in order to avoid calving with RST8.



    And if all this will be complied with, then you can safely 
Varganov aaplet, including in it MEM

piece, and turning the pages of any
computer, do not care about
than, and programs from your beauty will zelo lepy, and please 
be my cruel heart ... 


   CHAO ...

(KAMIKADZE O.B.)

= FORWARD TO FULL DARKNESS!!! =

 ZF> prog itself lies in the application format TASM4 (XLD).
 ZF> Just want to say that for
implications of the above files of response should
demand with its author. And I have
And this little thing is still a
weird question ... : (.
For those interested in this same
subject to exchange experiences, there
another programm to this
theme, by the way, understand more
types of components ...






Other articles:

Authors Journal - ZX-Format No.5

From the authors - the fifth issue of the journal.

Toys - 48 Iron (Part 4).

Toys - on popolochkam: Castle Master # 1

Toys - short story by playing Robin Of Sherlock.

Programmers - Basic for Dummies - Part 5.

Programmers - artificial intelligence in computer games.

Programmers - TR-DOS programmers.

Programmers - a description and history of the creation MEM.

Programmers - exchange of experience: On the effects on the curb, and about something else.

Programmers - the exchange of experience: "Counting the Brain" - AUTOconfig v5.03.

Programmers - adventure: a sensible approach to passing.

IS-DOS - users: a guide to basic commands and utilities, basic kit IS-DOS.

IS-DOS - the programmer: a short course in programming in the IS-DOS.

IS-DOS - IS-NEWS - "News of the World IS-DOS".

IS-DOS - software and hardware support for IDE HDD for the ZX Spectrum.

Iron - KAY: ZX Spectrum Ttransformer.

Iron - Technology is a war.

Iron - General Sound.

Iron - XTR Modem.

Iron - Shema KEMPSTON MOUSE.

Iron - What if the Bat is not the correct type.

Iron - LPT COVOX and not only ...

Premiere - a program description Catalogue Master.

Premiere - description of the program Micro-editor. (MED)

Premiere - Text designer.

Interview - an interview with the developer of the clone HOBBIT (Part 2).

a rest - dictionary of advertising (with humor, but not without common sense!).

a rest - Memories of the future.

Mail - Letters from readers.

Mail - advertising and announcements.

Mail - Corner lamer (children under 16 years of reading strictly forbidden).

Miscellaneous - Outlook: a new game from Mednonogova "Black Crow".

Miscellaneous - Prospects: Pink Floyd - the new operating system for the Spectrum.

Miscellaneous - Prospects: the game's expansion.

Miscellaneous - It was you.

Miscellaneous - A review of the game Kings bounty II.

Miscellaneous - Competition for the best level of the game Laser Squad continues. New competition at the micro-demo.

Miscellaneous - Questionnaire for the readers.

Amiga - cri de coeur: Windows 95, and another about something.

Amiga - Amiga-Club, questions and answers.

Amiga - Project PowerUp - the next generation Amig.


Темы: Игры, Программное обеспечение, Пресса, Аппаратное обеспечение, Сеть, Демосцена, Люди, Программирование

Similar articles:
Entry - a few words from the editors.
Topic - Tusovka: CSP'99 - an interview with the main coder'om Flash and concurrently one of the founders of the group - Alex Rider.
Review - An overview of new gaming software: KOMANDO-2, PEDRO NA OSTROVE PIRATOV, DIRT TRACK RACER, DOUBLE DRAGON-2, THE CYCLES, STUNT MAN SEYMOUR, CHOY LEE FUT KUNG FU WARRIOR, ARKARUM, KING VALLEY, MURK 3320, THE MYSTER of ARKHAM MAVOR, SKAZ ANCIENT RUSSIA: VITYAZ SVYATOGOR and the Sorcerer Karachun, MAGICIAN LAND, RALLY CROSS, MOVING TARGET, KLADEMINER, LOST CAVES and the TOMB of DOOM, WIZARD WILLY.

В этот день...   21 November