X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=rtl%2FOut.java;h=99899776c45ad838e94f8649f1d6fe9bd2049e54;hb=75d0fd92a5342358f37ed9369ccce9355273e51a;hp=ca773d2c167f858dc7def8fd7d72977e57233791;hpb=eaa8fd70cad0ba4e5ce8ab219d6964b47f647ec6;p=dsw-obn.git diff --git a/rtl/Out.java b/rtl/Out.java index ca773d2..9989977 100644 --- a/rtl/Out.java +++ b/rtl/Out.java @@ -7,12 +7,32 @@ public class Out } - public static void Int(int i, int n) + public static void Char(byte ch) + { + System.out.write(ch); + } + + public static void String(byte[] str) + { + int i = 0; + while(str[i] != 0) + { + i += 1; + } + System.out.write(str, 0, i); + } + + public static void Int(long i, short n) { System.out.print(i); } - public static void Real(float x, int n) + public static void Real(float x, short n) + { + System.out.print(x); + } + + public static void LongReal(double x, short n) { System.out.print(x); }