Code: Select all
ReadDiskCHS:
push ax
push bx
xor bl,bl
mov al,'1'
Call PrintChar
pop bx
pop ax
mov AH,2
int 13h ;Call BIOS
push ax
push bx
xor bl,bl
mov al,'2'
Call PrintChar
pop bx
pop ax
jc ReadDiskCHS ;If there was an error restart
ret ;Else return
Code: Select all
push ax
push bx
xor bl,bl
mov al,'1'
Call PrintChar
pop bx
pop ax
Here is the code for PrintChar:
Code: Select all
PrintChar:
xor bh,bh
mov ah,0eh
int 10h
ret