stage1: fix segment order for BIOS int

main
anna 12 months ago
parent 4c8a00abc4
commit b175190db1
Signed by: fef
GPG Key ID: 2585C2DC6D79B485

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

Loading…
Cancel
Save