elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Introducción a la Factorización De Semiprimos (RSA)


+  Foro de elhacker.net
|-+  Programación
| |-+  Ingeniería Inversa (Moderadores: karmany, .:UND3R:., MCKSys Argentina)
| | |-+  JECXZ y JCXZ
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: JECXZ y JCXZ  (Leído 2,706 veces)
joseyana2007

Desconectado Desconectado

Mensajes: 34


Ver Perfil
JECXZ y JCXZ
« en: 30 Mayo 2008, 01:47 am »

hola, no encuentro un foro de assembler, supongo este ser el mejor.

consulto OPCODES de hutch y me dice que ambas son 1Byte

programo y tengo problemas: JCXZ y JECXZ deberian ser identicas

pues no, JCXZ ocupa 2Bytes

¿error del compilador?

saludos
En línea

Shaddy


Desconectado Desconectado

Mensajes: 722


one_bit_manipulator()


Ver Perfil WWW
Re: JECXZ y JCXZ
« Respuesta #1 en: 30 Mayo 2008, 09:21 am »

hola, no encuentro un foro de assembler, supongo este ser el mejor.

consulto OPCODES de hutch y me dice que ambas son 1Byte

programo y tengo problemas: JCXZ y JECXZ deberian ser identicas

pues no, JCXZ ocupa 2Bytes

¿error del compilador?

saludos



y bueno, si, jcxz ocupa 2 bytes.

Citar
The JECXZ and JCXZ instructions differs from the other Jcc instructions because they do not check the status flags. Instead they check the contents of the ECX and CX registers, respectively, for 0. Either the CX or ECX register is chosen according to the address-size attribute. These instructions are useful at the beginning of a conditional loop that terminates with a conditional loop instruction (such as LOOPNE). They prevent entering the loop when the ECX or CX register is equal to 0, which would cause the loop to execute 2 32 or 64K times, respectively, instead of zero times.

All conditional jumps are converted to code fetches of one or two cache lines, regardless of jump address or cacheability.
Operands    Bytes    Clocks
near8    2    1    PV
near16    3    1    PV

Fuente: http://jsimlo.sk/docs/cpu/index.php/jcxz.html

Será un error de hutch, porque el opcode de JCXZ es "67 E3" y el de JECXZ es "E3".

Salu2..
En línea

"Si buscas resultados diferentes, no hagas siempre lo mismo" (Albert Einstein)

http://abssha.reversingcode.com
http://www.reversingcode.com
Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines