logo

Crowdly

Codify the remaining code instructions by specifying the different fields and t...

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

  • Codify the remaining code instructions by specifying the different fields and the resulting machine code
Guidelines:

  1. The opcode and the @mode should be given in binary.
  2. The offset, the value and the machine code must be given in hexadecimal. Do not include the H of hexadecimal in the answer
  3. Put just a slash '/' in the unneeded fields.
  4. Do not include any spaces

Stack segment          stack

            Db                   125 dup (?)

Stack  ends   

data segment              type

a          dw     7534o,1111010110110011b,4,-125,0bfh

b          db      5Eh,4 dup (48,0),64,'abcd'

            .radix   16

c          dd    4321,24d,9876,10011b

            dw       7851,1234,50d

data     ends

code    segment

            assume                        DS:data, CS:code

            .radix               0A

start:    mov                 ax, data

            mov                 DS, ax

            lea                 bx, c

            mov                 di, 16

            mov                 cx, 3

for:       mov                 si, 0

            mov                 ax, word ptr c[di]

            add                 [bx+si], ax

            mov                 si, 2

            cwd                 

            adc                 [bx+si], dx

            add                di, 2

            add                bx, 4

            loop               for

            mov                 ah,4ch

            int                    33

code    ends                            

            end                  start

INSTRUCTION

CODOP

MOD

DEPL.

VALEUR

CODE

for:    mov     

si, 0

10111110

/

/

0000

BE0000

...

...

...

...

...

...

add                di, 2

10000011

11000111

/

02

83C702

add                bx, 4

10000011

11000011

/

04

83C304

loop for

mov       ah,4ch

1011 0100

/

/

4C

B4 4C

int          33

 

1100 1101

/

/

21

CD 21

Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на esiclass.esi.dz?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!