Skip to content

Commit

Permalink
Update 8bit_cpu_64_cycles.js
Browse files Browse the repository at this point in the history
  • Loading branch information
supertestnet authored Dec 10, 2023
1 parent e2d441d commit f1f4646
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/view/8bit_cpu_64_cycles.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ if ($('.cpu_8bit_64_cycles_program')) {
program_binary = JSON.parse( program_binary );
if ( program_binary.length != 163 ) return alert( `You entered a binary with the wrong number of bits, please try again and ensure it has 163 bits` );
var assembly_bits_prep = program_binary.splice( 35 );
var bytes_to_chop_off = prompt( `There are 16 bytes of ram, labeled 0, 1, 2, 3, etc. up to 15. Your Assembly code can have up to 16 commands, where each one goes into one of these bytes of ram, and your code can also initialize a byte of ram to a number. Currently, this site is prepared to send the contents of *every byte of ram* to your counterparty, thus revealing your entire program to them, including any parts (such as numeric inputs) which you may want to keep hidden so you can get some money from Vicky by revealing them to her later as inputs that make the program produce some result. Therefore, if there are any bytes of ram you want to keep hidden, enter them in this format: [13, 14, 15]` );
var bytes_to_chop_off = prompt( `Enter any bytes of ram you want to keep hidden in this format: [13, 14, 15]\n\nFor context, there are 16 bytes of ram, labeled 0, 1, 2, 3, etc. up to 15. Your Assembly code can have up to 16 commands, where each one goes into one of these bytes of ram, and your code can also initialize a byte of ram to a number. Currently, this site is prepared to send the contents of *every byte of ram* to your counterparty, thus revealing your entire program to them, including any parts (such as numeric inputs) which you may want to keep hidden so you can get some money from Vicky by revealing them to her later as inputs that make the program produce some result. Therefore, if there are any bytes of ram you want to keep hidden, enter them in this format: [13, 14, 15]` );
if ( bytes_to_chop_off[ 0 ] != "[" ) return alert( `You entered your bytes to keep hidden in an invalid format, please try again and ensure you use this format: [13, 14, 15]` );
var is_valid_json = isValidJson( bytes_to_chop_off );
if ( !is_valid_json ) return alert( `You entered your bytes to keep hidden in an invalid format, please try again and ensure you use this format: [13, 14, 15]` );
Expand Down

0 comments on commit f1f4646

Please sign in to comment.