aboutsummaryrefslogtreecommitdiff
path: root/cpcfirm.inc
blob: 88a9f1fafd5c7298ee087591a1a8622a9407d304 (plain)
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
kl_probe_rom    = 0xb915
kl_choke_off    = 0xbcc8
kl_rom_walk     = 0xbccb
kl_init_back    = 0xbcce
kl_log_ext      = 0xbcd1
kl_find_command = 0xbcd4
kl_new_framefly = 0xbcd7
kl_add_framefly = 0xbcda
kl_del_framefly = 0xbcdd
kl_new_fast_ticker = 0xbce0
kl_add_fast_ticker = 0xbce3
kl_del_fast_ticker = 0xbce6
kl_add_ticker      = 0xbce9
kl_del_ticker   = 0xbcec
kl_init_event   = 0xbcef
kl_event        = 0xbcf2
kl_sync_reset   = 0xbcf5
kl_del_synchronous = 0xbcf8
kl_next_sync    = 0xbcfb
kl_do_sync      = 0xbcfe
kl_done_sync    = 0xbd01
kl_event_disable = 0xbd04
kl_event_enable = 0xbd07
kl_disarm_event = 0xbd0a
kl_time_please  = 0xbd0d
kl_time_set     = 0xbd10

km_initialise   = 0xbb00
km_reset        = 0xbb03
km_wait_char    = 0xbb06
km_read_char    = 0xbb09
km_char_return  = 0xbb0c
km_set_expand   = 0xbb0f
km_get_expand   = 0xbb12
km_exp_buffer   = 0xbb15
km_wait_key     = 0xbb18
km_read_key     = 0xbb1b
km_test_key     = 0xbb1e
km_get_state    = 0xbb21
km_get_joystick = 0xbb24
km_set_translate = 0xbb27
km_get_translate = 0xbb2a
km_set_shift    = 0xbb2d
km_get_shift    = 0xbb30
km_set_control  = 0xbb33
km_get_control  = 0xbb36
km_set_repeat   = 0xbb39
km_get_repeat   = 0xbb3c
km_set_delay    = 0xbb3f
km_get_delay    = 0xbb42
km_arm_break    = 0xbb45
km_disarm_break = 0xbb48
km_break_event  = 0xbb4b

txt_initialise  = 0xbb4e
txt_reset       = 0xbb51
txt_vdu_enable  = 0xbb54
txt_vdu_disable = 0xbb57
txt_output      = 0xbb5a
txt_wr_char     = 0xbb5d
txt_rd_char     = 0xbb60
txt_set_graphic = 0xbb63
txt_win_enable  = 0xbb66
txt_get_window  = 0xbb69
txt_clear_window = 0xbb6c
txt_set_column  = 0xbb6f
txt_set_row     = 0xbb72
txt_set_cursor  = 0xbb75
txt_get_cursor  = 0xbb78
txt_cur_enable  = 0xbb7b
txt_cur_disable = 0xbb7e
txt_cur_on      = 0xbb81
txt_cur_off     = 0xbb84
txt_validate    = 0xbb87
txt_place_cursor = 0xbb8a
txt_remove_cursor = 0xbb8d
txt_set_pen     = 0xbb90
txt_get_pen     = 0xbb93
txt_set_paper   = 0xbb96
txt_get_paper   = 0xbb99
txt_inverse     = 0xbb9c
txt_set_back    = 0xbb9f
txt_get_back    = 0xbba2
txt_get_matrix  = 0xbba5
txt_set_matrix  = 0xbba8
txt_set_m_table = 0xbbab
txt_get_m_table = 0xbbae
txt_get_controls = 0xbbb1
txt_str_select  = 0xbbb4
txt_swap_streams = 0xbbb7

gra_initialise  = 0xbbba
gra_reset       = 0xbbbd
gra_move_absolute = 0xbbc0
gra_move_relative = 0xbbc3
gra_ask_cursor  = 0xbbc6
gra_set_origin  = 0xbbc9
gra_get_origin  = 0xbbcc
gra_win_width   = 0xbbcf
gra_win_height  = 0xbbd2
gra_get_w_width = 0xbbd5
gra_get_w_height = 0xbbd8
gra_clear_window = 0xbbdb
gra_set_pen     = 0xbbde
gra_get_pen     = 0xbbe1
gra_set_paper   = 0xbbe4
gra_get_paper   = 0xbbe7
gra_plot_absolute = 0xbbea
gra_plot_relative = 0xbbed
gra_test_absolute = 0xbbf0
gra_test_relative = 0xbbf3
gra_line_absolute = 0xbbf6
gra_line_relative = 0xbbf9
gra_wr_char     = 0xbbfc


