-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working on slides. Small touch-ups on labs.
- Loading branch information
Showing
7 changed files
with
156 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,14 +29,14 @@ \section*{Allmänt} | |
I kursen Datorer och datoranvändning får du en översikt över datatekniska begrepp och praktiska färdigheter som du kommer att ha användning av under dina studier. Kursen läses av studenter från C- och D-programmen. För C-studenter ingår den som en del av kursen EITA65. | ||
|
||
\item[Kursansvarig] | ||
Mattias Nordahl, rum E2184, E-huset 2:a våningen.\\ | ||
Mattias Nordahl, rum E:2184, E-huset 2:a våningen.\\ | ||
E-post: \url{[email protected]} | ||
|
||
\item[Administratör] | ||
Ulrika Templing, rum E2179, E-huset 2:a våningen. Expeditionstid 9.30--11.30. Telefon 046--222 80 40, e-post \url{[email protected]} | ||
Ulrika Templing, rum E:2179, E-huset 2:a våningen. Expeditionstid 9.30--11.30. Telefon 046--222 80 40, e-post \url{[email protected]} | ||
|
||
\item[Hemsida] | ||
\url{http://cs.lth.se/dod/}. Du bör titta på hemsidan regelbundet! Kort kursinformation finns också i Canvas, men hemsidan är den primära platsen för kursinformation. | ||
\url{http://cs.lth.se/dod/}. Du bör titta på hemsidan regelbundet. Kort kursinformation finns också i Canvas, men hemsidan är den primära platsen för kursinformation. | ||
|
||
\item[Kursens omfattning] | ||
\begin{tabular}[t]{@{}ll} | ||
|
@@ -64,8 +64,8 @@ \section*{Undervisning} | |
\begin{tabular}{lll} | ||
\emph{Dag} & \emph{Ämne} & \emph{Anmärkning} \\ \midrule | ||
Tisdag 3/9 & Introduktion, Linux/Unix & Förberedelse, lab 1 \\ | ||
Tisdag 10/9 & \LaTeX & Förberedelse, lab 2 \\ | ||
Tisdag 17/9 & Versionshantering, Git/GitHub & Förberedelse, lab 3 \\ | ||
Tisdag 10/9 & Versionshantering, Git/GitHub & Förberedelse, lab 2 \\ | ||
Tisdag 17/9 & \LaTeX & Förberedelse, lab 3 \\ | ||
Tisdag 24/9 & Maskinkod & Förberedelse, lab 4 \\ | ||
\end{tabular} | ||
} | ||
|
@@ -81,8 +81,8 @@ \section*{Undervisning} | |
\begin{tabular}{cl} | ||
\emph{Laboration} & \emph{Ämne} \\ \midrule | ||
D1 & Linux/Unix \\ | ||
D2 & \LaTeX \\ | ||
D3 & Git/GitHub \\ | ||
D2 & Git/GitHub \\ | ||
D3 & \LaTeX \\ | ||
D4 & Maskinkod \\ | ||
\end{tabular} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
|
||
\title{Maskinkod} | ||
\section{Maskinkod} | ||
|
||
|
||
\begin{frame} | ||
\begin{block}{\centering\Large Föreläsning \arabic{section} --- Maskinkod} | ||
Förberedelse inför laboration 4. | ||
|
||
\begin{itemize} | ||
\item Vad är en dator? | ||
\item Binära tal. | ||
\item CPU och Minne. | ||
\item Maskinkod och instruktioner. | ||
\item Assembly-språk. | ||
\item Kompilerare och tolkar. | ||
\end{itemize} | ||
\end{block} | ||
\end{frame} | ||
|
||
\begin{frame}[fragile=singleslide] | ||
\frametitle{Bakgrund} | ||
|
||
|
||
|
||
\end{frame} | ||
|
||
|
||
|
||
|
||
% Slide 1: Introduction to Machine Code | ||
% Overview of today’s lecture | ||
% Importance of machine code in computer science | ||
|
||
% Slide 2: What is a Computer? | ||
% Basic definition and components of a computer (CPU, Memory, I/O) | ||
% Role of software vs. hardware | ||
|
||
% Slide 3: Understanding Binary Numbers | ||
% Explanation of binary system (bits, bytes) | ||
% Conversion between binary and decimal systems | ||
|
||
% Slide 4: The Central Processing Unit (CPU) | ||
% Structure and function of the CPU | ||
% Role of the CPU in executing machine code | ||
|
||
% Slide 5: Memory in Computing | ||
% Types of memory (RAM, ROM, Cache) | ||
% How memory works with the CPU | ||
|
||
% Slide 6: Basics of Machine Code | ||
% Definition and characteristics of machine code | ||
% Differences between machine code, assembly language, and high-level programming languages | ||
|
||
% Slide 7: Machine Instructions | ||
% Components of a machine instruction (opcode, operands) | ||
% How instructions are executed by the CPU | ||
|
||
% Slide 8: Assembly Language Overview | ||
% Introduction to assembly language as a low-level programming language | ||
% Relationship between assembly language and machine code | ||
|
||
% Slide 9: Writing Simple Machine Code | ||
% Example of a simple program in machine code | ||
% Explanation of what each part of the program does | ||
|
||
% Slide 10: Machine Code and Modern Computing | ||
% Relevance of machine code in contemporary software development | ||
% Overview of how high-level languages are translated into machine code | ||
|
||
% Slide 11: Compilers and Interpreters | ||
% Explanation of compilers and interpreters | ||
% How they translate high-level code into executable machine code | ||
|
||
% Slide 12: Challenges of Working with Machine Code | ||
% Difficulties and limitations of coding in machine code | ||
% Importance of understanding machine code for debugging and optimization | ||
|
||
% Slide 13: Conclusion | ||
% Recap of the key points covered | ||
% Encouragement to explore more about how programming languages work at the machine level | ||
|
||
% Slide 14: Questions and Discussion | ||
% Open the floor for questions | ||
% Suggest further reading materials and resources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,11 @@ | |
\usepackage{selthcsslides} | ||
\usecolortheme{lucolors} | ||
|
||
% The Madrid theme, for some reason, does not show bullet points in itemize | ||
% environments. This is a workaround to fix that. | ||
\setbeamertemplate{itemize item}[default] | ||
\setbeamertemplate{itemize subitem}[default] | ||
|
||
% \usepackage[swedish]{babel} | ||
% Swedish setup using polyglossia for better multilingual support | ||
\usepackage{polyglossia} | ||
|
@@ -13,6 +18,22 @@ | |
\usepackage{url} | ||
\usepackage{datetime2} | ||
|
||
\usepackage{listings} | ||
\lstset{resetmargins=true} | ||
|
||
|
||
% Code listing environment that removes leading whitespace | ||
\lstnewenvironment{GobbleCode}[2][\baselineskip] | ||
{\lstset{ | ||
aboveskip=#1, | ||
belowskip=#1, | ||
resetmargins=true, | ||
xleftmargin=0em, | ||
gobble=#2, | ||
tabsize=4, | ||
}} | ||
{} | ||
|
||
\author[]{Mattias Nordahl} | ||
\institute{\url{[email protected]}} | ||
\date{} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
% !TeX root = ./slides.tex | ||
|
||
\title{Unix/Linux} | ||
\section{Unix/Linux} | ||
|