Subject: Re: [stella] Usefull illegal opcodes (part 2: NOP) From: Ruffin Bailey <rufbo@xxxxxxxxxxxxx> Date: Tue, 06 Mar 2001 07:43:25 -0500 |
Hi again, here is another example of an usefull illegal opcode: NOP!
However, there are a lot of branches (2 bytes) which can be easily replaced with BIT (1 byte):
The only problem is, that BIT changes flags (V,N,Z) which are sometimes needed later. But there is an illegal opcode solution for that: NOP.
To replace BIT ABS (opcode $2c) you can use $0c (NOP ABS). Here is an example from my Thrust code:
.byte $0c ; <-- here I use an illegal NOP because I need the overflow- and negative-flags!
- Archives (includes files) at http://www.biglist.com/lists/stella/archives/ Unsub & more at http://www.biglist.com/lists/stella/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[stella] Usefull illegal opcodes (p, Thomas Jentzsch | Thread | Re: [stella] Usefull illegal opcode, Manuel Polik |
[stella] Gunfight 2600: This time i, Manuel Polik | Date | [stella] Qb: Opinions sought..., Andrew Davie |
Month |