Ejemplo n.º 1
0
        public override void Execute()
        {
            string s = ZText.DecodeStringWithLen((ushort)Machine.Memory.PC, out int length);

            Machine.Memory.PC += length;
            Machine.Output.PrintString(s);
        }
Ejemplo n.º 2
0
        public override void Execute(ushort aPackedAddress)
        {
            long byteAddress = 0;

            if (Machine.Story.Header.Version <= FileVersion.V3)
            {
                byteAddress = aPackedAddress << 1;
            }
            else if (Machine.Story.Header.Version <= FileVersion.V5)
            {
                byteAddress = aPackedAddress << 2;
            }

            string s = ZText.DecodeStringWithLen(byteAddress, out _);

            Machine.Output.PrintString(s);
        }