Disassembler adjustments

This commit is contained in:
Guy Perfect 2024-10-30 14:54:13 -05:00
parent 6cba6e5d4f
commit 52838e4a6d
3 changed files with 3 additions and 6 deletions

View File

@ -62,9 +62,9 @@ util:
.PHONY: wasm
wasm:
@emcc -o web/core.wasm web/wasm.c core/vb.c -I core \
@emcc -o web/core.wasm web/wasm.c core/vb.c util/vbu.c -I core -I util \
-D VB_LITTLE_ENDIAN -D VB_SIGNED_PROPAGATE \
-D "VBAPI=__attribute__((used))" \
-D "VBAPI=__attribute__((used))" -D "VBUAPI=__attribute__((used))" \
--no-entry -O2 -flto -s WASM=1 -s WARN_ON_UNDEFINED_SYMBOLS=0 \
-s EXPORTED_RUNTIME_METHODS=[] -s ALLOW_MEMORY_GROWTH \
-s MAXIMUM_MEMORY=4GB -fno-strict-aliasing

View File

@ -381,7 +381,7 @@ static void dasmOpSystem(char*dest, VBU_DasmConfig*config, VBU_DasmLine*line) {
return;
}
strcpy(dest, text);
if (config->programCase == VBU_LOWER)
if (config->systemCase == VBU_LOWER)
dasmToLower(dest);
}

View File

@ -18,7 +18,6 @@ extern "C" {
/* Disassembler options */
#define VBU_0X 0
#define VBU_ABSOLUTE 0
#define VBU_C 1
#define VBU_DEST_FIRST 1
#define VBU_DEST_LAST 0
@ -32,7 +31,6 @@ extern "C" {
#define VBU_NAMES 1
#define VBU_NUMBERS 0
#define VBU_OUTSIDE 0
#define VBU_RELATIVE 1
#define VBU_SPLIT 1
#define VBU_UPPER 0
#define VBU_Z 1
@ -44,7 +42,6 @@ extern "C" {
/* Disassembler text options */
typedef struct { /* Defaults listed first */
uint8_t bcondNotation; /* JOINED, SPLIT */
uint8_t branchNotation; /* ABSOLUTE, RELATIVE */
uint8_t conditionCase; /* LOWER, UPPER */
uint8_t conditionCL; /* L, C */
uint8_t conditionEZ; /* Z, E */