This file is indexed.

/usr/share/z88dk/include/msx.h is in z88dk-data 1.8.ds1-10.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/*
 * Headerfile for MSX specific stuff
 *
 * $Id: msx.h,v 1.4 2007/12/18 13:17:41 stefano Exp $
 */

#ifndef __MSX_H__
#define __MSX_H__

#include <sys/types.h>


// PSG register, sound, ...

// Init the PSG (reset sound etc..)
extern void __LIB__ msx_initpsg();

// Play a sound by PSG
extern void __LIB__ msx_sound(int reg, int val);

// Reat the PSG register
extern int __LIB__ __FASTCALL__ msx_readpsg(int regno);


// Video related functions

// Set the screen mode
extern void __LIB__ __FASTCALL__ msx_screen(int mode);

// Get the screen mode
extern int __LIB__ msx_screenmode();

// VRAM read
extern int __LIB__ __FASTCALL__ msx_vpeek(int address);

// VRAM write
extern void __LIB__ msx_vpoke(int address, int value);

// Switch to text mode
extern void __LIB__ msx_text();

// Disable screen
extern void __LIB__ msx_blank();

// Enable screen
extern void __LIB__ msx_noblank();

// Change the MSX color attributes
extern int __LIB__ msx_color(int foreground, int background, int border);

#define TRANSPARENT    0x00
#define BLACK          0x01
#define MEDIUM_GREEN   0x02
#define LIGHT_GREEN    0x03
#define DARK_BLUE      0x04
#define LIGHT_BLUE     0x05
#define DARK_RED       0x06
#define CYAN           0x07
#define MEDIUM_RED     0x08
#define LIGHT_RED      0x09
#define DARK_YELLOW    0x0A
#define LIGHT_YELLOW   0x0B
#define DARK_GREEN     0x0C
#define MAGENTA        0x0D
#define GRAY           0x0E
#define WHITE          0x0F


// Misc functions

// Check if MSX 1 or MSX 2
extern int __LIB__ msx_type();

// Detect the VRAM size (in KB)
extern int __LIB__ msx_vram();

// Check if the line printer is ready (1=ready, 0 if not)
extern int __LIB__ msx_lpt();

// Check if Ctrl-STOP is being pressed (1=if pressed, 0 if not)
extern int __LIB__ msx_break();

// Clear the keyboard buffer
extern void __LIB__ msx_clearkey();

// Disable the CTRL-STOP effect (when a BASIC routine is being called)
extern void __LIB__ msx_breakoff();

// Restore the CTRL-STOP break command
extern void __LIB__ msx_breakon();

#endif