all repos — xyw @ 644e6d233be0bd1977334cf4c3141d6394f82291

A minimal virtual machine and assembler for terminals.

fixes
h3rald h3rald@h3rald.com
Fri, 12 Dec 2025 07:51:20 +0100
commit

644e6d233be0bd1977334cf4c3141d6394f82291

parent

e0cd8b6cf4e19116b6e536057259f01d701ca1c3

2 files changed, 3 insertions(+), 3 deletions(-)

jump to
M xyw.cxyw.c

@@ -6,7 +6,7 @@ int xyw_debug = 0;

// Instruction mnemonics definition const char xyw_instructions[][4] = { - "BRK", "PSH", "POP", "???", + "BRK", "PSH", "POP", "CLR", "LDB", "LDW", "STB", "STW", "INC", "DEC", "SHL", "SHR", "ADD", "SUB", "MUL", "DIV",

@@ -15,7 +15,7 @@ "AND", "IOR", "XOR", "NOT",

"SWP", "DUP", "OVR", "ROT", "JMP", "JCN", "JSR", "RTS"}; -//// Main Function + int main(int argc, char *argv[]) { (void)argc;
M xywasm.cxywasm.c

@@ -975,6 +975,6 @@ XYW_POKEW(&data[refsym->address], defsym->address);

} fwrite(data, 1, ptr, fp); fclose(fp); - printf("File '%s' assembled successfully [%d bytes - %d symbols - %d refs]\n", input, ptr, symcount, refcount); + printf("Image '%s' assembled successfully [%d bytes - %d symbols - %d refs]\n", output, ptr, symcount, refcount); return 0; }