implement writing to palette dual-port ram. Issue #16.