Jump to content
IGNORED

Relyable Sector loading counter


Recommended Posts

I am searching for a device independent relyable loading counter (e.g. sector counter while loading) I tried VBL (using deferred one 548,549) to look at the DCB $30a,$030b but this works under Altirra differently than under Atari800win... I am using xBOOT to load parts of the demo but I can not patch the "jsr load_sector" routine to adjust the loading counter on screen.

 

Any ideas? in a perfect world device independend "observer" solution :)

 

 

 

 

Link to comment
Share on other sites

Fairly sure the Altirra Boot option on XEX just injects it into RAM and probably does nothing to the DCB area.

 

Even with real machine you can't depend on sector # since absolute sector doesn't relate to how long to go, plus you have the 128, 256, even 512 byte sector arrangement.

 

I've thought about it, other ways but with various downsides:

- short segments that update a counter (bloats file)

- have VB routine keep an eye on RAM, when it changes, update pointer, decrement count

 

Possibly the watch RAM method might be best. Clear the area first, then just OR a few bytes together. Not too much CPU time, and keeps a reasonably accurate counter.

Then comes the counter itself - you don't know how big the file is, so you have to hard-code it.

Link to comment
Share on other sites

new test version of xB in default settings is device independent. now, with binary relocator to place xB in any memory area it is better solution than xBOOT.



and better check the amount of data loaded than look at sector which has been read. with xB you can use xBIOS_GET_FILE_OFFSET on VBI (you can convert to how much left to load)


  • Like 1
Link to comment
Share on other sites

That's pretty impressive if it's got standard SIO activity going on.

 

Thinking some more, maybe monitoring the DCB could work out. You could probably determine the sector size in use - in the case of an "emulator/injected load" they tend to happen so quick anyway that you don't need any counter going on.

 

A VB would only need to detect change of the DAUX bytes then decrement the count - the careful bit of course is not using too much time as it might break at higher SIO speeds.

 

Also, there's the modified Bresenham line-draw algorithm which I like... you can use it to generate the growing bar style progress indicator.

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