RUSH #01
29 мая 1999 |
![]() |
Spectrum programming - Mirroring bytes and restoration of the background buffer.

Hi everyone! Today I would like to tell you about two things to know about that will, I think, helpful to those who are engaged toys. First: Mirroring bytes (Of course, what is it for?). The algorithm does not my, I should say. I found it in DIZZY-XX demo by VAV / MEGACODE. C address multiple of 256 (eg # 8000) is a table (256 bytes) SLR bytes (for 0 is # 00 for # 01 is # 80, etc). When we need mirror-bytes, for example, to 1, then do as follows: ... LD A, 1 LD E, A LD D, # 80 LD A, (DE); A = # 80, if the table formed correctly ... Second: the restoration of the background from the buffer (Printing sprites with a mask). During save the background before each line images retain the address where she displayed. The working buffer increase by (window height * 2), however, recovery rate of increase for account that will not have to calculate the next screen line. Example procedure Recovery: LD HL, BUFER LD A, HIGH; height M1 LD E, (HL) INC HL LD D, (HL) INC HL LDI LDI LDI; width of 3 bytes DEC A JR NZ, M1 RET Speed can count themselves. That's probably all for today. See you later! Bye!
Other articles:
Similar articles:
В этот день... 1 April
Info Guide #13,
ACNews #50,
Avro News #01,
ACNews #47,
ACNews #40,
ACNews #29,
Black Metall #01,
ACNews #16,
Adventurer #13,
Polesse #19,
Subliminal Extacy #03,
ZX Pilot #37,
Always #03,
Born Dead #0G,
Odyssey paper #08,
Optron #26,
City #08,
Zodiac #02,
Polesse #05,
Nicron #108,
X-Magazine #10,
Nicron #82,
Energy #01,
Sorrow News #03,
Sorrow News #02,
Proton #27,
Think #08,
Wallpaper #01,
Spectrum Progress #03,
Spectrum Expert #02,
Micro #01,
X-Files #02,
Gorodok #05,
Deja Vu #04,
Anecdotes #01,
X-Files #02,
Maximum #35,
Impulse #01,
Spectrofun #01,
Faultless #07,
Breeze #06,
Nicron #27,
Echo #03,
Oberon #01,
Spectrofon #19,
On-Line #30,
Sinclair Town #01,
Sinclair Classic #04,
Spectrofon #04