[A83] Re: Special Ram Areas 2
[Prev][Next][Index][Thread]
[A83] Re: Special Ram Areas 2
>At 17:04 2001-11-05, you wrote:
>>Thanks, for all the suggestions of error checking.
>>But now, I have another question: where can I find a 'relatively' safe
>>2-byte place in ram to store a mem pointer?
>
>If nowhere else, wouldn't the bottom of the stack be very safe?
Hey, that looks like a good idea.
>move up everything on the stack, modify the stackpointer and store it where
>the stack usually starts.
>If there isn't more uggly code on the system, it should be safe.
>Is this sane? is this something usually used? I don't know, It just popped
>into my head.
>maybe there is better places.
Something like this code?
push sp
...
hehehe well this would not work of course...
ld hl,sp
ld bc,400d
sub hl,bc ;--> doesn't exist!? Can sbc hl,bc be used?
ld a,xx
ld (hl),a
inc hl \ ld a,yy \ ld (hl),a
>///Olle
>
>
>