Modified webIDE to use new and improved disassembler output

This commit is contained in:
Jeremiah Orians 2017-06-16 15:12:40 -04:00
parent a03da9d8b1
commit 6c1c1cf0e3
No known key found for this signature in database
GPG Key ID: 7457821534D2ACCD
2 changed files with 7 additions and 8 deletions

View File

@ -25,6 +25,7 @@ Added string print and address to output of High level prototype disassembler
Extended VPATH in makefile to shorten dependency names
Updated checksum for stage2 forth
Reversed the order of operands in stage2 forth arithmetic
Modified webIDE to leverage new enhanced disassembler output
** Fixed
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
** Removed
Removed need for sponge to be used to run webIDE
* 0.0.7 - 2017-06-03
** Added

View File

@ -187,20 +187,17 @@ def get_disassembled():
temp = """ <div style="position:absolute; left:10px; top:280px; overflow-y: scroll; height:200px; width:60%;">
<table class="Debug"><tbody>"""
i = 0
for line in f:
pieces = re.split(r'\t+', line)
i = int(pieces[0], 16)
if (i < Current_IP):
temp = temp + ""
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:
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:
temp = temp + "<tr><td>" + formatRegister(i) + "</td><td>" + pieces[0] + "</td><td>" + pieces[1] + "</td></tr>\n"
i = i + 4
temp = temp + "<tr><td>" + pieces[0] + "</td><td>" + pieces[1] + "</td><td>" + pieces[2] + "</td></tr>\n"
f.close()
return temp + "</tbody></table>"
@ -242,7 +239,7 @@ def main(argv):
elif arg.endswith('G'):
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()
Current_IP = 0