Spectrum pages
Home -> Spectrum -> M.O.V.I.E.

_____________________________________________________________________

M.O.V.I.E. (Imagine Software)

In M.O.V.I.E, the player takes on the role of private investigator Jack Marlow, tasked with retrieving an incriminating audiotape from a mob boss. He is helped, or hindered, in this mission by the beautiful Tanya and her evil twin Vanya.

These notes are by no means complete. They're simply a way for me to record what I've found worthy of notice inside M.O.V.I.E.

Text

Text is stored using the following character set:

03h     = Space (shown as _ if I need to make it visible in this document).
04h-1Dh = A-Z
1Eh     = .
1Fh     = ,
20h     = ?
21h     = !
22h     = '
23h-2Ch = 0-9
2Dh     = %

The usual speech bubble has 3 rows of 9 characters, with messages formatted to fit.

Conversations

M.O.V.I.E. allows the player to talk to other characters in the game, and sometimes they respond. In the 'making of' article, this functionality is implied to have been added when the game was already well advanced and had limited space available. It does look as if it may have been developed as a separate module; the conversation-related functions are accessed through a jumpblock at 72ECh.

	JP	parse_speech	;Parse a sentence the player has typed
	JP	lookup_sentence	;Look up sentence A in the sentences table
	JP	lookup_word	;Look up word A in the table at HL

There is a table of 128 words at 7A0Eh-7C1Ah. The first character of each word has bit 7 set, and the table as a whole ends with 0FFh.

7a0e: Word 00h  | AND
7a11: Word 01h  | A
7a12: Word 02h  | CAN
7a15: Word 03h  | ABOUT
7a1a: Word 04h  | ALL
7a1d: Word 05h  | ALONE
7a22: Word 06h  | ANY
7a25: Word 07h  | ARE
7a28: Word 08h  | HAVEN'T
7a2f: Word 09h  | GOOD
7a33: Word 0ah  | AT
7a35: Word 0bh  | LET
7a38: Word 0ch  | BE
7a3a: Word 0dh  | NAME
7a3e: Word 0eh  | BEFORE
7a44: Word 0fh  | BELIEVE
7a4b: Word 10h  | BET
7a4e: Word 11h  | BIG
7a51: Word 12h  | MY
7a53: Word 13h  | B_
7a55: Word 14h  | BOMB
7a59: Word 15h  | BY
7a5b: Word 16h  | BYE
7a5e: Word 17h  | HIM
7a61: Word 18h  | CAN'T
7a66: Word 19h  | BOSS
7a6a: Word 1ah  | FIND
7a6e: Word 1bh  | COME
7a72: Word 1ch  | COOL
7a76: Word 1dh  | CRAZY
7a7b: Word 1eh  | DAY
7a7e: Word 1fh  | THEM
7a82: Word 20h  | DO
7a84: Word 21h  | DOCTOR
7a8a: Word 22h  | DON'T
7a8f: Word 23h  | DOOR
7a93: Word 24h  | DRUNK
7a98: Word 25h  | OPEN
7a9c: Word 26h  | MUST
7aa0: Word 27h  | EVERY
7aa5: Word 28h  | EXPECT
7aab: Word 29h  | HATE
7aaf: Word 2ah  | IS
7ab1: Word 2bh  | FOR
7ab4: Word 2ch  | FOREIGNER
7abd: Word 2dh  | FRENCH
7ac3: Word 2eh  | FRIEND
7ac9: Word 2fh  | GIVE
7acd: Word 30h  | GO
7acf: Word 31h  | SECOND
7ad5: Word 32h  | GREAT
7ada: Word 33h  | GUN
7add: Word 34h  | BAG
7ae0: Word 35h  | HELLO
7ae5: Word 36h  | HELP
7ae9: Word 37h  | HOME
7aed: Word 38h  | HOW
7af0: Word 39h  | I
7af1: Word 3ah  | I'M
7af4: Word 3bh  | HI
7af6: Word 3ch  | FOLLOW
7afc: Word 3dh  | JOB
7aff: Word 3eh  | SHIFRA
7b05: Word 3fh  | LIKE
7b09: Word 40h  | KILL
7b0d: Word 41h  | KNOW
7b11: Word 42h  | LATER
7b16: Word 43h  | LEAVE
7b1b: Word 44h  | THINK
7b20: Word 45h  | YOU
7b23: Word 46h  | MET
7b26: Word 47h  | MUCH
7b2a: Word 48h  | NICE
7b2e: Word 49h  | O.K.
7b32: Word 4ah  | OF
7b34: Word 4bh  | GIRL
7b38: Word 4ch  | OR
7b3a: Word 4dh  | PART
7b3e: Word 4eh  | I'LL
7b42: Word 4fh  | THIS
7b46: Word 50h  | IT'S
7b4a: Word 51h  | PRAYING
7b51: Word 52h  | REALLY
7b57: Word 53h  | SAY
7b5a: Word 54h  | SEE
7b5d: Word 55h  | SHAW
7b61: Word 56h  | SILLY
7b66: Word 57h  | SORRY
7b6b: Word 58h  | PASSWORD
7b73: Word 59h  | ME
7b75: Word 5ah  | TALKING
7b7c: Word 5bh  | TELL
7b80: Word 5ch  | THAT
7b84: Word 5dh  | THE
7b87: Word 5eh  | TO
7b89: Word 5fh  | TRY
7b8c: Word 60h  | TYPE
7b90: Word 61h  | WAY
7b93: Word 62h  | WAS
7b96: Word 63h  | WE
7b98: Word 64h  | MONEY
7b9d: Word 65h  | WHAT
7ba1: Word 66h  | IMAGINE
7ba8: Word 67h  | WHERE
7bad: Word 68h  | WHICH
7bb2: Word 69h  | WHO
7bb5: Word 6ah  | HERE
7bb9: Word 6bh  | WILL
7bbd: Word 6ch  | WORRY
7bc2: Word 6dh  | YOUNG
7bc7: Word 6eh  | BEYOND
7bcd: Word 6fh  | GOD
7bd0: Word 70h  | ON
7bd2: Word 71h  | HERE
7bd6: Word 72h  | ELIMINATE
7bdf: Word 73h  | BLESS
7be4: Word 74h  | IT
7be6: Word 75h  | NEED
7bea: Word 76h  | REST
7bee: Word 77h  | MARRIED
7bf5: Word 78h  | SMART
7bfa: Word 79h  | GUY
7bfd: Word 7ah  | AH
7bff: Word 7bh  | SWEET
7c04: Word 7ch  | WHISKY
7c0a: Word 7dh  | DOING
7c0f: Word 7eh  | PUZZLE
7c15: Word 7fh  | RIGHT

There is a table of sentences from 76B8h to 77DAh containing messages built from these words. Each byte is interpreted as:

 00h- 7Fh: A word from the table above
 80h- 9Fh: A number of spaces (the low five bits give the number of spaces)
0A0h-0BFh: A comma, followed by a number of spaces.
0C0h-0FFh: End of string. The low 3 bits give the punctuation mark:
		  0 => None
		  1 => Full stop
		  2 => Question mark
		  3 => Pling
	  	4-7 do not appear to be used.	

Applying this interpretation to the messages table decodes it as follows (with _ used to show spaces generated by 80h-0BFh):

76b8: [00] _ HAVEN'T__ WE MET__ BEFORE?
76c0: [01] WAS IT__ FRENCH?
76c5: [02] NEED A__ DOCTOR?
76ca: [03] YOU NEED A REST.
76cf: [04] ARE YOU__ CRAZY?
76d4: [05] _ARE YOU DRUNK OR WHAT?
76db: [06] WHAT?
76dd: [07] __HOME____ SWEET___ HOME 
76e4: [08] THIS IS_ BEYOND ME 
76ea: [09] SMART___ GUY,_ AH?
76f0: [0a] __WHAT?
76f3: [0b] ALL RIGHT 
76f6: [0c] WHAT ARE YOU TALKING ABOUT?
76fc: [0d] TALKING__ TO ME?
7701: [0e] GOD BLESS YOU.
7705: [0f] DON'T BE SILLY!
7709: [10] ___AH!
770c: [11] PASSWORD IS SHIFRA 
7710: [12] PASSWORD IS DOCTOR 
7714: [13] TELL ME__ ABOUT___ IT.
771b: [14] NICE TRY.
771e: [15] YOU ARE__ DOING A GREAT JOB 
7726: [16] DON'T GO THAT WAY 
772b: [17] __DON'T___ WORRY.
7730: [18] BE COOL.
7733: [19] O.K. 
7735: [1a] IT'S ALL_ RIGHT.
773a: [1b] LEAVE ME ALONE.
773e: [1c] I HATE___ YOU!
7743: [1d] I'LL KILL YOU!
7747: [1e] GIVE ME_ THE MONEY 
774d: [1f] WHO DO__ YOU THINK YOU ARE?
7755: [20] PASSWORD IS PUZZLE 
7759: [21] __KILL_____ KILL_____ KILL 
7760: [22] _DO YOU_ THINK I'M CRAZY?
7768: [23] SORRY,__ I CAN'T_ HELP YOU.
7770: [24] I DON'T_ KNOW I'M,_ MARRIED.
7778: [25] _THAT IS_ PART OF_ PUZZLE.
7781: [26] WHAT YOU EXPECT ME TO SAY?
7788: [27] __SORRY 
778b: [28] TRY_____ PRAYING.
778f: [29] _TRY THE_ SECOND___ DOOR!
7797: [2a] THAT WILL DO.
779b: [2b] YOU WILL NEED A__ PASSWORD.
77a2: [2c] SEE YOU__ LATER.
77a7: [2d] __HELLO!
77aa: [2e] GOOD DAY.
77ad: [2f] _HOW DO__ YOU DO 
77b4: [30] I BET YOU CAN.
77b9: [31] _REALLY?
77bc: [32] _FIND A__ GUN!
77c2: [33] ELIMINATE HIM!
77c5: [34] ELIMINATE THEM!
77c8: [35] LEAVE THE BAG HERE!
77cd: [36] GIVE HIM A WHISKY!
77d2: [37] KILL THEM ALL!
77d6: [38] GIVE HIM THE MONEY!

The parse_speech routine at 731Dh-7379h scans the text entered by the user and builds a table at 9581h:

	DB	number_of_words
	DW	word1	;Address of first word
	DB	len1	;Length of first word
	DW	word2	;Address of second word
	DB	len2	;Length of second word
	DW	word3	;Address of third word
	DB	len3	;Length of third word
	...

Once all words have been checked, the game checks if the player is in a specific location:

LocationEffect
79h (Cyan room SW of green room with parrot)

Checks if the player has said ELIMINATE. If they do, it toggles bits 1 and 2 of the byte at 821Fh.

I haven't been able to find any other part of the code that is affected by the value in this byte. It is set to 2 at game startup, and read every frame (at F103h, using POP AF) but as far as I can see the read is a side-effect; the code is only interested in the byte next door at 8220h, which is loaded into A. Although the byte at 821Fh is read into the flags, the POP AF is followed immediately by OR A which sets bits 1 and 2 of the flags register to fixed values.

89h, 67h (rooms with parrots) If the appropriate password is said, act on it. If not, hand the text to the parrot who may well repeat what you said. The word IDs of the passwords are at 77E9h (OPEN, IMAGINE)
0E5h, 0F6h, 0BCh (rooms guarded by passwords) If the password is spoken, act on it. The word IDs of the three relevant passwords are at 77EBh (SHIFRA, PUZZLE, DOCTOR)
0F6h, 9Ch, 0BCh The sentence IDs of the three "PASSWORD IS..." messages at 073B3h.

