comparison src/fdl/PSX.java @ 26:d7d70edc9c7c

META_STOP worked.
author kono
date Wed, 20 Aug 2008 17:05:33 +0900
parents 330fa49bc4fd
children 846c6c14cf04
comparison
equal deleted inserted replaced
25:330fa49bc4fd 26:d7d70edc9c7c
56 static final int INT_SIZE =4; 56 static final int INT_SIZE =4;
57 static final int SHORT_SIZE =2; 57 static final int SHORT_SIZE =2;
58 58
59 static final int PRIVILEGED_ID_START = 32768; 59 static final int PRIVILEGED_ID_START = 32768;
60 static final int PRIVILEGED_ID_END = 36864; 60 static final int PRIVILEGED_ID_END = 36864;
61 static final int META_STOP = PRIVILEGED_ID_START; 61 static public final int META_STOP = PRIVILEGED_ID_START;
62 static final int META_MONITOR = PRIVILEGED_ID_START+1; 62 static public final int META_MONITOR = PRIVILEGED_ID_START+1;
63 static final int META_MONITOR_DATA = PRIVILEGED_ID_START+2; 63 static public final int META_MONITOR_DATA = PRIVILEGED_ID_START+2;
64 64
65 65
66 static void printCommand(String comment, ByteBuffer command, ByteBuffer data) { 66 static void printCommand(String comment, ByteBuffer command, ByteBuffer data) {
67 char id = (char)command.getShort(LINDA_ID_OFFSET); 67 char id = (char)command.getShort(LINDA_ID_OFFSET);
68 System.out.println(comment+" LENGTH:"+command.getInt(LINDA_PACKET_LENGTH_OFFSET)+" "+ 68 System.out.println(comment+" LENGTH:"+command.getInt(LINDA_PACKET_LENGTH_OFFSET)+" "+