Planering inbyggda system
From Datateknik
(Difference between revisions)
(→Labb 1 - von Neumann & Assemblerprogrammering) |
(→Labb 1 - von Neumann & Assemblerprogrammering) |
||
Line 16: | Line 16: | ||
register int temp; | register int temp; | ||
register float x; | register float x; | ||
− | + | ||
temp = 4; | temp = 4; | ||
x = 3.1415; | x = 3.1415; | ||
− | + | ||
return temp + (int) x; | return temp + (int) x; | ||
} | } |
Revision as of 13:47, 14 October 2019
prequel
Contents |
Kursböcker
LABBAR
Labb 1 - von Neumann & Assemblerprogrammering
von Neumann
ARM assembler
Vilken assembler passar till följande kod:
int square(int num) { register int temp; register float x; temp = 4; x = 3.1415; return temp + (int) x; }
Kontrollera på sidan https://godbolt.org/ Glöm inte att ändra till gcc för ARM