stage1: fix segment order for BIOS int

This commit is contained in:
anna 2023-05-31 19:57:56 +02:00
parent 4c8a00abc4
commit b175190db1
Signed by: fef
GPG key ID: 2585C2DC6D79B485

View file

@ -34,8 +34,8 @@ GLOBL __do_bios_int
pop %edx // '4 (44 <- 48)
pop %eax // '3 (40 <- 44)
pop %es // '2 (38 <- 40)
pop %ds // '2 (36 <- 38)
pop %ds // '2 (38 <- 40)
pop %es // '2 (36 <- 38)
/* call that polymorphism! */
.byte 0xcd /* opcode for `int imm8` */
@ -44,8 +44,8 @@ GLOBL __bios_int_number, object
/* be careful not to touch EFLAGS now because that's our return value */
push %ds // '2 (36 -> 38)
push %es // '2 (38 -> 40)
push %es // '2 (36 -> 38)
push %ds // '2 (38 -> 40)
push %eax // '3 (40 -> 44)
push %edx // '4 (44 -> 48)