Showing changes from revision #4 to #5:
Added | Removed | Changed
Entry | |
---|---|
- | - |
Exit | |
---|---|
R0 | Base of ROM Sprite Area |
R1 | Base of RMA Sprite Area |
The purpose of this call is to find the memory addresses of the ROM and RAM parts of the Wimp’s sprite pool. Note that the RMA area may move around (when sprites are added) and that Window Manager’s with version greater than 3.5 use a dynamic area instead of the RMA.
You can use these addresses with OS_SpriteOp, but you should always use Wimp_SpriteOp.
The only real use for this SWI is for saving the ROM sprites to a file. An example code in BASIC is provided below.
SYS "Wimp_BaseOfSprites" TO ROMBase%,RMABase% SYS "OS_SpriteOp",12,ROMBase%,”filename”