Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user maak ! (Registered 2024-04-18) 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: 5017
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: 404
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: 702
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: 404
@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: 716
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: 5017
ninja, now thats interesting !! could you shortly describe how and what happens ?
2006-09-25 15:49
Frantic

Registered: Mar 2003
Posts: 1627
@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: 5017
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: 1987
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
acrouzet/G★P
Airwolf/F4CG
Alakran_64
Honcho
JackAsser/Booze Design
CA$H/TRiAD
psych
csio/monarchy c+4
megasoftargentina
celticdesign/G★P/M..
Guests online: 93
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 The Ghost  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.8)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 Wafer Demo  (9.5)
7 TRSAC, Gabber & Pebe..  (9.5)
8 Onscreen 5k  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 MWS  (9.6)

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