A86: String Writing
[Prev][Next][Index][Thread]
A86: String Writing
i have a question. suppose i have the following string:
text:
.db "Welcome to EB"
if i do the following:
ld b,0
ld hl,text
start:
push hl
ld d,0
ld e,b
add hl,de
ld a,(hl)
call _putc
pop hl
push bc
ld b,10
hloop:
halt
djnz hloop
pop bc
inc b
ld a,b
cp 14
jp z, done
jp start
done:
ret
will it output the string on the screen? You can assume that i have already
set the curCol and curRow. Also if it won't work, do i have the right idea
about it? Basically, i want to be able to write the string out letter by
letter.
thanks
akshay
References:
- A86:ret
- From: "Jeff Barrett" <kanebarrett@worldnet.att.net>
- Re: A86:ret
- From: "David Phillips" <david@acz.org>