Jump to content
IGNORED

Trying to figure out what I'm doing wrong...


PacManPlus

Recommended Posts

Hi:

 

I am programming in bBasic for the first time, taking each stop one at a time. I am (at this point) just trying to display a playfield using the multisprite kernel, and I am getting a weird error. First, here is my code so far:

 

 set kernel multisprite
set smartbranching on
set tv ntsc
set romsize 4k
set kernel_options pfcolors

pfheight=1
const screenheight=80

mainroutine

playfield:
XXXXXXXXXXXXXXXX
................
................
................
................
................
XXXXXXXXXX...XXX
................
................
................
................
................
XXXXXXX...XXXXXX
................
................
................
................
................
XXXX...XXXXXXXXX
................
................
................
................
................
XXXX...XXXXXXXXX
................
................
................
................
................
XXXXXX...XXXXXXX
................
................
................
................
................
XXXXXXXXX...XXXX
................
................
................
................
................
XXXXXXXXXXXXXXXX
................
end

COLUBK=6 
pfcolors:
66
134
134
134
134
134
66
66
66
66
66
66
66
66
66
66
66
66
66
28
28
28
28
28
66
66
66
66
66
66
66
66
66
66
66
66
66
200
200
200
200
200
66
end

drawscreen
goto mainroutine

 

and this is the error I'm getting:

 

2600 Basic compilation complete.

DASM V2.20.07, Macro Assembler ©1988-2003

bytes of ROM space left

--> cycle74_HMCLR f084

 

Of course, the bin doesn't run (it crashes), so I'm trying to figure out what I did wrong... can anyone see anything obvious?

Thanks in advance,

Bob

Link to comment
Share on other sites

I am programming in bBasic for the first time, taking each stop one at a time. I am (at this point) just trying to display a playfield using the multisprite kernel, and I am getting a weird error.
2600 Basic compilation complete.

DASM V2.20.07, Macro Assembler ©1988-2003

bytes of ROM space left

--> cycle74_HMCLR f084

That particular message is more of a warning than an error, and it won't keep your program from running. Basically, it means that the address of the line label "cycle74_HMCLR" changed while DASM was assembling your program, between one pass and another pass. That's actually a pretty normal thing to have happen, because it normally takes an assembler two or three passes through the code to resolve the addresses of all the labels.

 

However, when I compile your program, I get a different message, one which indicates a real problem-- namely, that you're trying to use the pfcolors kernel option with the multisprite kernel. Unfortunately, none of the kernel options will work with the multisprite kernel. So you should out everything related to the pfcolors kernel option. I've also removed the tv and romsize statements, because you're setting them to the default values, hence you can omit them (or you can leave them in if you prefer; it won't make any difference).

 

   set kernel multisprite
  set smartbranching on

  pfheight=1
  const screenheight=80

mainroutine

  playfield:
  XXXXXXXXXXXXXXXX
  ................
  ................
  ................
  ................
  ................
  XXXXXXXXXX...XXX
  ................
  ................
  ................
  ................
  ................
  XXXXXXX...XXXXXX
  ................
  ................
  ................
  ................
  ................
  XXXX...XXXXXXXXX
  ................
  ................
  ................
  ................
  ................
  XXXX...XXXXXXXXX
  ................
  ................
  ................
  ................
  ................
  XXXXXX...XXXXXXX
  ................
  ................
  ................
  ................
  ................
  XXXXXXXXX...XXXX
  ................
  ................
  ................
  ................
  ................
  XXXXXXXXXXXXXXXX
  ................
end

  COLUBK=6 
  COLUPF=66

  drawscreen
  goto mainroutine

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...