Hello tebe,
Segment is not quite what I need, it also writes the segment to the obx file (which is not needed). The output of mads -l:
1 .segdef highmem, $ec00, 512, rw
2
3 ORG 2048
4 .segment highmem
5 FFFF> EC00-EDFF> 00 00 + a1 :256 .byte
6 ED00 00 00 00 00 00 00 + a2 :256 .byte
7 EE00 .endseg
I only want the addresses of the labels, so I found a workaround using struct:
.struct highmem_struct
pm_0 :256 .byte
pm_1 :256 .byte
pm_2 :256 .byte
pm_3 :256 .byte
.ends
.var highmem highmem_struct = $f000