thank you all of you for the help i really appreciate it.
i have a hopefully quick question, is this the correct syntax for adding an integer to a buffer: " add dword [userScore], 6 " or do i have to convert the userScore buffer to integer then add and then convert the resulting int back into string to insert back into the userScore?
Roger_2
0
Light Poster
Recommended Answers
Jump to PostThat depends on what the label
userscore
is for. Is it a singledword
holding the value as an integer, or is it abyte
buffer holding a string? In other words, assuming NASM syntax, is it:userscore: resw 1 ; or 'userscore dw …
Jump to PostThat's correct, except that either the size of the declaration should be
resd
(32-bit - my mistake in my earlier post) or the size of the operand should beword
(16-bit). Which you want depends on the how high the score can go - 16-bit unsigned values go only to …
All 5 Replies
ddanbe
2,724
Professional Procrastinator
Featured Poster
Schol-R-LEA
1,446
Commie Mutant Traitor
Featured Poster
Roger_2
0
Light Poster
Schol-R-LEA
1,446
Commie Mutant Traitor
Featured Poster
Roger_2
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.