all repos — xyw @ 2525f5d8a1d82fb2fc6789a7237f111013a9abf2

A minimal virtual machine and assembler for terminals.

Minor changes.
h3rald h3rald@h3rald.com
Thu, 04 Dec 2025 16:21:07 +0100
commit

2525f5d8a1d82fb2fc6789a7237f111013a9abf2

parent

1a75d28e1b8dd25ec90a1bdfced283f8f822a9da

1 files changed, 0 insertions(+), 4 deletions(-)

jump to
M xyw.cxyw.c

@@ -28,10 +28,8 @@ }

else { const char *input_file = argv[i]; - // Output file is the same as input but with .rom extension char output_file[256]; snprintf(output_file, sizeof(output_file), "%.*s.xim", (int)(strlen(input_file) - 4), input_file); - // Only assemble if input file ends with .xyw const char *ext = strrchr(input_file, '.'); if (ext && strcmp(ext, ".xyw") == 0) {

@@ -50,8 +48,6 @@ }

} else if (ext && strcmp(ext, ".xim") == 0) { - // Load and run the .xim file - // (Assuming a run function exists) if (xyw_run(input_file) != 0) { fprintf(stderr, "Execution failed for file: %s\n", input_file);