Jump to content
IGNORED

Two beginner's questions to batari-basic


Franky666

Recommended Posts

Hello,

 

I downloaded batari basic and I made my first game with that. 4K-Rom.

 

Now I have a few questions to that, where I didn't find answers in the www yet.

 

 

1. Stella emulator didn't run my game in developer mode until I did a little tweak. Solution?

 

My game didn't run properly when I switched the stella emulator to developer mode. The game, written in NTSC-mode, gave "Snow" and was wrongly run in PAL. It especially happened if I turn on the input pin randomizer functions in developer mode.

By trial and error I found out that setting pfrowheight was the cause. I didn't manage to get it work first. But then I found out, that in one of the assembler include files a "#" seems to be missed. I added that and since that the game runs fine.

I found out that solution because the else-path of the affected if-branch had an "#" for that line.

 

I thing, this hacky way isn't a real solution. How to proper fix this issue without hacking an include files?^^

 

 

2. Define score characters for the values A-F possible?

I modified score_graphics.asm to do that.

I added one blank character for "A", because 6 digits with leading zeros was not the best choice for a game mode selector in the beginning. This increased scoretable by 8 byte.

 

Can I do it that way?

Beside the score "font", there are org and rorg statements for each cartridge type.

Do I need to shift the value of these by 8 byte for that? Their addresses look like the end of a cartridge so I have to shift it back by 8 byte to prevent the compiler exceeding the rom limits. Or not?

  • Like 1
Link to comment
Share on other sites

1: It seems like the problem is that u used too many cycles not sure how to fix this but the way I fixed it was to alternate instructions into separate frames.

 

2: I'm not quite sure on this one. I do know it's possible as they can be called to the score and output corrupted graphics.

Link to comment
Share on other sites

 set romsize 2k
 set tv ntsc 
 set optimization speed 
 gosub ps10
 player0x = 20
 player0y = 20
ruck
 COLUP0 = $5E
 COLUBK = $5C
 drawscreen
 goto ruck

ps10
 player0:
 %00011000
 %00111100
 %00011000
end
 return

This one is fine if I run it in Stella regulary.

If I switch Stella to developer mode, the pink color turns green and the "signal is bad" (No idea how to call if an ancient TV set is slighly mistuned so the image start bouncing up and down). Stella also says "PAL" instead of "NTSC".

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