ON USING Z-80 PROCESSOR COMMANDS.
music:Midisoft/Energy Minds
(C) Jason Kruger/Delirium Tremens
---------------------------------FUNeral--
Attention! Highly recommend
read the following document,
before taking any action
actions related to writing programs
(procedures) in Assembly language. All others
instructions - similar to those below or
those that differ from it are actually
XiaRiga Shit,Total Suxx & Fuckin` Lame...
ТОР SECRET.
ONLY FOR FUNeral READERZ.
ПЕРЕД ПPОЧTЕHNЕМ ОTФОPМАTNPОВАTЬ
1.Группа команд загрузки регистра.
Команд этих, честно говоря, - до задни-
цы,мне даже считать их лень. Но, насколько
показали исследования,все они начинаются с
одних и тех же букв - LD.Some kind of cretin
tried for a long time to prove to me that this is an abbreviation
meaningof the English word LoaD,which,
Actually, it means:"download".Version, which
exactly, plausible, but completely un-
correct from the point of viewof ideology.So, for-
remember, LD stands for "Lamers
age Dead" (translated from English. "lamers are good
hli"or "heaven on Earth").
Format of register loading commands is example-
but this:
LD register, register
Why approximately? Yes, because they are all the time
They spell me differently! Either just like that or
in brackets, then in letters, then in numbers... But
for some reason necessarily separated by commas. Horror
just some kind - neither you spelling, neither
punctuation - complete anarchy!..
The most funny in all this crap is that
that only numbers can be loaded into the registerA
here tomatoes - you can't.However, the numbers are the same
Yes, you need to shove also not all kinds. If you
naively believe that you can put it in a
some unfortunate person battery mass
Jupiter in milligrams, then I will hasten you to
break - first law of robotex... ugh...
The first law of code says:Do not overload the Re-
gistr. And rightly so! Overload this battery
cumulator, it will burst, yesdie...And bu-
children then in your apartment dead registration
rum stinks. But it’s from the processor FIG.
pull it out, especially if it’s dead. K
also, in shops (I asked myself) registration
stra for the processor are not available for sale
ut.Here.
2. Exchange commands.
Well, there will be fewer of these commands . But I
I didn’t count either, I’m still lazy. Start-
They are written in different ways - some are written
EX, and some -EXX. I like them better
the second - they are more beautiful (although there is only one of them
piece). By the way, one local idiot assured
methat this mnemonic stands for
as EXchange. But I, a philosopher by nature, do not
when I didn’t fall for such demagogic
Sky hooks! Remember: EX and EXX are me-
lancholic sigh of the coder getting up from the sofa
to take a baton and beatlamera.
I should note that by executing these commands
Yes, the processor Z-80 behaves as expected
ny boy - doesn't steal information,doesn't rat
and does not charge interest on exchanges.
Yes, and I almost forgot. If you favor-
you with the EX command, then after it you must
It is necessaryto write the nameof the registerswhich
ry you change. But EXX,being morepro-
advanced in this regard... Well... Co-
Rather, she doesn’t give a damn what you wrote there -
it always does the same thing: changes
main set of registers onalternative
(ALTERNATIVE - this is a set of registration
trov, which I, beingtrue metaler,pro-
I hate it a lot. - ed.).
3. General purpose commands.
General purpose commands include
a whole series ofinstructions:
DI,EI,IM0,IM1,IM2,DAA,NEG,CPL,CCF,SCF,NOP,
HALT.
These commands... Well... In short, this is what
vast ass, why should I write about them?
I won't do anything.Here.
4. Binary logic commands.
There are only three types of binary instructions:
no logic:
AND, OR and XOR.
I agree, not very much... But can you tell me...
believe, even the three above quite
xbatatet,to get confused in
in the wilds of binary logic itself. Consider-
three point by point. 4.1. AND
AND in English means "And" (in the sense of
after, as “Vova _I_ Vasya”, and not as “_I_d_I_
on..."). It would seem that everything is simple: something with
something is going on... Well, it’s like the de-
tey - "2 and 6 will be 8". Checked. Yeah, right now!
First, the command format:
AND 5
(I wrote this for example 5, but in general it is possible
but not 5 either).What is 5? Why? Where? To which
What's the point of attaching it to her? Unclear.Checked
registers are kind of crap! Everything except
A - the same, and in the battery total
mess (at least by adding 5 there
and it doesn’t smell)... I spat on this one AND
and decided to code without it. 4.2. OR
Using logic (formal, not
binary!), I hypothesized that
with this command the processor selects from two
there is only one number of proposed numbers(a coin is under-
throws, or something else) and lays out the necessary
new to register A. Well, yes, of course... Oracle from
me - like a helicopter from amare. Exactly like this
same situation as with AND! AND format (OR #34,
for example), and the results. Only in accumulator
toreanother number (but still crap).
And... Damn... Well, screw this one OR!
4.2. XOR
Well, I was tormented with the translation of the name
of this team! And inEnglishdictionary I
I watched it, and in German... Even in Norwegian
I looked - it's nowhere to be found. It came to me
only on the second day: in the processor
Chatka! It should say CHOR,and who-
then I made a mistake and wrote XOR.And the format is suitable:
completed
XOR "number"
and all registers sing in chorus what is there
afterXOR'ascrawled. I tried it. Ygy,
Well, in chorus - number and in tenor - aria...
Again, damn it, the battery is a mess, and
the rest of the registers are all the same...
B...!Well... Yes... Fuck her,
All this logic is binary! There is neither... nor-
what logic! And I’ll catch the one... who
it was invented by - ... in ... !!! All!
5. Decrement and increment.
Very simple commands. One something
reduces, the second - increases. What is the name
but I don’t know yet.
6. Arithmetic commands.
There are a whole bunch of them in the processor. And everything is for
addition and subtraction.And for multiplication and de-
There is no repentance. The question remains for the creators of Z-80:
WHY WERE UNDERVIEWED?!They have it there, you know
or the controllers are sitting drunk, nothing but
they don’t see the bottles, but we, the coders, because of them
you have to suffer from errors!
NowLet's move on specifically to the teams.
There aretwo types for addition:ADD and
ADC. The first one simply adds two numbers, and
the second - adds two numbers and some
"transfer flag".I looked on the computer -
I don't have one. Probablyunderstaffing-
tionwas not at the factory.
Subtraction commands are also divided by two
type: SUB and SBC.The first is taken away from the battery
lator is a number, the other is a number and this one
"transfer flag".It's a shame that I don't have it.
I would like to use the possibilities of com-
Pewter completely.
there is no change. The question remains for the creators of Z-80:
WHY WERE UNDERVIEWED?!They have it there, you know
or the controllers are sitting drunk, nothing but
they don’t see the bottles, but we, the coders, because of them
you have to suffer from errors!
Now let's move on specifically to the commands.
There aretwo types for addition:ADD and
ADC. The first one simply adds two numbers, and
the second - adds two numbers and some
"transfer flag".I looked on the computer -
I don't have one. Probablyunderstaffing-
tionwas not at the factory.
Subtraction commands are also divided by two
type: SUB and SBC.The first is taken away from the battery
lator is a number, the other is a number and this one
"transfer flag".It's a shame that I don't have it.
I would like to use the possibilities of com-
Pewter completely.
R.S. I recently saw children from the neighboring
kindergarten were hanging around the street with some
flags. This is probably what “transfer” is.
You'll have to steal it.
Share your thoughts about the article