pritamzope / OS

Writing & Making Operating System and Kernel parts so simple like Hello World Programs, Starting from writing Bootloaders, Hello World Kernel, GDT, IDT, Terminal, Keyboard/Mouse, Memory Manager, HDD ATA R/W, VGA/VESA Graphics
http://createyourownos.blogspot.com
663 stars 103 forks source link

Error occur when I'm compiling the .asm file #6

Closed WinsDominoes closed 5 years ago

WinsDominoes commented 5 years ago

Hello, I have an error while compiling the .asm file to .bin or .iso This is the error:

WinOS.asm:161: error: TIMES value -5 is negative

I downloaded your source code of the Hello World Extended OS Version in your blogger site. And the error occur in this line: ;/////////////////////////////////////////// ; boot loader magic number times ((0x200 - 2) - ($ - $$)) db 0x00 ;set 512 bytes for boot sector which are necessary dw 0xAA55 ; boot signature 0xAA & 0x55

Please help because, I cannot convert it into .iso or .bin. Linux Distro: Linux Mint Cinnamon 19 Thank you.

pritamzope commented 5 years ago

Well i didn't get this error on my machine. This line tells the assembler how many bytes required to build assemble in that number of bytes(which are 512 bytes here for boot signature). Have you tried to assemble simple helloworld code ?

WinsDominoes commented 5 years ago

Not yet but, today I will try @pritamzope

WinsDominoes commented 5 years ago

I already tried the Hello World Code, It worked, but I also try again the Extended Version. It worked also.