diff --git a/Emu48.exe b/Emu48.exe index 50306b4..d0c3df5 100755 Binary files a/Emu48.exe and b/Emu48.exe differ diff --git a/KML_20.DOC b/KML_20.DOC index e12f109..09732ec 100644 --- a/KML_20.DOC +++ b/KML_20.DOC @@ -1,6 +1,6 @@ -{\rtf1\ansi\ansicpg1252\deff0\deflang1031\deflangfe1031{\fonttbl{\f0\froman\fprq2\fcharset0 Times New Roman;}{\f1\fmodern\fprq1\fcharset0 Courier New;}{\f2\fswiss\fprq2\fcharset0 Calibri;}{\f3\fswiss\fprq2\fcharset0 Arial;}{\f4\froman\fprq2\fcharset2 Symbol;}} +{\rtf1\ansi\ansicpg1252\deff0\deflang1031\deflangfe1031{\fonttbl{\f0\froman\fprq2\fcharset0 Times New Roman;}{\f1\fmodern\fprq1\fcharset0 Courier New;}{\f2\froman\fprq2\fcharset161{\*\fname Times New Roman;}Times New Roman Greek;}{\f3\fswiss\fprq2\fcharset0 Arial;}{\f4\froman\fprq2\fcharset2 Symbol;}} {\colortbl ;\red0\green0\blue0;\red0\green0\blue255;} -{\*\generator Msftedit 5.41.15.1515;}\viewkind4\uc1\pard\nowidctlpar\qc\lang1033\f0\fs56 EmuXY and KML 2.0\par +{\*\generator Msftedit 5.41.21.2510;}\viewkind4\uc1\pard\nowidctlpar\qc\lang1033\f0\fs56 EmuXY and KML 2.0\par \pard\nowidctlpar\fs24\par \b\fs28 Introduction\b0\par \fs24\par @@ -40,6 +40,7 @@ Basics\b0\par \tab Rom STRING\par \tab Patch STRING\par \tab Bitmap STRING\par +\tab Color INTEGER INTEGER INTEGER INTEGER\par \tab Print STRING\par \tab Debug INTEGER\par End\par @@ -55,9 +56,9 @@ End\par \f0\fs24\par \pard\nowidctlpar\qj Hardware is the emulated calculator hardware. This definition is optional on Emu48. The parameter is necessary to separate the KML scripts from each emulator. Valid entries are\par \pard\nowidctlpar Emu10:\par -\f1\fs16\tab\lang1031 Hardware \ldblquote Bert\rdblquote\par +\f1\fs16\tab Hardware \ldblquote Bert\rdblquote\par \f0\fs24 Emu28:\par -\f1\fs16\tab\lang1033 Hardware \ldblquote Centipede\rdblquote\par +\f1\fs16\tab Hardware \ldblquote Centipede\rdblquote\par \f0\fs24 Emu42:\par \f1\fs16\tab Hardware \ldblquote Lewis\rdblquote\par \f0\fs24 Emu48:\par @@ -87,7 +88,7 @@ Emu10:\par \ldblquote E\rdblquote = HP39G or HP40G\par \ldblquote G\rdblquote = HP48G, HP48G+ or HP48GX\par \ldblquote S\rdblquote = HP48S or HP48SX\par -\lang1031\ldblquote X\rdblquote = HP49G\cf1\par +\ldblquote X\rdblquote = HP49G\cf1\par \pard\nowidctlpar\qj Emu71:\par \pard\nowidctlpar\fi720\qj\cf0\lang1036\ldblquote T\rdblquote = HP71B\par \pard\nowidctlpar\qj Example:\par @@ -114,9 +115,14 @@ Bitmap is the bitmap file that will be the \ldblquote faceplate\rdblquote . All \pard\nowidctlpar Example:\par \f1\fs16\tab Bitmap \ldblquote mygx.bmp\rdblquote\par \pard\nowidctlpar\qj\f0\fs24\par +Color is an optional setting to define the transparency color of the background bitmap. It takes effect only when both, title bar and menu bar are not shown. The first integer specifies the maximum tolerance between bitmap pixel and reference for color matching followed by three integers defining the RGB numbers (Red, Green and Blue) of the transparency reference color. Each RGB number range from 0 to 255. The difference between the actual pixel and the transparency color is calculated by the formula:\par +\f2 Difference = |\'c4R| + |\'c4G| + |\'c4B| where the \'c4 are the count differences between the color parts of the pixel and \f0 the transparency reference color. The given tolerance value must be greater or equal to the calculated difference to handle this background bitmap \ul position\ulnone as transparent. Because of setting the bitmap position to transparent it\rquote s quite important that the display area in the background bitmap is not set to transparent, else the complete display area will be transparent even if the colors of the display pixel don\rquote t match with the transparency reference color.\par +\pard\nowidctlpar Example:\par +\f1\fs16\tab Color 0 255 0 0\par +\pard\nowidctlpar\qj\f0\fs24\par Print will display a string when the KML file is loaded. You can have as many of these as necessary. They are more effective if you put them before the other settings.\par \pard\nowidctlpar Example:\par -\f1\fs16\tab Print \ldblquote My homepage is at http://hp.giesselink.com/\rdblquote\par +\f1\fs16\tab Print \ldblquote My homepage is at {\field{\*\fldinst{HYPERLINK "http://hp.giesselink.com/"}}{\fldrslt{\ul\cf2 http://hp.giesselink.com/}}}\f1\fs16\rdblquote\par \pard\nowidctlpar\qj\f0\fs24\par Debug sets the emulator to return an information message box telling the scancode number of the keyboard key pressed when the scancode number isn\rquote t defined. Valid entries are 0 or 1. One is on and Zero is off.\par \pard\nowidctlpar Example:\par @@ -127,13 +133,13 @@ Debug sets the emulator to return an information message box telling the scancod \tab This section sets where the background bitmap will be placed and the size of the emulator window.\par \par \par -\lang1031\f1\fs16 Background\par +\f1\fs16 Background\par \tab Vga INTEGER\par \tab Topbar INTEGER\par \tab Menubar INTEGER\par \tab Offset INTEGER INTEGER\par \tab Size INTEGER INTEGER\par -\lang1033 End\par +End\par \f0\fs24\par \par \pard\nowidctlpar\qj Offset is how far the top left corner of the bitmap will be offset in the window. Most of the time you should set this to 0 0. The first integer is the amount of pixels to the right and the second is that amount of pixels down.\par @@ -164,10 +170,10 @@ Debug sets the emulator to return an information message box telling the scancod \lang1031\f1\fs16 Lcd\par \tab Zoom INTEGER\par \tab Zoomxy INTEGER INTEGER\par -\tab Vertical INTEGER\par +\tab\lang1033 Vertical INTEGER\par \tab Offset INTEGER INTEGER\par \tab Color INTEGER INTEGER INTEGER INTEGER\par -\lang1033 End\par +End\par \f0\fs24\par \par \pard\nowidctlpar\qj Zoom is the size of the pixels in the LCD screen. This command is only valid for Emu28, Emu42 (Lewis) Emu48 and Emu71 and will be ignored on Emu10 and Emu42 (Sacajawea). Valid entries are 1, 2, 3 or 4. Zoom factor two is usually used by the dot matrix LCD types emulated by Emu28, Emu42 (Lewis), Emu48 and Emu71.\par @@ -189,8 +195,8 @@ Emu10:\par \pard\nowidctlpar\qj Emu42 (Sacajawea), Emu71:\par \pard\nowidctlpar\fi720\qj 0-15 = foreground colors (Pixel on), 0 is lightest, 15 is darkest\par 16-31 = background colors (Pixel off), 16 corresponds to 0, 17 to 1, \'85\par -\pard\nowidctlpar\qj\lang1031 Emu28, Emu42 (Lewis):\par -\pard\nowidctlpar\fi720\qj\lang1033 0-31 = foreground colors (Pixel on), 0 is lightest, 15 is darkest\par +\pard\nowidctlpar\qj Emu28, Emu42 (Lewis):\par +\pard\nowidctlpar\fi720\qj 0-31 = foreground colors (Pixel on), 0 is lightest, 15 is darkest\par 32-63 = background colors (Pixel off), 32 corresponds to 0, 33 to 1, \'85\par \pard\nowidctlpar\qj Emu48:\par \pard\nowidctlpar\fi720\qj 0-31 = foreground colors (Pixel on), 0 is lightest, 15 is darkest\par @@ -787,16 +793,16 @@ or\par \tab\tab \par \tab End\par Or\par -\tab\lang1031 IfMem INTEGER INTEGER INTEGER\par -\tab\tab\lang1033 \par +\tab IfMem INTEGER INTEGER INTEGER\par +\tab\tab \par \tab Else\par \tab\tab \par \tab End\par or\par -\tab\lang1031 SetFlag INTEGER\par +\tab SetFlag INTEGER\par or\par \tab ResetFlag INTEGER\par -\lang1033 or\par +or\par \tab NotFlag INTEGER\par or\par \tab IfFlag INTEGER\par @@ -806,6 +812,8 @@ or\par \tab End\par or\par \tab MenuItem INTEGER\par +or\par +\tab SysItem INTEGER\par \par \pard\nowidctlpar\qj\f0\fs24 Map