(self, args)
SAVE: save program to a file.
SAVE: save program to a file.
SAVE : save program to a file .
def save_(self, args):
        """SAVE: save program to a file."""
        name = values.next_string(args)
        mode = (next(args) or b'B').upper()
        list(args)
        with self.files.open(
                0, name, filetype=mode, mode=b'O',
                seg=self.memory.data_segment, offset=self.memory.code_start,
                length=len(self.program.bytecode.getvalue())-1
            ) as f:
            self.program.save(f)
        if mode == b'A':
            # return to direct mode
            self.interpreter.set_pointer(False)
def save_ ( self , args ) : name = values . next_string ( args ) mode = ( next ( args ) or b'B' ) . upper ( ) list ( args ) with self . files . open ( 0 , name , filetype = mode , mode = b'O' , seg = self . memory . data_segment , offset = self . memory . code_start , length = len ( self . program . bytecode . getvalue ( ) ) - 1 ) as f : self . program . save ( f ) if mode == b'A' : # return to direct mode self . interpreter . set_pointer ( False )