update colors everywhere

This commit is contained in:
sejo 2024-03-14 20:20:03 +01:00
parent 6cb90c4151
commit 1c3ed6c366
12 changed files with 129 additions and 129 deletions

View File

@ -30,9 +30,9 @@ comencemos con el siguiente programa como plantilla. incluye los datos para un s
|0100
@configuracion
( establecer los colores del sistema )
#2ce9 .Sistema/r DEO2
#01c0 .Sistema/g DEO2
#2ce5 .Sistema/b DEO2
#2eef .Sistema/r DEO2
#1eb8 .Sistema/g DEO2
#1e2e .Sistema/b DEO2
BRK
@ -176,9 +176,9 @@ lo siguiente muestra nuestro programa en contexto, llenando completamente la pri
|0100
@configuracion
( establecer los colores del sistema )
#2ce9 .Sistema/r DEO2
#01c0 .Sistema/g DEO2
#2ce5 .Sistema/b DEO2
#2eef .Sistema/r DEO2
#1eb8 .Sistema/g DEO2
#1e2e .Sistema/b DEO2
;tile-fondo .Pantalla/direc DEO2 ( establecer la dirección del tile )
#0000 ( x inicial )

View File

@ -185,9 +185,9 @@ podemos escribirlo de la siguiente manera:
( programa principal )
|0100
( establecer los colores del sistema )
#2ce9 .Sistema/r DEO2
#01c0 .Sistema/g DEO2
#2ce5 .Sistema/b DEO2
#2eef .Sistema/r DEO2
#1eb8 .Sistema/g DEO2
#1e2e .Sistema/b DEO2
```
¿cómo podríamos leer lo que significan esos cortos literales?
@ -325,9 +325,9 @@ el programa completo se vería de la siguiente manera:
( programa principal )
|0100
( establecer los colores del sistema )
#2ce9 .Sistema/r DEO2
#01c0 .Sistema/g DEO2
#2ce5 .Sistema/b DEO2
#2eef .Sistema/r DEO2
#1eb8 .Sistema/g DEO2
#1e2e .Sistema/b DEO2
( dibujar un píxel en la pantalla )
#0008 .Pantalla/x DEO2
@ -452,9 +452,9 @@ usando estas macros que definimos arriba, nuestro código puede terminar viéndo
( programa princpal )
|0100
#2ce9 .Sistema/r DEO2
#01c0 .Sistema/g DEO2
#2ce5 .Sistema/b DEO2
#2eef .Sistema/r DEO2
#1eb8 .Sistema/g DEO2
#1e2e .Sistema/b DEO2
( establecer las coordenadas iniciales x,y )
#0008 .Pantalla/x DEO2
@ -677,9 +677,9 @@ el siguiente programa dibujará nuestro sprite una vez:
( programa principal )
|0100
( establecer los colores del sistema )
#2ce9 .Sistema/r DEO2
#01c0 .Sistema/g DEO2
#2ce5 .Sistema/b DEO2
#2eef .Sistema/r DEO2
#1eb8 .Sistema/g DEO2
#1e2e .Sistema/b DEO2
( establecer coordenadas x,y )
#0008 .Pantalla/x DEO2
@ -719,9 +719,9 @@ el siguiente código dibujará nuestro sprite cuadrado con las 16 combinaciones
( programa principal )
|0100
( establecer los colores del sistema )
#2ce9 .Sistema/r DEO2
#01c0 .Sistema/g DEO2
#2ce5 .Sistema/b DEO2
#2eef .Sistema/r DEO2
#1eb8 .Sistema/g DEO2
#1e2e .Sistema/b DEO2
( establecer coordenadas iniciales x,y )
INIT-X INIT-Y
@ -954,9 +954,9 @@ el siguiente código mostrará nuestro sprite en las 16 diferentes combinaciones
( programa principal )
|0100
( establecer los colores del sistema )
#2ce9 .Sistema/r DEO2
#01c0 .Sistema/g DEO2
#2ce5 .Sistema/b DEO2
#2eef .Sistema/r DEO2
#1eb8 .Sistema/g DEO2
#1e2e .Sistema/b DEO2
( establecer coordenadas iniciales x,y )
INIT-X INIT-Y

View File

@ -99,9 +99,9 @@ este utiliza el procedimiento de dibujo de sprites que probamos el día anterior
( programa principal )
|0100
( establecer los colores del sistema )
#2ce9 .Sistema/r DEO2
#01c0 .Sistema/g DEO2
#2ce5 .Sistema/b DEO2
#2eef .Sistema/r DEO2
#1eb8 .Sistema/g DEO2
#1e2e .Sistema/b DEO2
( asignar vector del controlador )
;en-controlador .Controlador/vector DEO2
@ -659,9 +659,9 @@ observa el uso de las máscaras AND, los saltos condicionales y algunas operacio
( programa principal )
|0100
( establecer los colores del sistema )
#2ce9 .Sistema/r DEO2
#01c0 .Sistema/g DEO2
#2ce5 .Sistema/b DEO2
#2eef .Sistema/r DEO2
#1eb8 .Sistema/g DEO2
#1e2e .Sistema/b DEO2
( asignar vector del controlador )
;en-controlador .Controlador/vector DEO2

View File

@ -40,9 +40,9 @@ el siguiente programa demuestra un uso básico pero potente del vector pantalla:
( init )
|0100
( establecer los colores del sistema )
#2ce9 .Sistema/r DEO2
#01c0 .Sistema/g DEO2
#2ce5 .Sistema/b DEO2
#2eef .Sistema/r DEO2
#1eb8 .Sistema/g DEO2
#1e2e .Sistema/b DEO2
( establecer coordenadas iniciales x,y )
#0008 .Pantalla/x DEO2
@ -238,9 +238,9 @@ en este caso el programa es más largo, pero puede ser visto como una buena plan
( init )
|0100
( establecer los colores del sistema )
#2ce9 .Sistema/r DEO2
#01c0 .Sistema/g DEO2
#2ce5 .Sistema/b DEO2
#2eef .Sistema/r DEO2
#1eb8 .Sistema/g DEO2
#1e2e .Sistema/b DEO2
( establecer coordenadas iniciales x,y )
#0008 .píxel/x STZ2
@ -410,9 +410,9 @@ el siguiente programa ilustra los puntos anteriores, haciendo que nuestro cuadra
( init )
|0100
( establecer los colores del sistema )
#2ce9 .Sistema/r DEO2
#01c0 .Sistema/g DEO2
#2ce5 .Sistema/b DEO2
#2eef .Sistema/r DEO2
#1eb8 .Sistema/g DEO2
#1e2e .Sistema/b DEO2
( fijar la Pantalla/y a la mitad de la pantalla, menos 4 )
.Pantalla/alto DEI2 MITAD2 #0004 SUB2 .Pantalla/y DEO2
@ -509,9 +509,9 @@ el siguiente programa nos permite controlar la posición horizontal de nuestro c
( init )
|0100
( establecer los colores del sistema )
#2ce9 .Sistema/r DEO2
#01c0 .Sistema/g DEO2
#2ce5 .Sistema/b DEO2
#2eef .Sistema/r DEO2
#1eb8 .Sistema/g DEO2
#1e2e .Sistema/b DEO2
( fijar la Pantalla/y a la mitad de la pantalla, menos 4 )
.Pantalla/alto DEI2 MITAD2 #0004 SUB2 .Pantalla/y DEO2
@ -833,9 +833,9 @@ la sección "borrar el sprite" no es realmente necesaria en este caso debido a l
( init )
|0100
( establecer los colores del sistema )
#2ce9 .Sistema/r DEO2
#01c0 .Sistema/g DEO2
#2ce5 .Sistema/b DEO2
#2eef .Sistema/r DEO2
#1eb8 .Sistema/g DEO2
#1e2e .Sistema/b DEO2
( fijar Pantalla/x e `y` a la mitad de la pantalla, menos 4 )
.Pantalla/ancho DEI2 MITAD2 #0004 SUB2 .Pantalla/x DEO2

View File

@ -94,9 +94,9 @@ dibuja nuestro cuadrado en la posición del ratón, cambiando su color cuando se
( init )
|0100
( establecer los colores del sistema )
#2ce9 .Sistema/r DEO2
#01c0 .Sistema/g DEO2
#2ce5 .Sistema/b DEO2
#2eef .Sistema/r DEO2
#1eb8 .Sistema/g DEO2
#1e2e .Sistema/b DEO2
( establecer vector del ratón )
;en-ratón .Ratón/vector DEO2
@ -166,9 +166,9 @@ este es un programa que logra dibujar el puntero en la pantalla
( init )
|0100
( establecer los colores del sistema )
#2ce9 .Sistema/r DEO2
#01c0 .Sistema/g DEO2
#2ce5 .Sistema/b DEO2
#2eef .Sistema/r DEO2
#1eb8 .Sistema/g DEO2
#1e2e .Sistema/b DEO2
( establecer el vector del ratón )
;en-ratón .Ratón/vector DEO2
@ -427,9 +427,9 @@ este es el programa hola-puntero.tal, pero utilizando dibuja-puntero como subrut
( init )
|0100
( establecer los colores del sistema )
#2ce9 .Sistema/r DEO2
#01c0 .Sistema/g DEO2
#2ce5 .Sistema/b DEO2
#2eef .Sistema/r DEO2
#1eb8 .Sistema/g DEO2
#1e2e .Sistema/b DEO2
( establecer el vector del ratón )
;en-ratón .Ratón/vector DEO2

View File

@ -43,9 +43,9 @@ empecemos con el siguiente programa como plantilla. incluye los datos para un sp
|0100
@configuración
( establecer los colores del sistema )
#2ce9 .Sistema/r DEO2
#01c0 .Sistema/g DEO2
#2ce5 .Sistema/b DEO2
#2eef .Sistema/r DEO2
#1eb8 .Sistema/g DEO2
#1e2e .Sistema/b DEO2
BRK
@ -187,9 +187,9 @@ lo siguiente muestra nuestro programa en contexto, llenando completamente la pri
|0100
@configuración
( establecer los colores del sistema )
#2ce9 .Sistema/r DEO2
#01c0 .Sistema/g DEO2
#2ce5 .Sistema/b DEO2
#2eef .Sistema/r DEO2
#1eb8 .Sistema/g DEO2
#1e2e .Sistema/b DEO2
( dibujar fondo )
;tile-fondo .Pantalla/direc DEO2 ( establecer la dirección del tile )
@ -634,9 +634,9 @@ omitiendo la definición de las subrutinas dibuja-fondo y dibuja-pala y como for
|0100
@configuración
( establecer los colores del sistema )
#2ce9 .Sistema/r DEO2
#01c0 .Sistema/g DEO2
#2ce5 .Sistema/b DEO2
#2eef .Sistema/r DEO2
#1eb8 .Sistema/g DEO2
#1e2e .Sistema/b DEO2
( establecer vector de pantalla )
;en-cuadro .Pantalla/vector DEO2
@ -1361,9 +1361,9 @@ aquí está todo el código que hemos escrito hoy:
|0100
@configuración ( -> )
( establecer los colores del sistema )
#2ce9 .Sistema/r DEO2
#01c0 .Sistema/g DEO2
#2ce5 .Sistema/b DEO2
#2eef .Sistema/r DEO2
#1eb8 .Sistema/g DEO2
#1e2e .Sistema/b DEO2
( establecer el vector de la pantalla )
;en-cuadro .Pantalla/vector DEO2

View File

@ -30,9 +30,9 @@ let's start with the following program as a template. it includes the data for a
|0100
@setup
( set system colors )
#2ce9 .System/r DEO2
#01c0 .System/g DEO2
#2ce5 .System/b DEO2
#2eef .System/r DEO2
#1eb8 .System/g DEO2
#1e2e .System/b DEO2
BRK
@ -176,9 +176,9 @@ the following shows our program in context, completely filling the first row of
|0100
@setup
( set system colors )
#2ce9 .System/r DEO2
#01c0 .System/g DEO2
#2ce5 .System/b DEO2
#2eef .System/r DEO2
#1eb8 .System/g DEO2
#1e2e .System/b DEO2
;tile-background .Screen/addr DEO2 ( set tile address )
#0000 ( initial x )

View File

@ -330,9 +330,9 @@ the complete program would look as follows:
( main program )
|0100
( set system colors )
#2ce9 .System/r DEO2
#01c0 .System/g DEO2
#2ce5 .System/b DEO2
#2eef .System/r DEO2
#1eb8 .System/g DEO2
#1e2e .System/b DEO2
( draw a pixel in the screen )
#0008 .Screen/x DEO2
@ -457,9 +457,9 @@ using these macros we defined above, our code could end up looking as following:
( main program )
|0100
#2ce9 .System/r DEO2
#01c0 .System/g DEO2
#2ce5 .System/b DEO2
#2eef .System/r DEO2
#1eb8 .System/g DEO2
#1e2e .System/b DEO2
( set initial x,y coordinates )
#0008 .Screen/x DEO2
@ -682,9 +682,9 @@ the following program will draw our sprite once:
( main program )
|0100
( set system colors )
#2ce9 .System/r DEO2
#01c0 .System/g DEO2
#2ce5 .System/b DEO2
#2eef .System/r DEO2
#1eb8 .System/g DEO2
#1e2e .System/b DEO2
( set x,y coordinates )
#0008 .Screen/x DEO2
@ -724,9 +724,9 @@ the following code will draw our square sprite with all 16 combinations of color
( main program )
|0100
( set system colors )
#2ce9 .System/r DEO2
#01c0 .System/g DEO2
#2ce5 .System/b DEO2
#2eef .System/r DEO2
#1eb8 .System/g DEO2
#1e2e .System/b DEO2
( set initial x,y coordinates )
INIT-X INIT-Y
@ -961,9 +961,9 @@ the following code will show our sprite in the 16 different combinations of colo
( main program )
|0100
( set system colors )
#2ce9 .System/r DEO2
#01c0 .System/g DEO2
#2ce5 .System/b DEO2
#2eef .System/r DEO2
#1eb8 .System/g DEO2
#1e2e .System/b DEO2
( set initial x,y coordinates )
INIT-X INIT-Y

View File

@ -99,9 +99,9 @@ it uses the sprite drawing procedure we tried in the previous day, but has it ha
( main program )
|0100
( set system colors )
#2ce9 .System/r DEO2
#01c0 .System/g DEO2
#2ce5 .System/b DEO2
#2eef .System/r DEO2
#1eb8 .System/g DEO2
#1e2e .System/b DEO2
( assign controller vector )
;on-controller .Controller/vector DEO2
@ -659,9 +659,9 @@ note the use of AND masks, conditional jumps, and some stack operations!
( main program )
|0100
( set system colors )
#2ce9 .System/r DEO2
#01c0 .System/g DEO2
#2ce5 .System/b DEO2
#2eef .System/r DEO2
#1eb8 .System/g DEO2
#1e2e .System/b DEO2
( assign controller vector )
;on-controller .Controller/vector DEO2

View File

@ -40,9 +40,9 @@ the following program demonstrates a basic but powerful use of the screen vector
( init )
|0100
( set system colors )
#2ce9 .System/r DEO2
#01c0 .System/g DEO2
#2ce5 .System/b DEO2
#2eef .System/r DEO2
#1eb8 .System/g DEO2
#1e2e .System/b DEO2
( set initial x,y coordinates )
#0008 .Screen/x DEO2
@ -238,9 +238,9 @@ in this case the program is longer, but it could be seen as a nice template for
( init )
|0100
( set system colors )
#2ce9 .System/r DEO2
#01c0 .System/g DEO2
#2ce5 .System/b DEO2
#2eef .System/r DEO2
#1eb8 .System/g DEO2
#1e2e .System/b DEO2
( set initial x,y coordinates )
#0008 .pixel/x STZ2
@ -410,9 +410,9 @@ it combines several things that we have covered in the past few days!
( init )
|0100
( set system colors )
#2ce9 .System/r DEO2
#01c0 .System/g DEO2
#2ce5 .System/b DEO2
#2eef .System/r DEO2
#1eb8 .System/g DEO2
#1e2e .System/b DEO2
( set screen/y to half of screen minus 4 )
.Screen/height DEI2 HALF2 #0004 SUB2 .Screen/y DEO2
@ -509,9 +509,9 @@ note the similarities between the previous program, and what we covered on {uxn
( init )
|0100
( set system colors )
#2ce9 .System/r DEO2
#01c0 .System/g DEO2
#2ce5 .System/b DEO2
#2eef .System/r DEO2
#1eb8 .System/g DEO2
#1e2e .System/b DEO2
( set screen/y to half of screen minus 4 )
.Screen/height DEI2 HALF2 #0004 SUB2 .Screen/y DEO2
@ -834,9 +834,9 @@ the clear sprite section is not actually needed in this case because of the colo
( init )
|0100
( set system colors )
#2ce9 .System/r DEO2
#01c0 .System/g DEO2
#2ce5 .System/b DEO2
#2eef .System/r DEO2
#1eb8 .System/g DEO2
#1e2e .System/b DEO2
( set screen/x and y to half of screen minus 4 )
.Screen/width DEI2 HALF2 #0004 SUB2 .Screen/x DEO2

View File

@ -94,9 +94,9 @@ it draws our square in the position of the mouse, changing its color when any mo
( init )
|0100
( set system colors )
#2ce9 .System/r DEO2
#01c0 .System/g DEO2
#2ce5 .System/b DEO2
#2eef .System/r DEO2
#1eb8 .System/g DEO2
#1e2e .System/b DEO2
( set mouse vector )
;on-mouse .Mouse/vector DEO2
@ -166,9 +166,9 @@ this is a program that accomplishes drawing the pointer on the screen!
( init )
|0100
( set system colors )
#2ce9 .System/r DEO2
#01c0 .System/g DEO2
#2ce5 .System/b DEO2
#2eef .System/r DEO2
#1eb8 .System/g DEO2
#1e2e .System/b DEO2
( set mouse vector )
;on-mouse .Mouse/vector DEO2
@ -427,9 +427,9 @@ this is the hello-pointer.tal program, but using draw-pointer as a subroutine th
( init )
|0100
( set system colors )
#2ce9 .System/r DEO2
#01c0 .System/g DEO2
#2ce5 .System/b DEO2
#2eef .System/r DEO2
#1eb8 .System/g DEO2
#1e2e .System/b DEO2
( set mouse vector )
;on-mouse .Mouse/vector DEO2

View File

@ -43,9 +43,9 @@ let's start with the following program as a template. it includes the data for a
|0100
@setup
( set system colors )
#2ce9 .System/r DEO2
#01c0 .System/g DEO2
#2ce5 .System/b DEO2
#2eef .System/r DEO2
#1eb8 .System/g DEO2
#1e2e .System/b DEO2
BRK
@ -187,9 +187,9 @@ the following shows our program in context, completely filling the first row of
|0100
@setup
( set system colors )
#2ce9 .System/r DEO2
#01c0 .System/g DEO2
#2ce5 .System/b DEO2
#2eef .System/r DEO2
#1eb8 .System/g DEO2
#1e2e .System/b DEO2
( draw background )
;tile-background .Screen/addr DEO2 ( set tile address )
@ -633,9 +633,9 @@ omitting the definition of the draw-background and draw-paddle subroutines, and
|0100
@setup
( set system colors )
#2ce9 .System/r DEO2
#01c0 .System/g DEO2
#2ce5 .System/b DEO2
#2eef .System/r DEO2
#1eb8 .System/g DEO2
#1e2e .System/b DEO2
( set screen vector )
;on-frame .Screen/vector DEO2
@ -1359,9 +1359,9 @@ here's all of the code we wrote today!
|0100
@setup ( -> )
( set system colors )
#2ce9 .System/r DEO2
#01c0 .System/g DEO2
#2ce5 .System/b DEO2
#2eef .System/r DEO2
#1eb8 .System/g DEO2
#1e2e .System/b DEO2
( set screen vector )
;on-frame .Screen/vector DEO2