nasm
Boot loader doesn’t jump to kernel code
The primary problems with this code were: ES:BX was pointing to the wrong segment:offset to load the kernel into Wrong sector was being loaded so kernel wasn’t what was expected The first one was in this code: mov bx,0x7E00 mov es,bx xor bx,bx The question wants to load the sector from disk to 0x0000:0x7E00(ES:BX). This … Read more
NASM – Variable Basics
‘mystring + 1’ is the address of the second byte of the string. mov al, mystring + 1 stores (the least significant byte of) that address in al. To indicate that you don’t want to store the address but the byte located at that address, write this: mov al, [mystring + 1] To declare a … Read more