Package drivers.win

Class WinSpecialFile

java.lang.Object
drivers.win.WinFile
drivers.win.WinSpecialFile

public class WinSpecialFile extends WinFile
This is the special access file ("*d2d") on a qxl.win drive. All file positions are actually multiple of 512 bytes (setting pos#1 will set the file position to 512 etc).
  • Constructor Details

    • WinSpecialFile

      public WinSpecialFile(WinDrive drive)
      Creates the object.
      Parameters:
      drive - on what drive the special file is to be opened.
  • Method Details

    • close

      public void close()
      Closes the special file : the drive is notified of this.
      Overrides:
      close in class WinFile
    • handleTrap3

      public int handleTrap3(int trapKey, MC68000Cpu cpu)
      This dispatches the file I/O routines (=SMSQE TRAP#3 routines). This special file only allows few operations.
      Overrides:
      handleTrap3 in class WinFile
      Parameters:
      trapKey - what kind of trap#3 are we dealing with?
      cpu - the current CPU doing the call.
      Returns:
      SMSQE error/success code. NOTE: the switch cases all return immediately with a success/error code.