diff --git a/es/Binary.html b/es/Binary.html index bf23988..f23839c 100644 --- a/es/Binary.html +++ b/es/Binary.html @@ -7,38 +7,44 @@

-Let's dive right into the magical land of data.
+Metámonos en el mágico mundo de los datos.

-What's the symbol for five? 5
-What's the symbol for ten? 10
+¿Cuál es el símbolo del cinco? 5
+¿Cuál es el símbolo del diez? 10

-But wait, isn't that the symbol for one and zero?
+Pero, esperá... ¿No es ese el símbolo del uno y el del +cero?

-Right, so in our numbering system, when we get to the number ten, we write the symbol -for one and zero. There is no symbol for ten, we simply recycle the ones we already have. -Because of this we call our numbering system "base-ten", or "decimal".
+Claro... Entonces, en nuestro sistema de numeración, cuando llegamos al +número diez, escribimos el símbolo del uno y el del cero. No hay +un símbolo para el diez, simplemente reciclamos los que ya +teníamos. Por esto es que llamamos a nuestro sistema de numeración +"de base diez" o "decimal".

-"Ones and zeros", -"true and false", -and "on or off" -are all terms you have probably heard before. What these are all referring to is a -different kind of numbering system. For our decimal system, we write a '10' when we -get to ten, but for binary, we write a '10' when we get to two. There is no symbol for two -in binary, exactly how there is no symbol for ten in decimal. -"On" or "off" -simply refers to -'1' or '0' -in binary.
+"Unos y ceros", +"verdadero y falso", +and "prendido o apagado" +son todos términos que probablemente hayas escuchado antes. Todos ellos +se están refiriendo a distintos sistemas de numeración. +En nuestro sistema decimal escribimos '10' cuando llegamos hasta diez, pero, +en binario, escribimos '10' cuando llegamos al dos. No hay un símbolo +para el dos en binario, del mismo modo que no hay un símbolo para el +diez en decimal. +"prendido" o "apagado" +simplemente se refiere a +'1' o '0' +en binario.

-Just to be sure you understand binary, try clicking the binary counter here:
+Sólo para estar seguros de que entendés binario, probá +clickear este contador binario:

-
+

1/8 diff --git a/es/InstructionPointer.html b/es/InstructionPointer.html index 06560e6..7ccce83 100644 --- a/es/InstructionPointer.html +++ b/es/InstructionPointer.html @@ -7,23 +7,30 @@

-But how does the CPU know where to get its instructions?
+Pero... ¿Cómo sabe la CPU de dónde sacar las +instrucciones?

-On the CPU, there is a tiny amount of memory. It does various things, such as
-hold something called the "instruction pointer". The instruction pointer
-holds the location of the next instruction, and increments itself after
-every instruction. So basically, the CPU reads the instruction pointer,
-fetches the next instruction, does it, increments the instruction pointer
-and then goes back to step one.
+En la CPU hay una porción de memoria muy pequeña que sirve para +varias
cosas, como, por ejemplo, guardar algo llamado el "puntero de +instrucción"
("instruction pointer", IP). El IP guarda la +ubicación de la próxima instrucción a
ejecutar, y se +incrementa después de cada instrucción. Entonces,
+básicamente, la CPU lee el IP, obtiene la próxima +instrucción, la ejecuta,
incrementa el IP* y vuelve al primer paso.
-The value of the instruction pointer itself can be set to some arbitrary
-location in memory. You ever wonder what an infinite loop is on a computer?
It's what happens when an instruction pointer is set to instructions that
-keep telling the instruction pointer to set itself to that same set of
-instructions.

+Al IP se le puede poner cualquier valor arbitrario, que se interpretará +como
una posición en memoria. ¿Alguna vez te preguntaste +qué es un bucle infinito
en una computadora? Es lo que ocurre cuando +se pone un valor del IP que
hace que ejecute un conjunto de instrucciones +que vuelven a poner al IP a
referenciar a esas instrucciones.
+
+
+*Nota: en este caso, IP se refiere al Instruction Pointer, y no a las
+direcciones IP ni al Internet Protocol.
<left diff --git a/es/NAND.html b/es/NAND.html index c97dd23..cec0450 100644 --- a/es/NAND.html +++ b/es/NAND.html @@ -7,28 +7,31 @@

-Now for something completely different, yet related.
+Ahora vamos con otra cosa totalmente diferente, pero relacionada.

