-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Additional examples on using binutils-wasm's npm module.
Like as and ld with flags.
Trying out some example assembly
.code16
.section .text
.global _start
.type _start, @function
_start:
mov $0x0e, %ah
mov $'H',%al
int $0x10
.org 510
.word 0xaa55
On my machine compiled with
as --32 asmtest.s -o asmtest.o
ld -melf_i386 --oformat=binary ./asmtest.o -o ./asmtest.bin
Produces a working example.
https://hexed.it#base64+lzjb:asmtest.bin;gLQOsEjNEAD8AT/8QvxC/EL8QvxC/EIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVQCq
vs
What the site produces.
https://hexed.it#base64+lzjb:oAQAAAAYAAQFAAQAR05VAAIAAcDTBBQADwABEAwBBA38BD/8QvxC/EL8QvxC/EIAAAAAAAAAAFWq
Metadata
Metadata
Assignees
Labels
No labels