Dead Hackers Society
Other BBSes »
 
 
Demoscene  Coding  CT60  Buy/sell

Atari coding BBS
 
Re: Scroll text techniques
Posted by: Bod/STAX Oct,27.2007-19:18 

You can also use movep.l by converting your font so that it's 4 8x32 strips in 4 planes (if it's a 32x32 4 plane font), read an adress of a strip and construct it across the screen. I.E.

lea scroll_tab,a0
move.l phys,a2
move.l (a0)+,a1
x set 0
rept 4
movem.l (a1)+,d0-d7
movep.l d0,x(a2)
movep.l d1,x+160(a2)
movep.l d2,x+160*1(a2)
movep.l d3,x+160*2(a2)
movep.l d4,x+160*3(a2)
movep.l d5,x+160*4(a2)
movep.l d6,x+160*5(a2)
movep.l d7,x+160*7(a2)
x set x+160*8
endr
addq.w #1,a2

move.l (a0)+,a1
x set 0
rept 4
movem.l (a1)+,d0-d7
movep.l d0,x(a2)
movep.l d1,x+160(a2)
movep.l d2,x+160*1(a2)
movep.l d3,x+160*2(a2)
movep.l d4,x+160*3(a2)
movep.l d5,x+160*4(a2)
movep.l d6,x+160*5(a2)
movep.l d7,x+160*7(a2)
x set x+160*8
endr
addq.w #7,a2

It should also eaily be possible to impliment directional changing scrolling with this method (I.E. use arrow keys to change scrolltext direction).







[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
Scroll text techniques Vincent Riviere Oct,24.2007-20:03
  Re: Scroll text techniques earx Oct,24.2007-20:09
    Re: Scroll text techniques earx Oct,24.2007-20:27
      Re: Scroll text techniques earx Oct,24.2007-20:31
        Re: Scroll text techniques earx Oct,24.2007-20:32
      Re: Scroll text techniques Vincent Riviere Oct,24.2007-22:33
        Re: Scroll text techniques earx Oct,25.2007-09:49
  Re: Scroll text techniques ggn Oct,25.2007-11:23
    Re: Scroll text techniques Bod/STAX Oct,25.2007-17:55
  Re: Scroll text techniques evil Oct,27.2007-17:50
    Re: Scroll text techniques earx Oct,27.2007-19:01
    Re: Scroll text techniques Bod/STAX Oct,27.2007-19:18
      Re: Scroll text techniques gloky Nov,25.2007-13:22
        Re: Scroll text techniques Bod/STAX Nov,25.2007-21:26
          Re: Scroll text techniques gloky Dec,10.2007-22:15
            Re: Scroll text techniques gloky Jan,04.2008-15:10


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

What's the anti-troll code?
That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson