A86: Creating Variables


[Prev][Index][Thread]

A86: Creating Variables




Recently I have been trying to create a real variable with an assembly 
program, and I have had had some success.  To create the variable, I use:

	ld hl,RealName-1
	rst 20h
	call _CREATEREAL
	ret

RealName:
	.db 4,"Real"

Now comes the question:  how do I load a value (for example 5) into the 
variable from within the same assembly program.