Gameboy Development Forum

Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)

You are not logged in.

Ads

#1 2016-05-26 17:53:15

d.bop
Member
From: Duluth, MN
Registered: 2016-03-22
Posts: 14

GB Opcode CSV

Hey everyone,

We're testing out some web scraping software at work so I thought I'd rip through the PASTRAISER GB Opcode Map and make a quick CSV.

It should have everything that's on the webpage aside from the legend at the bottom. I've also added some columns that show the binary form of each opcode. Looking at the binary gives a nice representation of how the instructions are laid out in the CPU itself. (For example: the two MSBs of most LD instructions are 01, 3-digit binary representations of the registers, etc..)

I'm not sure how useful this is. I needed something I could easily look through, filter, and sort in Excel for a project I'm working on. I figured I'd post it here for those of you who are interested in this kind of thing.

You can download it here: https://www.dropbox.com/s/vbjzr77bfuq06 … s.csv?dl=0
(Sorry for dropbox's crappy auto-formatting on the binary cells. It's chopping off leading-zeros)

There shouldn't be any errors, but this was a quick rip and I'm still on the clock so anything's possible. big_smile


Have a good day/night.

Offline

 

#2 2016-05-27 11:13:55

d.bop
Member
From: Duluth, MN
Registered: 2016-03-22
Posts: 14

Re: GB Opcode CSV

Here's an Excel version without the ugly auto-formatting.

https://www.dropbox.com/s/5av5ue1vu4rww … .xlsx?dl=0

Offline

 

#3 2016-05-28 07:05:09

Xephyr
Member
From: France
Registered: 2015-02-26
Posts: 59

Re: GB Opcode CSV

I had an ugly jpg file with no cycle counts so I guess it's pretty useful, plus it allows ctrl+F x)

Offline

 

#4 2016-05-29 10:48:10

d.bop
Member
From: Duluth, MN
Registered: 2016-03-22
Posts: 14

Re: GB Opcode CSV

Glad I could help! smile

Offline

 

#5 2016-06-01 10:28:55

gekkio
Member
Registered: 2016-05-29
Posts: 16

Re: GB Opcode CSV

Just a quick warning: Pastraiser is not 100% correct. For example, BIT b, (HL) instructions are supposed to take 12 clock cycles, not 16.
I'm sure there were some other errors as well, but I can't remember right now.

Offline

 

#6 2016-06-01 11:47:21

d.bop
Member
From: Duluth, MN
Registered: 2016-03-22
Posts: 14

Re: GB Opcode CSV

Thanks for the heads-up. I was starting to notice some discrepancies when I was comparing it to the official Nintendo manual. I'm pretty sure some there are some errors in my rip too. I'll have to go through the manual and make an updated list.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson