Asmlang

From Esolang
Jump to navigation Jump to search
This is still a work in progress. It may be changed in the future.
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

Asmlang is an Work-in-progress language. Here is the concept file:


Instruction set
F is an adress,pointing to an 8-bit value.
W is an 8-bit accumulator.
Stack have 2 levels :)
0<=b<8
Add,And,Or,Subtract,XOR W with F to D
Rotate left/right thru carry,Swap halves,Complement,increment/decrement(with optional skip if zero),Move f to dest.
Clear/set bit b in reg f,Skip if bit b in f is zero/one.
And,Or,Move,Xor literal to W.
NOP
CONTROL-FLOW:
Call subroutine(Push PC to stack)
Unconditional jump
Return and place literal in W(PC -> Stack top,pop stack)