RE: A86: More Using Table


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

RE: A86: More Using Table




Seems like you forgot .db's before all of your strings!!  Perhaps it will
work with these changes after you put in the ret (like Justin said) after
the call _puts (which he didn't say).

> one:
> 	.db "one",0
> two:
> 	.db "two",0
> three:
> 	.db "three",0

-----
Stuntman (Nathan Haines) - ICQ UIN#: 2157863
http://table.jps.net/~stuntman/nathan.html
QuickBASIC/Visual BASIC/TI-BASIC programmer (just your basic programmer)
President of Stuntworks - http://www.jps.net/stuntman/


> -----Original Message-----
> From: owner-assembly-86@lists.ticalc.org
> [mailto:owner-assembly-86@lists.ticalc.org]On Behalf Of
> Bowser797@aol.com
> Sent: Wednesday, December 16, 1998 12:18 PM
> To: assembly-86@lists.ticalc.org
> Subject: A86: More Using Table
>
>
>
> 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
>


References: