ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/macos_util.cpp
(Generate patch)

Comparing BasiliskII/src/macos_util.cpp (file contents):
Revision 1.1.1.1 by cebix, 1999-10-03T14:16:25Z vs.
Revision 1.5 by cebix, 2000-07-14T21:42:05Z

# Line 1 | Line 1
1   /*
2   *  macos_util.cpp - MacOS definitions/utility functions
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
# Line 34 | Line 34
34   *  Enqueue QElem to list
35   */
36  
37 < void Enqueue(uint32 elem, uint32 list)
37 > void EnqueueMac(uint32 elem, uint32 list)
38   {
39          WriteMacInt32(elem + qLink, 0);
40          if (!ReadMacInt32(list + qTail)) {
# Line 56 | Line 56 | static bool is_drive_number_free(int num
56          uint32 e = ReadMacInt32(0x308 + qHead);
57          while (e) {
58                  uint32 d = e - dsQLink;
59 <                if (ReadMacInt16(d + dsQDrive) == num)
59 >                if ((int)ReadMacInt16(d + dsQDrive) == num)
60                          return false;
61                  e = ReadMacInt32(e + qLink);
62          }
# Line 85 | Line 85 | void MountVolume(void *fh)
85   }
86  
87  
88 /*
89 *  Test if basic MacOS initializations (of the ROM) are done
90 */
91
92 bool HasMacStarted(void)
93 {
94        return ReadMacInt32(0xcfc) == 'WLSC';   // Mac warm start flag
95 }
96
97
88   /*
89   *  Calculate disk image file layout given file size and first 256 data bytes
90   */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines