Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,078 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: assembler help [Re: ] #319582
04/15/10 22:15
04/15/10 22:15
Joined: Aug 2005
Posts: 1,230
M
MichaelGale Offline
Serious User
MichaelGale  Offline
Serious User
M

Joined: Aug 2005
Posts: 1,230
Not surprised it doesn't boot. I assume (based on the name of the tool you have used) that it formats the image using a FAT (either FAT12, FAT16 or FAT32) filesystem and then inserts your bootloader and kernel as regular files which means the bootloader won't be located in the first sector of the image. Even if it should insert the bootloader at the correct position, your kernel will probably end up as file and your bootloader does not contain the required code to parse the FAT which would be required in that scenario.

You should stick to the program you first wrote because that is easier. I also recommend that you first compile your kernel without the linker stuff (and consequently without the bit written in C). Just write a simple 16 bit kernel in assembler that prints a string to the screen so you can test whether it gets called. Once you get that working, try to enter protected mode and then you can load a program written in C/C++.


Your friendly mod is at your service.
Re: assembler help [Re: MichaelGale] #319757
04/17/10 15:21
04/17/10 15:21

F
Fear411
Unregistered
Fear411
Unregistered
F



ok i used only the two asm files. When i compile them and copy them together then it works but if i use my createFloppy file then it doesnt boot.

Thanks for you help,
Fear

Re: assembler help [Re: ] #320250
04/20/10 16:32
04/20/10 16:32

F
Fear411
Unregistered
Fear411
Unregistered
F



it also doesnt work if i use a real floppy. Any idea?

Re: assembler help [Re: ] #320461
04/21/10 20:27
04/21/10 20:27

F
Fear411
Unregistered
Fear411
Unregistered
F



I try to do it now with the win32 api, but i cant get it to work. This is my code:

Code:
HANDLE hFloppy = CreateFile("\\\\.\\A:", GENERIC_ALL, 0, NULL, OPEN_EXISTING, FILE_SHARE_WRITE, NULL);
 WriteFile(hFloppy, bootBuf, 512, NULL, NULL);
 CloseHandle(hFloppy);



Re: assembler help [Re: ] #320471
04/21/10 21:01
04/21/10 21:01

F
Fear411
Unregistered
Fear411
Unregistered
F



it works now. I just had to set administrative rights for the exe, windows 7...
I can write the bootloader into sector 0 with the c program, but it doesnt wrote the kernel into sector 1.

Re: assembler help [Re: ] #320542
04/22/10 15:10
04/22/10 15:10

F
Fear411
Unregistered
Fear411
Unregistered
F



found a program that works:

http://uranus.chrysocome.net/linux/rawwrite-old.htm

Thanks to everyone.

EDIT: Forgott about the edit function wink

Last edited by Fear411; 04/22/10 15:11.
Page 2 of 2 1 2

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1