Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rochester!cornell!batcomputer!braner From: braner@batcomputer.tn.cornell.edu (braner) Newsgroups: comp.sys.atari.st Subject: Problem doing screen dump Message-ID: <2064@batcomputer.tn.cornell.edu> Date: Sat, 17-Jan-87 18:32:25 EST Article-I.D.: batcompu.2064 Posted: Sat Jan 17 18:32:25 1987 Date-Received: Sun, 18-Jan-87 07:37:42 EST Reply-To: braner@batcomputer.UUCP (braner) Organization: Theory Center, Cornell University, Ithaca NY Lines: 35 [] I'm trying to write a RAM-resident program, activated by the screen-dump vector at $502, to dump the screen in DEGAS format to a prepared space in RAM. Here is the basic code: LEA space(PC),A1 MOVE.B 0xFF8260,D0 /* video resolution */ ANDI.W #3,D0 MOVE.W D0,(A1)+ MOVE.L #0xFF8240,A0 /* palette */ MOVE.W #15,D0 dopal: MOVE.W (A0)+,(A1)+ DBF D0,dopal CLR.L D0 MOVE.B 0xFF8201,D0 /* video address */ LSL.W #8,D0 MOVE.B 0xFF8203,D0 LSL.L #8,D0 MOVE.L D0,A0 MOVE.W #15999,D0 domap: MOVE.W (A0)+,(A1)+ /* <<<<<<<<<< BIG PROBLEM!!!!! */ DBF D0,domap After installing the program, and then pressing Alt-Help (from the desktop), everything looks OK, until I try to click on something on the desktop: BOOM! - fiery crash! Checks I've done: The address calculated for A0 IS the screen address, there IS enough space at 'space', and there is no problem if the 15999 is reduced to, say, 100. HELP! - Moshe Braner