diff --git a/docs/source/background/datamuseumdisk.rst b/docs/source/background/datamuseumdisk.rst index 8170115..161bf32 100644 --- a/docs/source/background/datamuseumdisk.rst +++ b/docs/source/background/datamuseumdisk.rst @@ -38,18 +38,14 @@ program called **F1**. - application - 821008 (v4.9) - Filecopy - * - COPY - - application - - 821008 (v4.9) - - Filecopy * - SORT - application - - (might be corrupted) - * - JDC + * - DINDEX - application - - V01.11.82 - - unknown (missing a program disk) + - 810211 (v3.3) + - List floppy contents (by usage) .. list-table:: Accounting related programs diff --git a/docs/source/background/debugdisk.rst b/docs/source/background/debugdisk.rst index 8e8808e..2b2b052 100644 --- a/docs/source/background/debugdisk.rst +++ b/docs/source/background/debugdisk.rst @@ -10,6 +10,80 @@ Digitised by Mattis Lind?. Contents of **Felsökningsdiskette** as presented by DINDEX + +.. list-table:: Felsōkningsdiskette + :header-rows: 1 + + * - Filename + - Type + - Date + - Function + * - INDEX + - directory + - + - Housekeeping + * - SCR + - application + - + - write pattern to display + * - DALIGN + - application + - + - disk track alignment (speculation, might not work) + * - PRINT + - application + - + - unknown (might not work) + * - RTCTEST + - application + - + - Periodic beep cauused by timer interrupt + * - CONV + - application + - + - unknown (crashes emulator) + * - PTEST + - application + - + - prints a test pattern + * - DANKB + - application + - + - Switches to danish keyboard (inferred, might not be working) + * - DISPTEST + - application + - + - repeatedly write different patterns to display + * - SWEDKB + - application + - + - Swedish keyboard test - shifts and LEDs (by application menu, might not work) + * - GERMKB + - application + - 06/28/77 + - German keyboard test (inferred by filename, might be danish actually) + * - SELKB + - application + - + - unknown (program seems to crash or fail to load) + * - DINDEX + - application + - + - List floppy contents (not working) + * - COPY + - application + - + - + * - ALTER + - application + - 12/09/77 (v2.0) + - Rename, protect, unprotect files (by usage) + * - MTEST + - application + - + - Memory test? (guesswork, not working) + + .. code-block:: text > cd disks/debugdisk diff --git a/src/emulator.py b/src/emulator.py index bbdc249..97b7a0f 100644 --- a/src/emulator.py +++ b/src/emulator.py @@ -13,7 +13,7 @@ import disks.datamuseum.image as datamuseum import disks.fluxsamples.image as fluxsamples from timeit import default_timer as timer -from multiprocessing import shared_memory +#from multiprocessing import shared_memory ''' Q1 Emulator @@ -30,12 +30,13 @@ def on_write(self, address, value): self.cpu.exit() self.cpu.m.memory[address] = value - self.shm.buf[address] = value + #self.shm.buf[address] = value def __del__(self): - self.shm.close() - self.shm.unlink() + #self.shm.close() + #self.shm.unlink() + pass def __init__(self, args): @@ -58,11 +59,11 @@ def __init__(self, args): self.cpu.m.set_input_callback(self.io.handle_io_in) self.cpu.m.set_output_callback(self.io.handle_io_out) - self.shm = shared_memory.SharedMemory( - name="shm_q1", - create=True, - size=65535) - print(self.shm.name) + # self.shm = shared_memory.SharedMemory( + # name="shm_q1", + # create=True, + # size=65535) + # print(self.shm.name) self.stoppc = 0x1ffff if "stop" in self.prgobj: