Code: Select all
mov ax, 25
int 23h
Code: Select all
mov ax, 25
int 23h
thank you for not realizing what i was sayingiansjack wrote:Thanks for letting us know. A function to read a sector from a storage device is a useful component of any OS.
Code: Select all
push cs
pop ax
mov [142], ax
mov [140], interrupt23Handler
interrupt23Handler:
// Put Read Code Here
thank youSpyderTL wrote:Check the wiki page. It has everything you need to update the IVT with your own custom interrupt handler.
IVT
But the short answer is going to be something like:
Your IVT starts at address 0x0, and contains 256 entries of 4 bytes each. Each entry has the segment and offset of that particular event handler, so the INT 0 handler is at address 0x00, and the INT 1 handler is at address 0x04, and so on.Code: Select all
push cs pop ax mov [142], ax mov [140], interrupt23Handler interrupt23Handler: // Put Read Code Here
Let us know if you have any questions.