disk_load:

push dx
mov ah, 0x02		;(Directive for Load Interupt)
mov al, dh		;Read dh Sectors (So dh is function-parameter!)
mov ch, 0x00		;select Cylinder 0
mov dh, 0x00		;Select Head 0
mov cl, 0x02		;Start reading from Sector 0x02
			;Read from which FloppyDrive dl is missing, might be parameter as well
			;Save location is missing, might be parameter as well

int 0x13		;execute load


jc disk_error1 		;So if there is an error in loading, jc will execute the jump to disk_error

pop dx
cmp dh, al		;As we stored dx we now can compare the Sectors we wanted to the Sectors actual loaded
jne disk_error2		;If there is an imbalance, we will jump

ret			;Jump back to main

disk_error1:

mov bx, DISK_ERROR_MSG
call print_string
jmp endDiskLoad

disk_error2:
mov bx, DISK_ERROR_MSGS
call print_string
jmp endDiskLoad

endDiskLoad:
jmp $

;Global Variable
DISK_ERROR_MSG: db "An Error occured (Code 0x0001)! Error while reading sectors from disk",0
DISK_ERROR_MSGS: db "An Error occured (Code 0x0002)! Failed to read all sectors",0

