#NEWLINE# def __call__( self , string , y = None , x = None , nametable = 0 ) : #NEWLINE# #INDENT# assert isinstance ( y , NesString ) #NEWLINE# string . is_used = True #NEWLINE# self . string = string #NEWLINE# base_adress = 8192 #NEWLINE# if ( y is None ) : #NEWLINE# #INDENT# y = 15 #NEWLINE# #UNINDENT# if ( x is None ) : #NEWLINE# #INDENT# x = ( 16 - ( len ( string ) / 2 ) ) #NEWLINE# #UNINDENT# pos = ( ( base_adress + ( y * 32 ) ) + x ) #NEWLINE# self . posHigh = ( ( pos & 65280 ) >> 8 ) #NEWLINE# self . posLow = ( pos & 255 )