Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!unixg.ubc.ca!mintha From: mintha@unixg.ubc.ca (Jim Mintha) Newsgroups: comp.sys.atari.st.tech Subject: Re: Closing AES boxes interfering with VDI drawing Summary: using gcc and assembly Keywords: aes dialog gcc asm Message-ID: <1990Dec19.221105.5886@unixg.ubc.ca> Date: 19 Dec 90 22:11:05 GMT References: <3391@medusainformatik.uni-erlangen.de> <1990Dec18.161238.24031@unixg.ubc.ca> <4545@ruuinf.cs.ruu.nl> Sender: news@unixg.ubc.ca (Usenet News Account) Organization: University of British Columbia, Vancouver, B.C., Canada Lines: 24 On a related topic, does anyone who is using gcc know how the asm command works? I can't seem to find any information on in it in the info system in emacs. I want to do a loop to move the screen up one line in assembly, but I can't seem to get it to use labels. I want to do something like this: (somewhat simplified) asm ("movel %0,a0" :: "a" (scrbase)) /* load a0 screen adr */ asm ("movel %0,a0" :: "a" (scrbase2)) /* destination (1 line down) */ asm ("movew %0,d0" :: "d" (size)) /* number of long words */ asm ("loop: movel (a1)+,(a0)+") /* copy the memory */ asm ("dbf d0,loop") /* --1 and branch */ My assembly is a little shakey, but I was able to get it to work with megamax C, but the above GCC version won't work. Jim (email mintha@geog.ubc.ca) -- ------------------------------------------------------------------------------- Jim Mintha University of British Columbia Programming Assistant Geography Department e-mail: mintha@geog.ubc.ca Vancouver, B.C.