~rabbits/ornithologics

4e366bc8545131b1c7b086b48e2568ef9c9891fd — Devine Lu Linvega 2 years ago e30e145
Progress on adder code
1 files changed, 25 insertions(+), 0 deletions(-)

M README.md
M README.md => README.md +25 -0
@@ 6,6 6,31 @@ A [combinatory logic](https://wiki.xxiivv.com/site/logic.html) playground, writt

You must have the [Uxn](https://git.sr.ht/~rabbits/uxn/) assembler and emulator.

## Example

Adding two numbers together:

```
B(2)(3)fx , or B(WB)(SB(WB))fx
```

The resulting stack should be:

```
f(f(f(f(f(fx)))))
```

```
( prelude ) ;nil JSR2 ;x ;cons JSR2 ;f ;cons JSR2
( 3 ) ;nil JSR2 ;nil JSR2 ;b ;cons JSR2 ;w ;cons JSR2 ;cons JSR2 ;b ;cons JSR2 ;s ;cons JSR2 ;cons JSR2
( 2 ) ;nil JSR2 ;b ;cons JSR2 ;w ;cons JSR2 ;cons JSR2
( end ) ;b ;cons JSR2
( eval )
;eval JSR2
( halt )
#0101 #0e DEO2
```

```
uxnasm src/ornithologics.tal bin/i.rom && uxnemu bin/i.rom
```