If the motherboard in your computer will accommodate "dual-channel memory", I believe you need two identical memory modules to take advantage of that capability. Otherwise, two modules of different size, as the 256MB and 512MB you mentioned, should work fine.