/* Originally written in C 1992 - David Cronin Converted to PERL 2001.Nov.03 Revised to include Hortizonal, Vertical, and Size 2009.Jan.17 Converted to Java 2009.Feb.01 Font table extract from BIOS From dos debug-command... c>debug -a 100 xxxx:0100 MOV AX,1130 xxxx:0103 MOV BH,2 xxxx:0105 INT 10 xxxx:0107 NOP xxxx:0108 INT 20 xxxx:010A -G=100 107 AX=1130 BX=0200 CX=0008 DX=0031 SP=FFEE BP=D7D2 SI=0000 DI=0000 DS=0B55 ES=C000 SS=0B55 CS=0B55 IP=0107 NV UP EI PL NZ NA PO NC 0B55:0107 90 NOP ES:BP is beginning of ROM BIOS font table. However, I begin from chr(1) rather than chr(0). -D C000:D7D2 C000:D7D0 00 00 00 00 00 00-00 00 00 00 00 00 00 00 .............. C000:D7E0 00 00 00 00 7E 81 A5 81-81 A5 99 81 81 7E 00 00 ....~........~.. C000:D7F0 00 00 00 00 7E FF DB FF-FF DB E7 FF FF 7E 00 00 ....~........~.. Compiling: javac banner.java Parameters: H/V ASCII_Fill_byte Size_factor banner text H/V - Orientation - Hortizonal or Vertical ASCII_Fill_byte - ASCII code used to paint the banner. if code is less than chr(33) or greater than chr(255), Character being paint is fill character. Size_Factor - Just what it is. banner text - If you want spaces on the line, encapsulate with double quotes. Compiling: javac banner.java NOTE: If you get the error Error: Could not find or load main class... Do the following... 1. Find a JDK version (java -version) 2. Modify the path point to the correct java. ie. set PATH="C:\Program Files (x86)\Java\jdk1.8.0_121\bin";%PATH% Execute the compiled banner.class file. NOTE: The banner.class can run under a jre. java banner H 999 2 Completed "Feb 2009" java banner V 999 2 Completed "Feb 2009" */ import java.lang.String; import java.text.*; import java.math.*; import java.util.ArrayList; import java.util.List; public class banner { public static void main(String[] ARGV) { int[] anMATRIX = {0x7E,0x81,0xA5,0x81,0xBD,0x99,0x81,0x7E, 0x7E,0xFF,0xDB,0xFF,0xC3,0xE7,0xFF,0x7E, 0x6C,0xFE,0xFE,0xFE,0x7C,0x38,0x10,0x00, 0x10,0x38,0x7C,0xFE,0x7C,0x38,0x10,0x00, 0x38,0x7C,0x38,0xFE,0xFE,0x7C,0x38,0x7C, 0x10,0x10,0x38,0x7C,0xFE,0x7C,0x38,0x7C, 0x00,0x00,0x18,0x3C,0x3C,0x18,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x3C,0x66,0x42,0x42,0x66,0x3C,0x00, 0xFF,0xC3,0x99,0xBD,0xBD,0x99,0xC3,0xFF, 0x0F,0x07,0x0F,0x7D,0xCC,0xCC,0xCC,0x78, 0x3C,0x66,0x66,0x66,0x3C,0x18,0x7E,0x18, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x7F,0x63,0x7F,0x63,0x63,0x67,0xE6,0xC0, 0x99,0x5A,0x3C,0xE7,0xE7,0x3C,0x5A,0x99, 0x80,0xE0,0xF8,0xFE,0xF8,0xE0,0x80,0x00, 0x02,0x0E,0x3E,0xFE,0x3E,0x0E,0x02,0x00, 0x18,0x3C,0x7E,0x18,0x18,0x7E,0x3C,0x18, 0x66,0x66,0x66,0x66,0x66,0x00,0x66,0x00, 0x7F,0xDB,0xDB,0x7B,0x1B,0x1B,0x1B,0x00, 0x3E,0x63,0x38,0x6C,0x6C,0x38,0xCC,0x78, 0x00,0x00,0x00,0x00,0x7E,0x7E,0x7E,0x00, 0x18,0x3C,0x7E,0x18,0x7E,0x3C,0x18,0xFF, 0x18,0x3C,0x7E,0x18,0x18,0x18,0x18,0x00, 0x18,0x18,0x18,0x18,0x7E,0x3C,0x18,0x00, 0x00,0x18,0x0C,0xFE,0x0C,0x18,0x00,0x00, 0x00,0x30,0x60,0xFE,0x60,0x30,0x00,0x00, 0x00,0x00,0xC0,0xC0,0xC0,0xFE,0x00,0x00, 0x00,0x24,0x66,0xFF,0x66,0x24,0x00,0x00, 0x00,0x18,0x3C,0x7E,0xFF,0xFF,0x00,0x00, 0x00,0xFF,0xFF,0x7E,0x3C,0x18,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x30,0x78,0x78,0x30,0x30,0x00,0x30,0x00, 0x6C,0x6C,0x6C,0x00,0x00,0x00,0x00,0x00, 0x6C,0x6C,0xFE,0x6C,0xFE,0x6C,0x6C,0x00, 0x30,0x7C,0xC0,0x78,0x0C,0xF8,0x30,0x00, 0x00,0xC6,0xCC,0x18,0x30,0x66,0xC6,0x00, 0x38,0x6C,0x38,0x76,0xDC,0xCC,0x76,0x00, 0x60,0x60,0xC0,0x00,0x00,0x00,0x00,0x00, 0x18,0x30,0x60,0x60,0x60,0x30,0x18,0x00, 0x60,0x30,0x18,0x18,0x18,0x30,0x60,0x00, 0x00,0x66,0x3C,0xFF,0x3C,0x66,0x00,0x00, 0x00,0x30,0x30,0xFC,0x30,0x30,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x60, 0x00,0x00,0x00,0xFC,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x00, 0x06,0x0C,0x18,0x30,0x60,0xC0,0x80,0x00, 0x7C,0xC6,0xCE,0xDE,0xF6,0xE6,0x7C,0x00, 0x30,0x70,0x30,0x30,0x30,0x30,0xFC,0x00, 0x78,0xCC,0x0C,0x38,0x60,0xCC,0xFC,0x00, 0x78,0xCC,0x0C,0x38,0x0C,0xCC,0x78,0x00, 0x1C,0x3C,0x6C,0xCC,0xFE,0x0C,0x1E,0x00, 0xFC,0xC0,0xF8,0x0C,0x0C,0xCC,0x78,0x00, 0x38,0x60,0xC0,0xF8,0xCC,0xCC,0x78,0x00, 0xFC,0xCC,0x0C,0x18,0x30,0x30,0x30,0x00, 0x78,0xCC,0xCC,0x78,0xCC,0xCC,0x78,0x00, 0x78,0xCC,0xCC,0x7C,0x0C,0x18,0x70,0x00, 0x00,0x30,0x30,0x00,0x00,0x30,0x30,0x00, 0x00,0x30,0x30,0x00,0x00,0x30,0x30,0x60, 0x18,0x30,0x60,0xC0,0x60,0x30,0x18,0x00, 0x00,0x00,0xFC,0x00,0x00,0xFC,0x00,0x00, 0x60,0x30,0x18,0x0C,0x18,0x30,0x60,0x00, 0x78,0xCC,0x0C,0x18,0x30,0x00,0x30,0x00, 0x7C,0xC6,0xDE,0xDE,0xDE,0xC0,0x78,0x00, 0x30,0x78,0xCC,0xCC,0xFC,0xCC,0xCC,0x00, 0xFC,0x66,0x66,0x7C,0x66,0x66,0xFC,0x00, 0x3C,0x66,0xC0,0xC0,0xC0,0x66,0x3C,0x00, 0xF8,0x6C,0x66,0x66,0x66,0x6C,0xF8,0x00, 0xFE,0x62,0x68,0x78,0x68,0x62,0xFE,0x00, 0xFE,0x62,0x68,0x78,0x68,0x60,0xF0,0x00, 0x3C,0x66,0xC0,0xC0,0xCE,0x66,0x3E,0x00, 0xCC,0xCC,0xCC,0xFC,0xCC,0xCC,0xCC,0x00, 0x78,0x30,0x30,0x30,0x30,0x30,0x78,0x00, 0x1E,0x0C,0x0C,0x0C,0xCC,0xCC,0x78,0x00, 0xE6,0x66,0x6C,0x78,0x6C,0x66,0xE6,0x00, 0xF0,0x60,0x60,0x60,0x62,0x66,0xFE,0x00, 0xC6,0xEE,0xFE,0xFE,0xD6,0xC6,0xC6,0x00, 0xC6,0xE6,0xF6,0xDE,0xCE,0xC6,0xC6,0x00, 0x38,0x6C,0xC6,0xC6,0xC6,0x6C,0x38,0x00, 0xFC,0x66,0x66,0x7C,0x60,0x60,0xF0,0x00, 0x78,0xCC,0xCC,0xCC,0xDC,0x78,0x1C,0x00, 0xFC,0x66,0x66,0x7C,0x6C,0x66,0xE6,0x00, 0x78,0xCC,0xE0,0x70,0x1C,0xCC,0x78,0x00, 0xFC,0xB4,0x30,0x30,0x30,0x30,0x78,0x00, 0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xFC,0x00, 0xCC,0xCC,0xCC,0xCC,0xCC,0x78,0x30,0x00, 0xC6,0xC6,0xC6,0xD6,0xFE,0xEE,0xC6,0x00, 0xC6,0xC6,0x6C,0x38,0x38,0x6C,0xC6,0x00, 0xCC,0xCC,0xCC,0x78,0x30,0x30,0x78,0x00, 0xFE,0xC6,0x8C,0x18,0x32,0x66,0xFE,0x00, 0x78,0x60,0x60,0x60,0x60,0x60,0x78,0x00, 0xC0,0x60,0x30,0x18,0x0C,0x06,0x02,0x00, 0x78,0x18,0x18,0x18,0x18,0x18,0x78,0x00, 0x10,0x38,0x6C,0xC6,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF, 0x30,0x30,0x18,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x78,0x0C,0x7C,0xCC,0x76,0x00, 0xE0,0x60,0x60,0x7C,0x66,0x66,0xDC,0x00, 0x00,0x00,0x78,0xCC,0xC0,0xCC,0x78,0x00, 0x1C,0x0C,0x0C,0x7C,0xCC,0xCC,0x76,0x00, 0x00,0x00,0x78,0xCC,0xFC,0xC0,0x78,0x00, 0x38,0x6C,0x60,0xF0,0x60,0x60,0xF0,0x00, 0x00,0x00,0x76,0xCC,0xCC,0x7C,0x0C,0xF8, 0xE0,0x60,0x6C,0x76,0x66,0x66,0xE6,0x00, 0x30,0x00,0x70,0x30,0x30,0x30,0x78,0x00, 0x0C,0x00,0x0C,0x0C,0x0C,0xCC,0xCC,0x78, 0xE0,0x60,0x66,0x6C,0x78,0x6C,0xE6,0x00, 0x70,0x30,0x30,0x30,0x30,0x30,0x78,0x00, 0x00,0x00,0xCC,0xFE,0xFE,0xD6,0xC6,0x00, 0x00,0x00,0xF8,0xCC,0xCC,0xCC,0xCC,0x00, 0x00,0x00,0x78,0xCC,0xCC,0xCC,0x78,0x00, 0x00,0x00,0xDC,0x66,0x66,0x7C,0x60,0xF0, 0x00,0x00,0x76,0xCC,0xCC,0x7C,0x0C,0x1E, 0x00,0x00,0xDC,0x76,0x66,0x60,0xF0,0x00, 0x00,0x00,0x7C,0xC0,0x78,0x0C,0xF8,0x00, 0x10,0x30,0x7C,0x30,0x30,0x34,0x18,0x00, 0x00,0x00,0xCC,0xCC,0xCC,0xCC,0x76,0x00, 0x00,0x00,0xCC,0xCC,0xCC,0x78,0x30,0x00, 0x00,0x00,0xC6,0xD6,0xFE,0xFE,0x6C,0x00, 0x00,0x00,0xC6,0x6C,0x38,0x6C,0xC6,0x00, 0x00,0x00,0xCC,0xCC,0xCC,0x7C,0x0C,0xF8, 0x00,0x00,0xFC,0x98,0x30,0x64,0xFC,0x00, 0x1C,0x30,0x30,0xE0,0x30,0x30,0x1C,0x00, 0x18,0x18,0x18,0x00,0x18,0x18,0x18,0x00, 0xE0,0x30,0x30,0x1C,0x30,0x30,0xE0,0x00, 0x76,0xDC,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x10,0x38,0x6C,0xC6,0xC6,0xFE,0x00, 0x3C,0x66,0x60,0x66,0x3C,0x18,0x0C,0x38, 0x00,0x66,0x00,0x66,0x66,0x66,0x3F,0x00, 0x0E,0x00,0x3C,0x66,0x7E,0x60,0x3C,0x00, 0x7E,0xC3,0x3C,0x06,0x3E,0x66,0x3F,0x00, 0x66,0x00,0x3C,0x06,0x3E,0x66,0x3F,0x00, 0x70,0x00,0x3C,0x06,0x3E,0x66,0x3F,0x00, 0x18,0x18,0x3C,0x06,0x3E,0x66,0x3F,0x00, 0x00,0x00,0x3C,0x60,0x60,0x3C,0x18,0x38, 0x7E,0xC3,0x3C,0x66,0x7E,0x60,0x3C,0x00, 0x66,0x00,0x3C,0x66,0x7E,0x60,0x3C,0x00, 0x70,0x00,0x3C,0x66,0x7E,0x60,0x3C,0x00, 0x66,0x00,0x38,0x18,0x18,0x18,0x3C,0x00, 0x3E,0x63,0x1C,0x0C,0x0C,0x0C,0x1E,0x00, 0x70,0x00,0x38,0x18,0x18,0x18,0x3C,0x00, 0x63,0x1C,0x36,0x63,0x7F,0x63,0x63,0x00, 0x18,0x18,0x00,0x3C,0x66,0x7E,0x66,0x00, 0x0E,0x00,0x7E,0x30,0x3C,0x30,0x7E,0x00, 0x00,0x00,0x7F,0x0C,0x7F,0xCC,0x7F,0x00, 0x3F,0x6C,0xCC,0xFF,0xCC,0xCC,0xCF,0x00, 0x3C,0x66,0x00,0x3C,0x66,0x66,0x3C,0x00, 0x00,0x66,0x00,0x3C,0x66,0x66,0x3C,0x00, 0x00,0x70,0x00,0x3C,0x66,0x66,0x3C,0x00, 0x3C,0x66,0x00,0x66,0x66,0x66,0x3F,0x00, 0x00,0x70,0x00,0x66,0x66,0x66,0x3F,0x00, 0x00,0x66,0x00,0x66,0x66,0x3E,0x06,0x7C, 0xC3,0x18,0x3C,0x66,0x66,0x3C,0x18,0x00, 0x66,0x00,0x66,0x66,0x66,0x66,0x3C,0x00, 0x0C,0x0C,0x3F,0x60,0x60,0x3F,0x0C,0x0C, 0x1C,0x36,0x32,0x78,0x30,0x73,0x7E,0x00, 0x66,0x66,0x3C,0x7E,0x18,0x7E,0x18,0x18, 0xF8,0xCC,0xCC,0xFA,0xC6,0xCF,0xC6,0xC7, 0x0E,0x1B,0x18,0x3C,0x18,0x18,0x18,0x70, 0x0E,0x00,0x3C,0x06,0x3E,0x66,0x3F,0x00, 0x1C,0x00,0x38,0x18,0x18,0x18,0x3C,0x00, 0x00,0x0E,0x00,0x3C,0x66,0x66,0x3C,0x00, 0x00,0x0E,0x00,0x66,0x66,0x66,0x3F,0x00, 0x3B,0x6E,0x00,0x3E,0x33,0x33,0x33,0x00, 0x3B,0x6E,0x33,0x3B,0x3F,0x37,0x33,0x00, 0x3C,0x6C,0x6C,0x3E,0x00,0x7E,0x00,0x00, 0x38,0x6C,0x6C,0x38,0x00,0x7C,0x00,0x00, 0x18,0x00,0x18,0x30,0x60,0x66,0x3C,0x00, 0x00,0x00,0x00,0x7E,0x60,0x60,0x00,0x00, 0x00,0x00,0x00,0x7E,0x06,0x06,0x00,0x00, 0xC3,0xC6,0xCC,0xDE,0x33,0x66,0xCC,0x0F, 0xC3,0xC6,0xCC,0xDB,0x37,0x6F,0xCF,0x03, 0x18,0x00,0x18,0x18,0x3C,0x3C,0x18,0x00, 0x00,0x33,0x66,0xCC,0x66,0x33,0x00,0x00, 0x00,0xCC,0x66,0x33,0x66,0xCC,0x00,0x00, 0x88,0x22,0x88,0x22,0x88,0x22,0x88,0x22, 0xAA,0x55,0xAA,0x55,0xAA,0x55,0xAA,0x55, 0xBB,0xEE,0xBB,0xEE,0xBB,0xEE,0xBB,0xEE, 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18, 0x18,0x18,0x18,0x18,0xF8,0x18,0x18,0x18, 0x18,0x18,0xF8,0x18,0xF8,0x18,0x18,0x18, 0x36,0x36,0x36,0x36,0xF6,0x36,0x36,0x36, 0x00,0x00,0x00,0x00,0xFE,0x36,0x36,0x36, 0x00,0x00,0xF8,0x18,0xF8,0x18,0x18,0x18, 0x36,0x36,0xF6,0x06,0xF6,0x36,0x36,0x36, 0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36, 0x00,0x00,0xFE,0x06,0xF6,0x36,0x36,0x36, 0x36,0x36,0xF6,0x06,0xFE,0x00,0x00,0x00, 0x36,0x36,0x36,0x36,0xFE,0x00,0x00,0x00, 0x18,0x18,0xF8,0x18,0xF8,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xF8,0x18,0x18,0x18, 0x18,0x18,0x18,0x18,0x1F,0x00,0x00,0x00, 0x18,0x18,0x18,0x18,0xFF,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xFF,0x18,0x18,0x18, 0x18,0x18,0x18,0x18,0x1F,0x18,0x18,0x18, 0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00, 0x18,0x18,0x18,0x18,0xFF,0x18,0x18,0x18, 0x18,0x18,0x1F,0x18,0x1F,0x18,0x18,0x18, 0x36,0x36,0x36,0x36,0x37,0x36,0x36,0x36, 0x36,0x36,0x37,0x30,0x3F,0x00,0x00,0x00, 0x00,0x00,0x3F,0x30,0x37,0x36,0x36,0x36, 0x36,0x36,0xF7,0x00,0xFF,0x00,0x00,0x00, 0x00,0x00,0xFF,0x00,0xF7,0x36,0x36,0x36, 0x36,0x36,0x37,0x30,0x37,0x36,0x36,0x36, 0x00,0x00,0xFF,0x00,0xFF,0x00,0x00,0x00, 0x36,0x36,0xF7,0x00,0xF7,0x36,0x36,0x36, 0x18,0x18,0xFF,0x00,0xFF,0x00,0x00,0x00, 0x36,0x36,0x36,0x36,0xFF,0x00,0x00,0x00, 0x00,0x00,0xFF,0x00,0xFF,0x18,0x18,0x18, 0x00,0x00,0x00,0x00,0xFF,0x36,0x36,0x36, 0x36,0x36,0x36,0x36,0x3F,0x00,0x00,0x00, 0x18,0x18,0x1F,0x18,0x1F,0x00,0x00,0x00, 0x00,0x00,0x1F,0x18,0x1F,0x18,0x18,0x18, 0x00,0x00,0x00,0x00,0x3F,0x36,0x36,0x36, 0x36,0x36,0x36,0x36,0xFF,0x36,0x36,0x36, 0x18,0x18,0xFF,0x18,0xFF,0x18,0x18,0x18, 0x18,0x18,0x18,0x18,0xF8,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x1F,0x18,0x18,0x18, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF, 0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0, 0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F, 0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00, 0x00,0x00,0x3B,0x6E,0x6C,0x6E,0x3B,0x00, 0x3C,0x66,0x66,0x6C,0x66,0x66,0x7C,0x60, 0x00,0x7E,0x66,0x60,0x60,0x60,0x60,0x00, 0x00,0x00,0x7F,0x36,0x36,0x36,0x36,0x00, 0x7F,0x31,0x18,0x0C,0x18,0x31,0x7F,0x00, 0x00,0x00,0x3F,0x66,0x66,0x66,0x3C,0x00, 0x00,0x00,0x33,0x33,0x33,0x33,0x3E,0x60, 0x00,0x3B,0x6E,0x0C,0x18,0x18,0x18,0x00, 0x7E,0x18,0x3C,0x66,0x66,0x3C,0x18,0x7E, 0x1C,0x36,0x63,0x7F,0x63,0x36,0x1C,0x00, 0x1C,0x36,0x63,0x63,0x36,0x36,0x77,0x00, 0x1C,0x30,0x18,0x3C,0x66,0x66,0x3C,0x00, 0x00,0x00,0x7E,0xDB,0xDB,0x7E,0x00,0x00, 0x06,0x0C,0x7E,0xDB,0xDB,0x7E,0x60,0xC0, 0x1C,0x30,0x60,0x7C,0x60,0x30,0x1C,0x00, 0x1C,0x36,0x63,0x63,0x63,0x63,0x63,0x00, 0x00,0x7E,0x00,0x7E,0x00,0x7E,0x00,0x00, 0x18,0x18,0x7E,0x18,0x18,0x00,0x7E,0x00, 0x30,0x18,0x0C,0x18,0x30,0x00,0x7E,0x00, 0x0C,0x18,0x30,0x18,0x0C,0x00,0x7E,0x00, 0x00,0x0E,0x1B,0x1B,0x18,0x18,0x18,0x18, 0x18,0x18,0x18,0x18,0xD8,0xD8,0x70,0x00, 0x18,0x18,0x00,0x7E,0x00,0x18,0x18,0x00, 0x00,0x70,0xDB,0x0E,0x70,0xDB,0x0E,0x00, 0x3C,0x66,0x66,0x3C,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00, 0x0F,0x0C,0x0C,0x0C,0xCC,0x6C,0x3C,0x1C, 0x78,0x6C,0x6C,0x6C,0x6C,0x00,0x00,0x00, 0x38,0x6C,0x18,0x30,0x7C,0x00,0x00,0x00, 0x00,0x00,0x3C,0x3C,0x3C,0x3C,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}; int iROW; int iBIG; int iPOS; int iPTR; int iBIT; int iBITR; int iPARM; char cVAR; if ( ARGV.length < 4 ) { System.out.print("\n banner (java version 2009.035) by David Cronin\n"); System.out.print("\n Missing command-line Params: H/V ASCII_Fill_byte Size_factor banner text\n\n"); System.out.print(" NOTE: banner.class must be current directory, otherwise the -cp option is\n required to point it's classpath.\n\n"); System.out.print(" Syntax ie: java banner H 999 2 Completed \"Feb 2009\"\n"); System.out.print(" java banner V 999 2 Completed \"Feb 2009\"\n"); System.out.print(" java -cp . banner H 999 2 Completed \"Feb 2009\"\n"); System.exit(1); } String sHV = ARGV[0].toUpperCase(); int iFILL = Integer.parseInt(ARGV[1]); int iSIZE = Integer.parseInt(ARGV[2]); String sBANNER=""; if (sHV.indexOf("H") > -1) { for (iPARM=3; iPARM <= ARGV.length - 1; iPARM++ ){ sBANNER=ARGV[iPARM]; for (iROW=0; iROW<=7; iROW++) { for (iBIG=1; iBIG<=iSIZE; iBIG++) { for (iPOS=0; iPOS < sBANNER.length(); iPOS++) { iPTR = (int)sBANNER.charAt(iPOS); iBIT = 128; for (iBITR=7; iBITR>=0; iBITR--) { if (iFILL >= 0 && iFILL <= 255) {cVAR=(char)iFILL; } else {cVAR=(char)iPTR; } if ((anMATRIX[(iPTR-1) * 8 + iROW] & iBIT) > 0) { System.out.print(sRepeat(cVAR,iSIZE)); } else { System.out.print(sRepeat(' ',iSIZE)); } iBIT=iBIT>>1; } } System.out.print("\n"); } } } } else { int iMaxLen; int iHelm; int iLINE; int iBFF; int iHOLD; int isHOLD; int iBYTE; String asALL[][]=new String [0][0]; String sHOLD=""; iMaxLen=0; int iASIZE; /* Find longest Line */ for (iPARM=3; iPARM <= ARGV.length - 1; iPARM++) { if (ARGV[iPARM].length() > iMaxLen) {iMaxLen=ARGV[iPARM].length(); } } /* Pad all lines to longest line */ for (iHelm=3;iHelm <= ARGV.length-1 ;iHelm++){ ARGV[iHelm] = ARGV[iHelm] + sRepeat(' ',(iMaxLen - ARGV[iHelm].length())); } /* Calculate array dimensions for memory */ iASIZE=8*iMaxLen*iSIZE*8; for (iLINE=0;iLINE < iMaxLen;iLINE++){ sBANNER=""; for (isHOLD=ARGV.length-1;isHOLD>2;--isHOLD){ sBANNER = sBANNER + ARGV[isHOLD].charAt(iLINE); } /* Re-declare the temporary array on-the-fly, used for rotating vertically. */ String blank[][] = new String [iASIZE][iASIZE]; asALL = blank; for (iPOS=0;iPOS < sBANNER.length();iPOS++) { iPTR = (int)sBANNER.charAt(iPOS); for(iBITR=7;iBITR>=0;iBITR--) { asALL[iBITR][iPOS] = ""; iBIT=(int)Math.pow(2,iBITR); for(iBFF=0;iBFF<8;iBFF++){ for (iBIG=0;iBIG= 33 && iFILL <= 255) {cVAR=(char)iFILL; } else {cVAR=(char)iPTR; } if ((iBYTE & iBIT) > 0) { asALL[iBITR][iPOS] = asALL[iBITR][iPOS] + sRepeat(cVAR,iSIZE); } else { asALL[iBITR][iPOS] = asALL[iBITR][iPOS] + sRepeat(' ',iSIZE); } } } } } /* Show temporary array lines expanded hortizonally, and loop for vertical size */ for(iBITR=7;iBITR>=0;iBITR--) { for (iBIG=0;iBIG