10 Commits

Author SHA1 Message Date
661fd32ba4 Change debug::puts to use raw char* and copy
In order to handle the self-assign case, string::operator= moves the
string, which may copy the string in reverse. The MGBA string register
does not allow this I believe. In order to avoid this, it now uses a raw
character buffer and is copied using string_view::copy.
string_view::copy will always copy the string forward.
2024-03-07 15:58:51 -07:00
6a6a114fed Change debug::puts to use string_view instead of const char* 2024-03-07 14:27:44 -07:00
b7663d37f5 Change debug registers to use references instead of pointers 2024-03-04 21:18:45 -07:00
b088b7499d Change debug::string to use MTL string instead of C strings 2024-03-04 21:17:16 -07:00
cc454bba24 Test MGBA logging 2024-02-29 16:59:32 -07:00
88a759aec1 Add MGBA debug logging w/ puts
MGBA debugging must be enabled using debug::open and disabled using
debug::close. This commit adds logging through debug::puts. TODO: add
logging using debug::printf and debug::write.
2024-02-29 16:57:04 -07:00
53aca1cae7 Display bitmap image instead of gradient colors 2024-02-22 18:22:25 -07:00
5b14fdb0ac Display color gradient from black->RGB on separate lines 2024-02-22 16:03:09 -07:00
3fa268e2cd Set display mode and busy-loop VSync 2024-02-22 12:58:52 -07:00
6af1386772 Add main.cpp 2024-02-22 12:25:55 -07:00