diff --git a/deps/teagba/include/teagba/bios.hpp b/deps/teagba/include/teagba/bios.hpp index 4ab73561c..a34f767a9 100644 --- a/deps/teagba/include/teagba/bios.hpp +++ b/deps/teagba/include/teagba/bios.hpp @@ -20,3 +20,26 @@ void teagba_intrwait(unsigned discardExistingIntrs, unsigned intrSubs); void teagba_vblankintrwait(); } + +namespace teagba { + +// waits for any interrupt +inline auto halt() noexcept { + return teagba_halt(); +} + +inline auto stop() noexcept { + return teagba_stop(); +} + +// waits for interrupts specified in interSubs +inline auto intrwait(unsigned discardExistingIntrs, unsigned intrSubs) noexcept { + return teagba_intrwait(discardExistingIntrs, intrSubs); +} + +// waits for vblank interrupt +inline auto vblankintrwait() noexcept { + return teagba_vblankintrwait(); +} + +} \ No newline at end of file