OpenCores
URL https://opencores.org/ocsvn/tv80/tv80/trunk

Subversion Repositories tv80

[/] [tv80/] [trunk/] [tests/] [tvs80/] [build] - Diff between revs 27 and 84

Only display areas with differences | Details | Blame | View Log

Rev 27 Rev 84
#!/usr/bin/env python
#!/usr/bin/env python
import os
import os
# Global config
# Global config
tempfile = "dosbox.temp"
tempfile = "dosbox.temp"
dosbox_home = "/scratch/ghutchis/tools/dosbox-0.60/src/"
dosbox_home = "/scratch/ghutchis/tools/dosbox-0.60/src/"
def replace_mount (filename, path):
def replace_mount (filename, path):
    rfh = open (filename, 'r')
    rfh = open (filename, 'r')
    wfh = open (tempfile, 'w')
    wfh = open (tempfile, 'w')
    rline = rfh.readline()
    rline = rfh.readline()
    while (rline != ''):
    while (rline != ''):
        if rline.find ("mount c") == 0:
        if rline.find ("mount c") == 0:
            wfh.write ("mount c " + path + "\n")
            wfh.write ("mount c " + path + "\n")
        else:
        else:
            wfh.write (rline)
            wfh.write (rline)
        rline = rfh.readline()
        rline = rfh.readline()
    rfh.close()
    rfh.close()
    wfh.close()
    wfh.close()
    os.rename (tempfile, filename)
    os.rename (tempfile, filename)
here = os.getcwd()
here = os.getcwd()
replace_mount ("dosbox.conf", here)
replace_mount ("dosbox.conf", here)
os.system (dosbox_home + "dosbox")
os.system (dosbox_home + "dosbox")
os.rename ("TVS80TST.HEX", "../tvs80.ihx")
os.rename ("TVS80TST.HEX", "../tvs80.ihx")
os.chdir ("..")
os.chdir ("..")
os.system ("../scripts/ihex2mem.py tvs80.ihx tvs80.vmem")
os.system ("../scripts/ihex2mem.py tvs80.ihx tvs80.vmem")
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.