Skip to content

Feature request #552

@EdHeller

Description

@EdHeller

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions