Subleq DS v0.2 (NDS misc)

Subleq DS is a mod of original subleq. Subleq consists of just one command “subtract and branch(jump) if negative or zero)
Each subleq command consists of 3 words: a, b and c. a, b and c are memory addresses.

If b – a is negative or zero, jump to c. Otherwise, go to the next command. The code IS in the memory, so Subleq DS is self-modyfing. Special memory addresses are addresses that don’t execute subleq; instead, they execute a command they’re made to do. The addresses are put to b.

Changes:

– removed test code
– fixed a bug or two

http://forum.gbadev.org/viewtopic.php?t=14913

This article is over 2 years old — the linked page may have changed, moved, or been taken over since then.

No Comments

You must be logged in to post a comment.