Jump to content
OmaOhneBH

SDrive Menu Color

Recommended Posts

Its 02c6 a colour register, was just about to post a com, I just changed it to storing 72 in there (blue)

 

Mapping the Atari is your friend...

 

Edit: Added mine, its a darker blue...Just in case

SDRIVE.COM

Edited by Mclaneinc
  • Like 2
  • Thanks 1

Share this post


Link to post
Share on other sites
38 minutes ago, OmaOhneBH said:

That was quick, thank you! How to find the responsible address and the value to change?

Capture.thumb.PNG.5af1c6b602b1f14bb281f7823b5198fe.PNG

Offset(h) $31 from $02 to $94 

 

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites
3 minutes ago, Roydea6 said:

Capture.thumb.PNG.5af1c6b602b1f14bb281f7823b5198fe.PNG

Offset(h) $31 from $02 to $94 

 

Thanks! But how do I know that it's $31, not $32 or any other address? How to figure out?

Share this post


Link to post
Share on other sites

Hi,

 

   I don't think the sources to the menu program are in the SDrive Max GitHub repo ( https://github.com/kbr-net/sdrive-max ), but I found a copy on the SDrive NUXX wiki, at: https://nuxx.net/wiki/SDrive_NUXX - located in http://nuxx.net/files/sdrive_nuxx/SDrive20090403.zip 

 

   I haven't assembled the code to check it is the same, so you might want to check this is the case!

 

   

  • Thanks 1

Share this post


Link to post
Share on other sites

Yeah, as Roys saying apart his typo in the last post...

 

Some people can read code just by looking at it, if you then know the location that's used to change the colour (02C6 in this case) you can look for A9 ?? 8D C6 02

 

?? is the colour that is originally there (actually 02 in the file)

 

The rest if you disassemble it is 

 

LDA 72   ; That's load the accumulator with 02

STA  $02C6 ; and store that number at this address which controls the colour register

 

Once we know the location by either just knowing it off the top of your head or reading Mapping the Atari or similar books we can use a hex editor to look for that A9 02 8D C6 02 and change the 02 to 72 in my case. the number you put there tell the computer what colour you want, a darker blue in my case. There's apps to tell you the number to use.

 

And there you have it....Looks more than it is and easier than rewriting the code :)

 

And you may wonder why in the disassembly it shows 02C6 but in the file it shows C6 02, there's a long winded answer that i won't do but the simple answer is that when the code is compiled then it lists addresses back to front ie low byte then high byte , C6 = low byte so 02 = High byte, same with all memory locations etc (that have high and low bytes, an address such as $65 is just see as 65)

Edited by Mclaneinc
  • Thanks 1

Share this post


Link to post
Share on other sites

My Bad - post removed _ I posted about the display menu on the LCD and just realized this is a thread on the program menu.

Edited by Bee
my error

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