ci
ret
-
*
-
u
op1
op0
zx
sw
a
d
*a
lt
eq
gt
dec:

0

hex:

0x0

a:

0x0

(0)
d:

0x0

(0)
*a:

0x0

(0)

                    
                

                    
                
PC: 0

Virtual Display

Programs samples

ASM

C


More documentation here
About

This project is inspired by nandgame. It is a live cpu emulator running custom ASM code.

It has only two registers: A and D and only A can be directly assigned to a value. e.g: A = 42 and D = A + 1

It exists few operands to manipulate data: +, -, ~, |, & and ^

You can define pre-processor variables using #DEFINE NAME VALUE. Few global variables are defined to help you storing data or use memory mappings: CURSOR, KEYPRESS, WRITE, TMP0...TMP6, STACK_POP and STACK_PUSH

Labels can be used to jump back to a line, creating a loop. Use a line like MY_LABEL: to create it and A = MY_LABEL
; JMP

Credits: 4re5, all rights reserved