Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to create and draw graphics
#8
slenkar Wrote:ok I got tommy gun working,

this is the code to put the fruit into memory:

POKE UINTEGER 23675, @udg(0, 0):

what if I wanted to create a second UDG
Would I change the 23675 number to something different?
For a 2nd UDG, just put the data following the first one; that is: 16 bytes together
Code:
DIM udg(16) as ubyte => { nn, nn, nn, nn, nn, _' Line break allowed using the "_" character
                      nn, nn, nn} : REM Up to 16 bytes

POKE UINTEGER 23675, @udg(0)
You can also declare it in a more "elegant way":
Code:
DIM udg(1, 7) as ubyte => { { 01, 02, 03, 04, 05, 06, 07, 08}, _ ' Line break with character '_'
                                         {01, 02, 03, 04, 05, 06, 07, 08}} : REM 2nd UDG

POKE UINTEGER 23675, @udg(0, 0)
slenkar Wrote:Also, do you know of a speccy emulator that accepts commandline arguments and can load a tzx file in quickly?(not spectacular)

Ive found 2 emulators but they only do one of the above each :x
I use EmuZWin: https://www.zophar.net/sinclair/emuzwin.html
Unfortunately, it seems abandoned since 2008. It runs ok in Windows XP. If you want to test it under Vista or Win7 you might want to enable "compatibility mode".
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)