as
implements all the standard XStormy16 opcodes.
as
also implements the following pseudo ops:
@lo()
‘ add r6, @lo(here - there) ’
computes the difference between the address of labels 'here' and 'there', takes the lower 16 bits of this difference and adds it to register 6.
@hi()
‘ addc r7, @hi(here - there) ’
computes the difference between the address of labels 'here' and 'there', takes the upper 16 bits of this difference, shifts it down 16 bits and then adds it, along with the carry bit, to the value in register 7.