Code Monkey home page Code Monkey logo

gbtd_gbmb's Introduction

GBDK-2020

GBDK is a cross-platform development kit for sm83, z80 and 6502 based gaming consoles. It includes libraries, toolchain utilities and the SDCC C compiler suite.

Supported Consoles: (see docs)

  • Nintendo Game Boy / Game Boy Color
  • Analogue Pocket
  • Sega Master System & Game Gear
  • Mega Duck / Cougar Boy
  • NES

Experimental consoles (not yet fully functional)

  • MSXDOS

Current Release

Current Release Downloads

GBDK-2020 Linux Release GBDK-2020 MacOS Intel Release GBDK-2020 MacOS ARM Release GBDK-2020 Windows 64 Bit Release GBDK-2020 Windows 32 Bit

Upgrading to a new version? Check the Migration notes. You can find older versions here.

For a full list of changes see the ChangeLog file or online Docs.

Build status

GBDK Build and Package

Made with GBDK-2020

See our gallery showcasing Games and Programs made with GBDK, including open source and cart release filters.

GBDK Showcase Preview

Docs

GBDK includes extensive documentation. A good place to begin is the Getting Started Section.

Check the Links and Third-Party Tools Section for a list of recommended emulators, graphics tools, music drivers and more.

For SDCC you can check its website and the manual

Usage

Most users will only need to download and unzip the latest release

Then go to the examples folder and build them (with compile.bat on Windows or running make). They are a good starting point.

The sources in this repo are only needed if you want to re-compile GBDK-2020 yourself instead of using the release binaries linked above.

Discord servers

  • gbdk/zgb Discord - For help with using GBDK (and ZGB), discussion and development of gbdk-2020

  • gbdev Discord - There is a #gbdk channel and also people with a lot of Game Boy development knowledge

  • SMS Power! Discord - Additional SMS & Game Gear discussion and resources.

Forums

Current status

  • Updated CRT and library that suits better for game development
  • SDCC Versions
    • A custom build of SDCC is used with patches to support Sega GG/SMS and the Nintendo NES. See the github workflow for details of how to patch and build SDCC.
    • The default calling convention changed in SDCC 4.2. This is supported starting with GBDK-2020 4.1.0. Older versions of GBDK should use SDCC builds #12539 or older (see per-version GBDK notes).
  • The compiler driver lcc supports the latest sdcc toolchain.

Origin

Over the years people have been complaining about all the GBDK issues caused by a very old version of SDCC (the compiler). This is a proper attempt of updating it while also keeping all the old functionality working, like support for banked code and data and so on.

The last version in the OLD repo is 2.96 although releases are available until 2.95-3. Version 2.96 is the starting point of this repo.

Build instructions

Unless you are interested on recompiling the sources for some reason (like fixing some bugs) you don't need to build GBDK

  • Windows only: Download and install mingw
  • Clone, download this repo or just get the source from the releases
  • Download and install the PATCHED sdcc builds from the separate repo for that (https://github.com/gbdk-2020/gbdk-2020-sdcc).
  • On Linux don't use package managers The latest release available won't work, you need to compile or download one of the nightlies
  • Create SDCCDIR environment variable, that points into the folder, where you installed sdcc
  • Open command prompt or a terminal, go to the root directory of the repo and run make

gbtd_gbmb's People

Contributors

untoxa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

gbtd_gbmb's Issues

wine64 crashes when you try to run this...

I'm on macOS 13.1 and an M1 - most of the instructions I've found seem to want this to use 32-bit, but that's apparently unsupported now; trying with wine64 results in the following error:

% wine64 --version
wine-8.0
 % wine64 /usr/local/share/GBTD/gbtd.exe             
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
0104:err:environ:init_peb starting L"Z:\\usr\\local\\share\\GBTD\\gbtd.exe" in experimental wow64 mode
0104:err:virtual:virtual_setup_exception stack overflow 1808 bytes addr 0x170056a8b stack 0x5a08f0 (0x5a0000-0x5a1000-0x69fd20)

Assuming this likely isn't fixable, are there any workarounds or alternative tools?

Unclear how to run files

Hello!

I am having trouble figuring out how to run this program. The original program had an .exe and one would just run it. Here, there are a lot more files, and my Win10 recognized only a couple of types. I tried to open the HLP file, but it did nothing.

Could you please be so kind and compile a binary for Windows or Linux?
Or could you kindly write a short instruction on how to run these files and what the dependencies are?

Thank you very much!
Sorry for posting such an issue.

Can't find unit gbConst used by GBTDMain when trying to compile on macOS

I cloned the repo and tried to compile GBTD with fpc GBTDMain.pas but I got this output:

Free Pascal Compiler version 3.2.0 [2020/05/31] for x86_64
Copyright (c) 1993-2020 by Florian Klaempfl and others
Target OS: Darwin for x86_64
Compiling GBTDMain.pas
GBTDMain.pas(5,33) Fatal: Can't find unit gbConst used by GBTDMain
Fatal: Compilation aborted
Error: /usr/local/bin/ppcx64 returned an error exitcode

Any ideas on this?

I'm on macOS 11.2.2

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.