mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 09:02:32 +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,
|
ax, cx, dx, bx, sp, bp, si, di,
|
||||||
|
|
||||||
// 16-23, 8-bit registers. id is int value - 16.
|
// 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.
|
/// Returns the bit-width of the register.
|
||||||
pub fn size(self: @This()) u7 {
|
pub fn size(self: @This()) u7 {
|
||||||
|
@ -33,7 +33,7 @@ pub const Register = enum(u8) {
|
|||||||
|
|
||||||
// 48-63, 8-bit registers. 56-63 are extended.
|
// 48-63, 8-bit registers. 56-63 are extended.
|
||||||
// id is int value - 48.
|
// 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,
|
r8b, r9b, r10b, r11b, r12b, r13b, r14b, r15b,
|
||||||
|
|
||||||
/// Returns the bit-width of the register.
|
/// Returns the bit-width of the register.
|
||||||
|
Loading…
Reference in New Issue
Block a user