(self)
return (
            (self.mode.is_text_mode and self.mode.width == 80) * 1 +
            (not self.mode.is_text_mode) * 2 +
            self.colorswitch * 4 + 8 +
            (self.mode.is_cga_hires) * 16 +
            blink_enabled * 32
        )
Screen mode info byte in low memory address 1125.
Screen mode info byte in low memory address 1125.
Screen mode info byte in low memory address 1125 .
def get_mode_info_byte(self):
        """Screen mode info byte in low memory address 1125."""
        # blink vs bright
        # this can in theory be set with OUT 984 (&h3d8), but not implemented
        blink_enabled = True
        # bit 0: only in text mode?
        # bit 2: should this be colorswitch or colorburst_is_enabled?
        return (
            (self.mode.is_text_mode and self.mode.width == 80) * 1 +
            (not self.mode.is_text_mode) * 2 +
            self.colorswitch * 4 + 8 +
            (self.mode.is_cga_hires) * 16 +
            blink_enabled * 32
        )
def get_mode_info_byte ( self ) : # blink vs bright # this can in theory be set with OUT 984 (&h3d8), but not implemented blink_enabled = True # bit 0: only in text mode? # bit 2: should this be colorswitch or colorburst_is_enabled? return ( ( self . mode . is_text_mode and self . mode . width == 80 ) * 1 + ( not self . mode . is_text_mode ) * 2 + self . colorswitch * 4 + 8 + ( self . mode . is_cga_hires ) * 16 + blink_enabled * 32 )