📄 switch.src
字号:
; SWITCH.SRC generated from: SWITCH.C
$NOMOD51
NAME SWITCH
P0 DATA 080H
P1 DATA 090H
P2 DATA 0A0H
P3 DATA 0B0H
PSW DATA 0D0H
ACC DATA 0E0H
B DATA 0F0H
SP DATA 081H
DPL DATA 082H
DPH DATA 083H
PCON DATA 087H
TCON DATA 088H
TMOD DATA 089H
TL0 DATA 08AH
TL1 DATA 08BH
TH0 DATA 08CH
TH1 DATA 08DH
IE DATA 0A8H
IP DATA 0B8H
SCON DATA 098H
SBUF DATA 099H
CY BIT 0D0H.7
AC BIT 0D0H.6
F0 BIT 0D0H.5
RS1 BIT 0D0H.4
RS0 BIT 0D0H.3
OV BIT 0D0H.2
P BIT 0D0H.0
TF1 BIT 088H.7
TR1 BIT 088H.6
TF0 BIT 088H.5
TR0 BIT 088H.4
IE1 BIT 088H.3
IT1 BIT 088H.2
IE0 BIT 088H.1
IT0 BIT 088H.0
EA BIT 0A8H.7
ES BIT 0A8H.4
ET1 BIT 0A8H.3
EX1 BIT 0A8H.2
ET0 BIT 0A8H.1
EX0 BIT 0A8H.0
PS BIT 0B8H.4
PT1 BIT 0B8H.3
PX1 BIT 0B8H.2
PT0 BIT 0B8H.1
PX0 BIT 0B8H.0
RD BIT 0B0H.7
WR BIT 0B0H.6
T1 BIT 0B0H.5
T0 BIT 0B0H.4
INT1 BIT 0B0H.3
INT0 BIT 0B0H.2
TXD BIT 0B0H.1
RXD BIT 0B0H.0
SM0 BIT 098H.7
SM1 BIT 098H.6
SM2 BIT 098H.5
REN BIT 098H.4
TB8 BIT 098H.3
RB8 BIT 098H.2
TI BIT 098H.1
RI BIT 098H.0
SDAPin BIT 090H.6
SCLPin BIT 090H.7
WPPin BIT 090H.5
ResetPin BIT 0A0H.0
BrightnessPin BIT 0B0H.5
VGA_CON_PIN BIT 0A0H.5
LED_O_Pin BIT 080H.0
LED_G_Pin BIT 080H.1
PANEL_VCC_PIN BIT 0A0H.2
PANEL_BKL_PIN BIT 0A0H.3
POWER_BUT_PIN BIT 090H.4
MENU_BUT_PIN BIT 090H.1
RIGHT_BUT_PIN BIT 090H.2
LEFT_BUT_PIN BIT 090H.3
AUTO_BUT_PIN BIT 090H.0
?PR?switchSource?SWITCH SEGMENT CODE
EXTRN IDATA (eepData)
EXTRN CODE (_RegByteOut)
EXTRN CODE (_RegBitOut)
EXTRN CODE (_eepDataOut)
EXTRN DATA (?_eepDataOut?BYTE)
EXTRN CODE (miscTurnOffPanel)
PUBLIC switchSource
; /************************************************
; * *
; * SWITCH.C: Switch Input Video Sources *
; * *
; ************************************************/
;
; #include <reg51.h>
; #include <stddef.h>
; #include "mosaic.h"
; #include "osd.h"
; #include "osdtv.h"
; #include "global.h"
;
; #if (SRC_TV+SRC_SI151)
;
; extern MODETBL code ModeTbl[];
; extern unsigned char idata buff[];
; extern unsigned char idata si151Source;
;
; #if SRC_TV
; extern unsigned int idata HsyncCnt, VsyncCnt;
; extern unsigned char code * idata TV_OSDMenu1Codes; //Add here
; extern unsigned char code EngTVOSDMenu1Codes;
; extern unsigned char idata SelectVideo;
; //unsigned char idata SelectStatus;
;
; #if USE_SAA7111
; unsigned char code initSAA7111A[] = {
; 02,
; //2 3 4 5 6 7 8 9 A B C D E F
; 0xD9,0x00,0x7F,0x7F,0xEB,0xE0,0x8B,0x40,0x80,0x47,0x40,0x00,0x01,0x00,
; //10 11 12 13
; 0x50,0x0C,0x80,0x00
; };
; #endif //USE_SAA7111
;
; #if USE_SAA7114
; unsigned char code initSAA7114[] = {
; 26, // cnt
; 0x01, // index
; 0x08,0xC0,0x10,0x90,0x90,0xeb,0xe0, //01h-07h
; 0xb8,0x40,0x80,0x44,0x40,0x00,0x89,0x2e, //08h-0Fh
; 0x0e,0x00,0xc8,0x00,0x26,0x11,0xfe,0xc0,0x40,0x80, //10h-19h
; 11,
; 0x30,
; 0xbc,0xdf,0x02,0xcd,0xcc,0x3a,0x00,0x03,0x20,0x03, //30h-39h
; 33,
; 0x40,
; 0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00, //40h-47h
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, //48h-4fh
; 0x00,0x00,0x00,0x00,0x5f,0xff,0xff,0xff, //50h-57h
; 0x00,0x47,0x06,0x03,0x00,0x00,0x00,0x00, //58h-5fh
; 10,
; 0x80,
; 0x1c,0x00,0x00,0x01,0x00,0x00,0x45,0x01,0xf8, //80h-88h
; 17,
; 0x90,
; 0x00,0x08,0x09,0x40,0x04,0x00,0xd0,0x02, //90h-97h
; 0x0a,0x00,0xfc,0x00,0xd0,0x02,0xfc,0x00, //98h-9fh
; 16, // cnt
; 0xA0, // index
; 0x01,0x00,0x00,0x00,0x80,0x40,0x40,0x00, //A0h-A7h
; 0x00,0x04,0x00,0x00,0x00,0x02,0x00, //A8h-AEh
; 6,
; 0xB0,
; 0x00,0x04,0x00,0x04,0x01, //B0h-B4h
; 9,
; 0xB8,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, //B8h-BFh
; 17,
; 0xC0,
; 0x00,0x08,0x09,0x40,0x04,0x00,0xd0,0x02, //C0h-C7h
; 0x0a,0x00,0xfc,0x00,0xd0,0x02,0xfc,0x00, //C8h-CFh
; 16,
; 0xD0,
; 0x01,0x00,0x00,0x00,0x80,0x40,0x40,0x00, //D0h-D7h
; 0x00,0x04,0x00,0x00,0x00,0x02,0x00, //D8h-DEh
; 6,
; 0xE0,
; 0x00,0x04,0x00,0x04,0x01, //E0h-E4h
; 9,
; 0xE8,
; 0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07, //E8h-EFh
;
; -1 //EOT
; };
; unsigned char code adjSAA7114NTSC[] = {
; 7,
; 0x9A,
; 0xfc,0x00,0xd0,0x02,0xfc,0x00, //9Ah-9fh
; -1 //EOT
; };
; unsigned char code adjSAA7114PAL[] = {
; 7,
; 0x9A,
; 0x22,0x01,0xd0,0x02,0x20,0x01, //9Ah-9fh
; -1 //EOT
; };
; /*
; unsigned char code initSAA7114[] = {
; 26, // cnt
; 0x01, // index
; 0x08,0xc0,0x10,0x90,0x90,0xeb,0xe0, //01h-07h
; 0xb8,0x40,0x80,0x44,0x40,0x00,0x89,0x2e, //08h-0Fh
; 0x0e,0x00,0xc8,0x00,0x26,0x11,0xfe,0xc0,0x40,0x80, //10h-19h
; 11,
; 0x30,
; 0xbc,0xdf,0x02,0xcd,0xcc,0x3a,0x00,0x03,0x20,0x03, //30h-39h
; 33,
; 0x40,
; 0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00, //40h-47h
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, //48h-4fh
; 0x00,0x00,0x00,0x00,0x5f,0xff,0xff,0xff, //50h-57h
; 0x00,0x47,0x06,0x03,0x00,0x00,0x00,0x00, //58h-5fh
; 10,
; 0x80,
; 0x3c,0x00,0x00,0x01,0x00,0x00,0x45,0x01,0xf0, //80h-88h
; 17,
; 0x90,
; 0x02,0x08,0x09,0x40,0x04,0x00,0xd0,0x02, //90h-97h
; 0x0a,0x00,0xfc,0x00,0xd0,0x02,0xfc,0x00, //98h-9fh
; 16, // cnt
; 0xA0, // index
; 0x01,0x00,0x00,0x00,0x80,0x40,0x40,0x00, //A0h-A7h
; 0x00,0x04,0x00,0x00,0x00,0x02,0x00, //A8h-AEh
; 6,
; 0xB0,
; 0x00,0x04,0x00,0x04,0x01, //B0h-B4h
; 9,
; 0xB8,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, //B8h-BFh
; 17,
; 0xC0,
; 0x03,0x08,0x09,0x40,0x04,0x00,0xd0,0x02, //C0h-C7h
; 0x0a,0x00,0xfc,0x00,0xd0,0x02,0xfc,0x00, //C8h-CFh
; 16,
; 0xD0,
; 0x01,0x00,0x00,0x00,0x80,0x40,0x40,0x00, //D0h-D7h
; 0x00,0x04,0x00,0x00,0x00,0x02,0x00, //D8h-DEh
; 6,
; 0xE0,
; 0x00,0x04,0x00,0x04,0x01, //E0h-E4h
; 9,
; 0xE8,
; 0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07, //E8h-EFh
;
; -1 //EOT
; };
; */
; /*
; unsigned char code initSAA7114[] = {
; 26, // cnt
; 0x01, // index
; 0x08,0xc0,0x10,0x90,0x90,0xeb,0xe0, //01h-07h
; 0xb8,0x40,0x80,0x44,0x40,0x00,0x89,0x2e, //08h-0Fh
; 0x0e,0x00,0xc8,0x00,0x26,0x11,0xfe,0xc0,0x40,0x80, //10h-19h
; 11,
; 0x30,
; 0xbc,0xdf,0x02,0xcd,0xcc,0x3a,0x00,0x03,0x20,0x03, //30h-39h
; 33,
; 0x40,
; 0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00, //40h-47h
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, //48h-4fh
; 0x00,0x00,0x00,0x00,0x5f,0xff,0xff,0xff, //50h-57h
; 0x00,0x47,0x06,0x03,0x00,0x00,0x00,0x00, //58h-5fh
; 10,
; 0x80,
; 0x1c,0x00,0x00,0x01,0x00,0x00,0x45,0x01,0xf0, //80h-88h
; 17,
; 0x90,
; 0x00,0x08,0x09,0x40,0x02,0x00,0xd0,0x02, //90h-97h
; 0x0a,0x00,0xfc,0x00,0xd0,0x02,0xfc,0x00, //98h-9fh
; 16, // cnt
; 0xA0, // index
; 0x01,0x00,0x00,0x00,0x80,0x40,0x40,0x00, //A0h-A7h
; 0x00,0x04,0x00,0x00,0x00,0x02,0x00, //A8h-AEh
; 6,
; 0xB0,
; 0x00,0x04,0x00,0x04,0x01, //B0h-B4h
; 9,
; 0xB8,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, //B8h-BFh
; 17,
; 0xC0,
; 0x00,0x08,0x10,0x81,0x10,0x00,0xd0,0x02, //C0h-C7h
; 0x0a,0x00,0xfc,0x00,0xd0,0x02,0x20,0x01, //C8h-CFh
; 16,
; 0xD0,
; 0x01,0x00,0x00,0x00,0x80,0x40,0x40,0x00, //D0h-D7h
; 0x00,0x04,0x00,0x00,0x00,0x02,0x00, //D8h-DEh
; 6,
; 0xE0,
; 0x00,0x04,0x00,0x04,0x01, //E0h-E4h
; 9,
; 0xE8,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, //E8h-EFh
;
; -1 //EOT
; };
; */
; #endif
;
; #if USE_SAA7111
; unsigned char code tvNTSCTbl[] = { // TV input, NTSC
; // !!Must start with CR32 or update MODEHSTART
; 14, 0x32, // Capture Interface
; 0x06, //CR32: PortA +H/+V
; #if MASCOT_V
; 0x28, //CR33: PortB
; #else
; 0x38, //CR33: PortB
; #endif
; 0x20,0x00,0x0C,0x00, //CR34-37: Capture H/V Start
; 0xCF,0x02,0xEF,0x00, //CR38-3B: Capture Width/Height
; 0xB3, //CR3C: Capture FIFO Depth, width/4-1
; 0x02,0x00,0x08, //CR3D-3F: Clamp
;
; 4, 0x2B,
; #if MASCOT_V
; 0x29,0xE7,0x00,0x80,
; // 0x1B,0x9B,0x00,0x80,
; // 0x20,0xB7,0x00,0x80, //DCLK
; #else
; 0x0A,0x3F,0x00,0x80, //DCLK, 65M
; #endif
;
; 14, 0x40, // Display Interface
; 0x8F, //CR40
; 0xA0,0x7F,0x82,0x11, //CR41-CR44: Hort
; 0x26,0xFF,0x23,0x03,0x03,0x06, //CR45-4A: Vert
; 0xA0,0x80,0x25, //CR4B-4D: H/V Zoom
;
; #if MASCOT_V
; 1, 0x5E, 0x07,
; #endif
;
; -1 // EOT
; };
;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -