Skip to content

Commit 3fef245

Browse files
committed
content/courses/Ada_For_The_Embedded_C_Developer/chapters/04_Embedded.rst: correct rdtsc register order
1 parent 918ccf1 commit 3fef245

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/courses/Ada_For_The_Embedded_C_Developer/chapters/04_Embedded.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ assembler as well as source-level variables to be used for input and output:
180180
begin
181181
Asm ("rdtsc",
182182
Outputs =>
183-
(Unsigned_32'Asm_Output ("=a", High),
184-
Unsigned_32'Asm_Output ("=d", Low)),
183+
(Unsigned_32'Asm_Output ("=a", Low),
184+
Unsigned_32'Asm_Output ("=d", High)),
185185
Volatile => True);
186186

187187
Counter :=

0 commit comments

Comments
 (0)