flat assembler
Message board for the users of flat assembler.

Index > OS Construction > floppy image directly on fasm

Author
Thread Post new topic Reply to topic
uri



Joined: 09 Apr 2004
Posts: 43
Location: L'viv, Ukraine
uri 24 Mar 2005, 19:44
Maybe for someone it will be useful?

floppy.asm is the source for 1.44 floppy image.
Compile:
fasm floppy.asm
rawrite -f floppy.bin -d A

Usage:
add your external files as ROOT_ENTRY `filename, `name, `extension, attribute, file can have size larger than one cluster.

as example i am added original msdos 6.22 boot files (io.sys, msdos.sys, command.com - not in distr, you can find it yourself) and some kernel.com (with sources Smile

You can change some floppy parameters (SECTORS_PER_CLUSTER, NUMBER_OF_FATS, SECTORS_PER_FAT, SECTORS_PER_ROOT and RESERVED_SECTORS(!), maybe NUMBER_OF_TRACKS and SECTORS_PER_TRACK).
Because algorithm of calculation SECTORS_PER_FAT was wrote many times ago (in masm:) i do not remember all details and don't fully understand it, but it works, and what can i see - works fine. In generally this algorihtm try to calculate optimal distribution between FAT and DATA area.

If you will find errors and bugs - you can post it here. I will be very glad.
In feature i will add support various BYTES_PER_SECTOR and HIDDEN_SECTORS.

And one moment - TILE, you can delete this label and all after it. I add it only for stupid MS VPC, which understands only full-sized images. (he-he, i'm using image, and do not copy it to floppy before run...)

Fasm - the best!


Description: source with msdos 6.22 boot sector
Download
Filename: source.zip
Filesize: 3 KB
Downloaded: 565 Time(s)

Post 24 Mar 2005, 19:44
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
mike.dld



Joined: 03 Oct 2003
Posts: 235
Location: Belarus, Minsk
mike.dld 24 Mar 2005, 21:40
This is a small app written to make MenuetOS installations w/o floppy. It creates .exe file containing stub program and floppy image, generated by scanning current directory and adding all found files to the image. It works fine except that old MenuetOS installer adds 0x5000 bytes to the image, my is just 0x0400 (14 times less). You still can generate compatible installations with it by changing MAGIC_NUM in COMMON.INC from 0x0400 to 0x5000. Some guide to how to use this tool is in the README.TXT file in archive.


Description: MenuetOS setup (.exe) maker
Download
Filename: meosinst.7z
Filesize: 5.7 KB
Downloaded: 516 Time(s)

Post 24 Mar 2005, 21:40
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.