%imacro wlcalc 1-2.nolist global wlcalc_%1 wlcalc_%1: %2 %endmacro section code start: wlcalc word_shr_4 wlcalc word_pass_1_segrel_stack dw stack_top + 15 wlcalc word_segrel_data?foo dw 26h wlcalc word_segrel_data?bar dw 0 wlcalc word_segrel_stack?foo dw 0 wlcalc word_minussegrel_data?bar dw 100h wlcalc word_minussegrel_stack?foo dw 100h dw 0 times 16 nop section data align 16 times 16 nop section stack stack alignb 16 resb 512 stack_top: