Commit 751265e9 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

ia32: Correct emitter of Inport and Outport.

The operands were swapped.
parent 75d2e4ae
......@@ -1332,7 +1332,7 @@ Outport => {
state => "pinned",
reg_req => { in => [ "edx", "eax", "none" ], out => [ "none" ] },
ins => [ "port", "value", "mem" ],
emit => "out%M %^S0, %#S1",
emit => "out%M %#S1, %^S0",
latency => 1,
mode => mode_M,
modified_flags => $status_flags
......@@ -1347,7 +1347,7 @@ Inport => {
reg_req => { in => [ "edx", "none" ], out => [ "eax", "none" ] },
ins => [ "port", "mem" ],
outs => [ "res", "M" ],
emit => "in%M %#D0, %^S0",
emit => "in%M %^S0, %#D0",
latency => 1,
mode => mode_T,
modified_flags => $status_flags
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment