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

Subversion Repositories tv80

[/] [tv80/] [branches/] [restruc2/] [tests/] [tvs80/] [build] - Blame information for rev 84

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 ghutchis
#!/usr/bin/env python
2
 
3
import os
4
 
5
# Global config
6
tempfile = "dosbox.temp"
7
dosbox_home = "/scratch/ghutchis/tools/dosbox-0.60/src/"
8
 
9
def replace_mount (filename, path):
10
    rfh = open (filename, 'r')
11
    wfh = open (tempfile, 'w')
12
 
13
    rline = rfh.readline()
14
 
15
    while (rline != ''):
16
        if rline.find ("mount c") == 0:
17
            wfh.write ("mount c " + path + "\n")
18
        else:
19
            wfh.write (rline)
20
        rline = rfh.readline()
21
 
22
    rfh.close()
23
    wfh.close()
24
    os.rename (tempfile, filename)
25
 
26
here = os.getcwd()
27
replace_mount ("dosbox.conf", here)
28
 
29
os.system (dosbox_home + "dosbox")
30
os.rename ("TVS80TST.HEX", "../tvs80.ihx")
31
os.chdir ("..")
32
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.