[A83] Re: xor (hl)


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

[A83] Re: xor (hl)




ld hl,var1
ld a,4
xor (hl)

Var1: .db 5

(This code XORs 4 with 5.)




>From: "TypeR unknown" <typerfuture@hotmail.com>
>Reply-To: assembly-83@lists.ticalc.org
>To: assembly-83@lists.ticalc.org
>Subject: [A83] Re: xor (hl)
>Date: Mon, 15 Oct 2001 18:35:35 +0200
>MIME-Version: 1.0
>X-Originating-IP: [213.51.98.50]
>Received: from [195.67.128.9] by hotmail.com (3.2) with ESMTP id 
>MHotMailBD945B64003B400438CFC3438009078C0; Mon, 15 Oct 2001 09:35:58 -0700
>Received: from towerguard. (mx-1.sollentuna.net [195.67.128.9])by 
>mx-1.sollentuna.net (Postfix) with ESMTPid C3BC41802A; Mon, 15 Oct 2001 
>18:35:38 +0200 (CEST)
>Received: with LISTAR (v1.0.0; list assembly-83); Mon, 15 Oct 2001 18:35:38 
>+0200 (CEST)
>Received: from hotmail.com (f28.pav2.hotmail.com [64.4.37.28])by 
>mx-1.sollentuna.net (Postfix) with ESMTP id 64ECA18028for 
><assembly-83@lists.ticalc.org>; Mon, 15 Oct 2001 18:35:37 +0200 (CEST)
>Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; 
>Mon, 15 Oct 2001 09:35:35 -0700
>Received: from 213.51.98.50 by pv2fd.pav2.hotmail.msn.com with HTTP;Mon, 15 
>Oct 2001 16:35:35 GMT
>From assembly-83-bounce@lists.ticalc.org Mon, 15 Oct 2001 09:36:43 -0700
>Delivered-To: lists.ticalc-assembly-83@mx-1.sollentuna.net
>Message-ID: <F28eFMYUhyn2m895sao00002cea@hotmail.com>
>X-OriginalArrivalTime: 15 Oct 2001 16:35:35.0817 (UTC) 
>FILETIME=[6A7E4F90:01C15597]
>X-listar-version: Listar v1.0.0
>Sender: assembly-83-bounce@lists.ticalc.org
>Errors-To: assembly-83-bounce@lists.ticalc.org
>X-original-sender: typerfuture@hotmail.com
>Precedence: bulk
>X-list: assembly-83
>
>
>Yes, but the part what I meant was that hl can contain 2 Bytes, so my real
>question is how does a xor 2 bytes ??? (only L?, h with a and l with a??)
>
>
>
>
> >From: Peter-Martijn Kuipers <hyper@hysoft-automation.com>
> >Reply-To: assembly-83@lists.ticalc.org
> >To: assembly-83@lists.ticalc.org
> >Subject: [A83] Re: xor (hl)
> >Date: Wed, 10 Oct 2001 19:59:26 +0200 (CEST)
> >
> >
> >Yep, it does.
> >
> >Suppose a contains %00111010,
> >
> >hl contains $6523 and the byte at $6523 is %10010111
> >
> >then this would happen
> >
> >a:     %00111010
> >(hl):  %10010111    XOR
> >-----------------------
> >new a: %10101101
> >
> >
> >
> > >
> > > i suppose it xor's the byte at adress hl...
> > >
> > > >
> > > > I'm a bit confused, xor uses the a register, right?
> > > > Then if you do xor (hl), does it then xor h with a, and l with a???
> > > >
> > >
> > >
> > >
> >
> >
> >
>
>
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
>


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp