Пример #1
0
 public int read_int_big(int a) {
   x68000.clock_count += x68000.clock_unit * 2;
   return ((m[a] & 255) << 24)
       + ((m[a + 1] & 255) << 16)
       + ((m[a + 2] & 255) << 8)
       + (m[a + 3] & 255);
 }
Пример #2
0
 public void write_byte(int a, byte b) {
   x68000.clock_count += x68000.clock_unit;
   m[a] = b;
   if (a == 15532075) {
     x68000.keyboard.setKana(b);
   } else if (a == 15532121) {
     x68000.keyboard.setXchg(b);
   }
 }
Пример #3
0
 public void write_short_big(int a, short s) {
   x68000.clock_count += x68000.clock_unit;
   m[a] = (byte) (s >>> 8);
   m[a + 1] = (byte) s;
   if (a >= 15532074 && a <= 15532075) {
     x68000.keyboard.setKana(m[15532075]);
   } else if (a >= 15532120 && a <= 15532121) {
     x68000.keyboard.setXchg(m[15532121]);
   }
 }
Пример #4
0
 public void write_int_big(int a, int i) {
   x68000.clock_count += x68000.clock_unit * 2;
   m[a] = (byte) (i >>> 24);
   m[a + 1] = (byte) (i >>> 16);
   m[a + 2] = (byte) (i >>> 8);
   m[a + 3] = (byte) i;
   if (a >= 15532072 && a <= 15532075) {
     x68000.keyboard.setKana(m[15532075]);
   } else if (a >= 15532118 && a <= 15532121) {
     x68000.keyboard.setXchg(m[15532121]);
   }
 }
Пример #5
0
 public boolean init(X68000 x68000) {
   this.x68000 = x68000;
   for (int i = 0; i < data.length; i++) {
     m[15532032 + i] = (byte) data[i];
   }
   String boot = x68000.getStringParameter("BOOT", null);
   if (boot != null) {
     if (boot.compareTo("HD0") == 0) {
       m[15532056] = (byte) -128;
       m[15532057] = 0;
     }
   }
   return true;
 }
Пример #6
0
 public short read_short_big(int a) {
   x68000.clock_count += x68000.clock_unit;
   return (short) ((m[a] << 8) + (m[a + 1] & 255));
 }
Пример #7
0
 public byte read_byte(int a) {
   x68000.clock_count += x68000.clock_unit;
   return m[a];
 }