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 > Unstable Illegal Opcodes
2006-09-25 09:21
Cruzer

Registered: Dec 2001
Posts: 1048
Unstable Illegal Opcodes

I have always avoided the opcodes that are marked as unstable on Graham's opcode list:

http://www.oxyron.de/html/opcodes02.html

But maybe some of them could be used in some cases after all? Anyone who can shed some light on when excactly they are unstable?

According to Graham's list there are two kinds of unstableness, the first being "unstable in certain matters", which applies to these opcodes:

ahx
shy
shx
tas

The other one doesn't leave much hope: "Highly unstable (results are not predictable on some machines)", but only these two are that bad:

xaa
lax #imm
2006-09-25 09:49
Oswald

Registered: Apr 2002
Posts: 5094
usually there's a way to do what you want with illegals, and a way with legals, and 95% of the time the cyclecount are the same. You cant really generalize where and what is useful, using illegals needs quite specific code. But some will prove me wrong lets see :)
2006-09-25 09:50
Ninja

Registered: Jan 2002
Posts: 411
Those opcodes with "AND PCH+1 drops sometimes off" are not that mystical. It drops off, when VIC takes over the bus. Try disabling badlines and it will never drop off (at least on the various machines I checked). Activate a sprite and it will drop off again. Maybe you can time your code to that :)
2006-09-25 10:18
algorithm

Registered: May 2002
Posts: 705
Any examples where Illegal opcodes have been used in VIC trickery? One example I know of is darwin/dreams where 6 sprites over full screen FLI were achieved.

Any more?
2006-09-25 12:00
Cruzer

Registered: Dec 2001
Posts: 1048
@algorithm: When Crossbow did 5 sprites over FLI :)

@ninjadrm: What does "drop off" mean in this case? That it doesn't perform the and, or that it adds 1 to the and value?

2006-09-25 13:44
Ninja

Registered: Jan 2002
Posts: 411
@algorithm: Surely some more VIC-tricks have used basic stuff like LAX or SAX.

@cruzer: The AND drops off, so in case for SHX and SHY you have the pretty nice STX abs,y and STY abs,x opcodes. If you time it to VIC access that is :) Geez, I really could finish the article about those one day...
2006-09-25 14:00
HCL

Registered: Feb 2003
Posts: 728
Often you need to use illegals if you want to put magic colors on the leftmost 3 chars of a normal FLI-picture. That's more a conisidence though..
2006-09-25 14:01
Oswald

Registered: Apr 2002
Posts: 5094
ninja, now thats interesting !! could you shortly describe how and what happens ?
2006-09-25 15:49
Frantic

Registered: Mar 2003
Posts: 1648
@Ninja: So.. Does that mean SHX/SHY works in the border or do you have to disable VIC? (I could try it, but only on one machine..)
2006-09-25 16:43
Oswald

Registered: Apr 2002
Posts: 5094
this means imho that if the vic takes over the bus during shx/shy etc, then the and effect is dropped, or something like that :)
2006-09-25 17:56
JackAsser

Registered: Jun 2002
Posts: 2014
What bugs me with the VIC-take over explanation is the fact that the VIC has taken the bus... i.e the CPU doesn't do anything at all.
 
... 21 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 | 3 | 4 - 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
Linus/MSL
rikib80
rexbeng
grip
cba
void256
tlr
Epyx/TSA
Microshark/Damage(HUN)
Guests online: 119
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 Webmasters
1 Slaygon  (9.6)
2 Perff  (9.6)
3 Sabbi  (9.5)
4 Morpheus  (9.4)
5 CreaMD  (9.1)

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