txtString("\nprompt%",3,0); chain function to display which works well- and
compilation:
Code: Select all
nasm -f elf prm32.asm
gcc -ffreestanding -c kernel.c -o kernel.o
gcc -ffreestanding -c anexo.c -o anexo.o
gcc -ffreestanding -c video_text.c -o video_text.o
gcc -ffreestanding -c draw_logo_init.c -o draw_logo_init.o
gcc -ffreestanding -c in_out.c -o in_out.o
ld -o kernel.bin -Ttext 0x1000 kernel.o prm32.o in_out.o video_text.o draw_logo_init.o anexo.o --oformat binary
nasm boot.asm -o boot.bin
dd if=/dev/zero of=image.bin bs=512 count=2880
dd if=boot.bin of=image.bin conv=notrunc
dd if=kernel.bin of=image.bin conv=notrunc seek=1
cat image.bin > os.img
qemu os.img
and does not write anything, I suspect that overwrites the kernel as with any set of instrutions eg, a for (lalalal) { Babab} instead txtString, i.e, if append more code to some sources file then crash.
txtCadena("\nprompt%",3,0);
int ff;
for(ff=0;ff<255;ff++)
{
}
is the same sio add more code to any of the other sources, code cycles ... so basic that they should not do so thunder or any other code ... So I can not go programmed and adding features
I suspect it's because of the size of the image, but since I was testing, thanks in advance, sorry for my English.