Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Ejemplo de ensamblaje visto hoy en clases

Ejemplo de ensamblaje visto hoy en clases 4 months 3 weeks ago #9133

  • kirstein
  • kirstein's Avatar Topic Author
  • Offline
  • Profesor
  • Profesor
  • Posts: 2830
  • Karma: 666
  • Thank you received: 1622
Hola,

+ Lo indicado...

Saludos,
Kirstein
D segment
    Z  dd 73h,62h,51h
    X  db -2
    Y  db "ALACARGA!"    
D endS

  ...
xxx: not word ptr [bx+si]
  div bl
  dec X
  jo zzz
  loop xxx
zzz: add ax, -7
  or dx, cx
  shr bx, cl  
  ... 

  xxx                                 zzz  
  not   div   dec          jo   loop  add       or    shr
   v     v     v           v     v     v        v     v
   F7 10 F6 F3 FE 0E 0C 00 70 02 E2 F4 05 F9 FF 0B D1 D3 EB
                                                           ^

NOT:
xxx: not word ptr [bx+si]

  | 1111011w | mod 010 r/m | disp-low | disp-hi |
    
    11110111   00 010 000 

    F7 10

DIV:
  div bl

 | 1111011w | mod 110 r/m | disp-low | disp-hi |

   11110110 | 11 110 011

   F6 F3

DEC:
  dec X
 | 1111111w | mod 001 r/m | disp-low | disp-hi |

   11111110   00  001 110           12 

   FE 0E 0C 00

JO:
  jo zzz

  01110000 | disp

  70 02

LOOP:
  loop xxx

  11100010 | disp              1100
                           00001100
              -12          11110011
  11100010                 11110100
  
  E2 F4

ADD:
zzz: add ax, -7
  
0000000000000111
1111111111111001
             
FF F9 

| 0000010w |-- data -- | data if w=1 |
  00000101  
  
  05 F9 FF 

| 100000sw | mod 000 r/m | ---data --- | data if sw=01 | disp-low | disp-hi |

  10000011   11  000 000     FF F9  

  83 C0 F9 FF

OR:
  or dx, cx

               cx  dx  cx 
  | 000010dw | mod reg r/m | desp-low | desp-high |
           
    00001011   11  010 001 

  0B D1

SHR
  shr bx, cl  
 
  | 110100cw | mod 101 r/m | desp-low | desp-high | 

    11010011   11 101 011

  D3 EB

Please Identificarse to join the conversation.

  • Page:
  • 1
  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to add attachements.
  • Not Allowed: to edit your message.
Time to create page: 0.129 seconds
Powered by Kunena Forum