mirror of
https://github.com/Michaelangel007/apple2_prodos_utils.git
synced 2025-01-14 01:29:46 +00:00
Add DskGetIndexBlock(), DskPutIndexBlock() prodos helpers
This commit is contained in:
parent
866304d006
commit
b31fd85c18
@ -58,6 +58,25 @@
|
|||||||
gaDsk[ offset + 2 ] = (val >>16) & 0xFF;
|
gaDsk[ offset + 2 ] = (val >>16) & 0xFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int DskGetIndexBlock( int offset, int index )
|
||||||
|
{
|
||||||
|
int block = 0
|
||||||
|
| (gaDsk[ offset + index + 0 ] << 0)
|
||||||
|
| (gaDsk[ offset + index + 256 ] << 8)
|
||||||
|
;
|
||||||
|
return block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
000:lo0 lo1 lo2 ...
|
||||||
|
100:hi0 hi1 hi2 ...
|
||||||
|
*/
|
||||||
|
void DskPutIndexBlock( int offset, int index, int block )
|
||||||
|
{
|
||||||
|
gaDsk[ offset + index + 0 ] = (block >> 0) & 0xFF;
|
||||||
|
gaDsk[ offset + index + 256 ] = (block >> 8) & 0xFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// --- Name ---
|
// --- Name ---
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user