home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!mel.dit.csiro.au!mineng.dmpe.CSIRO.AU!dmssyd.syd.dms.CSIRO.AU!metro!grivel!neumann.une.edu.au!cfiddyme
- From: cfiddyme@neumann.une.edu.au (Chris Fiddyment)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Assembly questions.
- Message-ID: <1802@grivel.une.edu.au>
- Date: 3 Sep 92 10:33:53 GMT
- Sender: usenet@grivel.une.edu.au
- Lines: 47
-
-
- Hi,
- I have a few (hopefully simple) questions to ask. I am new to assembler and
- can't afford a book yet (besides a borrowed copy of the RKM's).
-
- First I am using the commands
-
- move.l #186,d0
- divu #10,d0
- moveq.l #0,d1
- move.b d0,d1
-
- to get d1 = 18. How canI get the remainder of the division (the upper part
- of d0) into register d2. Is there some way to shift the register?
-
- Another question. I have written a program that opens a screen and moves a
- sprite around. How do I print images to the screen. I tried the following :
-
- move.l intbase,a6
- move.l rastport,a1 ; these could be back to front.
- lea blockimage,a0
- move.l #10,d0
- move.l #10,d1
- jsr -114(a6) ;DrawImage()
-
- with the following variables:
-
- blockimage
- dc.w 0,0,15,10,2 ; Is this the correct format. It seems right from
- dc.l myimage ; looking in the RKM's
- dc.b 0,0
- dc.l 0
-
- myimage
- dc.w %0000000000000000,%0000000000000000
- ;10 lines of image data
- dc.w %0000000000000000,%0000000000000000
-
- When the program is run the image is not drawn, the sprite dissapears from the
- screen but the sprite handling routines still work.
- What am I doing wrong??
- When I get some money what is a book on assembler to get?
-
- Thanks, Chris.
-
- * Chris Fiddyment. | I never promised anybody *
- * cfiddyme@neumann.une.edu.au | anything. Kermit. *
-