This commit is contained in:
neauoire 2021-02-01 14:49:09 -08:00
parent 06c57cb936
commit 5147884639
1 changed files with 16 additions and 17 deletions

View File

@ -10,32 +10,34 @@ cc uxn.c -std=c89 -Os -DNDEBUG -g0 -s -Wall -Wno-unknown-pragmas -o uxn
## Assembly Syntax
- `:label`, a named offset
- `:label`, a named address
- `+literal`, a numeric value
- `.pointer`, pointer to a label
```
< comment >
< conditionals >
+01 < literal >
+03 +02 ADD
+05 EQU
[ 01 02 03 04 ] < block of literals >
.there JMQ
$01 < pointer8 >
:here
< when not equal >
+ee
BRK
{ 01 02 03 04 } < block of pointer8 >
~ff0f < pointer16 >
( ff00 ff01 ff02 ff03 ) < block of pointer16 >
=const +ff
:label ADD RTS
:there
< when is equal >
+ff
BRK
```
## Mission
- constants
- variables
- A Three-Way Decision Routine(http://www.6502.org/tutorials/compare_instructions.html)
- Carry flag?
- Loop
- Pointers/Literals
@ -44,9 +46,6 @@ $01 < pointer8 >
- Detect mouse click
- 16 bits addressing
- jumping to subroutine should be relative
## TODOs
- Implement addressing
- Implement 16 bits operations
- Jumps should be relative