permacomputing

Source repository for the main permacomputing wiki site
git clone http://git.permacomputing.net/repos/permacomputing.git # read-only access
Log | Files | Refs

commit e3da3adf26f42138e5a7857254903742d9989116
parent 5e64a115fe341146f12c9eecebaaf197589adea6
Author: neau <neau@web>
Date:   Sat, 25 Jun 2022 22:03:09 +0200

empty web commit

Diffstat:
MUxn.mdwn | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/Uxn.mdwn b/Uxn.mdwn @@ -2,9 +2,9 @@ **Uxn** is a simple [[virtual machine]] geared towards graphical applications, with features reminiscent of classic home computers. -Unlike most "fantasy platforms", Uxn was designed with an implementation-first mindset with a focus on creating portable tools and games for pre-existing devices(see [[salvage computing]]). +Unlike most "fantasy platforms", Uxn was designed with an implementation-first mindset with a focus on creating portable tools and games for [[pre-existing devices|salvage computing]]. -This stack-machine has 32 opcodes, no registers, Program Counter(PC), Memory(M), Devices(D) and Return Stack(rs). Given stack a b c, the c item being the last to be added, and the first to be removed: +This stack-machine has 32 opcodes, and no registers. Given the stack a b c, the c item being the last to be added, and the first to be removed, a Program Counter(PC), a Memory(M), Devices(D) and a Return Stack(rs): 80 a b c M[PC+1] 08 a b?c 10 a b M[c8] 18 a b+c 01 a b c+1 09 a b!c 11 a {M[c8]=b} 19 a b-c @@ -16,7 +16,9 @@ This stack-machine has 32 opcodes, no registers, Program Counter(PC), Memory(M), 07 a b c b 0f a b {rs.c} 17 a {D[c8]=b} 1f a b>>c8l<<c8h 2x a16 b16+c16 4x a b c {rs.b+rs.c} 8x a b c b+c -The [[C]] implementation of the virtual machine is about 100 lines. A self-hosted assembler for the Uxntal assembly language is about 400 lines of Uxntal, and assembles to a 1200 bytes rom. +The implementation of the virtual machine is about [[100 lines of ANSI C|https://git.sr.ht/~rabbits/uxn11/tree/main/item/src/uxn.c]]. A self-hosted assembler for the Uxntal assembly language is about [[400 lines of Uxntal|https://git.sr.ht/~rabbits/drifblim/tree/main/item/src/drifblim.tal]]. + +Assembled Uxntal applications such as text editors, drawing programs and livecoding environments typically about 10-15kb in size. Relationship to permacomputing: