Article View: es.comp.os.linux.programacion
Article #917Re: Programacion en assembler
From: Pascal Bourguignon
Date: Wed, 09 Aug 2006 00:14
Date: Wed, 09 Aug 2006 00:14
35 lines
2314 bytes
2314 bytes
"alexandrev" <alexv.vazquez@gmail.com> writes:
> Buenas lista, ahi va mi duda:
>
> Estoy empezando a programar con el Ensamblador de Intel, despues de mis
> pinitos (4 meses) con el ensamblador del MIPS , pero tengo un
> problema.. yo quiero cargar.. un solo byte.. de un registro.. y eso en
> el MIPS lo hacia con el lb y sb.. para load byte y save byte, pero no
> se hacerlo con Intel,
>
> .data
> fila1:.byte 'A','A','A'
> fila2:.byte 'A','-','B'
> fila3:.byte 'A','-','B'
>
> .text
>
> .globl main
>
> como haria para de ahi... coger solo un ... byte? una sola A o una sola
> B .. ya que si .. cargo
> fila1 en un registro.. y le sumo 1 .. me coge todo hasta el final...
>
> bueno a ver si alguien puede ayudarme gracias
Tendras que usar AL, unos de los registros octetos.
MOV AL,fila1
--
__Pascal Bourguignon__ http://www.informatimago.com/
ATTENTION: Despite any other listing of product contents found
herein, the consumer is advised that, in actuality, this product
consists of 99.9999999999% empty space.
Technical Details
Message-ID:
<87bqquahoi.fsf@thalassa.informatimago.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<1155078936.171861.258500@n13g2000cwa.googlegroups.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f86c8,c64a3233002c670c
X-Google-Attributes: gidf86c8,public
X-Google-Language: SPANISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Pascal Bourguignon <pjb@informatimago.com>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Programacion en assembler
Date: Wed, 09 Aug 2006 02:14:53 +0200
Organization: Informatimago
Lines: 35
Message-ID: <87bqquahoi.fsf@thalassa.informatimago.com>
References: <1155078936.171861.258500@n13g2000cwa.googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: individual.net eyaArm65hyKggqjps0j0ew1S6ksoc3LoGpZd5SxgZ17Ezyn99h
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA
oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9
033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac
l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR
mV+hO/VvFAAAAABJRU5ErkJggg==
X-Accept-Language: fr, es, en
X-Disabled: X-No-Archive: no
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)
Cancel-Lock: sha1:S+PRViTO92Blo1eALLeneqSwQEk=