home *** CD-ROM | disk | FTP | other *** search
- *------------------------------------------------------
- *
- * Super Magic 3 Documentation (beta)
- *
- * Written by: Lim Thye Chean
- *
- *
- * Super Magic 3 is a macro programming tools for ORCA/M
- * programmers. It allows programmers to create fast
- * animation on the Apple IIGS, using simple macros.
- *
- * The demo s320.e is included. It demonstrate the power
- * of Super Magic 3. You can study the s320.asm source
- * code, and write your own program.
- *
- * To use Super Magic 3, includes
- *
- * 1. mcopy sm.macros
- * at the beginning of your program.
- *
- * 2. mcopy sm.header
- * at the beginning of your program.
- *
- * 3. append sm.lib
- * at the end of your program.
- *
- *
- * Super Magic 3 is freeware. It is written by an author
- * who loves programming on the Apple IIGS. If you have
- * any suggestions or questions, or simply like this
- * program, please write your suggestions, questions,
- * letter of encouragement, or send anything useful
- * to the following address:
- *
- * Bitnet: issltc@nusvm.bitnet
- * Internet: ltchean.iss.nus.sg
- * Address: 9, College Green, Singapore 1129
- *
- * Apple IIGS Forever! - GS Lover Lim Thye Chean
- *
- * Note: Lim is my surname. Thye Chean is my name.
- *
- *------------------------------------------------------
- *
- * Below are the Super Magic 3 macros.
- *
- * {..} means optional
- *
- * (..) means argument
- * (pt): Registers x, y protection. Default: yes
- * To overwrite, put pt='no'
- * (ol): Overlay. Default: no
- * To overwrite, put ol='yes'
- * (yc): Y clipping. Default: yes
- * To overwrite, put yc='no'
- *
-
- startUp
-
- Start up Super Magic.
-
-
- shutDown
-
- Shut down Super Magic.
-
-
- superHires
-
- Switch on Super Hires display.
-
-
- text
- Switch on Text display.
-
-
- plotPixel x, y, colour
-
- Plot pixel.
-
-
- erasePixel x, y
-
- Erase pixel to colour 0.
-
-
- erasePixelFast x, y
-
- Erase pixel to colour 0 fast. Background is destroyed.
-
-
- showPixel x, y
-
- Show pixel
-
-
- plotHorLine x1, x2, y, colour
-
- Plot a horizontal line from (x1, y) to (x2, y).
- X1 and X2 are constants. X1 is even, X2 is odd.
-
-
- plotVerLine x, y1, y2, colour
-
- Plot a vertical line from (x, y1) to (x, y2).
- Y1 and Y2 are constants.
-
-
- plotShape x, y, width, height, shape, {mask}, {background}, (protected)
-
- Plot a shape,
- If mask is undefined, no mask is used.
- If background is undefined, no background is saved.
-
-
- eraseShape x, y, width, height, {background}, (pt)
-
- Erase a shape.
- If background is undefined, shape is erased by colour 0.
-
-
- showShape x, y, width, height, (pt)
-
- Show a shape.
-
-
- showFullShape x, y, width, height, (pt)
-
- Show a shape with border of 2 pixels on all sides.
-
-
- cycleLeft palette, colour1, colour2
-
- Colour cycle to the left of palette.
- If colour number is defined, range within colour 1 and 2 is cycled.
- Colour 1 < Colour 2.
- If colour number is undefined, whole palette is cycled.
-
-
- cycleRight palette, colour1, colour2
-
- Colour cycle to the right of palette.
- If colour number is defined, range within colour 1 and 2 is cycled.
- Colour 1 < Colour 2.
- If colour number is undefined, whole palette is cycled.
-
-
- gradientFill palette, gradient colour
-
- Gradient fill the palette.
-
-
- setFont font, width, height
-
- Set a font to be used by Super Magic.
-
-
- setStandardColour
-
- Set standard colour in all palettes.
-
-
- setAllPalette0
-
- Set all lines to palette 0.
-
-
- setColour palette, colour, RGB
-
- Set a colour in palette to be a RGB value.
- If RGB is undefined, accumulator is used.
-
-
- getColour palette, colour
-
- Get the RGB value from the colour in the palette.
- Output is stored in accumulator.
-
-
- print x, y, message, colour, (pt), (ol), (yc)
-
- Print a message.
-
-
- centrePrint y, message, colour, (pt), (ol)
-
- Centralize print
-
-
- clearScreen {colour}
-
- Clear the screen.
- If colour is undefined, colour 0 is used.
-
-
- clearArea Y1, Y2, (pt).
-
- Clear an area from (0, Y1) to (319, Y2).
- Y1 <= Y2, Y1 and Y2 are constant.
-
-
- getKey key
-
- Get a key.
- If variable is undefined, no key is returned.
-
-
- shadowOn
-
- Switch on shadowing.
-
-
- shadowOff
-
- Switch off shadowing
-
-
- random
-
- Get a random number.
- Output is stored into accumulator.
- Output is -32768 to 32767.
-
-
- startMusicTool
-
- Start music tool (Tool 219).
-
-
- loadMusic song
-
- Load one SoundSmith song.
-
-
- playMusic loop
-
- Play SoundSmith music. Loop is either '#True' or '#False'.
- If Loop is '#True', the song repeats after finish.
-
-
- stopMusic
-
- Stop SoundSmith music.
-
-
- shutDownMusicTool
-
- Shut down music tool.
-