Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user bulb ! (Registered 2013-05-23) You are not logged in 
CSDb User Forums


Forums > C64 Coding > bit zp,x TRUE or FALSE?
2012-07-02 20:53
Glasnost

Registered: Aug 2011
Posts: 12
bit zp,x TRUE or FALSE?

I currently have an issue with some divergence in the 6510 opcodes.

Its opcode $34, which by various sources are noted to be the
opcode for..

bit zeropage,x

while vice and others mention it to be

nop zeropage,x

I unfortunately dont have a c64 anymore (boooohhh), so i even cant test it on the real thing.

Can anyone clarify this?

Best regards
Glasnost/Camelot
2012-07-02 21:22
HCL

Registered: Feb 2003
Posts: 534
Tested on real thing and it returns equal result as Vice (nop zp,x).
2012-07-02 21:37
Glasnost

Registered: Aug 2011
Posts: 12
thx :)

2012-07-02 21:37
Cruzer

Registered: Dec 2001
Posts: 719
The definitive opcode guide says nop too. Who are the lamers claiming it's bit?
2012-07-03 11:24
Slammer

Registered: Feb 2004
Posts: 295
I'm afraid the definitive opcode guide isn't stable. I still have the version from around 2005-2006 that shows four opcodes for bit ($24,$34,$2C and $3C)

Edit: I heard that the 6502C have the extra bit commands. Can anybody confirm this. According to the cpu listing in the opcode table page, these where used in the Atari computers and thats could be the reason for the change, Graham?

CPU versions:
-------------
6502: NMOS, used in Commodore disk drives, PET, various other 8 bit computers
6502C: 6502 with additional HALT pin, used in Atari 8 bit computer range
6510: 6502 with additional processor port, used in C64
8500: CMOS version of the 6510, used in C64C and C64G
8502: 2 MHz version of the 8500, used in C128
7501: HMOS-1 version of the 6502, used in C16/C116/Plus4
8501: HMOS-2 version of the 6502, used in C16/C116/Plus4
2012-07-03 15:47
HCL

Registered: Feb 2003
Posts: 534
Oh guys, uuhm.. I have to admit that i didn't actually open the box and check what kind of chip i has. It's the old box though..
2012-07-03 16:16
Skate

Registered: Jul 2003
Posts: 396
there is no such thing as "bit zp,x" in 6502 including plain 6502 used at Atari and other machines. "bit zp,x" is 65816 chip extension. so $34 is "nop zp,x" for 6502/6510 and "bit zp,x" for 65816.
2012-07-04 14:44
Flavioweb

Registered: Nov 2011
Posts: 122
 NOP               1A, 3A, 5A, 7A, DA, FA
 SKB               80, B2, C2, E2, 04,14, 34,44, 54, 64, 74, D4, F4
 SKW               0C, 1C, 3C, 5C, 7C, DC, FC

NOP No operation
SKB Skip byte (that is, branch of +1)
SKW Skip word of two bytes (that is, branch of +2)
2012-07-04 16:22
Skate

Registered: Jul 2003
Posts: 396
A small addition to Flavioweb's comment.

SKB/SKW are also called DOP/TOP (Double/Triple no OPerations) but since double and triple no operation equals to no operation, i'd like to call all of them NOP. But still, SKB and SKW are better descriptions since they really skip parameter parts.
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
Matt
Wisdom/Crescent
Didi/Laxity
dano/padua
Knut Clausen
Cargo/Singular Crew
Zyron/GeNos¤ProjecTary
Yazoo/Censor/Arsenic
Acidchild/Padua
uneksija
TNT/Beyond Force
DeeKay/Crest
cba
Fred/Channel Four
JackAsser/Booze Design
Mr. SID
Guests online: 24
Top Demos
1 Edge of Disgrace  (9.7)
2 Coma Light 13  (9.7)
3 Daah, those acid pil..  (9.6)
4 Deus Ex Machina  (9.3)
5 Andropolis  (9.3)
6 Te-Te-Te-TechTech It..  (9.3)
7 +H2K  (9.2)
8 GOLC  (9.2)
9 Artphosis  (9.2)
10 2011 - A Press Space..  (9.2)
Top Groups
1 Booze Design  (9.4)
2 Crest  (9.4)
3 Oxyron  (9.4)
4 Maniacs of Noise  (9.2)
5 Eagle Soft Incorpora..  (9.2)
Top NTSC-Fixers
1 Pudwerx  (9.8)
2 Horizon  (9.7)
3 Stormbringer  (9.7)
4 Booze  (9.5)
5 Fungus  (9.4)

Home - Disclaimer
Copyright © No Name 2001-2013
Page generated in: 0.184 sec.