Professional Documents
Culture Documents
COURSE – COMPUTER
ENGINEERING
PROGRAM – microprocessor
MICROPROJECT:
ACADEMIC YEAR: 2022 –
2023
COURSE: Computer
Engineering
TITEL: Write an assembly language using macros. write an
ALP using macross to solve equation such as
z=(A+B)* (C + D)
SUBJECT: microprocessor
SEMESTER: 4th
TEAM MEMBERS:
SR.NO NAME ROLL NO.
1 Kaushal TAPSE 26
2 sahil kumbhar 27
3 Atharv dhumal 29
4 sagar deshmukh 31
MISS. Sable k . s.
(Subject Teacher)
DESCRIPTION:
We are studying in 2ndYear computer engineering. In This
semester we Have been prescribed micro project by MSBTE.
The basic reason of micro-Project is Developed skills. In this
micro project we try to Understand Over all information of
our micro project. It is very important for our Career & built
confident as Will knowledge full about our field .This program
defines two macros, ADD_MACRO and MUL_MACRO, which
are used to perform addition and multiplication operations.
The program then calculates the value of z by adding A and B,
adding C and D, and then multiplying the two results
together. Finally, the program prints the value of z using the
WriteInt function provided by the Irvine32 library.
Procedure:
1.Define the variables A, B, C, D, and Z in the data
segment with initial values.
2.Load the data segment address into AX and set
the data segment register to point to the data
segment.
3.Define a macro called COMPUTE_Z that
calculates the value of (A + B) * (C + D) and stores
it in Z.
4.Define a macro called DISPLAY_Z that displays
the value of Z using a subroutine called DISPLAY.
5.Call the COMPUTE_Z macro to calculate the
value of Z.
6.Call the DISPLAY_Z macro to display the value of
Z.
7.Use the TITLE macro to end the program.
RESOURCES
USED
Sr. Name of Specifications Quantity Remark
Resources /
Material
1 Internet www.Wikipedia.Com - √
2 Typing Microsoft Office Word - √
Software (2019)
Guide Teacher – .k .s
SOURCE CODE
TITLE MACRO
MOV AH, 4CH ; Set up exit code for DOS
INT 21H
ENDM
DATA SEGMENT
DATA ENDS
CODE SEGMENT
MAIN PROC
MOV DS, AX ; Set the data segment register to point to the data segment
; Compute (A + B) * (C + D)
MACRO
ENDM
; Display the result
MAIN ENDP
DISPLAY PROC
PUSH AX ; Save AX
PUSH BX ; Save BX
PUSH CX ; Save CX
PUSH DX ; Save DX
JNZ CONVERT
INC DI
JMP DISPLAY_DONE
CONVERT:
CMP BX, 0
JG CONVERT_LOOP
NEG BX
INC DI
CONVERT_LOOP:
DIV CX ; Divide BX by CX
CONVERT_DISPLAY:
DISPLAY_DONE
Conclusion:
The above program calculates the value of the equation
z = (A + B) * (C + D) using macros in assembly
language. The program defines the variables A, B, C, D,
and Z in the data segment and uses the COMPUTE_Z
macro to calculate the value of Z. The DISPLAY_Z
macro is used to display the value of Z using a
subroutine called DISPLAY. The program then calls the
COMPUTE_Z and DISPLAY_Z macros to compute and
display the value of Z respectively. Finally, the program
ends using the TITLE macro.
Skill developed out of this
microprojects:
Plan and organize – Planning and
organizing skills developed.
Communicate effectively – By
communicating problems are solved.
Work independently and as part of team
– By working independently project
completed accurately.
Show a positive attitude - Positive
attitude can developed by this course and
micro project.
Demonstrate good work practice
including time, keeping, tidiness,
responsibility, quality, awareness and
safety awareness.
Decisions making – By
performing this project decision making
ability is increased.
Leadership and management –
This project gave given the ability
how to leading and managing the
project.
Analysis skill – By making this project
analysis skill are developed.