meganesu / generate-gb-opcodes

A helper project to dynamically generate the opcodes for each Game Boy CPU instruction mnemonic
https://meganesu.github.io/generate-gb-opcodes/
42 stars 9 forks source link

LD (HL), A is only 2 clock cycles? #30

Closed fizaan closed 3 years ago

fizaan commented 3 years ago

That can’t be right.

meganesu commented 3 years ago

And yet, here we are: https://archive.org/details/GameBoyProgManVer1.1/page/n95/mode/2up

Possibly the confusion is similar to what Michael Steil describes at 15:35 of The Ultimate Game Boy Talk? I'm putting everything in machine cycles, not clock cycles.

fizaan commented 3 years ago

Ah I see. My bad :)