If not, a set of response tables between 7630h-76A7h are used. Most of them have three bytes per entry:

	DB	word
	DW	handler

From 7651h-7674h there are six bytes per entry:

	DB	word
	DB	count	;Number of entries in sub-table
	DW	subtable
	DW	handler

These appear to be used for parsing two-word sentences. For example, there is an entry for GOOD (word 9) where the subtable has two entries: 1Eh (DAY) and 16h (BYE) so 'GOOD DAY' and 'GOOD BYE' are recognised. (In fact there is a bug here: The subtable is incorrectly marked as having three entries. The third matches 'WHAT' but the following bytes are not a valid handler address, so 'GOOD WHAT' is also recognised but causes the game to crash.)

Splash screen / settings menu

The splash screen is at 0EC8Ah, followed by the options menu:

ec8a: IMAGINE__
ec93: PRESENTS_
ec9c: M_O_V_I_E
eca5: BY_______
ecae: _____DUKE
ecb7: AND_MARIO
ecc0: O_OPTIONS
ecc9: __ANY_KEY
ecd2: TO_START_
ecdb: C_CHANGE_
ece4: ________
ecec: _IQ_ON___
ecf5: _IQ_OFF__
ecfe: .KEYBOARD
ed07: .KEMPSTON
ed10: .SINCLAIR
ed19: .CURSOR
ed20: __ROTAT._
ed29: _DIRECT._

The control settings are held at:

0E418h: IQ enabled? Set to 0 if IQ is enabled, 0C9h if it is not.
0EF16h: Control type (1=Keyboard 2=Kempston 3=Sinclair 4=Cursor)
0EFD8h: Bit 6 is set for directional control, clear for rotational

Map

The rooms in M.O.V.I.E. are arranged in a 16×16 grid. In most cases, moving on the X axis increases or decreases the room number by 1, while moving on the Y axis increases or decreases it by 16. This text-based map makes the pattern quite clear.

However, there are a lot of room connections where this simple arithmetic doesn't apply. Internally, this is implemented by a table at 0A01Ch-0A0A6h, with three bytes per entry:

	DB	room		;The room you are currently in
	DB	expected	;The room you would expect to move to
	DB	actual		;The actual room you end up in

For example, the first entry is 20h, 1Fh, 0CDh. Meaning: If you are in room 20h and would normally go left to room 1Fh, you actually arrive in room 0CDh.

Font

The font is from 9E00h-9F01h. Characters are 6 rows × 6 columns.

Graphics

A sprite begins with a two-byte header, usually followed by a bitmap and possibly a mask. The header is:

	DB	type		;Bits 7-6: Sprite type.
				;          1, 1: Bitmap, no mask.
				;          1, 0: Bitmap and mask.
				;	   0, 1: Mask address precedes bitmap.
				;          0, 0: Sprite is a group of blocks.
				;Bits 2-0 give width in bytes - 1.
	DB	height		;Number of rows

What follows the header depends on the first byte.

If 00h <= type < 3Fh: The sprite is composed of a number of segments. Bits 5-4 of the sprite type give the number of segments - 1 (so type 11h has two vertical segments, type 21h has 3 and so on). Each segment is formed:

	DB	height		;Height of this segment
	DW	bitmap		;Address of bitmap for this segment
	DW	mask		;Address of mask for this segment

The heights of the individual segments should sum to the height of the sprite.

If 40h <= type < 7Fh:
	DW	mask_address	;Address of mask bitmap
	DB	bitmap		;Width in bytes × number of rows
If 80h <= type < 0BFh:
	DB	bitmap		;Width in bytes × number of rows
	DB	mask		;Width in bytes × number of rows
If 0C0h <= type < 0FFh:
	DB	bitmap		;Width in bytes × number of rows

The bits in the mask appear to be in the opposite order from those in the bitmap (LSB to the left rather than MSB to the left).

There is a table at 0D000h of sprites, though some entries appear to be unused or used for other purposes. Two sprite definitions have been stored within the table itself, a testament to the shortage of available memory.

Sprite numberAddressSpriteNotes
000h (0)09cfah-09cfdhNull sprite
001h (1)0a4a0h-0a545hDetective, facing NE, frame 1
002h (2)0a97ch-0a987hDetective, facing NE, frame 2
003h (3)0a988h-0a993hDetective, facing NE, frame 3
004h (4)0a994h-0a99fhDetective, facing NE, frame 4
005h (5)0a9a0h-0a9abhDetective, facing NE, frame 5
006h (6)0a9ach-0a9b7hDetective, facing NE, frame 6
007h (7)0a9b8h-0a9c3hDetective, facing NE, frame 7
008h (8)0a9c4h-0a9cfhDetective, facing NE, frame 8
009h (9)0a9d0h-0a9dbhDetective, facing NE, frame 9
00ah (10)0bfc8h-0bfd3hDetective, facing E
00bh (11)0bfd4h-0bfdfhDetective, facing N
00ch (12)0ac0ch-0acfdhDetective, facing NE, punching, frame 1
00dh (13)0acfeh-0adefhDetective, facing NE, punching, frame 2
00eh (14)0be65h-0be70hDetective, facing NE, drawing gun frame 1
00fh (15)0befah-0bf0ahDetective, facing NE, drawing gun frame 2
010h (16)0befah-0bf0ahDetective, facing NE, drawing gun frame 3
011h (17)0be7dh-0be88hDetective, facing NE, firing gun
012h (18)0be30h-0be40hDetective, facing SE, firing gun
013h (19)0bf2dh-0bf3dhDetective, facing NE, holstering gun frame 1
014h (20)0becah-0bed5hDetective, facing NE, holstering gun frame 2
015h (21)0bed6h-0bee1hDetective, facing NE, holstering gun frame 3
016h (22)0af84h-0b075h
017h (23)0be7dh-0be88h
018h (24)0beeeh-0bef9h
019h (25)0bf3eh-0bf4eh
01ah (26)0b9d6h-0b9ebh
01bh (27)0bf60h-0bf75h
01ch (28)0bf7bh-0bf86h
01dh (29)0bf87h-0bf92h29
01eh (30)0bf93h-0bf9eh30
01fh (31)0bfe0h-0bfebhDetective facing S
020h (32)0d3c2h-0d417hNPC facing NE frame 1
021h (33)0cfeeh-0cffehNPC facing NE frame 2
022h (34)0d792h-0d7a2hNPC facing NE frame 3
023h (35)0d7a3h-0d7b3hNPC facing NE frame 4
024h (36)0d7b4h-0d7c4hNPC facing NE frame 5
025h (37)07964h-07974hNPC facing NE frame 6
026h (38)07975h-07985hNPC facing NE frame 7
027h (39)07986h-07996hNPC facing NE frame 8
028h (40)097dfh-097efhNPC facing NE frame 9
029h (41)0bcaeh-0bd4fhNPC facing E
02ah (42)0bd50h-0bdf1hNPC facing N
02bh (43)0891ah-08925h43
02ch (44)0d5c6h-0d6b7h44
02dh (45)0d11ch-0d12ch
02eh (46)07997h-079a7h
02fh (47)0d11ch-0d12ch
030h (48)0bee2h-0beedh
031h (49)0d09fh-0d0afh
032h (50)08909h-08919h
033h (51)08909h-08919h
034h (52)00000hUnused entry
035h (53)00000hUnused entry
036h (54)079a8h-079b8h54
037h (55)00000hUnused entry
038h (56)00000hUnused entry
039h (57)08909h-08919h57
03ah (58)079b9h-079c9h58
03bh (59)00000hUnused entry
03ch (60)00000hUnused entry
03dh (61)00000hUnused entry
03eh (62)0bfech-0bff7hNPC facing S
03fh (63)00000hUnused entry
040h (64)00000hUnused entry
041h (65)00000hUnused entry
042h (66)00000hUnused entry
043h (67)0dc93h-0dd30hTanya/Vanya facing NE, frame 1
044h (68)0a0a7h-0a140hTanya/Vanya facing NE, frame 2
045h (69)0a141h-0a1dehTanya/Vanya facing NE, frame 3
046h (70)0a1dfh-0a27chTanya/Vanya facing NE, frame 4
047h (71)0a27dh-0a31ahTanya/Vanya facing NE, frame 5
048h (72)0a31bh-0a3b4hTanya/Vanya facing NE, frame 6
049h (73)0dc93h-0dd30hTanya/Vanya facing NE, frame 7
04ah (74)0dd31h-0ddcehTanya/Vanya facing NE, frame 8
04bh (75)0ddcfh-0de6chTanya/Vanya facing NE, frame 9
04ch (76)0de6dh-0debchTanya/Vanya facing NE, frame 10
04dh (77)0dc93h-0dd30hTanya/Vanya facing NE, frame 11
04eh (78)00000hUnused entry
04fh-057h (79-87)Sprite definition for sprite 1Fh
058h (88)0a70ah-0a7afhDetective facing SE, frame 1
059h (89)0a9dch-0a9e7hDetective facing SE, frame 2
05ah (90)0a9e8h-0a9f3hDetective facing SE, frame 3
05bh (91)0a9f4h-0a9ffhDetective facing SE, frame 4
05ch (92)0aa00h-0aa0bhDetective facing SE, frame 5
05dh (93)0aa0ch-0aa17hDetective facing SE, frame 6
05eh (94)0aa18h-0aa23hDetective facing SE, frame 7
05fh (95)0aa24h-0aa2fhDetective facing SE, frame 8
060h (96)0aa30h-0aa3bhDetective facing SE, frame 9
061h (97)0de6dh-0debch
062h (98)00000hUnused entry
063h (99)00000hUnused entry
064h (100)0be24h-0be2fhDetective facing SE, punching, frame 1
065h (101)0be30h-0be40hDetective facing SE, punching, frame 2
066h (102)0be41h-0be4chDetective facing SE, punching, frame 3
067h (103)0be4dh-0be58h
068h (104)0be59h-0be64h
069h (105)0be89h-0be99h
06ah (106)0be9ah-0bea5h
06bh (107)0bea6h-0beb1h
06ch (108)0beb2h-0bebdh
06dh (109)0adf0h-0aee1h
06eh (110)0bebeh-0bec9h110
06fh (111)0bf0bh-0bf1bh
070h (112)0bf1ch-0bf2ch
071h (113)0aee2h-0af83h
072h (114)0bf9fh-0bfaah
073h (115)0bfabh-0bfbbh
074h (116)0bfbch-0bfc7h
075h (117)00000hUnused entry
076h (118)00000hUnused entry
077h (119)0d498h-0d4edh
078h (120)097f0h-09800h120
079h (121)09801h-09811h
07ah (122)09812h-09822h
07bh (123)09823h-09833h
07ch (124)09834h-09844h
07dh (125)0c634h-0c644h
07eh (126)088e7h-088f7h
07fh (127)088f8h-08908h
080h (128)00000hUnused entry
081h (129)00000hUnused entry
082h (130)00000hUnused entry
083h (131)079cah-079dah
084h (132)079cah-079dah
085h (133)0be71h-0be7ch
086h (134)0d09fh-0d0afh
087h (135)07953h-07963h
088h (136)079cah-079dah
089h (137)079dbh-079ebh
08ah (138)0d8e4h-0d9d5h
08bh (139)079ech-079fch
08ch (140)079fdh-07a0dh140
08dh (141)07964h-07974h
08eh-096h (142-150)Sprite definition for sprite 2Dh
097h (151)00000hUnused entry
098h (152)00000hUnused entry
099h (153)00000hUnused entry
09ah (154)0de6dh-0debchTanya/Vanya, facing SE, frame 1
09bh (155)0de6dh-0debchTanya/Vanya, facing SE, frame 2
09ch (156)0debdh-0df5ahTanya/Vanya, facing SE, frame 3
09dh (157)0df5bh-0dff8hTanya/Vanya, facing SE, frame 4
09eh (158)07c20h-07cbdhTanya/Vanya, facing SE, frame 5
09fh (159)0cf9eh-0cfedhTanya/Vanya, facing SE, frame 6
0a0h (160)07cbeh-07d5bhTanya/Vanya, facing SE, frame 7
0a1h (161)07d5ch-07df9hTanya/Vanya, facing SE, frame 8
0a2h (162)07dfah-07e4bhTanya/Vanya, facing SE, frame 9
0a3h (163)00000hUnused entry
0a4h (164)00000hUnused entry
0a5h (165)00000hUnused entry
0a6h (166)0dc79h-0dc92hBomb
0a7h (167)09a9dh-09b02hJackal 1
0a8h (168)0b19ah-0b1a7hBall
0a9h (169)0c0a0h-0c141hSuit of armour 1
0aah (170)0daa3h-0db1chExplosion, frame 1
0abh (171)0db1dh-0dba6hExplosion, frame 2
0ach (172)0dba7h-0dc78hExplosion, frame 3
0adh (173)0b9cah-0b9d3hBullet
0aeh (174)09f76h-0a01bh
0afh (175)0c6ach-0c85bhPiano
0b0h (176)0c85ch-0c8b5hPainting 1
0b1h (177)0c8b6h-0c90bhPainting 2
0b2h (178)0c90ch-0c939hPainting 3
0b3h (179)0c93ah-0ca7bhDesk 1
0b4h (180)0ca7ch-0cb1fhDesk 2
0b5h (181)0cb20h-0cb9fhRadiator
0b6h (182)0bf4fh-0bf5fhFan 1
0b7h (183)0cbb4h-0cbc4hJukebox 1
0b8h (184)0cbe3h-0cbf3hTape recorder 1
0b9h (185)0cbfeh-0cd2fhWindow 1
0bah (186)0cd82h-0cd8dhCandelabra
0bbh (187)0cda2h-0cdb2hGrandfather clock 1
0bch (188)0cdbdh-0cdcdhWall clock 1
0bdh (189)0cddah-0ce1bhFlowerpot
0beh (190)0ce1ch-0ceddhSideboard 1
0bfh (191)0cedeh-0cf41hSideboard 2
0c0h (192)08835h-088d8hCocktail table
0c1h (193)00000hUnused entry
0c2h (194)089e3h-08a50hChair 1
0c3h (195)08a51h-08ae8hChair 2
0c4h (196)08ae9h-08c12hChest of drawers
0c5h (197)08c13h-08ca4hCoffee table
0c6h (198)08ca5h-08ceahTelevision 1
0c7h (199)08cebh-08d10hTelevision 2
0c8h (200)08d11h-08d36hTelevision 3
0c9h (201)08d37h-08d9chChair 3
0cah (202)08d9dh-08e06hChair 4
0cbh (203)08e07h-08e55hChair 5
0cch (204)08e56h-08ea4hChair 6
0cdh (205)08ea5h-08f32hGrandfather clock 2
0ceh (206)08f33h-09000hSafe
0cfh (207)09cfah-09cfdh
0d0h (208)090e1h-09136hBust
0d1h (209)09137h-09184hWireless
0d2h (210)09185h-09222hLandscape 1
0d3h (211)09223h-09274hLandscape 2
0d4h (212)09275h-09306hGramophone
0d5h (213)087bch-087e9hMatchbox
0d6h (214)0cd30h-0cd81hCandelabra
0d7h (215)0945bh-094e0hDustbin
0d8h (216)0c646h-0c6abhWall clock 2
0d9h (217)09637h-096cchHatstand
0dah (218)096cdh-097dehLarge plant
0dbh (219)097dfh-097efh
0dch (220)09849h-0989ahFan 2
0ddh (221)0989bh-09950hJukebox 2
0deh (222)09951h-099a6hTape recorder 2
0dfh (223)099a7h-09a34hParrot
0e0h (224)09a35h-09a9chCalculator
0e1h (225)09a9dh-09b02hJackal 2
0e2h (226)09b03h-09b24hLintel
0e3h (227)09c5dh-09c68hDoor post L 1
0e4h (228)09c69h-09c74hDoor post R
0e5h (229)0a400h-0a40bhDoor post L 2
0e6h (230)00000hUnused entry
0e7h (231)00000hUnused entry
0e8h (232)00000hUnused entry
0e9h (233)0aa3ch-0aaafhPanelled wall
0eah (234)0aab0h-0ab23hGrey wall
0ebh (235)0ab24h-0ab97hPatterned wall
0ech (236)0ab98h-0ac0bhBrick wall
0edh (237)09f02h-09f75hLarge panelled wall
0eeh (238)09c75h-09cdahMask
0f0h (240)0b140h-0b199hChair 7
0f1h (241)0b469h-0b4aeh
0f2h (242)0bff8h-0c045h
0f3h (243)094e8h-094fdhGun
0f4h (244)0b2cbh-0b308hAttache case
0f5h (245)0b19ah-0b1a7hBullet
0f6h (246)0a482h-0a49fhTape
0f7h (247)0c046h-0c09fhCrate
0f8h (248)0c0a0h-0c141hSuit of armour 2
0f9h (249)0c19ch-0c29dhBookcase
0fah (250)0c29eh-0c3f7hWindow 2
0fbh (251)0c3f8h-0c4a1hAlcove
0fch (252)0c4a2h-0c615hBar
0fdh (253)0c616h-0c633hBottle
0feh (254)0c634h-0c644hNPC facing SE
0ffh (255)00000hUnused entry
0d200h-0d3c1hSpeech bubble (text is rendered into it as required)
0b0d0h-0b0f5hInventory selection arrow

Rooms

Room layouts are defined in a table starting at 5B00h. This is a variable-length table, with the first byte of each entry giving the number of bytes in the entry (including that byte). So the table starts:

	01			;Room 0
	03 7F 00		;Room 1
	03 BA 00		;Room 2
	08 B8 00 08 D7 04 C6 02	;Room 3
	...

The first byte has two fields: one in bits 7-5, the other in bits 4-0. The value in bits 7-5 is the foreground colour used to draw the room. The value in bits 4-0 is the template number, 0-31. If bit 4 of the following byte is set, 32 is added to the template number.

The room templates are defined in a similar variable-length table at 7F00h-7FB4h.

I have not determined the format of the room data. However I know that the definitions for at least some rooms end with a list of 4-byte records describing the objects to be found in the room. For example, room 96h (the room in which you start) has 16 such records. The first byte of the record gives the sprite number; the remaining three bytes are zero for moveable objects, but nonzero for those objects in a fixed position.

Objects

There is a table of portable objects at 6A00h-6AFCh, with 11 bytes per object:

+0	DB	sprite		;Sprite number, as defined above
+1	DB	0, 0, 0, 0, 0
+6	DB	location	;Room number
+7	DB	x, y, z		;Possibly coordinates within that room
+10	DB	ammo		;For a pistol, number of bullets

=====================================================================

John Elliott 2026-11-12