scr_initialise  = 0xbbff
scr_reset       = 0xbc02
scr_set_offset  = 0xbc05
scr_set_base    = 0xbc08
scr_get_location = 0xbc0b
scr_set_mode    = 0xbc0e
scr_get_mode    = 0xbc11
scr_clear       = 0xbc14
scr_char_limits = 0xbc17
scr_char_position = 0xbc1a
scr_dot_position = 0xbc1d
scr_next_byte   = 0xbc20
scr_prev_byte   = 0xbc23
scr_next_line   = 0xbc26
scr_prev_line   = 0xbc29
scr_ink_encode  = 0xbc2c
scr_ink_decode  = 0xbc2f
scr_set_ink     = 0xbc32
scr_get_ink     = 0xbc35
scr_set_border  = 0xbc38
scr_get_border  = 0xbc3b
scr_set_flashing = 0xbc3e
scr_get_flashing = 0xbc41
scr_fill_box    = 0xbc44
scr_flood_box   = 0xbc17
scr_char_invert = 0xbc4a
scr_hw_roll     = 0xbc4d
scr_sw_roll     = 0xbc50
scr_unpack      = 0xbc53
scr_repack      = 0xbc56
scr_access      = 0xbc59
scr_pixels      = 0xbc5c
scr_horizontal  = 0xbc5f
scr_vertical    = 0xbc62


cas_initialise  = 0xbc65
cas_set_speed   = 0xbc68
cas_noisy       = 0xbc6b
cas_start_motor = 0xbc6e
cas_stop_motor  = 0xbc71
cas_restore_motor = 0xbc74
cas_in_open	    = 0xbc77
cas_in_close	= 0xbc7a
cas_in_abandon  = 0xbc7d
cas_in_char	    = 0xbc80
cas_in_direct   = 0xbc83
cas_return      = 0xbc86
cas_test_eof    = 0xbc89
cas_out_open	= 0xbc8c
cas_out_close	= 0xbc8f
cas_out_abandon = 0xbc92
cas_out_char	= 0xbc95
cas_out_direct  = 0xbc98
cas_catalog     = 0xbc9b
cas_write       = 0xbc9e
cas_read        = 0xbca1
cas_check       = 0xbca4

sound_reset     = 0xbca7
sound_queue     = 0xbcaa
sound_check     = 0xbcad
sound_arm_event = 0xbcb0
sound_release   = 0xbcb3
sound_hold      = 0xbcb6
sound_continue  = 0xbcb9
sound_ampl_envelope = 0xbcbc
sound_tone_envelope = 0xbcbf
sound_a_address = 0xbcc2
sound_t_address = 0xbcc5


mc_boot_program = 0xbd13
mc_start_program = 0xbd16
mc_wait_flyback = 0xbd19
mc_set_mode     = 0xbd1c
mc_screen_offset = 0xbd1f
mc_clear_inks   = 0xbd22
mc_set_inks     = 0xbd25
mc_reset_printer = 0xbd28
mc_print_char   = 0xbd2b
mc_busy_printer = 0xbd2e
mc_send_printer = 0xbd31
mc_sound_register = 0xbd34
mc_jump_restore = 0xbd37

bios_set_message = 0xc033
bios_setup_disc = 0xc036
bios_select_format = 0xc039
bios_read_sector = 0xc03c
bios_write_sector = 0xc03f
bios_format_track = 0xc042
bios_move_track = 0xc045
bios_get_status = 0xc048
bios_set_retry_count = 0xc04b
bios_get_sector_data = 0xc56c

; 664 + 6128 only
km_set_locks    = 0xbd3a
km_flush        = 0xbd3d
txt_ask_state   = 0xbd40
gra_default     = 0xbd43
gra_set_back    = 0xbd46
gra_set_first   = 0xbd49
gra_set_line_mask = 0xbd4c
gra_from_user   = 0xbd4f
gra_fill        = 0xbd52
scr_set_position = 0xbd55
mc_print_translation = 0xbd58
kl_bank_switch  = 0xbd5b ; 6128 only