Re: A86: Asm newbie question Part 2


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

Re: A86: Asm newbie question Part 2




Actually, you would want to load 0 into A, D into H, and E into L, since A
is the most significant byte.

-----Original Message-----
From: Trey Jazz <joemama@minot.com>
To: assembly-86@lists.ticalc.org <assembly-86@lists.ticalc.org>
Date: Sunday, February 01, 1998 5:02 PM
Subject: Re: A86: Asm newbie question Part 2


>
>hmmm ok.....u are telling the calc to get a key and not diplaying anything
>(ld d into a and e into h and 0 into l and call $4a33)
>
>-----Original Message-----
>From: Matt Gabbert <gabbo@webspan.net>
>To: assembly-86@lists.ticalc.org <assembly-86@lists.ticalc.org>
>Date: Sunday, February 01, 1998 6:54 PM
>Subject: Re: A86: Asm newbie question Part 2
>
>
>>
>>Robby Gutmann wrote:
>>
>>> you can't do "ld hl,bc"  you have to do "ex de,hl"  (or maybe switch
>>> the order, not sure).  this command exchanges the values in hl and de.
>>
>>I tried this:  (just the end of a section of code)
>>
>> ld a,5
>> ld (_curRow),a
>> ld a,5
>> ld (_curCol),a
>> ld de,300
>> ex de,hl
>> call _getkey
>>
>>but nothing appears...
>>
>>I tried:
>>
>>load h into a, l into h, 0 into l and call $4a33
>>
>>(or at least what i could figure what this means) but then i got
>>something like:
>>
>>5033:
>>
>>where I wanted 300 to be displayed.
>>
>>ALSO, i'd appreciate it if you would write out the code as I would enter
>>it instead of me trying to guess what some of it means, and tell me what
>>calls like $4a33  are (I couldnt find it in ti86asm.inc)
>>
>>Matt
>>
>


Follow-Ups: