Re: A85: problems with the stack
[Prev][Next][Index][Thread]
Re: A85: problems with the stack
You need a "ret" after your program to return to Usgard. Otherwise you're
executing .db "hello" and whatever happens to come after that...
Mike
On Thu, 1 Oct 1998, Nick - wrote:
>
> I am new to assembly programming and I was messing around with doing
> stuff with the stack, when I got this error:
> ERROR <0?
> and it had the same menu thing like with normal errors and had a quit
> menu option but that was it. Here's the code I used:
> ld hl,0
> push hl
> pop hl
> ld (CURSOR_ROW),hl
> ld hl,1
> ld (CURSOR_COL),hl
> ld hl,&title
> call D_ZT_STR
>
>
> title:
> .db "hello",0
>
> .end
>
> Can anyone tell me why its doing that and what I am doing wrong?
> Thank You
> Master Nick
>
>
> Visit Master Nick's Computer Programming:
> http://www.angelfire.com/oh/masternick/
> masternick2000@hotmail.com
>
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
References: