diff --git a/assembler.html b/assembler.html index 83d2ca1..6ba76ac 100644 --- a/assembler.html +++ b/assembler.html @@ -9,6 +9,7 @@ + @@ -303,40 +304,6 @@ function format_callback() dumpall(zones); } -function check(parent,child) -{ - $(parent).find("span:not(.red-168-text)").html(" "); - $(parent).find("span:not(.red-168-text)").each(function() { - if (this.id==child.id) - { - $(this).html("√"); - modify=$(parent).attr("tomodify"); - if (modify!==undefined) - { - add=$(parent).attr("toadd"); - if (add===undefined) - add=""; - text=" "+add+$(child).parent().text().replace(/[^a-z0-9:]/gi,'')+" "; - $("#"+modify).find("span.tui-fieldset-text").html(text); - variable=add.toLowerCase().replace(/[^a-z0-9]/gi,''); - eval(variable+"='"+child.id+"';"); - afunction=add.toLowerCase().replace(/[^a-z0-9]/gi,''); - eval("if (typeof "+afunction+"_callback === 'function') { "+afunction+"_callback() }"); - } - } - }) -} - -function closemodal() -{ - $("#modal").css("visibility","hidden"); -} - -function showmodal() -{ - $("#modal").css("visibility","visible"); -} - function setFilename(name){ $("#filename").html(name); filename=name; @@ -393,30 +360,6 @@ function realopen(file) } }; -function hexQword(value) { - value = value < 0 ? (value + 0x10000000000000000) : (value); - var str = '0000000000000000' + value.toString(16).toUpperCase(); - return str.slice(-16); -}; - -function hexDword(value) { - value = value < 0 ? (value + 0x100000000) : (value); - var str = '00000000' + value.toString(16).toUpperCase(); - return str.slice(-8); -}; - -function hexWord(value) { - value = value < 0 ? (value + 0x10000) : (value); - var str = '0000' + value.toString(16).toUpperCase(); - return str.slice(-4); -}; - -function hexByte(value) { - value = value < 0 ? (value + 0x100) : (value); - var str = '00' + value.toString(16).toUpperCase(); - return str.slice(-2); -}; - function makebin(allzones) { var output = []; @@ -580,17 +523,6 @@ function showresult(text) $("#results").find("div").html(text); } -function toHex(hexa,code) -{ - if (code==16) - result=hexWord(hexa); - else if (code==32) - result=hexDword(hexa); - else - result=hexQword(hexa); - return result; -} - function assemble(zone) { if (zone.code==16) diff --git a/debug.html b/debug.html index 02154f7..6e6516e 100644 --- a/debug.html +++ b/debug.html @@ -11,6 +11,7 @@ + @@ -158,7 +159,7 @@