I am shocked and apalled [Z80]
Moderator: MaxCoderz Staff
I am shocked and apalled [Z80]
I've just observed this ungodly quirk in the wild:
* People actually use the RLC A instruction! (CB 07)
This is unbelievably freaky and shocking.
* People actually use the RLC A instruction! (CB 07)
This is unbelievably freaky and shocking.
You know your hexadecimal output routine is broken when it displays the character 'G'.
-
- Calc King
- Posts: 2195
- Joined: Sun 27 Mar, 2005 4:06 am
- Location: sleeping
- Contact:
Technically, this was for the Gameboy's GBZ80, not the regular Z80. I ran the Goomba emulator for an hour, playing various GB/GBC games in it. I was logging every instruction the program executed.
The RLC A instruction was executed 137,027 times total. Don't know which game used it. Yes, the GBZ80 does have the RLCA instruction.
For no reason, here are the Top 16 GBZ80 instructions:
The RLC A instruction was executed 137,027 times total. Don't know which game used it. Yes, the GBZ80 does have the RLCA instruction.
For no reason, here are the Top 16 GBZ80 instructions:
Code: Select all
80,972,151 JR NZ,*
65,096,871 LD A,(nnnn)
63,428,950 JR Z,*
44,654,086 LD A,($FF00+nn)
32,027,560 AND A
28,065,301 LDI A,(HL)
27,762,895 LD (nnnn),A
26,706,384 CP #nn
24,199,159 OR A
22,119,619 AND #nn
20,076,686 RET
18,791,319 CALL $nnnn
18,340,846 LD ($FF00+nn),A
16,734,913 LD HL,#nnnn
16,002,933 LDI (HL),A
15,967,845 CP (HL)
You know your hexadecimal output routine is broken when it displays the character 'G'.
-
- Calc King
- Posts: 2195
- Joined: Sun 27 Mar, 2005 4:06 am
- Location: sleeping
- Contact:
- calc84maniac
- Regular Member
- Posts: 112
- Joined: Wed 18 Oct, 2006 7:34 pm
- Location: The ex-planet Pluto
- Contact:
- calc84maniac
- Regular Member
- Posts: 112
- Joined: Wed 18 Oct, 2006 7:34 pm
- Location: The ex-planet Pluto
- Contact:
-
- Calc King
- Posts: 2195
- Joined: Sun 27 Mar, 2005 4:06 am
- Location: sleeping
- Contact:
- calc84maniac
- Regular Member
- Posts: 112
- Joined: Wed 18 Oct, 2006 7:34 pm
- Location: The ex-planet Pluto
- Contact: