This commit is contained in:
parent
06c57cb936
commit
5147884639
33
README.md
33
README.md
|
@ -10,32 +10,34 @@ cc uxn.c -std=c89 -Os -DNDEBUG -g0 -s -Wall -Wno-unknown-pragmas -o uxn
|
||||||
|
|
||||||
## Assembly Syntax
|
## Assembly Syntax
|
||||||
|
|
||||||
- `:label`, a named offset
|
- `:label`, a named address
|
||||||
- `+literal`, a numeric value
|
- `+literal`, a numeric value
|
||||||
- `.pointer`, pointer to a label
|
- `.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 >
|
:there
|
||||||
|
< when is equal >
|
||||||
~ff0f < pointer16 >
|
+ff
|
||||||
|
BRK
|
||||||
( ff00 ff01 ff02 ff03 ) < block of pointer16 >
|
|
||||||
|
|
||||||
=const +ff
|
|
||||||
|
|
||||||
:label ADD RTS
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Mission
|
## Mission
|
||||||
|
|
||||||
|
- constants
|
||||||
|
- variables
|
||||||
|
- A Three-Way Decision Routine(http://www.6502.org/tutorials/compare_instructions.html)
|
||||||
- Carry flag?
|
- Carry flag?
|
||||||
- Loop
|
- Loop
|
||||||
- Pointers/Literals
|
- Pointers/Literals
|
||||||
|
@ -44,9 +46,6 @@ $01 < pointer8 >
|
||||||
- Detect mouse click
|
- Detect mouse click
|
||||||
- 16 bits addressing
|
- 16 bits addressing
|
||||||
- jumping to subroutine should be relative
|
- jumping to subroutine should be relative
|
||||||
|
|
||||||
## TODOs
|
|
||||||
|
|
||||||
- Implement addressing
|
- Implement addressing
|
||||||
- Implement 16 bits operations
|
- Implement 16 bits operations
|
||||||
- Jumps should be relative
|
- Jumps should be relative
|
||||||
|
|
Loading…
Reference in New Issue