aboutsummaryrefslogtreecommitdiffstats
path: root/atk16_emu
diff options
context:
space:
mode:
Diffstat (limited to 'atk16_emu')
-rw-r--r--atk16_emu/peripherals.py3
-rw-r--r--atk16_emu/resources/charmem.binbin0 -> 2048 bytes
2 files changed, 2 insertions, 1 deletions
diff --git a/atk16_emu/peripherals.py b/atk16_emu/peripherals.py
index a090187..4ffffb2 100644
--- a/atk16_emu/peripherals.py
+++ b/atk16_emu/peripherals.py
@@ -1,5 +1,6 @@
import pygame
import sys
+import os
import random
from .memory import RAM, ROM
from typing import Callable
@@ -42,7 +43,7 @@ class TPU:
self.text_mem = RAM(11, 8)
self.char_mem = ROM(11, 8)
- with open("out/charmem.bin", "rb") as f:
+ with open(os.path.join(os.path.dirname(__file__), "resources", "charmem.bin"), "rb") as f:
charmem = f.read()
for i in range(len(charmem)):
self.char_mem.memory[i] = int(charmem[i]) & 0xFF
diff --git a/atk16_emu/resources/charmem.bin b/atk16_emu/resources/charmem.bin
new file mode 100644
index 0000000..1276d28
--- /dev/null
+++ b/atk16_emu/resources/charmem.bin
Binary files differ