Jump to content
Sign in to follow this  
gs80065xe

Debug PM Graph problem

Recommended Posts

Typed in Chicken Basic program from Antic vol1issue 1. Was crashing when loading the display. Found and fixed some data statement errors. As well as poke errors when I used 1 instead of I. Doesnt crash. But PM is not loading properly. I get that multi colored vertical bar. Checked and rechecked data statements. Cannot find errors. Checked logic where pm area is initialized and players setup. Dont see any typos. How do I track this down? Thanks.

Share this post


Link to post
Share on other sites

Sometimes in later on issue's , it may be appear some re-corrections of mistake basic lines from their previous issue like Vol 1 , No. 1 as for example. I do not know which later on issue's.

Share this post


Link to post
Share on other sites

Flickering bar might be graphics control or DMA not set properly, or PMBASE not set properly.

 

Look specifically for POKE 559, POKE 53277, POKE 54279 statements and verify.

 

It can also be helpful using Altirra debugger for such problems. Stop with F8 then type .antic and .gtia to get register states.

From there you can determine settings that on real machines can be hard to get since the actual registers are often write-only.

 

PMBASE problems with Basic can sometimes be related to improper memory management. Often it helps with such Basic programs to press Reset in between runs.

Edited by Rybags
  • Like 1

Share this post


Link to post
Share on other sites

Dont see any typos. How do I track this down? Thanks.

This is the chicken program that I have from an Antic Disk..

 

CHICKEN.bas

 

IF this is the same program that is being typed in from a listing then comparing them would help track problem.

Share this post


Link to post
Share on other sites

I downloaded the game from AtariMania. And that worked. So I knew it was a typo somewhere. Thanks for the tips Rybags. I either deleted or missed line 370. It contains the poke statements to init PM graphics. It's working fine now. I'm running on Kubuntu. So I use the Atari800 emulator. I don't suppose it has similar debug capability as Altira? As much as I sometimes despise Visual Studio, it's far easier to debug that Atari Basic.

  • Like 1

Share this post


Link to post
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.

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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...