home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 3
/
TheARMClub_PDCD3.iso
/
hensa
/
utilities
/
a295_1
/
!MDisplay
/
TechDoc
< prev
next >
Wrap
Text File
|
1993-06-07
|
864b
|
23 lines
If you want to use the most excellent MDisplay module in your own code,
then all you have to do is load it, load the pic at User_SpriteAddress%,
work out the sprite's X and Y sizes (User_SpriteSizeX% and User_SpriteSizeY%)
then write a bit of code that goes like this:
User_Mode%=MODE
REM Remember what mode we were in.
SYS "MDisplay_Show",User_SpriteAddress%,User_SpriteSizeX%,User_SpriteSizeY%
REM Leap into 480k's worth of glorious multisync memory.
REM You *do* have enough memory, don't you?
SYS "Wimp_SetMode",User_Mode%
REM Return to our previous mode.
OSCLI("FX 15")
REM Clear the keyboard buffer of "///'''xzxz//x'zz " chars.
Simple, innit!
Look at the BASIC source code for more details on how to rip out
the size info from a sprite block, but note that I don't do it nicely!
Remember to say "Ta" to Colin if you use his module.