]> git.sur5r.net Git - cc65/blob - libsrc/supervision/supervision.inc
Since we have now builtin search paths, we need to be able to forget them,
[cc65] / libsrc / supervision / supervision.inc
1 ; supervision symbols
2
3 ;  supervision 65c02s
4 ; in cc65 up to 2.9.1 65c02 means 65c02s
5 .pc02
6
7 lcd_addr = $4000
8 LCD_LINESIZE = $30
9 LCD_WIDTH = 160
10 LCD_HEIGHT = 160
11 ; 2 bit per pixel, packed
12
13 lcd_width = $2000
14 lcd_height = $2001
15 lcd_xpos = $2002 ; in pixel, bit 0+1 not used
16 lcd_ypos = $2003 ; weird
17
18 sv_port_r = $2021
19 sv_port_w = $2022
20
21 sv_timer_count = $2023
22 ; read for quitting
23 sv_timer_quit = $2024
24
25 ; bit 0 timer, bit 1 dma
26 sv_irq_source = $2027
27 SV_IRQ_REQUEST_TIMER = 1
28 SV_IRQ_REQUEST_DMA = 2
29
30 ; bit 5,6,7 select bank at 0x8000
31 sv_bank = $2026
32 SV_NMI_ENABLE_ON = 1
33 SV_IRQ_ENABLE_TIMER = 2
34 SV_IRQ_ENABLE_DMA = 4
35 SV_LCD_ON = 8
36 SV_TIMER_MODE_240Hz = $10 ; else 15360
37
38
39 ; low activ/pressed
40 sv_control = $2020
41 SV_RIGHT = 1
42 SV_LEFT = 2
43 SV_DOWN = 4
44 SV_UP = 8
45 SV_BUTTONB = $10
46 SV_BUTTONA = $20
47 SV_SELECT = $40
48 SV_START = $80
49
50 ; frequency=125000/counter
51 sv_audio_right_counter = $2010 ;word
52 sv_audio_left_counter = $2014
53 SV_AUDIO_ON =$40
54 ;bits 0..3 volume
55 ; bit 4 ?
56 ; bit 5 ?
57 sv_audio_right_control = $2012
58 sv_audio_left_control = $2016
59 ; write activates tone for x/60 sec (0 means 256)
60 sv_audio_right_timer = $2013
61 sv_audio_left_timer = $2017
62
63
64 ;read for irq quitting
65 sv_dma_quit = $2025
66 sv_dma_on = $201c
67 ; bit 7 true start, false stop
68 sv_dma_start = $2018 ; word
69 sv_dma_size = $201a ; *32 samples
70 sv_dma_control = $201b
71 ; bit 0,1 speed: 0 15360, 11 15360/4
72 ; bit 2,3 volume: 0 silent, 11 loud
73
74 sv_noise_volume = $2028 ; and frequency
75 sv_noise_timer = $2029
76 sv_noise_control = $202a