Better HN
topnewbestaskshowjobs
Log inSign up

moxon6

9 karma · joined May 15, 2020 (6y ago) · 6 submissions

Submissions

1.

WebAssembly on Your Nintendo DS(softwayre.com ↗)

3 points · by moxon6 · 5y ago · discuss

comment 6y ago · link · parent

https://github.com/moxon6/cobol-js-emscripten/commit/0278590...

comment 6y ago · link · parent

That's the JS generated by emscripten for linking in the WASM, which is `index.wasm`

`index.wasm` is built using the build scripts in the source repo

`main.cob` contains the main logic used to generate `index.wasm`

https://github.com/moxon6/cobol-js-emscripten/blob/master/co...

comment 6y ago · link · parent

The emscripten JS will keep "prompt"ing for new input until it receives a null (due to the user pressing escape on the dialog)

This is just a hack around that to simulate entering a value and then pressing escape on the next prompt request