aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/x86_64/include/arch/device_io/port_io.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86_64/include/arch/device_io/port_io.hpp b/arch/x86_64/include/arch/device_io/port_io.hpp
index 65e58e3..70773dd 100644
--- a/arch/x86_64/include/arch/device_io/port_io.hpp
+++ b/arch/x86_64/include/arch/device_io/port_io.hpp
@@ -69,9 +69,9 @@ namespace arch::io
//! The assembly templates used for writing to an I/O port.
constexpr auto static code = std::array{
- std::string_view{"mov %[port], %%dx\nmov %%dx, %[data]\nout %%al, %%dx"},
- std::string_view{"mov %[port], %%dx\nmov %%dx, %[data]\nout %%ax, %%dx"},
- std::string_view{"mov %[port], %%dx\nmov %%dx, %[data]\nout %%eax, %%dx"},
+ std::string_view{"mov %[port], %%dx\nmov %[data], %%al\nout %%al, %%dx"},
+ std::string_view{"mov %[port], %%dx\nmov %[data], %%ax\nout %%ax, %%dx"},
+ std::string_view{"mov %[port], %%dx\nmov %[data], %%eax\nout %%eax, %%dx"},
};
};