1 |
|
/* |
2 |
|
* disk.cpp - Generic disk driver |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-1999 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2000 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
268 |
|
info->num_blocks = SysGetFileSize(info->fh) / 512; |
269 |
|
info->to_be_mounted = true; |
270 |
|
} |
271 |
< |
D(bug(" %ld blocks\n", info->num_blocks)); |
271 |
> |
D(bug(" %d blocks\n", info->num_blocks)); |
272 |
|
WriteMacInt16(info->status + dsDriveSize, info->num_blocks & 0xffff); |
273 |
|
WriteMacInt16(info->status + dsDriveS1, info->num_blocks >> 16); |
274 |
|
|
484 |
|
// Drive-specific codes |
485 |
|
switch (code) { |
486 |
|
case 8: // Get drive status |
487 |
< |
memcpy(Mac2HostAddr(pb + csParam), Mac2HostAddr(info->status), 22); |
487 |
> |
Mac2Mac_memcpy(pb + csParam, info->status, 22); |
488 |
|
return noErr; |
489 |
|
|
490 |
|
default: |