; ; dynArea.sh ; ; The handling of the dynamic area itself ; ; © 1994 Straylight ; ;----- Overview ------------------------------------------------------------- ; ; Functions provided: ; ; da_findPage ; da_addPages ; da_removePages ; da_readSize ; da_describe ; --- da_findPage --- ; ; On entry: R2 == address of the page ; ; On exit: R0 == page number ; ; Use: Finds the page number of the page with the address given. IMPORT da_findPage ; --- da_addPages --- ; ; On entry: R0 == number of pages to add ; R12 == workspace address ; ; On exit: Possible error returned ; ; Use: Increases the size of the dynamic area by the number of ; pages given in R0 IMPORT da_addPages ; --- da_removePages --- ; ; On entry: R0 == number of pages to remove ; ; On exit: -- ; ; Use: Removes the given number of pages from the dynamite ; area. If the number of pages to remove is greater than ; the actual number of pages allocated, as many as possible ; are removed IMPORT da_removePages ; --- da_readSize --- ; ; On entry: -- ; ; On exit: R0 == size of area ; ; Use: Returns the size of the sprite area (including the ; dynamite area). IMPORT da_readSize ; --- da_describe --- ; ; On entry: -- ; ; On exit: R0 == dynamic area number (3 == sprite area) ; R1 == size of area ; R2 == total free in area ; ; Use: Gives back som information on the dynamite area. IMPORT da_describe ;----- That's all, folks ---------------------------------------------------- END