View Single Post
Old May 18th, 2006, 1:40 PM   #18
Narue
Professional Programmer
 
Narue's Avatar
 
Join Date: Sep 2005
Posts: 419
Rep Power: 3 Narue is on a distinguished road
>save db 4 dup '$' are you setting up a variable that can only store 4 characters?
Kind of. It sets aside four bytes, initializes them to the $ character, and creates a label called "save" that refers to the memory address of the first byte. That's technically a variable in assembly, but it's important to know what's going on. You could also do this to the same effect:
save:
	db '$'
	db '$'
	db '$'
	db '$'
Or this:
save:
	db '$$$$'
__________________
Even if the voices aren't real, they have some pretty good ideas.
Narue is offline   Reply With Quote