: NOP 0 ROLL ; : SWAP 1 ROLL ; : ROT 2 ROLL ; : DUP 0 PICK ; : OVER 1 PICK ; : THIRD 2 PICK ; So if I optimize ROLL and PICK with inlining. I can almost do all stack operations efficiently.
Define system from hexdump to highlevel words without building system. How simple can we get?
To make things simple we assume PC with 386+ processor. Later we can expand to other platforms. Lets begin by declaring system within itself. We can't assume anything as yet.
In 386 all registers are general registers: So A,B,C and D stand for EAX, EBX, ECX, EDX. Default action always on EAX register. Lets define basic memory building blocks.
: >[B] MOV [EBX],EAX ; : [B]> MOV EAX,[EBX] ;