Newsgroups: comp.sys.sinclair
Path: ulke.hiMolde.no!trane.uninett.no!sunic!news.luth.se!eru.mt.luth.se!bloom-beacon.mit.edu!news.kei.com!news.mathworks.com!hookup!swrinde!pipex!uknet!comlab.ox.ac.uk!elliott
From: elliott%teaching.physics@ox.ac.uk (John Elliott)
Subject: Re: Help with Spectrum UDGs
Message-ID: <1995Feb23.184305.18836@inca.comlab.ox.ac.uk>
X-Newsreader: TIN [version 1.2 PL2]
References: <3iict2$siq@unicorn.nott.ac.uk>
Date: Thu, 23 Feb 95 18:43:05 GMT
Lines: 40

In article <3iict2$siq@unicorn.nott.ac.uk>, AndrewBuisson wrote:
: I've recently got hold of a Spectrum emulator. Can somebody
: remind me which command you use to make user-defined characters?

A simple example is:

  POKE USR "A"+0, BIN 00111100
  POKE USR "A"+1, BIN 01000010
  POKE USR "A"+2, BIN 10100101
  POKE USR "A"+3, BIN 10000001
  POKE USR "A"+6, BIN 10100101
  POKE USR "A"+7, BIN 10011001
  POKE USR "A"+5, BIN 01000010
  POKE USR "A"+6, BIN 00111100

  Basically: "A" is the graphics character to define (A-U in 48 mode, A-S in 
128 mode); 0-7 is the offset (8 bytes make one character); BIN xxxxxxxx is 
the bitmap. If you will want to define the character frequently, you can 
replace the BIN xxxxxxxx by a decimal value, or use a READ ... DATA loop.
To print the UDGs, select graphics mode and press the key corresponding to
the graphics character you redefined.

  It is possible to redefine the normal characters (32-127) like this, but
that's another story...

  btw, if you've got the TK95.ROM, that includes a UDG editor. Type 

UDG 2

  to run it. As I recall, to get UDG you type one of [pound] or [copyright] -
the other one produces TRACE.

--
John Elliott                  
elliott.teaching@physics.oxford.ac.uk
----------------------------------------------------
 BLOODNOK: "But why have you got such a long face?"
 SEAGOON: "Heavy dentures, Sir!" 
                                   - The Goon Show 
:--------------------------------------------------)
