Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > SHX/SHY
2012-11-26 14:30
Oswald

Registered: Apr 2002
Posts: 5094
SHX/SHY

I cant seem to get them working. I'm not sure wether the value for the AND comes from the PC counter or from the destination address, anyway neither running code at $ff00 or storing to $ff00 does work. maybe vice does not support this illegal?

edit: vice 2.2 unstable, x64 on win7.
 
... 16 posts hidden. Click here to view all posts....
 
2012-11-27 09:49
Ninja

Registered: Jan 2002
Posts: 411
Oh, and visual6502 won't help you since you need interaction with VIC. Note, that XL and AppleII users never noticed dropping off the AND (as far as I found out).
2012-11-27 12:35
Frantic

Registered: Mar 2003
Posts: 1648
Whoever feels like it, please go ahead and write a few lines about SHX/SHY and put it in the following section of Codebase64:

http://codebase64.org/doku.php?id=base:6502_6510_coding#illegal..

:)
2012-11-27 13:26
chatGPZ

Registered: Dec 2001
Posts: 11386
"It is known. I somewhere have a test-program which reliably does SHX/Y with no AND happening because it waits for the VIC to take over the bus."
thing is that fiddling with BA does _not_ explain that behaviour in any way. so while it is known that the behaviour is somehow connected to DMA, it is not known what exactly happens =)
2012-11-27 14:57
Cruzer

Registered: Dec 2001
Posts: 1048
Ahh, the inexplicable mysteries of the C64, isn't that what makes it magic.
2012-11-27 15:26
Zyron

Registered: Jan 2002
Posts: 2381
That's where its soul is.
2017-11-17 17:16
Cruzer

Registered: Dec 2001
Posts: 1048
Quoting Frantic
Whoever feels like it, please go ahead and write a few lines about SHX/SHY and put it in the following section of Codebase64
I felt like it the other day. :)

Btw, I also tried what happens with page crossing, and it turned out much weirder than expected, since it stores the value to a completely different page. Double confirmed on VICE and real hardware. Gotta do some more testing before I can figure out the logic behind which page it ends up on, since I can't find anything online. But since VICE emulates it, I guess the knowledge has to be out there somewhere. :)
2017-11-17 17:41
Frantic

Registered: Mar 2003
Posts: 1648
Quote: Quoting Frantic
Whoever feels like it, please go ahead and write a few lines about SHX/SHY and put it in the following section of Codebase64
I felt like it the other day. :)

Btw, I also tried what happens with page crossing, and it turned out much weirder than expected, since it stores the value to a completely different page. Double confirmed on VICE and real hardware. Gotta do some more testing before I can figure out the logic behind which page it ends up on, since I can't find anything online. But since VICE emulates it, I guess the knowledge has to be out there somewhere. :)


Nice :)
2017-11-17 17:49
Krill

Registered: Apr 2002
Posts: 2980
Quoting Cruzer
Double confirmed on VICE and real hardware. Gotta do some more testing before I can figure out the logic behind which page it ends up on, since I can't find anything online. But since VICE emulates it, I guess the knowledge has to be out there somewhere. :)
So, why don't you simply take a look at the VICE source code? Avoiding confirmation bias and expecting to come up with different results? :)
2017-11-17 20:39
chatGPZ

Registered: Dec 2001
Posts: 11386
or why not just read No More Secrets v0.91 ? :)
2017-11-17 20:54
Cruzer

Registered: Dec 2001
Posts: 1048
Because experimenting is fun. :) And I guess I could have just read Groepaz' earlier comment saying that the page becomes the value stored. I.e. for SHX: Page = (H + 1) & X and for SHY: Page = (H + 1) & Y. Codebase article updated.
Previous - 1 | 2 | 3 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
MWR/Visdom
Guests online: 105
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Original Suppliers
1 Derbyshire Ram  (9.7)
2 Fungus  (9.3)
3 Black Beard  (9.2)
4 Baracuda  (9.2)
5 hedning  (9.1)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.048 sec.