Explorar el Código

+ added PrintShortString to the ZX Spectrum RTL to help with testing

git-svn-id: branches/z80@45099 -
nickysn hace 5 años
padre
commit
57912f673f
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  1. 9 0
      rtl/zxspectrum/system.pp

+ 9 - 0
rtl/zxspectrum/system.pp

@@ -40,6 +40,7 @@ var
 procedure OpenChannel(Chan: Byte);
 procedure OpenChannel(Chan: Byte);
 procedure PrintChar(Ch: Char);
 procedure PrintChar(Ch: Char);
 procedure PrintLn;
 procedure PrintLn;
+procedure PrintShortString(const s: ShortString);
 procedure PrintHexDigit(const d: byte);
 procedure PrintHexDigit(const d: byte);
 procedure PrintHexByte(const b: byte);
 procedure PrintHexByte(const b: byte);
 procedure PrintHexWord(const w: word);
 procedure PrintHexWord(const w: word);
@@ -243,6 +244,14 @@ begin
   PrintChar(Char(Y-1));
   PrintChar(Char(Y-1));
 end;
 end;
 
 
+procedure PrintShortString(const s: ShortString);
+var
+  i: byte;
+begin
+  for i:=1 to length(s) do
+    PrintChar(s[i]);
+end;
+
 {*****************************************************************************
 {*****************************************************************************
                          SystemUnit Initialization
                          SystemUnit Initialization
 *****************************************************************************}
 *****************************************************************************}