Hi,
I'm at work at the moment so I cant really test this or spend too long looking it up.
Does anybody know if it is possible to subtract label addresses in expressions for 68k asm in order to get an address as an offset from another?
Imagine:
_base
_label_1
; stuff
_label_2
; more stuff
....
_label_n
; last entry, not more than 32KB from _base
_offsetTable
; table consists of 16-bit offsets of each code section as measured from _base
dc.w (_label_1 - _base), (_label_2 - _base), ..... , (_label_n - _base)
Is this allowed?