mplab
Experiment: 01 a). Write an Assembly language program to define data of different data type and perform data transfer operations on the data:- code.... .section .data value: .int 2 .section .text .globl _start _start: movl %100, %eax movl %eax,%ebx movl $1,%eax movl $0,%ebx int $0x80 LAB 2: a). Develop an Assembly language program to perform all arithmetic operations: CODE: section .data a: .int 2 C: .int 2 d: .int 5 e: .int 0 .section .text .globl _start _start: /* a=(b+c)/d */ /* a=2,b=8,c=2,d=5 */ movl %8, %ebx| movl $2,%eax addl %ebx,%eax movl $5,%ecx movl %eax, a /* a=(b*c)-d */ movl $8,%esi movl $2,%eax mull %esi,%eax movl $5,%ecx subl %eax.%ecx movl %eax,a /* e=(((a*b)/c)*d) */ movl $2,%eax movl $8,%ebx mull %ebx movl $2,%ecx divl %ecx movl $5,%edx mull %edx movl %eax,e movl $1,%eax movl $0,%ebx int $0x80 LAB 22: CODE: .section .data a: .int 2 b: .int 8 C: .int 2 d: .int 5 e: .int p .section .text .globl_start _start: /* a=(b+c)/d */ /* a=2,b=8,c=2,d=5 */ movl b,%ebx movl c, %ea...