I have Borland Turbo Assembler 3.1 (TASM) on MS-DOS and would like to display the current location ($) during assembly time. Something like this:
IF ($ - boot_jump) NE 3
DISPLAY "BOOTSECT.ASM: BPB started at wrong offset: Was $ not 3"
.ERR
ENDIF
This doesn't work though, it displays a literal $ sign. I couldn't find a user manual for TASM 3.1, but neither the TASM 4 nor 5 manuals show any kind of string interpolation for DISPLAY or %OUT.
Is there a way to do that at assembly time? (Not at runtime for the code!)

Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.