Jump to content
IGNORED

Math error


jbs30000

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...