private void writeFixedLengthString(String str, int offset, int length) {
		byte[] translated = translateString(str);
		int len = Math.min(translated.length, length);
		System.arraycopy(translated, 0, rom, offset, len);
		if (len < length) {
			rom[offset + len] = (byte) 0xFF;
			len++;
		}
		while (len < length) {
			rom[offset + len] = 0;
			len++;
		}
	}