-There's something in computer theory called a "logic gate". It's a device
-that has two inputs and one output.The only input it accepts is "on" or
-"off", and the output is the same, "on" or "off".You might see the relation
-to binary. +Existe algo en la teoría de la computación llamado "compuerta +lógica". Es
un dispositivo que tiene dos entradas y una salida. Las +únicas entradas que
acepta son "prendido" o "apagado", y las salidas +son, también, "prendido" o "apagado". Ya podés ver la +relación con el binario.

-A logic gates output is based on its input. One example of a logic gate is
-the NAND gate; try clicking the switches to the left:
+La salida de una compuerta lógica se basa en sus entradas. Un ejemplo +de
compuerta lógica es la compuerta NAND. Probá clickeando +los interruptores
a la izquierda:


-When both of the NAND gates inputs are on, the output is off. Otherwise, the
-output is on.
+Cuando ambas entradas de una compuerta NAND están prendidos, la +salida
se apaga. Si no, la salida se prende.

-There are several more variations of the logic gate, but the only one we
-need to worry about for now is the NAND gate.If you would like to see real
-life examples of the NAND gate, go here.
+Hay muchas variaciones de compuertas lógicas, pero la única de la +que
tenemos que preocuparnos por ahora es la compuerta NAND. Si +querés ver
ejemplos de compuertas NAND de la vida real, entrá +acá.

- - + + - + diff --git a/es/binaryInc.js b/es/binaryInc.js deleted file mode 100644 index 72968b4..0000000 --- a/es/binaryInc.js +++ /dev/null @@ -1,52 +0,0 @@ -var c = document.getElementById("binaryInc"); -c.onselectstart = function(){return false;} -var ctx = c.getContext("2d"); -ctx.textAlign="right"; -var n = 0; -c.addEventListener('click',function(e){ - e.preventDefault(); - (n>254)?n=0:n+=1; - update(); -},false); -function update(){ - ctx.clearRect(0,0,1000,800); - ctx.font = "48px Arial"; - ctx.fillStyle = "#000000"; - ctx.fillText(""+n,245,50); - numDraw(n); - ctx.fillStyle = "#CCCCCC"; - ctx.font = "16px Arial"; - sizesDraw(); -} -function sizesDraw(){ - ctx.fillRect(222,110,20,2); - ctx.fillText("bit",219,117); - ctx.fillRect(145,130,98,2); - ctx.fillText("nibble",141,137); - ctx.fillRect(31,150,212,2); - ctx.fillText("byte",30,157); -} -function numDraw(n){ - var space = 26; - (chardraw(n,128,245-(7*space+8),95))?n-=128:n=n; - (chardraw(n,64,245-(6*space+8),95))?n-=64:n=n; - (chardraw(n,32,245-(5*space+8),95))?n-=32:n=n; - (chardraw(n,16,245-(4*space+8),95))?n-=16:n=n; - (chardraw(n,8,245-(3*space),95))?n-=8:n=n; - (chardraw(n,4,245-(2*space),95))?n-=4:n=n; - (chardraw(n,2,245-(1*space),95))?n-=2:n=n; - chardraw(n,1,245,95) - //messy, but we use it to show colors anyways, mine as well -} -function chardraw(n,a,x,y){ - if((n-a)>=0){ - ctx.fillStyle = "#55EE55"; - ctx.fillText("1",x,y); - return true; - }else{ - ctx.fillStyle = "#FF5555"; - ctx.fillText("0",x,y); - return false; - } -} -update(); diff --git a/es/code.html b/es/code.html index 4d0d233..5ccbfe7 100644 --- a/es/code.html +++ b/es/code.html @@ -7,7 +7,7 @@

@@ -17,68 +17,73 @@ } - -Cool, now we have a basic calculator. How can we turn this up to eleven
-and make a computer?
+Genial, ya tenemos una calculadora básica. ¿Cómo podemos +evolucionar
esto para conseguir una computadora?

-Code.
+Código.

-Now that you know what data is, code is easy to explain. It's just data.
-The reason why it's different than other data, however, is because the CPU
-interprets it as instructions.
+Ahora que sabés cómo están hechos los datos, explicar el +código es fácil. Simplemente es un conjunto de datos. La +razón por la que difiere del resto
de los datos es que la CPU lo +interpreta como instrucciones.

-Let's say we wanted the computer to do math, we could use a system like;
+Digamos que queríamos que la computadora haga cuentas, entonces
+podríamos usar un sistema como:

