[comp.sys.atari.st] Acc's

gilmore@vms.macc.wisc.edu (Neil Gilmore) (07/29/89)

Well, here I was trying to play this game, see? and I got sick of 
mapping the damn dungeon see? so I figures I'll write this nifty 
thingamabob to dump the screen to print when I hit the right key, see?

Anyway, what I tried to do was write an accessory which would respond to 
an evnt_keybd, and use the Xbios scrdmp when the right key was hit. It's 
the first .acc I've ever written (I don't find them all that useful, 
actually, although running 6 *different* clocks on the desktoip can be 
fun). 
     I used a variation of the article from awhile back for writing 
accs using Sozobon, variation in that I used assembly. All runs well up 
to the evnt_keybd loop, name in menu, etc.
     Must .accs respond only to evnt_multi or evnt_mesag? Anybody got 
any neat tricks for .accs?
     Anyway, here is the way the code is set up (sorry, I'm at work so 
this is from memory).

(mess with stack)
(appl_init)
(menu_register)
jsr main

main:
(evnt_keybd)
            <- never gets to here.
move #$2C00, d0   ;alt-z
cmp  intout,d0
beq  print_screen
jmp main 

Anybody got a clue?
Thanx.

+-----------------------------------------------------------------------+
| Kitakaze Tatsu Raito	Neil Gilmore     internet:gilmore@macc.wisc.edu | 
| Jararvellir,          MACC, UW-Madison bitnet: gilmore@wiscmac3       |  
| Middle Kingdom        Madison, Wi                                     |
+-----------------------------------------------------------------------+   

gilmore@vms.macc.wisc.edu (Neil Gilmore) (07/31/89)

Thanks, Greg, although I'm not sure why this would be so.

Anyway, I found out that this technique wouldn't work because the game 
never calls the AES, so it would never come back.

Anybody have a way to set up a key to dump the screen to print that 
works?

+-----------------------------------------------------------------------+
| Kitakaze Tatsu Raito	Neil Gilmore     internet:gilmore@macc.wisc.edu | 
| Jararvellir,          MACC, UW-Madison bitnet: gilmore@wiscmac3       |  
| Middle Kingdom        Madison, Wi                                     |
+-----------------------------------------------------------------------+