fast print
ZXNet echo conference «code.zx»
From 812/08.16 → To Kostya Bykov 31 October 1997
The other day, 10.29.97, at 18:00, Kostya Bykov, wrote to All on
regarding "fast print", looking at this disgrace, I decided to intervene
in this conversation and this is what I wrote:
Glad to welcome you, Kostya!
KB> Maybe someone knows how to implement a fast one
KB> print text to the screen.
KB> It seems there is a special(?) font format and
As for the font, it should not be like in the ROM, i.e. images
characters should be stored not in a row at 8 bytes per character, but
through 256. That is first the first byte of the first character, then
the first byte of the second and so 256 bytes. Next is the second byte
the first character, the second byte of the second character, etc.
Simply put, in the art studio, right on the screen, you draw a font in
the upper third of the screen (the first 8 vertical spaces), there
Just 256 characters fit. Then you upload the screen file
and you use only the first 8 sectors (2 kilobytes). this and
There will be a font in a special format.
When printing text, you do it differently than usual:
LD HL, address on screen
LD DE, symbol image
-+----------- EIGHT TIMES ---------
LD A,(DE)
LD(HL),A
INC H
INC DE
-+--------------------------------
otherwise:
-+----------- EIGHT TIMES ---------
LD A,(DE)
LD(HL),A
INC H
INC D
-+--------------------------------
Do not do cycles under any circumstances, DJNZ is about 100 extraclock cycles for each character.
The font must be located at an address that is a multiple of 256. That is. youngest
the address byte must be 0 (zero).
The calculation of the symbol image in the font is done as follows:
LD D,font address/256 (high byte of font address)
LD E, code of the symbol to be displayed
KB> analysis of strings(?), characters?
KB> Thank you in advance for your answer.
KB> Best regards, Investigator.
Best regards, Denis.
-+- SMM version 1.00beta.
From John Stunner → To Kostya Bykov 2 November 1997
Glad I found you alive, Kostya!!!
However, on 00 Oct 97 you wrote something addressed to All:
KB> Maybe someone knows how to implement a fast one
KB> print text on the screen.
What text, in what format, how many characters is the line?
KB> It seems there is a special(?) font format and
KB> analysis of strings(?), characters?
Would you like me to tell you the fastest output of a page of text at the moment?
Write down:
ld hl,data
push hl
What does the thread say? No!? Well, I’ll explain: the necessary bytes of the image of the text page
There should be two bytes after the command code ld hl,nn. And so he signs
map, accordingly it is necessary to repeat this piece for every two bytes
image. It will turn out a lot, but believe me, this is the fastest conclusion at the moment
any image (be it text or any other arbitrary picture).
With best wishes, John.
===> #/FUCK/# *mUlTiMeDiA*, #/MAKE/# more $dEmOs$ ===>