;38データ ;usage: ; (set offset in irtab_pntr) ; call irtab_read ; (data is in W) ; cblock ; bytecnt,bytecntr,bitcnt,bitcntr,irdatai,irdataj ; irtab_pntr,irtab,_irtab1,_irtab2,_irtab3,_irtab4,_irtab5,_irtab6,_irtab7 ; endc ;送信データテーブル ; Byte0 bit7-4 リピート回数 ; bit3-0 0000:日立,東芝,NEC,TMC 0001:松下 0010:サンヨー 0011:ビクター ; 0100:パイオニア 0101:三菱 0110:ソニー 0111:シャープ 1000:light ; Byte1-4 リモコンコード ; org 300h irtab_read: mvi PCLATH,(irtab_read&0x300)>>8 movf irtab_pntr,W ;W=irtab_pntr incf irtab_pntr,F ;irtab_pntr++ addwf PCL,F ;PCL+=W irtab_start: ;ソニー VTR1 ; retlw5 0x36,0x15,0x01,0x00,0x00 ;Power ; retlw10 0x36,0x10,0x01,0x00,0x00,0x36,0x11,0x01,0x00,0x00 ;CHup/CHdn ; retlw10 0x36,0x1a,0x01,0x00,0x00,0x36,0x18,0x01,0x00,0x00 ;Play/Stop ; retlw10 0x36,0x1c,0x01,0x00,0x00,0x36,0x1b,0x01,0x00,0x00 ;FF/RW ; retlw10 0x36,0x19,0x01,0x00,0x00,0x36,0x1d,0x01,0x00,0x00 ;Pause/Rec ; retlw10 0x36,0x29,0x01,0x00,0x00,0x36,0x28,0x01,0x00,0x00 ;Search FF/RW ; retlw10 0x36,0x2a,0x01,0x00,0x00,0x36,0x17,0x01,0x00,0x00 ;TV.Video/Lingual ; retlw5 0x36,0x23,0x01,0x00,0x00 ;Slow ;ソニー VTR2 retlw5 0x36,0x95,0x03,0x00,0x00 ;Power retlw10 0x36,0x90,0x03,0x00,0x00,0x36,0x91,0x03,0x00,0x00 ;CHup/CHdn ; retlw10 0x36,0x9a,0x03,0x00,0x00,0x36,0x98,0x03,0x00,0x00 ;Play/Stop ; retlw10 0x36,0x9c,0x03,0x00,0x00,0x36,0x9b,0x03,0x00,0x00 ;FF/RW ; retlw10 0x36,0x99,0x03,0x00,0x00,0x36,0x9d,0x03,0x00,0x00 ;Pause/Rec ; retlw10 0x36,0xa9,0x03,0x00,0x00,0x36,0xa8,0x03,0x00,0x00 ;Search FF/RW ; retlw10 0x36,0xaa,0x03,0x00,0x00,0x36,0x97,0x03,0x00,0x00 ;TV.Video/Lingual ; retlw5 0x36,0xa3,0x03,0x00,0x00 ;Slow ;ソニー VTR3 ; retlw5 0x36,0x95,0x05,0x00,0x00 ;Power ; retlw10 0x36,0x90,0x05,0x00,0x00,0x36,0x91,0x05,0x00,0x00 ;CHup/CHdn ; retlw10 0x36,0x9a,0x05,0x00,0x00,0x36,0x98,0x05,0x00,0x00 ;Play/Stop ; retlw10 0x36,0x9c,0x05,0x00,0x00,0x36,0x9b,0x05,0x00,0x00 ;FF/RW ; retlw10 0x36,0x99,0x05,0x00,0x00,0x36,0x9d,0x05,0x00,0x00 ;Pause/Rec ; retlw10 0x36,0xa9,0x05,0x00,0x00,0x36,0xa8,0x05,0x00,0x00 ;Search FF/RW ; retlw10 0x36,0xaa,0x05,0x00,0x00,0x36,0x97,0x05,0x00,0x00 ;TV.Video/Lingual ; retlw5 0x36,0xa3,0x05,0x00,0x00 ;Slow ;ソニー TV retlw5 0x36,0x95,0x00,0x00,0x00 ;Power retlw10 0x36,0x90,0x00,0x00,0x00,0x36,0x91,0x00,0x00,0x00 ;CHup/CHdn ; retlw10 0x36,0x92,0x00,0x00,0x00,0x36,0x93,0x00,0x00,0x00 ;VRup/VRdn ; retlw10 0x36,0x80,0x00,0x00,0x00,0x36,0x81,0x00,0x00,0x00 ;CH1/CH2 ; retlw10 0x36,0x82,0x00,0x00,0x00,0x36,0x83,0x00,0x00,0x00 ;CH3/CH4 ; retlw10 0x36,0x84,0x00,0x00,0x00,0x36,0x85,0x00,0x00,0x00 ;CH5/CH6 ; retlw10 0x36,0x86,0x00,0x00,0x00,0x36,0x87,0x00,0x00,0x00 ;CH7/CH8 ; retlw10 0x36,0x88,0x00,0x00,0x00,0x36,0x89,0x00,0x00,0x00 ;CH9/CH10 ; retlw10 0x36,0x8a,0x00,0x00,0x00,0x36,0x8b,0x00,0x00,0x00 ;CH11/CH12 ; retlw10 0x36,0x00,0x00,0x00,0x00,0x36,0x02,0x00,0x00,0x00 ;BS1/BS3 ; retlw10 0x36,0x04,0x00,0x00,0x00,0x36,0x06,0x00,0x00,0x00 ;BS5/BS7 ; retlw10 0x36,0x08,0x00,0x00,0x00,0x36,0x0a,0x00,0x00,0x00 ;BS9/BS11 ; retlw10 0x36,0x0c,0x00,0x00,0x00,0x36,0x0e,0x00,0x00,0x00 ;BS13/BS15 ; retlw10 0x36,0xc0,0x00,0x00,0x00,0x36,0xc1,0x00,0x00,0x00 ;V1/V2 ; retlw10 0x36,0xa5,0x00,0x00,0x00,0x36,0x97,0x00,0x00,0x00 ;TV.Video/Lingual ; retlw10 0x36,0xe4,0x00,0x00,0x00,0x36,0xa9,0x00,0x00,0x00 ;AI/Surround ; retlw10 0x36,0x94,0x00,0x00,0x00,0x36,0xba,0x00,0x00,0x00 ;Mute/Disp ; retlw5 0x36,0xa4,0x00,0x00,0x00 ;TV ; retlw5 0x36,0xb6,0x00,0x00,0x00 ;Sleep ;NEC TV retlw5 0x10,0x18,0xe7,0x08,0xf7 ;Power retlw10 0x10,0x18,0xe7,0x00,0xff,0x10,0x18,0xe7,0x01,0xfe ;CHup/CHdn ; retlw10 0x10,0x18,0xe7,0x02,0xfd,0x10,0x18,0xe7,0x03,0xfc ;VRup/VRdn ; retlw10 0x10,0x18,0xe7,0x10,0xef,0x10,0x18,0xe7,0x11,0xee ;CH1/CH2 ; retlw10 0x10,0x18,0xe7,0x12,0xed,0x10,0x18,0xe7,0x13,0xec ;CH3/CH4 ; retlw10 0x10,0x18,0xe7,0x14,0xeb,0x10,0x18,0xe7,0x15,0xea ;Ch5/CH6 ; retlw10 0x10,0x18,0xe7,0x16,0xe9,0x10,0x18,0xe7,0x17,0xe8 ;Ch7/CH8 ; retlw10 0x10,0x18,0xe7,0x18,0xe7,0x10,0x18,0xe7,0x19,0xe6 ;CH9/CH10 ; retlw10 0x10,0x18,0xe7,0x1a,0xe5,0x10,0x18,0xe7,0x1b,0xe4 ;CH11/CH12 ; retlw10 0x10,0x18,0xe7,0x0a,0xf5,0x10,0x18,0xe7,0x1d,0xe2 ;TV.Video/Lingual ; retlw5 0x10,0x18,0xe7,0x04,0xfb ;RGB ; retlw5 0x10,0x18,0xe7,0x09,0xf6 ;Silent ; retlw5 0x10,0x18,0xe7,0x0e,0xf1 ;Mono ; retlw5 0x10,0x18,0xe7,0x0f,0xf0 ;CH ; retlw5 0x10,0x18,0xe7,0x1e,0xe1 ;Off Timer ; retlw5 0x10,0x18,0x18,0xb4,0x4b ;Menu ; retlw5 0x10,0x18,0x18,0xe1,0x1e ;Game ;日立 TV retlw5 0x10,0x50,0xaf,0x17,0xe8 ;Power retlw10 0x10,0x50,0xaf,0x19,0xe6,0x10,0x50,0xaf,0x18,0xe7 ;CHup/CHdn ; retlw10 0x10,0x50,0xaf,0x12,0xed,0x10,0x50,0xaf,0x15,0xea ;VRup/VRdn ;東芝 TV retlw5 0x10,0x40,0xbf,0x12,0xed ;Power retlw10 0x10,0x40,0xbf,0x1b,0xe4,0x10,0x40,0xbf,0x1f,0xe0 ;CHup/CHdn ; retlw10 0x10,0x40,0xbf,0x1a,0xe5,0x10,0x40,0xbf,0x1e,0xe1 ;VRup/VRdn ;三洋 TV retlw5 0x12,0x30,0xcf,0x00,0xff ;Power ; retlw10 0x12,0x30,0xcf,0x59,0xa6,0x12,0x30,0xcf,0x5a,0xa5 ;CHup/CHdn ; retlw10 0x12,0x30,0xcf,0x09,0xf6,0x12,0x30,0xcf,0x0a,0xf5 ;VRup/VRdn ;ビクター TV retlw5 0x33,0x03,0x17,0x00,0x00 ;Power retlw10 0x33,0x03,0x19,0x00,0x00,0x33,0x03,0x18,0x00,0x00 ;CHup/CHdn ; retlw10 0x33,0x03,0x1e,0x00,0x00,0x33,0x03,0x1f,0x00,0x00 ;VRup/VRdn ; retlw10 0x33,0x03,0x21,0x00,0x00,0x33,0x03,0x22,0x00,0x00 ;CH1/CH2 ; retlw10 0x33,0x03,0x23,0x00,0x00,0x33,0x03,0x24,0x00,0x00 ;CH3/CH4 ; retlw10 0x33,0x03,0x25,0x00,0x00,0x33,0x03,0x26,0x00,0x00 ;CH5/CH6 ; retlw10 0x33,0x03,0x27,0x00,0x00,0x33,0x03,0x28,0x00,0x00 ;CH7/CH8 ; retlw10 0x33,0x03,0x29,0x00,0x00,0x33,0x03,0x2a,0x00,0x00 ;CH9/CH10 ; retlw10 0x33,0x03,0x2b,0x00,0x00,0x33,0x03,0x2c,0x00,0x00 ;CH11/CH12 ; retlw5 0x33,0x03,0x7a,0x00,0x00 ;Menu ;ビクター VTR1 retlw5 0x33,0x43,0x0b,0x00,0x00 ;Power ; retlw10 0x33,0x43,0x0c,0x00,0x00,0x33,0x43,0x03,0x00,0x00 ;Play/Stop ; retlw10 0x33,0x43,0x06,0x00,0x00,0x33,0x43,0x07,0x00,0x00 ;FF/RW ; retlw10 0x33,0x43,0x0d,0x00,0x00,0x33,0x43,0xcc,0x00,0x00 ;Pause/Rec ; retlw10 0x33,0x43,0x19,0x00,0x00,0x33,0x43,0x18,0x00,0x00 ;CHup/CHdn ; retlw10 0x33,0x43,0x21,0x00,0x00,0x33,0x43,0x22,0x00,0x00 ;CH1/CH2 ; retlw10 0x33,0x43,0x23,0x00,0x00,0x33,0x43,0x24,0x00,0x00 ;CH3/CH4 ; retlw10 0x33,0x43,0x25,0x00,0x00,0x33,0x43,0x26,0x00,0x00 ;CH5/CH6 ; retlw10 0x33,0x43,0x27,0x00,0x00,0x33,0x43,0x28,0x00,0x00 ;CH7/CH8 ; retlw10 0x33,0x43,0x29,0x00,0x00,0x33,0x43,0x2a,0x00,0x00 ;CH9/CH10 ; retlw10 0x33,0x43,0x2b,0x00,0x00,0x33,0x43,0x2c,0x00,0x00 ;CH11/CH12 ; retlw5 0x33,0x43,0x35,0x00,0x00 ;Timer ; retlw5 0x33,0x43,0x3d,0x00,0x00 ;Verify ; retlw5 0x33,0x0f,0x90,0x00,0x00 ;G-code ;パイオニア TV ; retlw5 0x14,0xaa,0x55,0x1c,0xe3 ;Power ; retlw10 0x14,0xaa,0x55,0x10,0xef,0x14,0xaa,0x55,0x11,0xee ;CHup/CHdn ; retlw10 0x14,0xaa,0x55,0x0a,0xf5,0x14,0xaa,0x55,0x0b,0xf4 ;VRup/VRdn ;三菱 TV retlw5 0x15,0x47,0x02,0x00,0x00 ;Power retlw10 0x15,0x47,0x0a,0x00,0x00,0x15,0x47,0x12,0x00,0x00 ;CHup/CHdn ; retlw10 0x15,0x47,0x22,0x00,0x00,0x15,0x47,0x2a,0x00,0x00 ;VRup/VRdn ; retlw5 0x15,0x47,0x3a,0x00,0x00 ;TV/Video ;三菱 VTR retlw5 0x15,0x57,0x02,0x00,0x00 ;Power ; retlw10 0x15,0x57,0x04,0x00,0x00,0x15,0x57,0x14,0x00,0x00 ;Play/Stop ; retlw10 0x15,0x57,0x24,0x00,0x00,0x15,0x57,0x2c,0x00,0x00 ;FF/RW ; retlw10 0x15,0x57,0x1c,0x00,0x00,0x15,0x57,0x0c,0x00,0x00 ;Pause/Rec ; retlw10 0x15,0x57,0x00,0x00,0x00,0x15,0x57,0x08,0x00,0x00 ;CH1/CH2 ; retlw10 0x15,0x57,0x10,0x00,0x00,0x15,0x57,0x18,0x00,0x00 ;CH3/CH4 ; retlw10 0x15,0x57,0x20,0x00,0x00,0x15,0x57,0x28,0x00,0x00 ;CH5/CH6 ; retlw10 0x15,0x57,0x30,0x00,0x00,0x15,0x57,0x38,0x00,0x00 ;CH7/CH8 ; retlw10 0x15,0x57,0x01,0x00,0x00,0x15,0x57,0x09,0x00,0x00 ;Ch9/CH10 ; retlw10 0x15,0x57,0x11,0x00,0x00,0x15,0x57,0x19,0x00,0x00 ;Ch11/CH12 ; retlw5 0x15,0x57,0x0e,0x00,0x00 ;Play/Stop ; retlw5 0x15,0x57,0x27,0x00,0x00 ;Disp ;シャープ TV retlw5 0x17,0xc1,0x22,0x21,0x5d ;Power retlw10 0x17,0x21,0x22,0xc1,0x5d,0x17,0x41,0x22,0xa1,0x5d ;CHup/CHdn ; retlw10 0x17,0x81,0x22,0x61,0x5d,0x17,0xa1,0x22,0x41,0x5d ;VRup/VRdn ;シャープ VTR retlw5 0x17,0xc3,0x22,0x23,0x5d ;Power retlw10 0x17,0x23,0x22,0xc3,0x5d,0x17,0x43,0x22,0xa3,0x5d ;CHup/CHdn ; retlw10 0x17,0x43,0x24,0xa3,0x5b,0x17,0xe3,0x24,0x03,0x5b ;Play/Stop ; retlw10 0x17,0x03,0x5b,0x23,0x24,0x17,0x63,0x24,0x83,0x5b ;FF/RW ; retlw10 0x17,0x03,0x5c,0xe3,0x25,0x17,0x03,0x26,0xe3,0x59 ;Search FF/RW ; retlw10 0x17,0xa3,0x24,0x43,0x5b,0x17,0x03,0x25,0xe3,0x5a ;Pause/Rec ; retlw10 0x17,0x23,0x20,0xc3,0x5f,0x17,0x43,0x20,0xa3,0x5f ;Ch1/CH2 ; retlw10 0x17,0x63,0x20,0x83,0x5f,0x17,0x83,0x20,0x63,0x5f ;CH3/CH4 ; retlw10 0x17,0xa3,0x20,0x43,0x5f,0x17,0xc3,0x20,0x23,0x5f ;CH5/CH6 ; retlw10 0x17,0xe3,0x20,0x03,0x5f,0x17,0x03,0x21,0xe3,0x5e ;CH7/CH8 ; retlw10 0x17,0x23,0x21,0xc3,0x5e,0x17,0x43,0x21,0xa3,0x5e ;CH9/CH10 ; retlw10 0x17,0x63,0x21,0x83,0x5e,0x17,0x83,0x21,0x63,0x5e ;CH11/CH12 ; retlw10 0x17,0x03,0x32,0x3e,0x4d,0x17,0x03,0x32,0xe3,0x4d ;Skip/Search ; retlw5 0x17,0x23,0x25,0xc3,0x5a ;Slow ; retlw5 0x17,0xa3,0x31,0x43,0x4e ;Onscreen ; retlw5 0x17,0xe3,0x37,0x03,0x48 ;Menu ; retlw5 0x17,0x83,0x31,0x63,0x4e ;Disp ; retlw5 0x17,0x43,0x33,0xa3,0x4c ;Set ; retlw5 0x17,0x83,0x23,0x63,0x5c ;YOYAKU on/off ; retlw5 0x17,0xe3,0x23,0x03,0x5c ;x3 ; retlw5 0x17,0xc3,0x3b,0x23,0x44 ;Rec(one touch) ;松下 TV retlw5 0x11,0x80,0x00,0x3d,0xbd ;Power retlw10 0x11,0x80,0x00,0x34,0xb4,0x11,0x80,0x00,0x35,0xb5 ;CHup/CHdn ; retlw10 0x11,0x80,0x00,0x20,0xa0,0x11,0x80,0x00,0x21,0xa1 ;VRup/VRdn ; retlw10 0x11,0x80,0x00,0x10,0x90,0x11,0x80,0x00,0x11,0x91 ;CH1/CH2 ; retlw10 0x11,0x80,0x00,0x12,0x92,0x11,0x80,0x00,0x13,0x93 ;Ch3/CH4 ; retlw10 0x11,0x80,0x00,0x14,0x94,0x11,0x80,0x00,0x15,0x95 ;CH5/CH6 ; retlw10 0x11,0x80,0x00,0x16,0x96,0x11,0x80,0x00,0x17,0x97 ;CH7/CH8 ; retlw10 0x11,0x80,0x00,0x18,0x98,0x11,0x80,0x00,0x19,0x99 ;CH9/CH10 ; retlw10 0x11,0x80,0x00,0x1a,0x9a,0x11,0x80,0x00,0x1b,0x9b ;CH11/CH12 ; retlw10 0x11,0x80,0x00,0x0b,0x8b,0x11,0x80,0x00,0x0f,0x8f ;On/Off Timer ; retlw10 0x11,0x80,0x00,0x32,0xb2,0x11,0x80,0x00,0x39,0xb9 ;Mute/Disp ; retlw5 0x11,0x80,0x00,0x05,0x85 ;TV/Video ; retlw5 0x11,0x80,0x00,0x52,0xd2 ;Menu ; retlw5 0x11,0x80,0x00,0x0c,0x8c ;STD ;松下 VTR ; retlw10 0x11,0x90,0x80,0x0a,0x1a,0x11,0x90,0x80,0x00,0x10 ;Play/Stop ; retlw10 0x11,0x90,0x80,0x03,0x13,0x11,0x90,0x80,0x02,0x12 ;FF/RW ; retlw10 0x11,0x90,0x80,0x06,0x16,0x11,0x90,0x80,0x08,0x18 ;Pause/Rec ; retlw10 0x11,0x90,0x80,0x4a,0x5a,0x11,0x90,0x80,0x49,0x59 ;Search FF/RW ; retlw5 0x11,0x90,0x80,0xb4,0xa4 ;YOYAKU on/off ; retlw5 0x11,0x90,0x81,0x0a,0x1b ;x3 ; retlw5 0x11,0x90,0x81,0x1f,0x0e ;Rec(one touch) ;TMC retlw5 0x10,0x84,0x7a,0x00,0xff ;Power retlw10 0x10,0x84,0x7a,0x01,0xfe,0x10,0x84,0x7a,0x02,0xfd ;CHup/CHdn ; retlw10 0x10,0x84,0x7a,0x03,0xfc,0x10,0x84,0x7a,0x04,0xfb ;VRup/VRdn ; retlw10 0x10,0x84,0x7a,0x07,0xf8,0x10,0x84,0x7a,0x08,0xf7 ;Mute/Recall ; retlw10 0x10,0x84,0x7a,0x0c,0xf3,0x10,0x84,0x7a,0x10,0xef ;Preset/Source ;Light retlw10 0x38,0x78,0x00,0x00,0x00,0x38,0xb4,0x00,0x00,0x00 ;Power irtab_end: