Re: Question about jumps
- From: Frank Kotler <fbkotler@xxxxxxxxxxx>
- Date: Sun, 27 Aug 2006 15:26:44 -0400
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
.
- References:
- Question about jumps
- From: Markus Pitha
- Re: Question about jumps
- From: Herbert Kleebauer
- Re: Question about jumps
- From: Markus Pitha
- Re: Question about jumps
- From: Herbert Kleebauer
- Re: Question about jumps
- From: Markus Pitha
- Question about jumps
- Prev by Date: Re: PUSH instruction family
- Next by Date: Re: Question about jumps
- Previous by thread: Re: Question about jumps
- Next by thread: Re: Question about jumps
- Index(es):
Relevant Pages
|