Skip to content

Instantly share code, notes, and snippets.

@polachok
Last active August 29, 2015 14:23
Show Gist options
  • Save polachok/a83c5d455a69df43cb80 to your computer and use it in GitHub Desktop.
Save polachok/a83c5d455a69df43cb80 to your computer and use it in GitHub Desktop.
t
Starting with version 0.13 PCM audio support was introduced using
PortAudio library. The PortAudio2 version 19 or higher must be
installed on the system to use this feature
(http://portaudio.com/docs/v19-doxydocs/tutorial_start.html).
It's possible to use the library supplied with the emulator. For Unix-like
systems, the priority is given to the installed library. The library is
optional (only needed for PCM audio).
In version 0.16 it has become possible to export and import images in the most
common image formats. To save a copy of the screen, select the
"Save screen" item of the context menu (right-click), then specify the
destination directory and file name. If the file name extension is
.mki, then the image is immediately saved in the native format, and for any other
standard graphic format export dialog box will appear.
The images can be imported by loading (or dragging to the main window) graphics files
similar to loading files in the native formats. The image dimensions should
not exceed 128x64 pixels. The pixels are considered to be set (black), if
the level of all three color components is below 50%.
In the calculator's automatic mode, the image is loaded into the graphical
display buffer. In the programming mode or byte input mode, the image is
written into the program memory starting from the address defined by the
program counter, then the counter is incremented by the number of bytes
occupied by the image. When loading multiple images, they will be
sequentially written into memory.
Loading images into the program memory is also possible in the view and clear
mode. Then the image will be written starting from the address that appears
in the top line of the screen. Similarly, in the view and clear mode for the
binary data, the images will be written into the binary data area. The images
are stored in memory in a specific format for functions R9015 and R9016.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment