<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://andromeda.df.lu.lv/wiki/index.php?action=history&amp;feed=atom&amp;title=LU-MOP-en23</id>
	<title>LU-MOP-en23 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://andromeda.df.lu.lv/wiki/index.php?action=history&amp;feed=atom&amp;title=LU-MOP-en23"/>
	<link rel="alternate" type="text/html" href="http://andromeda.df.lu.lv/wiki/index.php?title=LU-MOP-en23&amp;action=history"/>
	<updated>2026-05-13T13:14:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>http://andromeda.df.lu.lv/wiki/index.php?title=LU-MOP-en23&amp;diff=10796&amp;oldid=prev</id>
		<title>Leo: Created page with &quot;__NOTOC__ &lt;!--{{TocRight|2}}--&gt; &lt;big&gt; &#039;&#039;&#039;Shortcuts:&#039;&#039;&#039;  Calendar |   Assignments |   Resources |  #{{CURRENTDAY2}}.{{CURRENT...&quot;</title>
		<link rel="alternate" type="text/html" href="http://andromeda.df.lu.lv/wiki/index.php?title=LU-MOP-en23&amp;diff=10796&amp;oldid=prev"/>
		<updated>2024-09-03T07:37:51Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ &amp;lt;!--{{TocRight|2}}--&amp;gt; &amp;lt;big&amp;gt; &amp;#039;&amp;#039;&amp;#039;Shortcuts:&amp;#039;&amp;#039;&amp;#039; &lt;a href=&quot;#Calendar&quot;&gt; Calendar&lt;/a&gt; |  &lt;a href=&quot;#Assignments&quot;&gt; Assignments&lt;/a&gt; |  &lt;a href=&quot;#Resources&quot;&gt; Resources&lt;/a&gt; |  #{{CURRENTDAY2}}.{{CURRENT...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
