Re: LZ: Pushes and Ints


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

Re: LZ: Pushes and Ints



On 20 Sep 96 at 0:14, Micah/Richard Brodsky wrote:


> I would like to build an int handler that uses the values of the registers as 
> they were when the handler was called (like that debugger program). Would the 
> following code crash the calc or set it up for a crash? Would the first part 
> be pointless? (Thanks!)
> 
> 	push af
> 	push bc
> 	push de
> 	push hl
> 	push ix
> 	push iy
> 	ex af, af'
> 	exx
> 	pop iy
> 	pop ix
> 	pop hl
> 	pop de
> 	pop bc
> 	pop af
> 	.		;int handler code here
> 	.
> 	.
> 	.
> 	.
> 	exx
> 	ex af, af'
> 	jp $0038


That should work.. Why don't you try it?


<pre>
--
 Mattias Lindqvist
 d96mli@efd.lth.se
 www.efd.lth.se/~d96mli 
</pre>


References: