diff --git a/src-self-hosted/codegen/x86.zig b/src-self-hosted/codegen/x86.zig index 60872dedb9..da0f4e722a 100644 --- a/src-self-hosted/codegen/x86.zig +++ b/src-self-hosted/codegen/x86.zig @@ -7,7 +7,7 @@ pub const Register = enum(u8) { ax, cx, dx, bx, sp, bp, si, di, // 16-23, 8-bit registers. id is int value - 16. - al, bl, cl, dl, ah, ch, dh, bh, + al, cl, dl, bl, ah, ch, dh, bh, /// Returns the bit-width of the register. pub fn size(self: @This()) u7 { diff --git a/src-self-hosted/codegen/x86_64.zig b/src-self-hosted/codegen/x86_64.zig index e9ed2d3171..0326f99b99 100644 --- a/src-self-hosted/codegen/x86_64.zig +++ b/src-self-hosted/codegen/x86_64.zig @@ -33,7 +33,7 @@ pub const Register = enum(u8) { // 48-63, 8-bit registers. 56-63 are extended. // id is int value - 48. - al, bl, cl, dl, ah, ch, dh, bh, + al, cl, dl, bl, ah, ch, dh, bh, r8b, r9b, r10b, r11b, r12b, r13b, r14b, r15b, /// Returns the bit-width of the register.