4 * [Generated from sprite, 25 September 1996]
7 #if !defined(__CC_NORCROFT) || !defined(__arm)
8 #error You must use the Norcroft ARM Compiler for Sapphire programs
11 #pragma include_only_once
12 #pragma force_top_level
21 /*----- Overview ----------------------------------------------------------*
30 /* --- sprite_op --- *
32 * On entry: R0,R2-R7 == SpriteOp parameters (R1 set up here)
34 * On exit: Registers and flags altered as for the SpriteOp
36 * Use: Performs an OS_SpriteOp with the given arguments, using
37 * the appication's Sprites resource as the sprite area.
40 extern routine sprite_op;
42 /* --- sprite_getTable --- *
44 * On entry: R0 == pointer to a sprite
45 * R1 == pointer to buffer for translate table
49 * Use: Creates a colour translate table for the given sprite in
50 * the specified buffer.
52 * If you have a sprite name but no pointer, use OS_SpriteOp
53 * 24 to find the pointer -- this will make further sprite ops
54 * on the sprite much quicker.
57 extern routine sprite_getTable;
59 /* --- sprite_plot --- *
61 * On entry: R0 == pointer to a sprite
62 * R1 == x coordinate to plot at
63 * R2 == y coordinate to plot at
64 * R3 == pointer to scale block, or 0 for 1:1
66 * On exit: CS if the sprite was plotted OK, else CC
68 * Use: Plots a sprite on the screen. The scaling refers to the
69 * sprite proper: /this/ routine takes care of odd pixel
70 * sizes and things, so sprites don't appear squashed or
71 * stretched unless you really want them to.
73 * We return C clear on exit if we couldn't plot the sprite;
74 * typically this would be if the sprite's mode is undefined.
77 extern routine sprite_plot;
79 /*----- That's all, folks -------------------------------------------------*/