(self, queues, values, display, keyboard, stick, files)
Initialise machine ports.
Initialise machine ports.
Initialise machine ports .
def __init__(self, queues, values, display, keyboard, stick, files):
        """Initialise machine ports."""
        self._values = values
        self._queues = queues
        self._keyboard = keyboard
        self._stick = stick
        self._display = display
        # parallel port base address:
        # http://retired.beyondlogic.org/spp/parallel.htm
        # 3BCh - 3BFh  Used for Parallel Ports which were incorporated on to Video Cards
        #              - Doesn't support ECP addresses
        # 378h - 37Fh  Usual Address For LPT 1
        # 278h - 27Fh  Usual Address For LPT 2
        self.lpt_device = [files.get_device(b'LPT1:'), files.get_device(b'LPT2:')]
        # serial port base address:
        # http://www.petesqbsite.com/sections/tutorials/zines/qbnews/9-com_ports.txt
        #            COM1             &H3F8
        #            COM2             &H2F8
        #            COM3             &H3E8 (not implemented)
        #            COM4             &H2E8 (not implemented)
        self.com_base = {0x3f8: 0, 0x2f8: 1}
        self.com_device = [files.get_device(b'COM1:'), files.get_device(b'COM2:')]
        self.com_enable_baud_write = [False, False]
        self.com_baud_divisor = [0, 0]
        self.com_break = [False, False]
def __init__ ( self , queues , values , display , keyboard , stick , files ) : self . _values = values self . _queues = queues self . _keyboard = keyboard self . _stick = stick self . _display = display # parallel port base address: # http://retired.beyondlogic.org/spp/parallel.htm # 3BCh - 3BFh  Used for Parallel Ports which were incorporated on to Video Cards #              - Doesn't support ECP addresses # 378h - 37Fh  Usual Address For LPT 1 # 278h - 27Fh  Usual Address For LPT 2 self . lpt_device = [ files . get_device ( b'LPT1:' ) , files . get_device ( b'LPT2:' ) ] # serial port base address: # http://www.petesqbsite.com/sections/tutorials/zines/qbnews/9-com_ports.txt #            COM1             &H3F8 #            COM2             &H2F8 #            COM3             &H3E8 (not implemented) #            COM4             &H2E8 (not implemented) self . com_base = { 0x3f8 : 0 , 0x2f8 : 1 } self . com_device = [ files . get_device ( b'COM1:' ) , files . get_device ( b'COM2:' ) ] self . com_enable_baud_write = [ False , False ] self . com_baud_divisor = [ 0 , 0 ] self . com_break = [ False , False ]