NASM - The Netwide Assembler
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Calendar
Login
Register
NASM - The Netwide Assembler
»
NASM Forum
»
Using NASM
»
Doc bug ?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Doc bug ? (Read 16185 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 ' '" ?
Logged
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
Logged
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.
Logged
Print
Pages: [
1
]
« previous
next »
NASM - The Netwide Assembler
»
NASM Forum
»
Using NASM
»
Doc bug ?