Comparison of a Constant and a Relocatable Are Not Allowed

ID Number: Q35114

5.10 | 5.10

MS-DOS | OS/2

Summary:

The comparison of a constant (left-hand side) and a relocatable

(right-hand side) are not allowed. The following is an example:

.errnz 0FFFFh-(MAXSELS * size SELENTRY) GT seltable-1

A workaround for this problem that will direct the assembler to

generate the correct opcodes is to use the segment name that contains

the structure seltable, as follows:

.errnz data:0FFFFh-(MAXSELS * size SELENTRY) GT seltable -1