Initial commit

This commit is contained in:
Chris Cromer
2016-07-26 20:54:59 -04:00
commit 0a7f973068
23 changed files with 2245 additions and 0 deletions

17
js/values/code.js Normal file
View File

@@ -0,0 +1,17 @@
var commands = [
{ name: "" },
{ name: "rda" },
{ name: "lda" },
{ name: "str" },
{ name: "wrt" },
{ name: "add" },
{ name: "sub" },
{ name: "mul" },
{ name: "div" },
{ name: "jmp" },
{ name: "jmpZ" },
{ name: "jmpL" },
{ name: "sqr" },
{ name: "pow" },
{ name: "End" }
];

32
js/values/english.js Normal file
View File

@@ -0,0 +1,32 @@
var english_strings = {
english: "English",
spanish: "Spanish",
project_name: "Project name:",
help: "Help",
code: "Code",
result: "Result",
screen: "Screen",
add_line: "Add line",
insert_line: "Insert line",
delete_line: "Delete line",
clear_code: "Clear code",
export_code: "Export",
import_code: "Import:",
execute_code: "Execute",
pause_code: "Pause",
stop_code: "Stop",
interval: "Interval: ",
input_value: "Input value:",
error_input: "The submitted value is not a number.",
error_syntax: "Syntax error.",
error_memory: "Memory address not found.",
error_no_command: "No command detected.",
error_math: "Math error.",
error_ac: "AC is empty.",
file_load_failed: "Failed to load file!",
leave: "Are you sure you want to leave this page?",
help_text: "<div class=\"help_title\">Commands:</div>rda: Read from keyboard to memory.<br />lda: Load to AC.<br />str: Save to memory.<br />wrt: Print to screen.<br />add: Addition.<br />sub: Subtraction.<br />mul: Multiplication.<br />div: Division.<br />jmp: Jump.<br />jmpZ: Jump if AC is equal to 0.<br />jmpL: Jump if AC is less than 0.<br />sqr: Square root of AC.<br />pow: AC to the power of n<br />End: End program.<br /><br /><div class=\"help_title\">Symbols:</div>#: Use numeric value.<br />[]: Value in memory is an address.",
credits_description: "Language simulator based on the architecture of",
credits_john: "John von Nuemann",
credits_cromer: "Made by Christopher Cromer(chris@cromer.cl)"
};

32
js/values/spanish.js Normal file
View File

@@ -0,0 +1,32 @@
var spanish_strings = {
english: "Inglés",
spanish: "Español",
project_name: "Nombre de proyecto:",
help: "Ayuda",
code: "Código",
result: "Resultado",
screen: "Pantalla",
add_line: "Agregar linea",
insert_line: "Insertar linea",
delete_line: "Borrar linea",
clear_code: "Borrar código",
export_code: "Exportar",
import_code: "Importar:",
execute_code: "Ejecutar",
pause_code: "Pausar",
stop_code: "Parar",
interval: "Intervalo: ",
input_value: "Ingresar valor:",
error_input: "El valor ingresado no es un número.",
error_memory: "Dirreción de memoria no existe.",
error_syntax: "Error de sintaxis.",
error_no_command: "No hay commando para ejecutar.",
error_math: "Error matemático.",
error_ac: "AC es vacío.",
file_load_failed: "Cargar archivo se falló!",
leave: "Estás seguro que quieres cerrar esta pagina?",
help_text: "<div class=\"help_title\">Comandos:</div>rda: Leer del teclado a memoria.<br />lda: Cargar a AC.<br />str: Guardar a memoria.<br />wrt: Imprimiar a pantalla.<br />add: Suma.<br />sub: Resta.<br />mul: Multiplicación.<br />div: División.<br />jmp: Saltar.<br />jmpZ: Saltar si AC es igual a 0.<br />jmpL: Saltar si AC es menor de 0.<br />sqr: Raiz cuadrada de AC.<br />pow: AC a poder de n<br />End: Terminar programa.<br /><br /><div class=\"help_title\">Simbolos:</div>#: Usar valor numerico.<br />[]: Valor en memoria es un dirreción.",
credits_description: "Simulador de lenguaje basado en la arquitectura de",
credits_john: "John von Nuemann",
credits_cromer: "Construido por Christopher Cromer(chris@cromer.cl)"
};