link to day 5
This commit is contained in:
parent
b0f44f0ae7
commit
71e973f5d3
|
@ -48,7 +48,11 @@ we also talk about using the program memory as a space for data via "variables",
|
|||
|
||||
# day 5
|
||||
|
||||
coming soon!
|
||||
here we introduce the varvara mouse device to explore more possible interactions, and we cover the remaining elements of uxntal and uxn: the return stack, the return mode and the keep mode.
|
||||
|
||||
we also discuss possible structures to create loops and more complex programs using these resources!
|
||||
|
||||
=> ./uxn_tutorial_day_5.gmi {uxn tutorial day 5}
|
||||
|
||||
# external resources
|
||||
|
||||
|
|
|
@ -908,17 +908,15 @@ the addresses for LDA and STA are always shorts, while the addresses for the oth
|
|||
|
||||
in short mode, these instructions load or store shorts from or into memory.
|
||||
|
||||
# coming soon: day 5
|
||||
# day 5
|
||||
|
||||
in the next section of the {uxn tutorial} we'll discuss how to create more subroutines in uxntal to have more organized and modular programs.
|
||||
in {uxn tutorial day 5} here we introduce the varvara mouse device to explore more possible interactions, and we cover the remaining elements of uxntal and uxn: the return stack, the return mode and the keep mode.
|
||||
|
||||
this will lead us to talk about the return stack, and the return mode in uxn instructions: we'll finally cover them all!
|
||||
we also discuss possible structures to create loops and more complex programs using these resources!
|
||||
|
||||
we will also talk about repetitive structures (i.e. loops), and we'll discuss the varvara mouse device to explore other types of interactions!
|
||||
first, i invite you to take a break!
|
||||
|
||||
meanwhile, i invite you to keep exploring, to share your findings, and to also take a break!
|
||||
|
||||
stay tuned!
|
||||
then, keep exploring, and share your findings!
|
||||
|
||||
# support
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# uxn tutorial: day 5, the mouse and uxntal goodies
|
||||
|
||||
this is the fifth section of the <(uxn tutorial)>! here we introduce the varvara mouse device to explore more possible interactions, and we cover the remaining elements of uxntal and uxn: the return stack, the return mode and the keep mode.
|
||||
this is the fifth section of the {uxn tutorial}! here we introduce the varvara mouse device to explore more possible interactions, and we cover the remaining elements of uxntal and uxn: the return stack, the return mode and the keep mode.
|
||||
|
||||
we also discuss possible structures to create loops and more complex programs using these resources!
|
||||
|
||||
|
@ -176,7 +176,7 @@ BRK
|
|||
@pointer_icn [ 80c0 e0f0 f8e0 1000 ]
|
||||
```
|
||||
|
||||
note that it draws the pointer in the foreground, and that it uses 'a' in the low nibble of the sprite byte: this implies that it will use color 2 to draw the pointer shape, and will draw with transparency the rest of the tile. (see drawing 1bpp sprites in <(uxn tutorial day 2)> )
|
||||
note that it draws the pointer in the foreground, and that it uses 'a' in the low nibble of the sprite byte: this implies that it will use color 2 to draw the pointer shape, and will draw with transparency the rest of the tile. (see drawing 1bpp sprites in {uxn tutorial day 2} )
|
||||
|
||||
this blending mode would allow you to draw things in the background and have the pointer cover them with its shape only, and not with the whole square tile.
|
||||
|
||||
|
@ -559,7 +559,7 @@ it might be hard to think in general of a use for this, but "keep" it in mind!
|
|||
|
||||
### modulo
|
||||
|
||||
actually, if you remember, on <(uxn tutorial day 4)> i shared with you a couple of macros to perform a modulo operation:
|
||||
actually, if you remember, on {uxn tutorial day 4} i shared with you a couple of macros to perform a modulo operation:
|
||||
|
||||
```
|
||||
%MOD { DUP2 DIV MUL SUB } ( a b -- a%b )
|
||||
|
@ -711,7 +711,7 @@ these are the uxntal instructions that we discussed today! with these, we have c
|
|||
|
||||
# coming soon: day 6
|
||||
|
||||
the following days of the <(uxn tutorial)> will consist in discussing all the remaining devices in the varvara computer.
|
||||
the following days of the {uxn tutorial} will consist in discussing all the remaining devices in the varvara computer.
|
||||
|
||||
meanwhile, i invite you to keep exploring, to share your findings, and to also take a break!
|
||||
|
||||
|
@ -719,4 +719,4 @@ stay tuned!
|
|||
|
||||
# support
|
||||
|
||||
if you found this tutorial to be helpful, consider sharing it and giving it your <(support)> :)
|
||||
if you found this tutorial to be helpful, consider sharing it and giving it your {support} :)
|
||||
|
|
Loading…
Reference in New Issue