Article View: comp.sys.atari.st
Article #2687Acc's
From: Neil Gilmore
Date: Sat, 29 Jul 1989 05:56
Date: Sat, 29 Jul 1989 05:56
39 lines
1876 bytes
1876 bytes
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 |
+-----------------------------------------------------------------------+
Technical Details
Message-ID:
<2135@dogie.macc.wisc.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!csd4.milw.wisc.edu!dogie.macc.wisc.edu!vms.macc.wisc.eduShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!csd4.milw.wisc.edu!dogie.macc.wisc.edu!vms.macc.wisc.edu From: gilmore@vms.macc.wisc.edu (Neil Gilmore) Newsgroups: comp.sys.atari.st Subject: Acc's Message-ID: <2135@dogie.macc.wisc.edu> Date: 29 Jul 89 05:56:56 GMT Sender: news@dogie.macc.wisc.edu Organization: University of Wisconsin Academic Computing Center Lines: 39