★ APPLICATIONS ★ DIVERS ★ SCREEN SQUASH (AMSTRAD ACTION) ★![]() |
| Screen Squash (Amstrad Action) | Applications Divers |
Great listing from Simon Solway of Sheffield. It compresses screen data, therefore reducing the amount of memory needed to store a picture. Andconsequently it cuts loading and saving time considerably. The program, in machine-code, contains two sections: the squash routine and the unsquash routine. To squash a picture, make sure that the image is on screen and Himem is set to &65FF at most. Then CALL &9700. To save this data, you will have to enter the following SAVE"fiIename" ,B , &5600 , PEEK(&5601) *256*PEEK(&5602) - &56O0 To unsquash a picture, load the program, then the squashed data at &5600, and then CALL &97A0. Neither routine can cope with screens that have scrolled. So before you squash or unsquash it's advisable to set the Screen Offset to zero, by entering a Mode command - do this before drawing a picture. AA#16
|