Class RTUtil

java.lang.Object
svm.RTUtil

public class RTUtil extends Object

Runtime Utilities.

Link to GitHub: Source File.

Author:
Øystein Myhre Andersen
  • Field Details

  • Constructor Details

    • RTUtil

      public RTUtil()
      Default Constructor
  • Method Details

    • init

      public static void init()
      Initiate local data
    • set_ITEM_SIZE

      public static void set_ITEM_SIZE(int itemSize)
      Update the 'itemSize' variable in RTS-Module RT.
      Parameters:
      itemSize - the new value
    • set_STATUS

      public static void set_STATUS(int status)
      Update the 'status' variable in RTS-Module RT.
      Parameters:
      status - the new value
    • edStatus

      public static String edStatus(int status)
      Returns the String description of the given 'status'
      Parameters:
      status - the status code
      Returns:
      the String description of the given 'status'
    • length

      public static int length(ObjectAddress ent)
      Returns the length of an Entity
      Parameters:
      ent - the Entity
      Returns:
      the length of an Entity
    • dumpEntity

      public static void dumpEntity(ObjectAddress ent)
      Debug utility: Dump an Entity
      Parameters:
      ent - the Entity
    • entID

      public static String entID(ObjectAddress ent)
      Returns the Entity's ident
      Parameters:
      ent - the Entity
      Returns:
      the Entity's ident
    • edIDT

      private static String edIDT(ObjectAddress idt, int ncha)
      Returns an 'idfier' String
      Parameters:
      idt - address to the first character
      ncha - the number of characters
      Returns:
      an 'idfier' String
    • printEntity

      public static boolean printEntity(ObjectAddress ent)
      Debug utility: Print an Entity
      Parameters:
      ent - the Entity
      Returns:
      false: no more to print
    • dumpCurins

      public static void dumpCurins()
      Debug utility: Dump current instance
    • printCurins

      public static void printCurins()
      Debug utility: Print current instance
    • printPool

      public static void printPool(String segID)
      Debug utility: Print a complete Pool
      Parameters:
      segID - the Segment ident of the Pool
    • printBasicIO

      public static void printBasicIO()
      Debug utility: Print BASICIO
    • prt

      private static void prt(DataSegment dseg, ObjectAddress ent, String ident, int ofst)
      Internal utility: prt
      Parameters:
      dseg - the DataSegment
      ent - the Enity
      ident - the ident
      ofst - the offset
    • printDSEG_RT

      public static void printDSEG_RT()
      Debug utility: Print DSEG_RRT
    • edSort

      public static String edSort(int sort)
      Edit and return the entity sort
      Parameters:
      sort - the entity sort
      Returns:
      the entity sort
    • move

      public static void move(String src, ObjectAddress dst)
      Move a String's characters to an area starting at 'dst'
      Parameters:
      src - the source String
      dst - the start of the destination area
    • move

      public static void move(ObjectAddress src, ObjectAddress dst, int lng)
      Move values from one area to another.
      Parameters:
      src - the start of the source area
      dst - the start of the destination area
      lng - the length of the areas