&amp;lt;!--{{TocRight|2}}--&amp;gt;&lt;br /&gt;
&amp;lt;big&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Shortcuts:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
[[#Calendar | Calendar]] | &lt;br /&gt;
[[#Assignments | Assignments]] | &lt;br /&gt;
[[#Resources | Resources]] | &lt;br /&gt;
[[#{{CURRENTDAY2}}.{{CURRENTMONTH}}.{{CURRENTYEAR}} | Today &amp;lt;small&amp;gt;(if there is a class)&amp;lt;/small&amp;gt;]]&lt;br /&gt;
&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Course: Assembly Programming&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=Calendar=&lt;br /&gt;
{| border=1 cellspacing=0 cellpadding=4 style = &amp;#039;border-color: #ddd;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
! Date&lt;br /&gt;
! Topic, content&lt;br /&gt;
! Deliverables&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;#039;vertical-align: top;&amp;#039;&lt;br /&gt;
|&lt;br /&gt;
====19.09.2023====&lt;br /&gt;
|&lt;br /&gt;
{| width=&amp;#039;100%&amp;#039; style=&amp;#039;background-color:#ddd;&amp;#039;&lt;br /&gt;
|&amp;lt;big&amp;gt;&amp;#039;&amp;#039;&amp;#039;Introduction&amp;#039;&amp;#039;&amp;#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
Microprocessors and microcontrollers. Applications. Architectures.  Coourse outline.&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;#039;vertical-align: top;&amp;#039;&lt;br /&gt;
|&lt;br /&gt;
====19.09.2023====&lt;br /&gt;
|&lt;br /&gt;
{| width=&amp;#039;100%&amp;#039; style=&amp;#039;background-color:#ddd;&amp;#039;&lt;br /&gt;
|&amp;lt;big&amp;gt;&amp;#039;&amp;#039;&amp;#039;Hexadecimal arithmetic&amp;#039;&amp;#039;&amp;#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
Representation of non-negative numbers in hardware, registers and memory. Decimal, binary, octal, and hexadecimal systems. Converting between the systems.&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;#039;vertical-align: top;&amp;#039;&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
====26.09.2023====&lt;br /&gt;
|&lt;br /&gt;
{| width=&amp;#039;100%&amp;#039; style=&amp;#039;background-color:#ddd;&amp;#039;&lt;br /&gt;
|&amp;lt;big&amp;gt;&amp;#039;&amp;#039;&amp;#039;Two&amp;#039;s complement&amp;#039;&amp;#039;&amp;#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
Representing negative numbers in hardware. Register size, and why it is important.  Methods for encoding negative numbers: packed, signed, bias, one&amp;#039;s complement and two&amp;#039;s complement. Converting between the value and two&amp;#039;s complement in binary and hexadecimal systems.&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Quiz 1&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Decimal, binary, octal and hexadecimal systems. &lt;br /&gt;
&lt;br /&gt;
|- style=&amp;#039;vertical-align: top;&amp;#039;&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
====03.10.2023====&lt;br /&gt;
|&lt;br /&gt;
{| width=&amp;#039;100%&amp;#039; style=&amp;#039;background-color:#ddd;&amp;#039;&lt;br /&gt;
|&amp;lt;big&amp;gt;&amp;#039;&amp;#039;&amp;#039;Processor architecture&amp;#039;&amp;#039;&amp;#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
Architecture of a processor. Registers, register file, ALU, datapath. CISC vs. RISC architectures.  x86 architecture as CISC representative. ARM architecture as RISC. Instruction encoding. &lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Quiz 2&amp;#039;&amp;#039;&amp;#039; (rescheduled to next week)&lt;br /&gt;
Two&amp;#039;s complement.&lt;br /&gt;
&lt;br /&gt;
Lab:&lt;br /&gt;
&lt;br /&gt;
Developing and testing a simple Assembly program.  Using cross-compilation tools. Introduction to the Make system.&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;#039;vertical-align: top;&amp;#039;&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
====10.10.2023====&lt;br /&gt;
|&lt;br /&gt;
{| width=&amp;#039;100%&amp;#039; style=&amp;#039;background-color:#ddd;&amp;#039;&lt;br /&gt;
|&amp;lt;big&amp;gt;&amp;#039;&amp;#039;&amp;#039;Computing environment&amp;#039;&amp;#039;&amp;#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
Environment and tools for compiling and debugging Assembly programs. Compiler, preprocessor, assembly, linker, loader, debugger. Cross-compilation and toolchains. Emulators and virtual machines.&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Quiz 2&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Two&amp;#039;s complement.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Announced: &amp;#039;&amp;#039;&amp;#039;HW1&amp;#039;&amp;#039;&amp;#039; - Arithmetic progression&lt;br /&gt;
|- style=&amp;#039;vertical-align: top;&amp;#039;&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
====17.10.2023====&lt;br /&gt;
|&lt;br /&gt;
{| width=&amp;#039;100%&amp;#039; style=&amp;#039;background-color:#ddd;&amp;#039;&lt;br /&gt;
|&amp;lt;big&amp;gt;&amp;#039;&amp;#039;&amp;#039;ARM Assembly and arithmetic&amp;#039;&amp;#039;&amp;#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
Introduction to ARM Assembly language and programming. Instruction types. Arithmetic instructions.  MOV, ADD, SUB. MVN, ADC, SBC, RSB, RSC.  Barrel Shifter.&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Practicing tracing the code (on &amp;quot;paper&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;#039;vertical-align: top;&amp;#039;&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
====24.10.2023====&lt;br /&gt;
|&lt;br /&gt;
{| width=&amp;#039;100%&amp;#039; style=&amp;#039;background-color:#ddd;&amp;#039;&lt;br /&gt;
|&amp;lt;big&amp;gt;&amp;#039;&amp;#039;&amp;#039;Flow control and tests&amp;#039;&amp;#039;&amp;#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
Flow control in Assembly.  Branch instructions. B, BL, BX, BLX. Working directly with PC register. CPSR flags. Condition field. Bit operations. AND, ORR, EOR, BIC, shift and rotation. CMP, CMN, TST, TEQ. Fast flags and the S postfix.&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
Code comprehension practice.&lt;br /&gt;
&lt;br /&gt;
* Announced: &amp;#039;&amp;#039;&amp;#039;HW2&amp;#039;&amp;#039;&amp;#039; - Matrix multiplication&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;#039;vertical-align: top;&amp;#039;&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
====31.10.2023====&lt;br /&gt;
|&lt;br /&gt;
{| width=&amp;#039;100%&amp;#039; style=&amp;#039;background-color:#ddd;&amp;#039;&lt;br /&gt;
|&amp;lt;big&amp;gt;&amp;#039;&amp;#039;&amp;#039;Memory instructions&amp;#039;&amp;#039;&amp;#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
Reading and writing data to memory. Memory access instructions. STR, LDR, STRB, STRH, LDRB, LDRH, LDRSB, LDRSH. Addressing modes: offset, pre-indexed and post-indexed. Using barrel shifter with addressing. Data alignment in memory.&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Quiz 3&amp;#039;&amp;#039;&amp;#039; - Code comprehension (moved)&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Due&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;HW1&amp;#039;&amp;#039;&amp;#039; - Arithmetic progression&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;#039;vertical-align: top;&amp;#039;&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
====07.11.2023====&lt;br /&gt;
|&lt;br /&gt;
{| width=&amp;#039;100%&amp;#039; style=&amp;#039;background-color:#ddd;&amp;#039;&lt;br /&gt;
|&amp;lt;big&amp;gt;&amp;#039;&amp;#039;&amp;#039;Calling subroutines and interfacing with C&amp;#039;&amp;#039;&amp;#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
Variable types in C: static, automatic and dynamic. Calling subroutines and parameter passing conventions. Parameters and return value. Stack and registers. Saving the registers, the context. Loading and storing multiple registers: LDM, STM. Interfacing between Assembly and C.&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;#039;vertical-align: top;&amp;#039;&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
====14.11.2023====&lt;br /&gt;
|&lt;br /&gt;
{| width=&amp;#039;100%&amp;#039; style=&amp;#039;background-color:#ddd;&amp;#039;&lt;br /&gt;
|&amp;lt;big&amp;gt;&amp;#039;&amp;#039;&amp;#039;Symbols&amp;#039;&amp;#039;&amp;#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
Symbol encoding in hardware and software. Code tables. ASCII. EBCDIC. ISO code tables. Foreign letter symbols. UTF-8, UTF-16. Strings in C and memory. Converting values to symbols and strings.&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Quiz 3&amp;#039;&amp;#039;&amp;#039; - Code comprehension&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Due&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;HW2&amp;#039;&amp;#039;&amp;#039; - Matrix multiplication&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;#039;vertical-align: top;&amp;#039;&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
====21.11.2023====&lt;br /&gt;
|&lt;br /&gt;
{| width=&amp;#039;100%&amp;#039; style=&amp;#039;background-color:#ddd;&amp;#039;&lt;br /&gt;
|&amp;lt;big&amp;gt;&amp;#039;&amp;#039;&amp;#039;Midterm&amp;#039;&amp;#039;&amp;#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
Data representation in memory. &lt;br /&gt;
Assembly code comprehension. &lt;br /&gt;
Two programming tasks.&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
* Assignment &amp;#039;&amp;#039;&amp;#039;Proj&amp;#039;&amp;#039;&amp;#039; - Project choice&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;#039;vertical-align: top;&amp;#039;&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
====28.11.2023====&lt;br /&gt;
|&lt;br /&gt;
{| width=&amp;#039;100%&amp;#039; style=&amp;#039;background-color:#ddd;&amp;#039;&lt;br /&gt;
|&amp;lt;big&amp;gt;&amp;#039;&amp;#039;&amp;#039;Expressions and Macro commands&amp;#039;&amp;#039;&amp;#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
Expressions in Assembly. Operators in expressions. Constants. Assigning values to symbols.  Directives: .set, .equiv, .eqv. Conditional compilation. Directives .if, .ifdef, .endif., ifb, .ifc, .ifeqs. More conditionals .ifeq, .ifge, .ifne and others. Macro commands: .macro, .endm., .rept. Recursive macros. Local macros. Macros across sections.&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Due&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;M1P1&amp;#039;&amp;#039;&amp;#039; - Midterm 1 programming task 1, tested&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Due&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;M1P2&amp;#039;&amp;#039;&amp;#039; - Midterm 1 programming task 2, tested&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;#039;vertical-align: top;&amp;#039;&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
====05.12.2023====&lt;br /&gt;
|&lt;br /&gt;
{| width=&amp;#039;100%&amp;#039; style=&amp;#039;background-color:#ddd;&amp;#039;&lt;br /&gt;
|&amp;lt;big&amp;gt;&amp;#039;&amp;#039;&amp;#039;Inline Assembly&amp;#039;&amp;#039;&amp;#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
Including Assembly in C code. Inline code and Assembly code operands. Tasks for the compiler, linker and loader.  Dynamic loaders and libraries. &lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
Due: Choice: Written exam vs. programming project (in eStudijas)&lt;br /&gt;
|- style=&amp;#039;vertical-align: top;&amp;#039;&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
====12.12.2023====&lt;br /&gt;
|&lt;br /&gt;
{| width=&amp;#039;100%&amp;#039; style=&amp;#039;background-color:#ddd;&amp;#039;&lt;br /&gt;
|&amp;lt;big&amp;gt;&amp;#039;&amp;#039;&amp;#039;Optimizations&amp;#039;&amp;#039;&amp;#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
Execution time for instructions. Case study for code optimization. Leveraging the documentation and specification of instructions. Reordering the code. Unrolling loops.  Taking advantage of branch prediction. Cache memory and the code performance.&lt;br /&gt;
&lt;br /&gt;
Documentation: [http://download.intel.com/design/intelxscale/27347302.pdf Intel XScale R Core Developer’s Manual]. &lt;br /&gt;
&lt;br /&gt;
The section and focus:&lt;br /&gt;
* A.2.1.2 — Processor execution pipe diagram. Instruction and data flow description.&lt;br /&gt;
* 10.4 — Instruction execution time. For example, multiplication vs. addition.&lt;br /&gt;
* 5 — Branch prediction mechanism&lt;br /&gt;
* 4 and 6 — Cache memory. Instruction cache and Data cache.&lt;br /&gt;
* A.3–A.5 — Optimizations as suggested by Intel.&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;#039;vertical-align: top;&amp;#039;&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
====12.12.2023====&lt;br /&gt;
|&lt;br /&gt;
{| width=&amp;#039;100%&amp;#039; style=&amp;#039;background-color:#ddd;&amp;#039;&lt;br /&gt;
|&amp;lt;big&amp;gt;&amp;#039;&amp;#039;&amp;#039;Systems on chip (SoC)&amp;#039;&amp;#039;&amp;#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* Datasheets&lt;br /&gt;
* Memory map&lt;br /&gt;
* Communications protocols (RS232, USB, SPI, I2C, 1-wire, CAN)&lt;br /&gt;
* Peripherals&lt;br /&gt;
* Watchdog timer&lt;br /&gt;
* Bootstraping&lt;br /&gt;
&lt;br /&gt;
Case study:&lt;br /&gt;
* Atmega328P MCU ([https://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-7810-Automotive-Microcontrollers-ATmega328P_Datasheet.pdf datasheet])&lt;br /&gt;
* [https://www.elprocus.com/avr-atmega8-microcontroller-architecture-applications/ Atmega8 architecture description]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Review of the course topics&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;#039;vertical-align: top;&amp;#039;&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
====02.01.2024====&lt;br /&gt;
12:30&lt;br /&gt;
|&lt;br /&gt;
{| width=&amp;#039;100%&amp;#039; style=&amp;#039;background-color:#ddd;&amp;#039;&lt;br /&gt;
|&amp;lt;big&amp;gt;&amp;#039;&amp;#039;&amp;#039;Exam&amp;#039;&amp;#039;&amp;#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
Data representation in memory. &lt;br /&gt;
Assembly code comprehension. &lt;br /&gt;
Multiple choice questions and a programming task.&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Due&amp;#039;&amp;#039;&amp;#039; by the end of the day: &amp;#039;&amp;#039;&amp;#039;ExP1&amp;#039;&amp;#039;&amp;#039; - Exam programming task, tested&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=Assignments=&lt;br /&gt;
* Homeworks and other assignments are available from e-Studijas&lt;br /&gt;
&lt;br /&gt;
{{MCU_resources}}&lt;/div&gt;</summary>
		<author><name>Leo</name></author>
		
	</entry>
</feed>