summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLunar Journal <md.node.0@gmail.com>2023-09-07 09:27:42 +0200
committerGitHub <noreply@github.com>2023-09-07 09:27:42 +0200
commit1e1d29c371ee41f8f449a27970727b99172f5cd6 (patch)
tree54d99ecb6d1a8e8255cb3fe49da7eea1ba8bf62c
parentb6fa12a1bd8b4a69882ec970b50a89cad109a39d (diff)
downloademu8910-1e1d29c371ee41f8f449a27970727b99172f5cd6.tar.gz
emu8910-1e1d29c371ee41f8f449a27970727b99172f5cd6.zip
emu8910: readme: update readme
Add register file info.
-rw-r--r--README.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/README.md b/README.md
index ab0cea6..6da13ce 100644
--- a/README.md
+++ b/README.md
@@ -26,7 +26,7 @@ emu8910.clock.frequency = song.getClockRate()
emu8910.interrupt.frequency = song.getFrameRate()
```
-This sets the ISR function, clock and interrupt frequency for a specific song.
+This sets the ISR (Interrupt Service Routine) function, clock and interrupt frequency for a specific song.
To stop playback:
```
@@ -39,6 +39,10 @@ emu8910.driver.device.resume()
emu8910.interrupt.frequency = song.getFrameRate()
```
+Note: You can access the emulator's internal register file with `emu8910.register`.
+
+These registers need to be updated at the frequency of the ISR.
+
Files:
* src/emu8910.ts - Core emulator implementation