Modified webIDE to use new and improved disassembler output
This commit is contained in:
parent
a03da9d8b1
commit
6c1c1cf0e3
|
@ -25,6 +25,7 @@ Added string print and address to output of High level prototype disassembler
|
||||||
Extended VPATH in makefile to shorten dependency names
|
Extended VPATH in makefile to shorten dependency names
|
||||||
Updated checksum for stage2 forth
|
Updated checksum for stage2 forth
|
||||||
Reversed the order of operands in stage2 forth arithmetic
|
Reversed the order of operands in stage2 forth arithmetic
|
||||||
|
Modified webIDE to leverage new enhanced disassembler output
|
||||||
|
|
||||||
** Fixed
|
** Fixed
|
||||||
Stack offset bug in stage2 forth was found and fixed by reepca in record time
|
Stack offset bug in stage2 forth was found and fixed by reepca in record time
|
||||||
|
@ -33,6 +34,7 @@ Swapped TRUE and FALSE values in stage2 forth to match http://lars.nocrew.org/dp
|
||||||
Adjusted order of comparisions to better match ans
|
Adjusted order of comparisions to better match ans
|
||||||
|
|
||||||
** Removed
|
** Removed
|
||||||
|
Removed need for sponge to be used to run webIDE
|
||||||
|
|
||||||
* 0.0.7 - 2017-06-03
|
* 0.0.7 - 2017-06-03
|
||||||
** Added
|
** Added
|
||||||
|
|
|
@ -187,20 +187,17 @@ def get_disassembled():
|
||||||
|
|
||||||
temp = """ <div style="position:absolute; left:10px; top:280px; overflow-y: scroll; height:200px; width:60%;">
|
temp = """ <div style="position:absolute; left:10px; top:280px; overflow-y: scroll; height:200px; width:60%;">
|
||||||
<table class="Debug"><tbody>"""
|
<table class="Debug"><tbody>"""
|
||||||
i = 0
|
|
||||||
for line in f:
|
for line in f:
|
||||||
pieces = re.split(r'\t+', line)
|
pieces = re.split(r'\t+', line)
|
||||||
|
i = int(pieces[0], 16)
|
||||||
if (i < Current_IP):
|
if (i < Current_IP):
|
||||||
temp = temp + ""
|
temp = temp + ""
|
||||||
elif (i == Current_IP):
|
elif (i == Current_IP):
|
||||||
temp = temp + """<tr class="current"><td>""" + formatRegister(i) + "</td><td>" + pieces[0] + "</td><td>" + pieces[1] + "</td></tr>\n"
|
temp = temp + """<tr class="current"><td>""" + pieces[0] + "</td><td>" + pieces[1] + "</td><td>" + pieces[2] + "</td></tr>\n"
|
||||||
elif i in Watchpoints:
|
elif i in Watchpoints:
|
||||||
temp = temp + """<tr class="breakpoint"><td>""" + formatRegister(i) + "</td><td>" + pieces[0] + "</td><td>" + pieces[1] + "</td></tr>\n"
|
temp = temp + """<tr class="breakpoint"><td>""" + pieces[0] + "</td><td>" + pieces[1] + "</td><td>" + pieces[2] + "</td></tr>\n"
|
||||||
else:
|
else:
|
||||||
temp = temp + "<tr><td>" + formatRegister(i) + "</td><td>" + pieces[0] + "</td><td>" + pieces[1] + "</td></tr>\n"
|
temp = temp + "<tr><td>" + pieces[0] + "</td><td>" + pieces[1] + "</td><td>" + pieces[2] + "</td></tr>\n"
|
||||||
|
|
||||||
i = i + 4
|
|
||||||
|
|
||||||
f.close()
|
f.close()
|
||||||
return temp + "</tbody></table>"
|
return temp + "</tbody></table>"
|
||||||
|
@ -242,7 +239,7 @@ def main(argv):
|
||||||
elif arg.endswith('G'):
|
elif arg.endswith('G'):
|
||||||
Memory_Size = (int(arg[:-1]) * 1024 * 1024 * 1024)
|
Memory_Size = (int(arg[:-1]) * 1024 * 1024 * 1024)
|
||||||
|
|
||||||
subprocess.call("./bin/dis " + ROM_Name + " | sponge z_disassembled", shell=True)
|
subprocess.call("./bin/dis " + ROM_Name + " >| z_disassembled", shell=True)
|
||||||
Reset_lilith()
|
Reset_lilith()
|
||||||
|
|
||||||
Current_IP = 0
|
Current_IP = 0
|
||||||
|
|
Loading…
Reference in New Issue