i’m working on a small ASM program that needs to load another flat binary from
the disk/floppy/hdd w/e, and then start executing it. i can’t seem to figure out how to scan
the local folder, or system for a file say main.bin, and then jump to the main: part of the code.
so for example we have a small file called main.bin, which is a
compiled flat binary of nasm code. there is a label called main:
what i need to do is find the file main.bin and load into memory
at address 0x0500, then jmp/give control to the loaded program and
have it start working at the main: label in the code.
if anyone can help me with this, it would be appreciated. thanks for reading 🙂
The details will depend on your hardware architecture and on your file system. Can you give us some more details?
Sounds like you’re developing your own operating system. Particularly since you’ve tagged your question with “bootloader”. Or are you hoping to do this within some other operating system?