This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Senin, 07 Januari 2013

Contoh Program Assembly



Contoh Program

1. MOV AH,4h
2. MOV AL,8
3. ADD AH,AL
4. MOV AX,1234h
5. MOV BX,0F221h
6. ADD AX,BX 
   

A. Elemen Instruksi

Opcode
Operand 1
Operand 2
MOV
AH
4h
MOV
AL
8
ADD
AH
AL
MOV
AX
1234h
MOV
BX
0F221h
ADD
AX
BX














B. Format Instruksi

      1. MOV AH,4h                  :          Opcode + Operand1 + Operand2
      2. MOV AL,8                    :           Opcode + Operand1 + Operand2
      3. ADD AH,AL                  :          Opcode + Operand1 + Operand2
      4. MOV AX,1234h            :          Opcode + Operand1 + Operand2
      5. MOV BX,0F221h          :          Opcode + Operand1 + Operand2
      6. ADD AX,BX                  :          Opcode + Operand1 + Operand2

C. Jenis Instruksi
     1. MOV AH,4h                  :          Jenis Logical
     2. MOV AL,8                    :          Jenis Data Transfer
     3. ADD AH,AL                  :          Jenis Aritmatika
     4. MOV AX,1234h            :          Jenis Logical
     5. MOV BX,0F221h          :          Jenis Logical
     6. ADD AX,BX                  :          Jenis Aritmatika

D. Jumlah Alamat
     1. MOV AH,4h                  :           Instruksi 2 alamat
     2. MOV AL,8                    :           Instruksi 2 alamat
     3. ADD AH,AL                  :           Instruksi 2 alamat
     4. MOV AX,1234h            :           Instruksi 2 alamat
     5. MOV BX,0F221h          :           Instruksi 2 alamat
     6. ADD AX,BX                  :          Instruksi 2 alamat

E. Penjelasan
     1. MOV AH,4h                  :           Nilai AH adalah 4h
     2. MOV AL,8                    :           Nilai AL adalah 8
     3. ADD AH,AL                 :            Proses penjumlahan AH = AH +AL dan hasilnya
                                                           AH bernilai 12 h
     4. MOV AX,1234h            :           Nilai AX adalah 1234h
     5. MOV BX,0F221h          :           Nilai BX adalah 0F221h
     6. ADD AX,BX                :            Proses penjumlahan AX = AX + BX dan hasilnya
                                                           AX bernilai 0455h