Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass[11pt,a4paper]{article}
- \usepackage[english]{babel}
- \usepackage[utf8x]{inputenc}
- \usepackage{amsmath}
- \usepackage{graphicx}
- \usepackage[colorinlistoftodos]{todonotes}
- \usepackage{fullpage}
- \begin{document}
- \begin{titlepage}
- \newcommand{\HRule}{\rule{\linewidth}{0.5mm}} % Defines a new command for the horizontal lines, change thickness here
- \center % Center everything on the page
- \textsc{\LARGE Ahsanullah Univerity of Science & Technology}\\[1.5cm]
- \textsc{\Large CSE 3108}\\[0.5cm]
- \textsc{\large Microprocessor Lab}\\[0.5cm]
- \HRule \\[0.4cm]
- { \huge \bfseries Constructing Machine Codes for 8086 Instructions from Assembly codes}\\[0.4cm] % Title of your document
- \HRule \\[1.5cm]
- \begin{minipage}{0.4\textwidth}
- \begin{flushleft} \large
- \emph{Submitted by:}\\
- \end{flushleft}
- \end{minipage}
- \author{
- MD Abdullah Al Nasim\\
- \texttt{15.01.04.085}
- \and
- Masud Rana\\
- \texttt{15.01.04.090}
- \and
- Murad Hossain\\
- \texttt{15.01.04.102}
- \and
- Shankho Chakraborty\\
- \texttt{15.01.04.104}
- \and
- Amit Niloy\\
- \texttt{15.01.04.105}
- }
- \date{\today}
- \includegraphics[scale = .2]{LogoAust.jpg}
- \vfill % Fill the rest of the page with whitespace
- \end{titlepage}
- 00326-30000-00001-AA714
- \begin{document}
- \maketitle
- \section{Problem description}
- The problem is to convert an assembly code to machine code.The machine code has two formats- one is hex and another is binary format.
- \section{Table to convert machine code}
- \begin{table}[h]
- \begin{tabular}{l|c|c|p}
- Instruction No. & Assembly Code & Hex Code & Binary Code
- \\
- \hline \hline
- $ 1^{st} $ instruction & MOV BX,2B4 & BB B4 02 & 1011 1 011 B402\\ \hline
- $ 2^{nd} $ instruction & INC BX & 00 43 & 0100 0011\\ \hline
- $ 3^{rd} $ instruction & ADD AX,BX & 03 C3 & 0000 00 1 1\\ \hline
- \end{tabular}
- \caption{Assembly code to machine code}
- \label{tab:tri}
- \end{table}
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment