Author Topic: Doc bug ?  (Read 16195 times)

nobody

  • Guest
Doc bug ?
« on: August 12, 2007, 07:52:44 PM »
In http://sourceforge.net/docman/display_doc.php?docid=47250&group_id=6208 there is:

"..so you can do things like

buffer: db      'hello, world'
        times 64-$+buffer db ' '

which will store exactly enough spaces to make the total length of
buffer
up to 64."

Now should'nt that be "times 64-$-buffer db ' '" ?

nobody

  • Guest
Re: Doc bug ?
« Reply #1 on: August 12, 2007, 08:42:50 PM »
Looks correct to me. If we wrote it with parentheses...

times 64 - ($ - buffer) db ' '

Yeah, that would be correct, too.

Thanks for the feedback, though - we count on you guys to catch things like that!

Best,
Frank

nobody

  • Guest
Re: Doc bug ?
« Reply #2 on: August 12, 2007, 10:42:10 PM »
You're so right, my bug. I always forget the precedence rules after being gone
fromem for quite long.

Offcourse, 64-($-buffer) is really 64+(-1)($-buffer) -> 64+(-$)+buffer -> 64-$+buffer .

Well I always re-/learn new/old things i guess.