Kinsa ninyo ang nakahibalo kung unsaon pag load ug program sa memory using assembly language?
Kinsa ninyo ang nakahibalo kung unsaon pag load ug program sa memory using assembly language?
For what processor?
sa PC?
On a PC, assemby language programs are "assembled" and linked to become .COM or .EXE and can directly run by double clicking it or via console/CMD window by typing its name.
x86 nga Architecture.Originally Posted by cold_fusion
Dili!! Mag-gama unta ko ug Kernel. Pero unsa-on man sa akong kernel para maka load siya ug program padulong sa memory para ma execute iyang code!!!Originally Posted by cold_fusion
Have you tried minix 3(http://www.minix3.org)?
I think mag-create ka ug processes para siya ma load sa memory.
Ok. You could use any x86 assembler direcly compile your code to .COM not .EXE . Data segment and Code segment are moved on .EXE files.Originally Posted by pg_zland
Make your first command a long jump to CS:7C00. And the rest of your program should start at 7C00. This is very important.
Then the resulting .COM file, but starting only at offset 7C00 (the 2nd opcode), write it on the boot sector (the first sector of the disk).
This is the way booting works. When the bios boots, the boot sector is loaded at 0000:7c00 and run the rest from there.
Similar Threads |
|