Re: A86: actual asm help
[Prev][Next][Index][Thread]
Re: A86: actual asm help
I'm not sure I understand your code right, but are you executing a RET
in a routine that you jumped to? If you are, that will do a nice job of
screwing up the stack, and then when you try to do something like exit
the program it will crash. Replace the JP to your char display routine
with a CALL.
Eugene Dirks wrote:
> _freemem points to some free mem
>
> ld hl,_freemem
> ld a,1
> ld (hl),a
> inc hl
> ld (hl),a
>
> dec hl
> dec hl
> ld a,(hl)
> jp "a routine to display the correct character that i'm pretty sure
> works
> it... for example... cp 1
> jp z,put_1
> ....then it does a "ret"
don't RET from a jump
> inc hl
> ld a,(hl)
> jp "the same char display routine"
>
> this always freezes up the calc. I don't see it, but is there something
> wrong with the above code that doesn't look right? if not then it's in my
> char_put routine...
>
> thanks for any help you can give
>
> billybobIV
> chad@dirks.com
> http://chad.dirks.com
Follow-Ups:
References: