Last active
April 4, 2019 00:36
-
-
Save tlindner/853f13bb4281219b224f13b7da89e001 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Color Computer OS-9 disk format. | |
unused = 0xff | |
lsn[0..] = input[0..255] | |
fds[0..] = lsn[0][8..11]:be { | |
fds.att:os9perm = lsn[*][0],os9perm | |
fds.own:be = lsn[*][1..2] | |
fds.dat:be = lsn[*][3..7] | |
fds.lnk = lsn[*][8] | |
fds.size:be = lsn[*][9..12] | |
fds.creat:os9date = lsn[*][13..15] | |
fds.segments = lsn[*][16..255] | |
fds.lsnseg[0..]:be = fds.segements[0..2](3..4) | |
fds.lsnsize[0..]:be = fds.segements(0..2)[3..4] | |
fds.data = lsn[fds.lsnseg[0..], | |
done 0, | |
next 1, | |
done fds.lsnseg[0..]+fds.lsnsize[0..]] | |
fds.recurse = fds.att matches 0x1XXXXXXX { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment