Exemple #1
0
 public void SetVector(Vector vector, ushort addr)
 {
     Memory [vector.Lsb] = (byte) (addr & 0xFF);
     Memory [vector.Msb] = (byte) (addr >> 8);
 }
Exemple #2
0
 public ushort GetVector(Vector vector)
 {
     return (ushort) (Memory [vector.Lsb] | (Memory [vector.Msb] << 8));
 }