From: | Anton Reinauer |
Date: | 23 Jun 2001 at 03:12:04 |
Subject: | Re: cia timing |
On 22-Jun-01, Thilo Köhler wrote:
> The problem is that the registers a4, a5, a6 & d7 are expected to
> contain some special data like a pointer to the blitz-variable base.
> That is the same reason why you are not allowed to change these
> registers when you use inline ASM. So I guess if you write some ASM
> code in top of the interrupt handler that restores this registers, it
> must be possible to use Blitz commands.
Yeah I had a look at the interupt docs I've got, and you have to save
and restore any registers you use.
I checked it out- it doesn't crash but the blitz code doesn't seem to
work :/
I tried this-
.Interrupt
MOVEM.l a0-a6/d0-d7,-(a7) ; save register
test=test+1
MOVEM.l (a7)+,a0-a6/d0-d7 ; restore register
RTS
- And tried printing test out in the main loop- but it stays at `0' :/
I think I've tried this before, and it didn't work.
http://homepages.paradise.net.nz/ants
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie