Implemented a small number of opcodes and ran a tiny "hello, world" program in my toy x86-64 emulator. ;)

To do conditional jumps and such I'll need to implement flags, which can be expensive to update. Later I'll use v86, a JavaScript x86 emulator, as inspiration for how they handle updating the ones that are cheap and defer the ones that are expensive. Eeek!

WebAssembly presents a C/C++-like world so you have no access to native carry flags etc to piggyback on even if you dive down to low level.

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!