[teagba] Wrap BIOS functions in namespaced C++ functions

This commit is contained in:
Gary Talent 2023-06-17 16:20:56 -05:00
parent 32df55ea43
commit bde511dd85

View File

@ -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();
}
}