Jump to content
IGNORED

minikernel - timing, help


bogax

Recommended Posts

I'm trying to write a minikernel but some
how I've gotten the timing screwed up.

Initialization of the TIA happens (mostly)
during the first line.

Among other things GRP1, GRP0, VDELP1 and
VDELP0 get set to $00.

RESP1 gets set at cycle 34 (there's 31
cycles before the sta RESP1) then some set
up happens for 3 lines and on cycle 69 of
the fourth line GRP1 gets set for display
on the fifth line but it seems to be appearing
on the fourth line.

I can't figure out what I've done wrong.

code here:

http://basicplay.netau.net/

Edited by bogax
Link to comment
Share on other sites

I haven't been able to open that link you put, it just loads the page indefinitely, not sure if that's just me though. In general though, if your having trouble getting any code working there are two basic approaches that I like.

 

1. Guess and check by reverting the code to something functional (if it was ever at that stage) and adding things back in one at a time until it breaks.

2. Find code similar to what you're trying to accomplish that you know works (like another mini kernel) and change it bit by bit to match yours, sometimes you get something incredibly basic wrong and don't even notice until you go through this process.

 

If I can ever open the page with your code I'll try to go through it and see if I can offer some more helpful suggestions.

Link to comment
Share on other sites

I haven't been able to open that link you put, it just loads the page indefinitely, not sure if that's just me though. In general though, if your having trouble getting any code working there are two basic approaches that I like.

 

1. Guess and check by reverting the code to something functional (if it was ever at that stage) and adding things back in one at a time until it breaks.

2. Find code similar to what you're trying to accomplish that you know works (like another mini kernel) and change it bit by bit to match yours, sometimes you get something incredibly basic wrong and don't even notice until you go through this process.

 

If I can ever open the page with your code I'll try to go through it and see if I can offer some more helpful suggestions.

 

 

I fixed the thing its just a matter of

shuffling things around a bit (and putting

them where I probably should have in the

first place)

 

But I don't understand why it happens.

I'm using stella so maybe it's an issue

with stella.

 

 

As to the page it's probably the splash ad

(free hosting) here's direct links I don't

know that they'll work any better.

 

hex_minikernel_2.bas

hex_minikernel_2.bin

 

 

I used to have that problem with older

browsers. I wonder if any one else has

that problem (no one else has mentioned it)

(probably because nobody bothers to look at

it :P )

 

the working version (not well tested)

hex_minikernel_3.bas

hex_minikernel_3.bin

 

 

hex_minikernel_3.bas

hex_minikernel_3.bin

Edited by bogax
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...