Has anyone here written interrupts for disk access in their own operating system(s)? I'm trying to get a better understanding of positioning data on a hard disk without existing operating system or BIOS interrupts. I'm also trying to learn more about advantages/disadvantages using writing by...
You can use a High-Level flow Directive in MASM. It would look something like this:
.IF(AL<10)
add al,1
.ELSEIF(AL<16)
add al,2
.ELSE
mov al,3
.ENDIF
This won't work with NASM as far as I'm aware. You would have to do some form of a JUMP instruction based on a CMP instruction. That...
1) How do I make a boot sector?
^Once your kernel is written, you can use the following command to write it out to a floppy to boot from:
debug <filename>
- w 100 0 0 1
- q
^However, your assembly code would determine where in memory it executes. To become the kernel, it would have to move...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.