Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass[a4paper]{article}
- \usepackage[pdftex]{hyperref}
- \usepackage[latin1]{inputenc}
- \usepackage[english]{babel}
- \usepackage{a4wide}
- \usepackage{amsmath}
- \usepackage{amssymb}
- \usepackage{algorithmic}
- \usepackage{algorithm}
- \usepackage{graphicx}
- \usepackage{ifthen}
- \usepackage{listings}
- % move the asterisk at the right position
- \lstset{basicstyle=\ttfamily,tabsize=4,literate={*}{${}^*{}$}1}
- %\lstset{language=C,basicstyle=\ttfamily}
- \usepackage{moreverb}
- \usepackage{palatino}
- \usepackage{multicol}
- \usepackage{tabularx}
- \usepackage{comment}
- \usepackage{verbatim}
- \usepackage{color}
- \usepackage{enumitem}
- \usepackage{listings}
- %% pdflatex?
- \newif\ifpdf
- \ifx\pdfoutput\undefined
- \pdffalse % we are not running PDFLaTeX
- \else
- \pdfoutput=1 % we are running PDFLaTeX
- \pdftrue
- \fi
- \ifpdf
- \usepackage[pdftex]{graphicx}
- \else
- \usepackage{graphicx}
- \fi
- \ifpdf
- \DeclareGraphicsExtensions{.pdf, .jpg}
- \else
- \DeclareGraphicsExtensions{.eps, .jpg}
- \fi
- \parindent=0cm
- \parskip=0cm
- \setlength{\columnseprule}{0.4pt}
- \addtolength{\columnsep}{2pt}
- \addtolength{\textheight}{5.5cm}
- \addtolength{\topmargin}{-26mm}
- \pagestyle{empty}
- %%
- %% Sheet setup
- %%
- \newcommand{\coursename}{Computer Architecture and Programming Languages}
- \newcommand{\courseno}{CO20-320241}
- \newcommand{\sheettitle}{Assignment}
- \newcommand{\mytitle}{}
- \newcommand{\mytoday}{\textcolor{}{November 15}, 2019}
- % Current Assignment number
- \newcounter{assignmentno}
- \setcounter{assignmentno}{9}
- % Current Problem number, should always start at 1
- \newcounter{problemno}
- \setcounter{problemno}{1}
- %%
- %% problem and bonus environment
- %%
- \newcounter{probcalc}
- \newcommand{\problem}[2]{
- \pagebreak[2]
- \setcounter{probcalc}{#2}
- ~\\
- {\large \textbf{Problem \textcolor{}{\arabic{assignmentno}}.\textcolor{}{\arabic{problemno}}} \hspace{0.2cm}\textit{#1}} \refstepcounter{problemno}\vspace{2pt}\\}
- \newcommand{\bonus}[2]{
- \pagebreak[2]
- \setcounter{probcalc}{#2}
- ~\\
- {\large \textbf{Bonus Problem \textcolor{blue}{\arabic{assignmentno}}.\textcolor{blue}{\arabic{problemno}}} \hspace{0.2cm}\textit{#1}} \refstepcounter{problemno}\vspace{2pt}\\}
- %% some counters
- \newcommand{\assignment}{\arabic{assignmentno}}
- %% solution
- \newcommand{\solution}{\pagebreak[2]{\bf Solution:}\\}
- %% Hyperref Setup
- \hypersetup{pdftitle={Homework \assignment},
- pdfsubject={\coursename},
- pdfauthor={},
- pdfcreator={},
- pdfkeywords={Computer Architecture and Programming Languages},
- % pdfpagemode={FullScreen},
- %colorlinks=true,
- %bookmarks=true,
- %hyperindex=true,
- bookmarksopen=false,
- bookmarksnumbered=true,
- breaklinks=true,
- %urlcolor=darkblue
- urlbordercolor={0 0 0.7}
- }
- \begin{document}
- \coursename \hfill Course: \courseno\\
- Jacobs University Bremen \hfill \mytoday\\
- \textcolor{}{Taiyr Begeyev}\hfill
- \vspace*{0.3cm}\\
- \begin{center}
- {\Large \sheettitle{} \textcolor{}{\assignment}\\}
- \end{center}
- \setlist{leftmargin=6mm}
- \problem{}{0}
- \solution
- \begin{enumerate}[label=\alph*)]
- \item Program Counter is updated every cycle, so it doesn't need any explicit write control signal. It is updated every cycle, because we need to get the address of the next instruction.
- \item hey
- \end{enumerate}
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement