mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
[Stage2/x86] Fix 8-bit register order
This commit is contained in:
parent
37695ed81e
commit
c405844b0a
@ -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 {
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user