Questions tagged [jwasm]

JWasm is an x86 Assembler. It is forked from Open Watcom assembler (Wasm).

11 questions
2
votes
1 answer

Disabling local labels in JWasm

I'm getting an error message when assembling code in which an instruction references a label in a different procedure. This code generates two errors, assembler is JWasmR v2.12pre: single segment stack …
bad
  • 939
  • 6
  • 18
1
vote
0 answers

i686-w64-mingw32-g++ Cannot link .obj produced by JWASM

Hello I'm trying to compile this program written for MASM: .686 .xmm .model flat, stdcall OPTION CaseMap:None include ../masm32/libs/windows.inc include ../masm32/libs/kernel32.inc includelib ../masm32/libs/kernel32.lib include…
Z3R0
  • 1,011
  • 10
  • 19
1
vote
0 answers

JWASM with AVX cannot compile and AVX directive

I have a MASM program which uses AVX but I get errors when I try to assemble it with JWASM (a MASM clone). I couldn't find any directives to properly assemble the AVX instructions (like .mmx or .xmm). .686 .xmm .model flat,c .code AVXPackedInt_16…
Z3R0
  • 1,011
  • 10
  • 19
1
vote
1 answer

How to load webassembly file in Vue?

I have compiled the C code using this command emcc add.c -o js_plumbing.js -s -s EXTRA_EXPORTED_RUNTIME_METHODS=['ccall','cwrap'] -s MODULARIZE=1 This is my Vue component code - public instance:any = { ready: new Promise(resolve => { …
Yash Gaur
  • 143
  • 2
  • 12
1
vote
1 answer

Can I serve a wasm file in ASP.NET?

I am using a third party javascript file in a project that makes a call to a wasm file. Can I call this and server it the same way I do a javascript file in script tags?
Bill Greer
  • 3,046
  • 9
  • 49
  • 80
1
vote
0 answers

Linux. create thread in assembler

ASM code PROT_READ equ 1 PROT_WRITE equ 2 PROT_EXEC equ 4 PROT_NONE equ 0 MAP_SHARED equ 1 MAP_PRIVATE equ 2 MAP_FIXED equ 10h MAP_TYPE equ …
h goe
  • 11
  • 4
0
votes
1 answer

SIGFP - But no division by 0 or by big number | MASM/UASM

Performing a division by 10, I get a "floating point exception". when stepping through the code in GDB, I find that ax = 23 and bx = 10 when dividing. .686 ; ; BSS SEGMENT …
Maximilian Wittmer
  • 173
  • 1
  • 3
  • 14
0
votes
1 answer

Why does an elrond rust contract require a main.rs, and why a certain function call in it?

New to elrond contracts. I am trying to figure what is the absolute minimum to get an elrond rust contract to successfully build when doing erdpy contract build. To me, the contract would only be src/lib.rs. . ├── Cargo.toml ├── meta │   ├──…
ecorrales
  • 137
  • 11
0
votes
1 answer

Why won't emscripten compile my functions?

I'm trying to compile some c++ code in to a wasm binary with functions included. However, even though I don't get any compilation errors or any other warnings during compilation, the files generated by emscripten don't include the functions I…
Abhishek Sharma
  • 109
  • 1
  • 8
0
votes
2 answers

Javascript cannot find exported WASM functions compiled with emscripten

I have some c++ files with functions that I am trying to compile to wasm. For some reason, even though the files get compiled with exported functions to wasm by emscripten, I keep on getting 'TypeError: ___ is not a function' when I try to use the…
Abhishek Sharma
  • 109
  • 1
  • 8
-1
votes
1 answer

CMake + JWAsm integration example?

I'm struggling with integrating JWAsm together with CMake. I've found an old thread from 2009 which uses CMakeTestASMCompiler to change the assembler. It defines: 1.) CMakeDetermineASM_JWASMCompiler.cmake SET(ASM_DIALECT…
harsszegi
  • 369
  • 2
  • 15