Disassembler adjustments
This commit is contained in:
parent
6cba6e5d4f
commit
52838e4a6d
4
makefile
4
makefile
|
@ -62,9 +62,9 @@ util:
|
||||||
|
|
||||||
.PHONY: wasm
|
.PHONY: wasm
|
||||||
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 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 \
|
--no-entry -O2 -flto -s WASM=1 -s WARN_ON_UNDEFINED_SYMBOLS=0 \
|
||||||
-s EXPORTED_RUNTIME_METHODS=[] -s ALLOW_MEMORY_GROWTH \
|
-s EXPORTED_RUNTIME_METHODS=[] -s ALLOW_MEMORY_GROWTH \
|
||||||
-s MAXIMUM_MEMORY=4GB -fno-strict-aliasing
|
-s MAXIMUM_MEMORY=4GB -fno-strict-aliasing
|
||||||
|
|
|
@ -381,7 +381,7 @@ static void dasmOpSystem(char*dest, VBU_DasmConfig*config, VBU_DasmLine*line) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
strcpy(dest, text);
|
strcpy(dest, text);
|
||||||
if (config->programCase == VBU_LOWER)
|
if (config->systemCase == VBU_LOWER)
|
||||||
dasmToLower(dest);
|
dasmToLower(dest);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,6 @@ extern "C" {
|
||||||
|
|
||||||
/* Disassembler options */
|
/* Disassembler options */
|
||||||
#define VBU_0X 0
|
#define VBU_0X 0
|
||||||
#define VBU_ABSOLUTE 0
|
|
||||||
#define VBU_C 1
|
#define VBU_C 1
|
||||||
#define VBU_DEST_FIRST 1
|
#define VBU_DEST_FIRST 1
|
||||||
#define VBU_DEST_LAST 0
|
#define VBU_DEST_LAST 0
|
||||||
|
@ -32,7 +31,6 @@ extern "C" {
|
||||||
#define VBU_NAMES 1
|
#define VBU_NAMES 1
|
||||||
#define VBU_NUMBERS 0
|
#define VBU_NUMBERS 0
|
||||||
#define VBU_OUTSIDE 0
|
#define VBU_OUTSIDE 0
|
||||||
#define VBU_RELATIVE 1
|
|
||||||
#define VBU_SPLIT 1
|
#define VBU_SPLIT 1
|
||||||
#define VBU_UPPER 0
|
#define VBU_UPPER 0
|
||||||
#define VBU_Z 1
|
#define VBU_Z 1
|
||||||
|
@ -44,7 +42,6 @@ extern "C" {
|
||||||
/* Disassembler text options */
|
/* Disassembler text options */
|
||||||
typedef struct { /* Defaults listed first */
|
typedef struct { /* Defaults listed first */
|
||||||
uint8_t bcondNotation; /* JOINED, SPLIT */
|
uint8_t bcondNotation; /* JOINED, SPLIT */
|
||||||
uint8_t branchNotation; /* ABSOLUTE, RELATIVE */
|
|
||||||
uint8_t conditionCase; /* LOWER, UPPER */
|
uint8_t conditionCase; /* LOWER, UPPER */
|
||||||
uint8_t conditionCL; /* L, C */
|
uint8_t conditionCL; /* L, C */
|
||||||
uint8_t conditionEZ; /* Z, E */
|
uint8_t conditionEZ; /* Z, E */
|
||||||
|
|
Loading…
Reference in New Issue