- + - + - + - +
instructioninstrucción codecódigo
"add a number to another number""sumar un número con otro"    00000001
"subtract a number from another number""restar un número a otro"    00000010

-With this, we can set what logic gates are being used based on data.
+Con esto, podemos establecer qué compuertas lógicas se usan +basándose
en los datos.

-Now, real quick, memory is organized in a computer by something called
-memory addresses, which basically allow the CPU to ask for memory at a
-certain location. Generally speaking the addresses are sized by "bytes"
-which is just another word for "eight bits". So if we wanted to access
-memory location five or whatever we could store that as '00000101'.
+Ahora, muy rápidamente, la memoria se organiza en la computadora +con
algo llamado "direcciones de memoria", que es básicamente una +forma de
permitirle a la CPU que pida el valor de la memoria en una +ubicación
específica. En general, las direcciones se asignan +a cada "byte", que es
simplemente otra forma de decir "ocho bits". +Así que si quisiéramos acceder
a la dirección de +memoria cinco, podríamos almacenarlo como '00000101'.

-Lets go back and add some more to our table:
+Volvamos a nuestra tabla y agregemos algo más:

- +
"move this data into some location""mover un dato a alguna ubicación"    00000011

-Cool, now we can say something like:
+Genial. Ahora podemos decir algo como:

-  "add the number at location #5 in memory to the other number at
-  location #7 in memory."
+  "sumar el número en la posición de memoria #5 con el +número de la
  posición de memoria #7"

-By breaking it down into:
+Partiéndolo en:

-  (add) (memory address #5) (memory address #7)
+  (sumar) (posición de memoria #5) (posición de memoria +#7)

-Which is really just:
+Que en realidad no es más que:

  00000001 00000101 00000111

-Pretty sweet right?
+Hermoso, ¿no?

diff --git a/es/cpu.html b/es/cpu.html index 032b1a7..f2ac8ea 100644 --- a/es/cpu.html +++ b/es/cpu.html @@ -7,49 +7,49 @@

-Here is a (relatively) simple CPU for you to play with;
+Esta es una CPU relativamente simple con la que podés jugar:

-To modify memory, simply click on the bits while the cpu is off. You can
-scroll through memory as well. To allow the cpu to start executing
-instructions, turn the switch on.
+Para modificar la memoria, clickeá los bits mientras la CPU está +apagada.
Podés scrollear por toda la memoria. Para que la CPU +empiece a ejecutar
las instrucciones, prendé el interruptor.

-This cpu has three different instructions:
+Esta CPU tiene tres instrucciones diferentes:
- + - + - + - + - +
InstructionInstrucción CodeCódigo
add the value at the address held at (Instruction Pointer + 1)
- to the value at the address held at (Instruction Pointer + 2)
suma el valor de la posición (IP + 1) con
el valor de la + posición (IP + 2)
   00000001
subtract the value at the address held at (Instruction Pointer + 2)
- from the value at the address held at (Instruction Pointer + 1)
resta el valor de la posición (IP + 2) al
valor de la + posición (IP + 1)
   00000010
move the value at the address held at (Instruction Pointer + 1)
- to the value at the address held at (Instruction Pointer + 2)
mueve el valor de la posición (IP + 1) a la
posición + refereida por la posición (IP + 2)
   00000011

-All of the instructions have a size of 3 bytes (operands included).This
-means that we increment the instruction pointer by 3 after each instruction
-is executed.
+Todas las instrucciones tienen un tamaño de 3 bytes (incluyendo los
+operandos). Esto significa que incrementamos el IP en 3 cada vez que
+ejecutamos una instrucción.

-The instruction pointer can be accessed by addressing memory location 00000000. +Se puede acceder al IP en la posición 00000000.

diff --git a/es/memory.html b/es/memory.html index d574a27..230f0f0 100644 --- a/es/memory.html +++ b/es/memory.html @@ -7,18 +7,18 @@

-Want to see how computers store data?
+¿Querés ver cómo guardan datos las computadoras?

-This next device is called a 'D-Latch'. It holds a binary bit.
+El dispositivo siguiente se llama 'D-Latch'. Guarda un bit binario.



-The top switch is the value to be stored, the bottom switch enables storage.
+El interruptor superior es el valor a guardar, el inferior habilita el almacenamiento.

-Eight of these devices can be used to store a byte in memory.
+Se puede guardar un byte en memoria usando ocho de estos dispositivos.

- + - + +