2023-09-08 12:30:21 +02:00
2023-06-03 14:58:19 +03:00
2023-08-20 10:01:09 +02:00
2023-08-12 13:40:16 +03:00
2023-09-08 12:18:02 +02:00
2022-05-11 03:35:17 +03:00
2023-08-04 13:53:58 -04:00
2023-07-23 14:20:09 +03:00
2022-07-24 13:56:33 +03:00
2023-08-20 10:01:09 +02:00
2023-08-20 10:01:09 +02:00
2020-09-29 20:43:47 +03:00
2023-01-17 00:07:10 +02:00
2023-08-20 10:05:07 +02:00
2023-09-08 12:30:21 +02:00
2023-09-08 12:30:21 +02:00
2022-11-06 13:53:18 +02:00

SameBoy Emulator emitting bap-frames traces

This is a patched version of the SameBoy Game Boy emulator that can emit traces in the bap-frames format, primarily to be used in combination with rz-tracetest for testing gb (sm83) lifting.

Quirks

  • Because there is no trivial way to determine which registers are read or written during the execution of an instruction, the pre-operands always contain all registers and post-operands contain only the registers that have changed. The register information is thus not sufficient for comparing exact events, but only for pre/post contents.

Building

First, make sure the bap-frames submodule is up to date:

git submodule update --init

Then:

make sdl # or make cocoa for the macOS Cocoa version

Usage

Start sameboy from build/bin/SDL/sameboy (or build/bin/SameBoy.app for Cocoa), then to start tracing enter the debugger and type e.g.:

bapo mytrace.frames

After continuing execution, every instruction will be recorded to the file. Later, to close the trace from the debugger, use:

bapc
S
Description
Game Boy and Game Boy Color emulator written in C
Readme MIT
13 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 69.3%
Objective-C 25.2%
GLSL 1.9%
Makefile 1.8%
Assembly 1.4%
Other 0.4%