mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-07 19:51:51 +09:00
bios update
This commit is contained in:
@@ -1 +1 @@
|
||||
println("TERRAN Megatrends inc.");let p=0;let m=[[0,255,170,85,105,15,165,30,199,113,142,227,202,254,186,190],[255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255]];con.move(2,1),print("000 KB OK");try{for(;p<8<<20;){con.move(2,1);var x=""+(p+1>>10);print(x<10?"00"+x:x<100?"0"+x:x);for(var t=0;t<m.length;t++){for(var b=0;b<m[t].length;b++)if(sys.poke(p+b,m[t][b]),m[t][b]!=sys.peek(p+b))throw"Memory Error";for(var b=0;b<m[t].length;b++)if(sys.poke(p+b,255-m[t][b]),255-m[t][b]!=sys.peek(p+b))throw"Memory Error"}p+=m[0].length}}catch(t){"Memory Error"==t?println(" Memory Error"):println(" KB OK!")}var _BIOS={FIRST_BOOTABLE_PORT:[0,1]};Object.freeze(_BIOS);let n=0,s=0;for(;n<4&&(!com.areYouThere(n)||(com.sendMessage(n,"LOADBOOT"),s=com.getStatusCode(n),0!=s));)n+=1;n<4?eval(com.fetchResponse(n).trimNull()):printerrln("No bootable medium found.");
|
||||
var I=["No bootable medium found.","apply","Memory Error","info","console","getStatusCode","bind","toString","exception","FIRST_BOOTABLE_PORT","areYouThere","TERRAN Megatrends inc."," KB OK!","poke","fetchResponse","sendMessage","peek","move","prototype","log","LOADBOOT","error",'{}.constructor("return this")()',"__proto__","length","warn","freeze","trace","return (function() "];!function(t,n){!function(n){for(;--n;)t.push(t.shift())}(++n)}(I,149);var G=function(t,n){return I[t-=0]},v=G,l=function(){var t=!0;return function(n,r){var o=t?function(){if(r){var t=r[G(26)](n,arguments);return r=null,t}}:function(){};return t=!1,o}}(),R=l(this,function(){for(var t=G,n=function(){var t,n=G;try{t=Function(n(24)+n(18)+");")()}catch(n){t=window}return t}(),r=n[t(0)]=n[t(0)]||{},o=[t(15),t(21),t(28),t(17),t(4),"table",t(23)],e=0;e<o[t(20)];e++){var i=l.constructor[t(14)][t(2)](l),x=o[e],p=r[x]||i;i[t(19)]=l.bind(l),i.toString=p[t(3)][t(2)](p),r[x]=i}});R(),println(v(7));let p=0;const t=[[0,255,170,85,105,15,165,30,199,113,142,227,202,254,186,190],[255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255]];con.move(2,1),print("000 KB OK");try{for(;p<8<<20;){con[v(13)](2,1);var ptext=""+(p+1>>10);print(ptext<10?"00"+ptext:ptext<100?"0"+ptext:ptext);for(var ptn=0;ptn<t.length;ptn++){for(var bi=0;bi<t[ptn].length;bi++)if(sys[v(9)](p+bi,t[ptn][bi]),t[ptn][bi]!=sys[v(12)](p+bi))throw v(27);for(var bi=0;bi<t[ptn][v(20)];bi++)if(sys.poke(p+bi,255-t[ptn][bi]),255-t[ptn][bi]!=sys[v(12)](p+bi))throw v(27)}p+=t[0][v(20)]}}catch(t){t==v(27)?println(" "+t):println(v(8))}var _BIOS={};_BIOS[v(5)]=[0,1],Object[v(22)](_BIOS);let n=0,s=0;for(;n<4&&(!com[v(6)](n)||(com[v(11)](n,v(16)),s=com[v(1)](n),0!=s));)n+=1;n<4?eval(com[v(10)](n).trimNull()):printerrln(v(25));
|
||||
@@ -38,7 +38,7 @@ try {
|
||||
}
|
||||
catch (e) {
|
||||
if (e == "Memory Error") {
|
||||
println(" Memory Error");
|
||||
println(" "+e);
|
||||
}
|
||||
else {
|
||||
println(" KB OK!");
|
||||
|
||||
Reference in New Issue
Block a user