Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

satun_helloworld

SEGA Saturn HelloWorld with SBL

Based on smpdbg10 SBL sample code.

How to build :

rm -rf * && cmake -DCMAKE_TOOLCHAIN_FILE=$SATURN_CMAKE/sega_saturn.cmake
-DCMAKE_INSTALL_PREFIX=/saturn .. && make && make install

(see https://github.com/willll/saturn-docker for a toolchain)

Build in DEBUG

rm -rf * && cmake -DCMAKE_BUILD_TYPE=Debug
-DCMAKE_TOOLCHAIN_FILE=$SATURN_CMAKE/sega_saturn.cmake
-DCMAKE_INSTALL_PREFIX=/saturn/ .. && make && make install

Where sources shall be stored:

addr2line -a 0x60055be -p -i -f -C -e ./helloworld.elf

Screenshot

Alt text

Debug with Visual Studio Code

Prerequisites

Build from VSCode

The tasks.json is currently configured to buid remotely through SSH, or from a local Docker image (https://github.com/willll/saturn-docker), that shall be modified to match your setup.

Debug

tasks.json defines "Run with Mednafen" task, that will start the emulator, once started, it will start listening on port 43434 (TCP ?).

alt text

"GDB Launch" is defined within launch.json, start it, it should connect.

alt text

About

SEGA Saturn HelloWorld with SBL

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages