RGB
ZXNet echo conference «code.zx»
From Sergey Kovinov → To Vyacheslav Kalinin 6 March 2000
Hello.
DO> th topic: We throw one screen like this LD SP,....
DO> LD HL,DATA SCREEN
DO> PUSH HL
DO> LD HL,DATA SCREEN2
DO> PUSH HL
Well, this is the fastest throwing method
DO> and so this thing takes us about 4240 cycles, let’s sum it up
DO> 64512+4240=68752 well, since we have the slowest car
DO> this is basically a scorpion, and it has about 69000 clock cycles (my KAYA
DO> about the same), in short, judge for yourself, maybe I didn’t understand something
DO>, or maybe (I had one thought) in that viewer there is a switch of screens
DO> is done according to a different principle.
Let's start counting. If you do this, then the screen will be drawn,
when the beam passes along the curb, and therefore everything will be cut somewhere
in the second half of the screen. Now my method:
1. Place 1 picture on the second screen
2. We place the remaining two, in the form of the procedures written above, and perhaps it is possible
simpler.
3. Work:
3.1. turn on screen 2, and fill in the next picture on the screen, I did
construction along familiar lines (8 graphic lines, 1 attributes), i.e.
ld bc ATTR
ld sp,Line0
ld hl, data
push hl
...
ld sp,Line7
ld hl, data
push hl
...
ld sp,Line0Attrpush bc
...
in this way I finished building 2 pictures in 1.2 interruptions (well, music
was still playing, the keys were being processed, etc.).
3.2 took a short break and began to build picture 3, ending with the display
1 from the second screen.
As a result, it turned out that out of 3 interruptions I used 2.6 and the rest of the time
didn't do anything :-)
Now step by step again:
1. Show 1 picture (2nd screen), draw 2nd picture on the main screen.
2. Show 2nd picture (1 screen), finish drawing 2nd picture, start drawing
3, but you need to start after the beam has passed, so that there are no glitches.
3. Show the 3rd picture (1 screen), complete the 3rd picture, then wait for the frame and
all over again.
That's all. /Sergey/ []
With a large carriage of regards and vicious people.
(Pickup from SVERDLOVSK-SORTING station wagon #659839002)