From 400e0fc0d4d22d1ee861a05afdcfd0e531e1fd08 Mon Sep 17 00:00:00 2001 From: Antonio Vivace Date: Sat, 13 May 2017 12:55:08 +0200 Subject: [PATCH] gbdk development workflow on windows, another emulator --- README.md | 3 ++- articles/gbdk_workflow_windows.md | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 articles/gbdk_workflow_windows.md diff --git a/README.md b/README.md index 6d43611..8496ba4 100644 --- a/README.md +++ b/README.md @@ -118,8 +118,9 @@ Here you can find everything to get started and master the development of unoffi - [GameLad](https://github.com/Dooskington/GameLad) - C++/SDL almost fully featured emulator. - [Wadatsumi](https://github.com/arrow-lang/wadatsumi) - Emulator written in Arrow. - [Binjgb](https://github.com/binji/binjgb) - 5kloc emulator in C that passes most of the tests. -- [jgilchrist](https://github.com/jgilchrist/emulator) - A Gameboy emulator in modern C++. +- [jgilchrist](https://github.com/jgilchrist/emulator) - A Game Boy emulator in modern C++. - [gameboyGO](https://github.com/gonccalo/gameboyGO) - Game Boy emulator in go. +- [GameBoyEmulator-GBS](https://github.com/Salgat/GameBoyEmulator-GBS) - Game Boy emulator written in C++14 with a single library dependency of SFML. ## Software Development diff --git a/articles/gbdk_workflow_windows.md b/articles/gbdk_workflow_windows.md new file mode 100644 index 0000000..7a31c9a --- /dev/null +++ b/articles/gbdk_workflow_windows.md @@ -0,0 +1,24 @@ +## GBDK development workflow on Windows and Sublime Text + + +gbdk.sublime-build +``` +{ +"cmd": ["C:\\..\\compile.bat"," $file"] +} +``` + + + +compile.bat +``` +color 0B +set str=%1 +set str2=%str:~1,-3% +del %str2%.gb +bin\lcc -Wa-l -Wl-m -Wl-j -DUSE_SFR_FOR_REG -c -o %str2%.o %str2%.c +bin\lcc -Wa-l -Wl-m -Wl-j -DUSE_SFR_FOR_REG -o %str2%.gb %str2%.o +del *.o +taskkill /f /im bgb.exe +start bgb.exe %str2%.gb +``` \ No newline at end of file