Thread: Sine scroller
View Single Post
Old 18 April 2007, 13:49   #32
bobbybearing
Zone Friend
 
bobbybearing's Avatar
 
Join Date: Oct 2003
Location: France
Age: 51
Posts: 161
I'm agree with AGN about devpac labels : I use devpac 2, and I have same errors. If you want to use same label in other sub routine, try to call it .label or _label
example:
Code:
rout1:
...
.blit_char:
...
bne.s .blitchar
...

rout2:
...
.blit_char:
...
bne.s .blit_char
2nd point : your sinus don't move like wave ?!? add only 1 line at "next_word" after dbra:
Code:
dbra d2,sin_blits
addq.l #1,mstr_sin_ptr ;<----
bra.s interrupt_done
3rd : you can put some datas in code, and not in "data_c", like variables system and variables mine, and also the text and sintab. no need to be in chip "video" ram.
and when your variables are in same hunk than your code, you can call them with the Program Counter, avoid your code to be better relocatable:
Code:
move.l scroll_ptr(pc),a0
you can take a look at some sources code here. using 2 types of my personal startup code and differents ways of sinscroller from wellknown cracktros. (main sources menu)

Last edited by bobbybearing; 18 April 2007 at 14:02.
bobbybearing is offline  
 
Page generated in 0.08012 seconds with 11 queries