Skip to content
Discussion options

You must be logged in to vote

The operand of b is a ~24bit offset to the current PC. But it seems like our assembler there doesn't treat it like an offset but an address.
In which case it would be broken. Please open an issue about it.

I am also not sure in what state the ARM assembler is. I think you might be better off to use llvm-mc for assembling and then write the bytes with wx.

You could write a small script assembling some input instructions with llvm-mc, extract the bytes and write them in hex into a file. Then write the hex string with wxf <filename>.

Then you can do a one liner like this:

!assembly_script.sh "institutors..." ; wxf <insntr_bytes_file>

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@notxvilka
Comment options

@ghost
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants