public static void CALL(UInt16 Befehl, Arbeitsspeicher RAM, byte bank) { RAM.addStack(RAM.PC + 1); UInt16 newPC = (UInt16)((Befehl & 0x7FF) + ((RAM.RAM[0, 0xA] & 0x18) << 8)); //Berechnung des neuen PC RAM.PC = newPC; //PC wird in den RAM geschrieben RAM.RAM[0, 2] = (byte)(Befehl & 0xFF); RAM.RAM[1, 2] = (byte)(Befehl & 0xFF); //der PCL wird anhand des PC beschrieben RAM.incInternalTimer(2); }