About Author
Tedy Tri Saputro is college student of Polytechnic Institute of Nuclear Technology – Yogyakarta,
Indonesia at Nuclear Physics Engineering with concentration Electronics and Instrumentation. If you any
question or suggestion, please read the contact person :
Tedy Tri Saputro adalah Mahasiswa Sekolah Tinggi Teknologi Nuklir – Yogyakarta, Indonesia pada
jurusan Teknofisika Nuklir dengan program studi Elektronika – Instrumentasi. Jika anda memiliki saran
dan pertanyaan, silahkan baca pada contact person
Contact Person :
Email : detik19@gmail.com
Blog http://kliktedy.wordpress.com
EXPERIMENT 2
BASIC APPLICATION OF ARITHMETIC AND LOGIC OPERATION INSTRUCTION
1. EXPERIMENT 1
The following program can be used to add the contents of register D and register E together. The result
will be stored in the pair register HL
D+E=HL
D=5AH E=A6H
Data:
D=46H E=77H
2. EXPERIMENT 2
The following program can be used to add the 16-bit data in memory addresses 1A00H-1A01H to the 16
bit data value in the register pair DE. The Result will be stored in register pair HL
Number of errors = 0
3. EXPERIMENT 3
Number of errors = 0
[1A01H-1A00H]-DE=HL
1234-1122=?
4. EXPERIMENT 4
The following program can be used to add the 32-bit data in memory addresses 1A00H-1A03H to the 32-
bit data in memory addresses 1A04H-1A07. The Result will be stored in memory addresses 1A08H-
1A0BH
(1A07H – 1A04H) = 12 34 56 78
Number of errors = 0
Process of simulation
5. EXPERIMENT 5
If the instruction DAA is inserted immediately after ADC or BDC instruction then the programs becomes
a program for decimal addition or substraction
Number of errors = 0
Process of simulation
Result