diff options
author | Ben Bridle <ben@derelict.engineering> | 2025-09-19 13:17:14 +1200 |
---|---|---|
committer | Ben Bridle <ben@derelict.engineering> | 2025-09-19 13:32:32 +1200 |
commit | bb1aa5958d1b67707dcf0f6b08bfaf0b408bd46e (patch) | |
tree | b26d07ed58aaf7a5230fc3e28c103d616abfa9b8 /arm7/source/main.c | |
parent | 9612c307f00c4313d73fe0c3a86c05c8d8cd514e (diff) | |
download | bedrock-nds-bb1aa5958d1b67707dcf0f6b08bfaf0b408bd46e.zip |
Massive rewrite
This commit rewrites the emulator halfway from scratch to make it
easier to change and maintain in the future. The emulator core was
rewritten to adhere to the released Bedrock specification (earlier
versions implemented an older prototype specification, which is no
longer relevant).
This commit also adds proper support for running multiple concurrent
Bedrock instances. This was previously supported in a limited manner
for the on-screen keyboard, but now works for any regular program as
well, with switching being performed by pressing the L or R bumper
buttons. This is disabled by default, as programs will still need to
be baked into the emulator and hand-loaded.
Diffstat (limited to 'arm7/source/main.c')
-rw-r--r-- | arm7/source/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arm7/source/main.c b/arm7/source/main.c index 78fd061..46e9298 100644 --- a/arm7/source/main.c +++ b/arm7/source/main.c @@ -13,10 +13,10 @@ int main(void) { fifoInit(); // Initialise FIFO system installSoundFIFO(); // Install FIFO handler for sound installSystemFIFO(); // Install FIFO handler for sleep mode - initClockIRQTimer(0); // Read RTC then update seconds with timer 0 + initClockIRQTimer(0); // Read RTC then update seconds using timer 0 // TODO: Consider writing a custom system FIFO handler to deal with - // the white screen flash when resuming from sleep. + // the white screen flash that occurs when resuming from sleep. // Start sending input data to ARM9 on vblank. irqSet(IRQ_VBLANK, vblank_handler); |