Index wersja polskawersja polska

Elektronika MK-85 emulator

The program emulates a PDP-11 compatible CPU and uses a ROM dump from the original calculator. Therefore it should function almost exactly like the real one, inclusive all undocumented features, quirks and bugs and the machine code programming ability.
It works on PC-compatible machines with Microsoft Windows operating system.

A Windows CE port of an early version of this program is available at: http://4pda.ru/forum/index.php?showtopic=41145

Files to download

Program version 45, updated 2009/12/25

downloadmk85emsr.zip - Delphi sources, file size: 55kB

downloadmk85emex.zip - compiled executable, file size: 222kB

Usage: extract the files into an empty directory, then run the program MK85M.exe

The screenshots

Screenshot of the MK-85 emulator

The debug window of the MK-85 emulator

Usage hints

Integrated debugger

Disassembly box

Binary Editor box

Registers box

Program execution control

The MK85M.ini file

Some parameters of the emulator can be customised by editing the MK85M.ini file with any text editor.
Description of the contents of this file:

CpuSpeed=250
This setting controls the emulated CPU execution speed (number of instructions executed every 10ms).
ViewMatrix=0
This setting controls the pixel size of the LCD dot matrix. Any non-zero value selects large height.
RamSize=2048
This setting defines the physical size of emulated RAM. Typical values are 2048 for the MK85 with 2kB of RAM, and 6144 for the MK85M with 6kB of RAM. After any change, the memory initialisation with the F8 key or the TEST command is required.
Radix=16
This setting changes the base of the numeral system used by the debugger (16 for the hexadecimal system, 8 for the octal system).

Uninstalling

To uninstall the emulator, simply delete the directory where it was installed. The program doesn't modify anything outside its installation directory.

Acknowledgments


Conversion utilities

download mk85emut.zip - file size: 31kB, sources and executables, DOS and Windows (in a DOS window)

BAS2RAM

This utility converts a list of BASIC programs in ASCII format to the MK-85 memory image.

Usage: bas2ram.com program1.bas [program2.bas program3.bas ...]

RAM2BAS

This utility does the opposite to the previous one, i.e. displays BASIC programs from the RAM image file specified in the command line.

Usage: ram2bas.com ram.bin

RAM2VARS

Function similar to the previous one, but displays the list of variables instead of programs.


BASIC programs

Tetris

screenshot of the Tetris game on the MK-85

An amazing program written in BASIC, fitting only 2kB RAM, published once on the http://www.aha.ru/~fiks/tetris/ web site. Due to MK-85 display limitations the bricks move horizontally, from the right to the left. Key functions:
  S - rotate clockwise
  W - move up
  X - move down
  A - drop

download mk85tetr.zip - file size: 2kB, BASIC scripts and the MK-85 RAM image

Usage: copy the ram.bin file to the MK-85 emulator folder.

Snake

screenshot of the Snake game on the MK-85

The original version of this program written by Sergei Kiselev was found on the http://mk85.narod.ru/ web site. It stored the screen state in a numerical array which required a lot of memory. The program wouldn't run on the MK-85 version with 2kB RAM.
The author reported all sorts of problems when trying to use string arrays to save the memory, which could indicate some interesting BASIC interpreter bugs. Out of curiosity I have modified the program to see what problems it would cause, but it worked flawlessly. Therefore, it's published here in order not to waste my efforts :-)
The snake should be directed to pick the dots randomly appearing on the display, while not hitting the border nor itself. Key functions:
  2 - down
  4 - left
  6 - right
  8 - up

download mk85snak.zip - file size: 3kB, commented BASIC script and the MK-85 RAM image

Usage: copy the ram.bin file to the MK-85 emulator folder.