A86: Re: More Using Table


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

A86: Re: More Using Table




It seems as if you forgot to RET.

-Justin Karneges [Infiniti]

>
>Well, I made all the suggested changes, but it still doesn't work.  This is
>just my sample program, which I believe should print out the word "three",
but
>it prints out about a line of garbage instead.  Can someone tell me what
I'm
>doing wrong?
>
>Thanks, Bowser
>
>
>#include "ti86asm.inc"
>#include asm86.h
>#include ti86und.inc
>
>.org _asm_exec_ram
>
> call _clrLCD
> ld a,2
> add a,a
> ld e,a
> ld d,0
> ld hl, table
> add hl,de
> call _ldhlind
> call _puts
>
>table:
> .dw one,two,three
>
>one:
> "one",0
>two:
> "two",0
>three:
> "three",0
>
>.end
>