top decor
ROM subroutines ROM beginning


This part of E-MMI ROM contains two constants, reserved for future purposes, and table of subroutines' entries. Two reasons to organize such table are the following:
  • GOI instruction can use only 1-byte constant, so subroutine entry must be in the beginning of the ROM
  • special entry vector, often used in real computers (for instance, with MSX standard), makes possible to modify ROM contents without any repercussions.

addr code mnemonic comments
EE00 ... 00000000 EA00 system RAM address
49F6F 7000GOI $6F, $70, 0example of calling ROM instruction
(without entry displacement)
80000 0000 reserve
C0000 0000 reserve
10F000 001CJMP 1C ==> EE00 ... 0080goto Print INT64 subroutine
14F000 002FJMP 2F ==> EE00 ... 00D0goto Input INT64 subroutine
18E372 0009SETL $72, 0009set 9 digits to $72
1CF000 00A7JMP A7 ==> EE00 ... 02B8goto Print DOUBLE subroutine
20F000 00CFJMP CF ==> EE00 ... 035Cgoto Input DOUBLE subroutine
24F000 0097JMP 97 ==> EE00 ... 0280goto Print CHAR subroutine
28F000 0098JMP 98 ==> EE00 ... 0288goto Input CHAR subroutine
2CF000 0099JMP 99 ==> EE00 ... 0290goto Print BOOLEAN subroutine
30F000 004EJMP 4E ==> EE00 ... 0168goto Print text subroutine
34F000 0057JMP 57 ==> EE00 ... 0190goto CR/LF subroutine
38F000 005BJMP 5B ==> EE00 ... 01A4goto convert int64 to double subroutine
3CF000 0072JMP 72 ==> EE00 ... 0204goto convert double to int64 (round)
subroutine
40F000 0073JMP 73 ==> EE00 ... 020Cgoto convert double to int64 (round)
subroutine
440000 0000 reserve entry
...
7C0000 0000 reserve entry

Subroutines' code are shown on the next pages.

back previous page next page forward


Related topics:

E-MMI software
 

  (C) 2003, Evgeny Eremin. rEd-MMI project documentation
1