al__nasim

microprocessor_lab_report_1

Jun 3rd, 2017
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 1.99 KB | None | 0 0
  1. \documentclass[11pt,a4paper]{article}
  2. \usepackage[english]{babel}
  3. \usepackage[utf8x]{inputenc}
  4. \usepackage{amsmath}
  5. \usepackage{graphicx}
  6. \usepackage[colorinlistoftodos]{todonotes}
  7. \usepackage{fullpage}
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14. \begin{document}
  15.  
  16. \begin{titlepage}
  17.  
  18. \newcommand{\HRule}{\rule{\linewidth}{0.5mm}} % Defines a new command for the horizontal lines, change thickness here
  19.  
  20. \center % Center everything on the page
  21.  
  22.  
  23. \textsc{\LARGE Ahsanullah Univerity of Science & Technology}\\[1.5cm]
  24. \textsc{\Large CSE 3108}\\[0.5cm]
  25. \textsc{\large Microprocessor Lab}\\[0.5cm]
  26.  
  27. \HRule \\[0.4cm]
  28. { \huge \bfseries Constructing Machine Codes for 8086 Instructions from Assembly codes}\\[0.4cm] % Title of your document
  29. \HRule \\[1.5cm]
  30.  
  31.  
  32.  
  33.  
  34. \begin{minipage}{0.4\textwidth}
  35. \begin{flushleft} \large
  36. \emph{Submitted by:}\\
  37.  
  38.  
  39.  
  40. \end{flushleft}
  41. \end{minipage}
  42.  
  43. \author{
  44.    MD Abdullah Al Nasim\\
  45.    \texttt{15.01.04.085}
  46.    \and
  47.    Masud Rana\\
  48.    \texttt{15.01.04.090}
  49.    \and
  50.    Murad Hossain\\
  51.    \texttt{15.01.04.102}
  52.    \and
  53.    Shankho Chakraborty\\
  54.    \texttt{15.01.04.104}
  55.    \and
  56.    Amit Niloy\\
  57.    \texttt{15.01.04.105}
  58. }
  59. \date{\today}
  60.  
  61. \includegraphics[scale = .2]{LogoAust.jpg}
  62.  
  63.  
  64. \vfill % Fill the rest of the page with whitespace
  65.  
  66. \end{titlepage}
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76. 00326-30000-00001-AA714
  77.  
  78. \begin{document}
  79.  
  80. \maketitle
  81.  
  82. \section{Problem description}
  83. 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.
  84.  
  85. \section{Table to convert machine code}
  86.  
  87. \begin{table}[h]
  88. \begin{tabular}{l|c|c|p}
  89.  
  90. Instruction No. & Assembly Code & Hex Code & Binary Code
  91. \\
  92. \hline \hline
  93. $ 1^{st} $ instruction & MOV BX,2B4 & BB B4 02 & 1011 1 011 B402\\ \hline
  94. $ 2^{nd} $ instruction & INC BX & 00 43 & 0100 0011\\ \hline
  95. $ 3^{rd} $ instruction & ADD AX,BX & 03 C3 & 0000 00 1 1\\ \hline
  96.  
  97. \end{tabular}
  98. \caption{Assembly code to machine code}
  99. \label{tab:tri}
  100. \end{table}
  101.  
  102.  
  103. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment