Re: Question about jumps



Markus Pitha wrote:

....
I see. I thought it's the same in assembly.

:)

So the last character of the
$-equ string tells assembler the end of the string, is that right?

Not exactly. The "equ" just defines an assemble-time constant.

ANSWER equ 42

The "$" is the current location counter. "$ - somelabel" gives the distance between "somelabel" and wherever the "$" occurs. If we expect it to be the length of the string, it has to be right after the last character of the string.

Best,
Frank
.



Relevant Pages

  • Re: my first .dll: why doesnt it work ...
    ... WM_DESTROY equ 2h; WM_CLOSE equ 10h; WM_NCPAINT equ ... /* il numero e' preso. ... /* eax St0ToAscii(char* string, uint intPart, uint decPart) ...
    (alt.lang.asm)
  • Re: DIM vs. Dynamic
    ... EQU HOL.DATES TO 1 ... LOCATE HOLIDAY.DATE IN HOLIDAYS< HOL.DATES, ... everything's a string. ... They insisted on typing variables with single-char prefixes that were ...
    (comp.databases.pick)
  • Re: DIM vs. Dynamic
    ... EQU HOL.DATES TO 1 ... LOCATE HOLIDAY.DATE IN HOLIDAYS< HOL.DATES, ... everything's a string. ... They insisted on typing variables with single-char prefixes that were ...
    (comp.databases.pick)