2 ms·
The cute little emulator, which was linked in the article: https://github.com/bordplate/js86 https://github.com/bordplate/js86. I am curious how they came up wi
by saagarjha 7y ago
The cute little emulator, which was linked in the article: https://github.com/bordplate/js86 https://github.com/bordplate/js86. I am curious how they came up with the ABI for variadics, though…
- bordplate 7y agoI've been aiming for x86-64 calling conventions, but must admit I've had a tendency to mix them up. It doesn't matter much in this case though. There are no variadic functions used in this post. I'm cheating a lot with the printf-function. You can see the implementation here: https://github.com/bordplate/js86/blob/master/Emulator/Processor/CPU.js#L639 https://github.com/bordplate/js86/blob/master/Emulator/Proce...