Re: A86: rst 20h & rst 10h


[Prev][Next][Index][Thread]

Re: A86: rst 20h & rst 10h



Muhammed Galadima wrote:
> 
> What do rst 20h and rst 10h do?
> 
> Mj
> 

Correct me if I'm wrong, but the way I used it was:

	ld 	hl,var_name	;point hl to variable
	rst	20h		;put variable in op1
	rst	10h		;put absolute address of var in (bde)
		;and now do something with the absolute
		;address of the variable, like modify
		;data

var_name:
	$12			;program-type variable
	3,"var"			;length byte + name

and you could modify var_name to use any type of variable (real, string,
etc.) by changing the $12. You can also change the name, just remember
to change the length byte.


References: