Not wishing to be left in the cold, Richard Turner has decided to send in his own text-printing routine. It works in modes 0 and 1. Character position, character width and character height can all be defined, making it very easy to print text in a multitude of shapes and sizes. The listing below includes a short demo (starting at line 190) which can be omitted. However, I recommend typing it in as the results are rather rewarding. The word or sentence you want printed in fancy text must be located at the bottom left comer of the screen. The Call then transfers it to the given coordinates. To avoid text showing at the bottom of the screen, it is best to print it with PEN set to the current background colour. To produce the text the routine must be given a few parameters: CALL 40000, x, y, len*a, xstep, ystepwhere x and y are the coordinates (0-639 by 0-399); len*a is the length of the word or sentence multiplied by 16 for mode 1 or 32 for mode 0; xstep is the character width; and ystep is character height.You must be careful that XOR mode is off, that xstep and ystep are never zero, and that len is never greater than 15. AA
| ★ AMSTRAD CPC ★ DOWNLOAD ★ |
|
CPCrulez[Content Management System] v8.732-desktop/c Page créée en 593 millisecondes et consultée 1644 foisL'Amstrad CPC est une machine 8 bits à base d'un Z80 à 4MHz. Le premier de la gamme fut le CPC 464 en 1984, équipé d'un lecteur de cassettes intégré il se plaçait en concurrent du Commodore C64 beaucoup plus compliqué à utiliser et plus cher. Ce fut un réel succès et sorti cette même années le CPC 664 équipé d'un lecteur de disquettes trois pouces intégré. Sa vie fut de courte durée puisqu'en 1985 il fut remplacé par le CPC 6128 qui était plus compact, plus soigné et surtout qui avait 128Ko de RAM au lieu de 64Ko. |
|
|