A86: sqrts and the VAT, and RE: Labels in .db
[Prev][Next][Index][Thread]
A86: sqrts and the VAT, and RE: Labels in .db
first a question i've been dying to ask: is there any way to run assembly
programs or search the vat from a sqrt(key) or user-interrupt (IM 1)? I'm
working on a shell that uses both ti-functions to draw a little taskbar at
the bottom of the screen and check for keypresses f1-f5, but only at the
homescreen. If it is possible, how do I do it? The actual VAT-search
routine would never fit in a 200-byte spot along with all the homescreen
stuff, so it's an external program. Any help, thoughts, ideas, or comments
are welcome :P I would ask the shell-developers list but i don't think that
they'd necessarily be _AS_ familiar with sqrts and interrupts as those on
this list.
Also, in a constant puruit of learning, i'm gonna attempt to explain the
last message myself because when I first read it i didn't understand what
was going on, and am [falsely] assuming other beginners on the list. My
understanding of labels is that they aren't an actual opcode, they are just
reference points for the assembler to use.
so when you have:
jp here
here:
ld a,b
in the program you would actually jump to the address of ld a,b
and when you have multiple labels, they still correspond to the next
operation
so if you have:
call here
call also_here
here:
also_here:
ret
both calls will, after pushing pc, go straight to the address of ret. so
let's take the situation joe mentioned:
> mixed:
> .dw lab1,lab2,lab3,0
>
> Is there a way that I could accomplish this? I want to be able to jump
to
> the labels using "jp (hl)" Thanks in advance.
my understanding is that later on in the program there is a lab1: , lab2: ,
lab3:, etc. Hmm maybe i answered my own question if i'm right, but how big
are the addresses of things in ram? 16 bits. So if i'm right, to clear
things up for any other members on the list who were scratching their heads,
I finally, after much thinking, think that mixed: is a list of labels meant
to use in succession with increasing hl between jp's. So now I understand.
I'll post it with a question with meaning at the top so this'll actually
have a purpose. And if i'm wrong please tell me (maybe i'll have to use
this technique someday!).
Bye,
Diego
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
Follow-Ups: