GithubHelp home page GithubHelp logo

glen-mac / gb-rom-header-reader Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 144 KB

A C program that simply reads back important information from the header of a gameboy game binary

License: MIT License

C 100.00%

gb-rom-header-reader's Introduction

C GB Header Reader

A C program that simply reads back important information from the header of a gameboy game binary.

Requirements

You need a C compiler (e.g gcc)

Usage

Glenn-Mac:src Glenn-Mac$ gcc -Wall romData.c headerDef.c -o romData
Glenn-Mac:src Glenn-Mac$ ./romData <romFile>

Example Output

This is an example output running the program on my legal Pokemon Red backup:

Glenn-Mac:src Glenn-Mac$ ./romData poke.gb
*****************************************
*       C GB Rom Header Reader 0.15     *
*            Glenn McGuire 2015         *
*****************************************

ROM File Name:	poke.gb
ROM Name:	POKEMON RED
GBC Game?:	false
License Code:	0x3031
SGB Game?:	true
Catridge Type:	ROM+MBC3+RAM+BATT
ROM Size:	8Mbit = 1MByte = 64 banks
RAM Size:	256kBit = 32kB = 4 banks
Japanese Game?:	false
MaskRom Ver. #:	0x00
Compl. Check:	0x20
Checksum:	0x91E6

Glenn-Mac:src Glenn-Mac$

To-Do

Add proper HashMap implementation for the static lookup data (Catridgetype, ROMsize, RAMsize)

Copyright and License

This is free software, licensed under the MIT license.

Thanks

Thanks to all the detailed resources out there covering this old but gold system!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.