[Stage2/x86] Fix 8-bit register order

This commit is contained in:
Noam Preil 2020-06-05 14:11:30 -04:00 committed by Andrew Kelley
parent 37695ed81e
commit c405844b0a
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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.