Article View: comp.sys.atari.st
Article #20353Re: 823k compression source
From: only_bbs!King_Midas
Date: Sat, 02 Jan 1993 20:29
Date: Sat, 02 Jan 1993 20:29
33 lines
1557 bytes
1557 bytes
Luckily, the ST's built-in GEMDOS and XBIOS functions have no problem dealing with 10-sector, 83-track formats. It's the 11-sector format that required messing with low-level disk functions (VERY ugly). floprd(long a, 0L, int d, int s, int t, int si, int n) flopwr(long a, 0L, int d, int s, int t, int si, int n) flopfmt(long a, 0L, int d, int s, int t, int si, int i, long magic, int virgin) a = address to buffer d = disk drive number (0/1) s = sector number; with flopfmt it contains the number of sectors/track t = track number si = side (0/1) n = number of sectors to be read or written i = interleave (usually 1). determines the order of the sectors within tracks. magic = $87654321 (a constant used for formatting) virgin = intitial value of sectors (usually $E5E5). Can be any number as long as the high nibbles are not F. In addition to using flopfmt, you must write a bootsector to the disk. I'll have to find the relevant info, but I recommend you look in some book that covers XBIOS and GEMDOS (e.g., Compute's Third Book, ST Drives Inside & Out, a good C manual, etc). -- via Fortress Gateway at uumind.mind.ORG
Technical Details
Message-ID:
<2414369@under.mind.ORG>Path:
arc1-ca.pugleaf.net!sparky!uunet!wupost!emory!uumind!undermind!only_bbs!newsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!emory!uumind!undermind!only_bbs!news From: only_bbs!King_Midas@under.mind.ORG Newsgroups: comp.sys.atari.st Subject: Re: 823k compression source Message-ID: <2414369@under.mind.ORG> Date: 02 Jan 93 15:29:00 -0500 Organization: Not really. X-newsreader: Fortress v1f-75 Lines: 33