4 ms·
If first saw this in virus-code from the 80s, where you'd have code to get the current location: call next next: pop ax I've used the same
by stevekemp 3y ago
If first saw this in virus-code from the 80s, where you'd have code to get the current location:
call next
next:
pop ax
I've used the same approach for printing "inline" strings myself, though in my case I tend to be working with CP/M and there the string are terminated with "$".
- EvanAnderson 3y agoThis is exactly what I thought of. Learning x86 assembler in the context of reverse engineering MS-DOS made this trick seem perfectly normal (as did the idea of writing position independent code).
- stevekemp 3y agoA later comment in this discussion reminds me that this was called "calculating the delta-offset".
- EvanAnderson 3y agoYep. That's the terminology I'd expect to see in a 40Hex! >smile<