jbs30000 #1 Posted April 20, 2008 I remember from another thread that you sometimes have to sometimes do math a little differently....for example Misc2=(player1y-24)/18 is giving me an error: div8 0000 ???? (R ) I tried going Misc2=(player1y-24)/(9*2) and Misc2=(player1y-24)/(6*3) But got the same error. So, how do I fix this? Thank you. Quote Share this post Link to post Share on other sites
jbs30000 #2 Posted April 20, 2008 Also, the game is multi-bank and include div_mul.asm doesn't work. Quote Share this post Link to post Share on other sites
SeaGtGruff #3 Posted April 20, 2008 Also, the game is multi-bank and include div_mul.asm doesn't work. It looks like you need to specify the include file before the romsize, or it won't include the include file: include div_mul.asm set romsize 8kSC An alternative would be to create a custom includesfile that includes div_mul.asm in it, which would also let you omit any unnecessary include files that you might not need-- e.g., pf_drawing.asm and pf_scrolling.asm: ; my_bankswitch.inc ; ; This is a customized version of the bankswitch.inc file. ; 2600basicheader.asm bB.asm std_kernel.asm startup.asm div_mul.asm std_routines.asm std_overscan.asm bB2.asm score_graphics.asm banksw.asm 2600basicfooter.asm Then, at the beginning of your program: includesfile my_bankswitch.inc set romsize 8kSC Michael Quote Share this post Link to post Share on other sites
jbs30000 #4 Posted April 20, 2008 I put include div_mul.asm before set romsize, and it worked. Thank you very much. Quote Share this post Link to post Share on other sites