home *** CD-ROM | disk | FTP | other *** search
- ;ShowPic-routine written by NoLimits in 1988,could
- ;be used together with the SetColor program.
- ;
-
-
- picplanes: dc.w 5 ;bitplns in piccy
- picwith: dc.w 36 ;picwith in bytes,rounded up
- pichigh: dc.w 175 ;pichigh in lines
- lineofset: dc.w 0 ;calulated by the routine
- picadr: dc.l 0 ;the adress where the piccy is
- ;should be label PICCY
- showadr: dc.l 0 ;the adr where you want the
- ;piccy to be shown
- picsize: dc.l 0 ;calced by the routine
- highofset: dc.l 0 ; «» «» «» «»
- PICCY: blk.b 19314 ;reserve mem for piccy(load it here)
- piccyend:
- even
-
- showpic:
- clr.l d0
- move #planewith,d0
- muls pichigh,d0
- move.l d0,picsize
- move.l #planesize,highofset
- move.l picsize,d0
- sub.l d0,highofset
- sub #1,picplanes
- sub #1,picwith
- sub #1,pichigh
- move #planewith,lineofset
- move picwith,d0
- add #1,d0
- sub d0,lineofset
- move.l showadr,a0
- move.l picadr,a1
- move picwith,d0
- move pichigh,d1
- move picplanes,d2
- sp1: move.b (a1)+,(a0)+
- dbf d0,sp1
- move picwith,d0
- add lineofset,a0
- dbf d1,sp1
- move pichigh,d1
- add.l highofset,a0
- dbf d2,sp1
- rts