Link to home
Start Free TrialLog in
Avatar of Nadir Van Thielen
Nadir Van ThielenFlag for Belgium

asked on

BIOS and assembler

Do any one knows what HEX code i need to get the C: drive label

for diskette (a) i uze
 disk_buffer + 3h		; Disk label from Drive A:

Open in new window


but drive C: is harder to get.

disk_buffer	equ	24576
..
.
mov cx, 1				; Load first disk sector into RAM
mov dx, 0
mov bx, disk_buffer
	
mov ah, 2
mov al, 1
stc
int 13h					; BIOS load sector call

mov si, disk_buffer + 3h		; Disk label from Drive A:
call os_print_string
	

Open in new window


Tnx.
Avatar of John
John
Flag of Canada image

What are you try to accomplish? The C: drive label is easily available and changeable outside of BIOS. So I do not think the proper label is even in there.
Avatar of Nadir Van Thielen

ASKER

accomplish ?
copy files from drive a: and finical drive C:
That is not in the BIOS but in the Windows OS structure. I recall there is a registry entry that may contain this.
I am not running in windows , running on e kernel from mikeOS
To the very best of my knowledge, what you want does not exist in BIOS.

Does your kernel OS have any ability to understand drives ?
the is is a topic how you can copy and rename files but not to get to a other drive
the for i need the get information from the bios where that address is.
ASKER CERTIFIED SOLUTION
Avatar of John
John
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Shaun Vermaak
BIOS was a suggested topic. OP is talking about Assembly
thas true , but whit int 13h explanation on https://en.wikipedia.org/wiki/INT_13H .
the is a seddie mummer to access it , but no worry.

i gonna try to make a bios int13 printout program.
Thanks for the update. If you post another question, post a link here as well.
Lookup BIOS INT 13H calls