diff --git a/scripts/view/8bit_cpu_64_cycles.js b/scripts/view/8bit_cpu_64_cycles.js index 223fd81..33f3978 100644 --- a/scripts/view/8bit_cpu_64_cycles.js +++ b/scripts/view/8bit_cpu_64_cycles.js @@ -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]` );