elRey
|
|
« Reply #2 on: August 31, 2014, 10:13:10 AM »
|
|
|
INIT_IN_OUTPUTS_1: extr #1 mov ODP2, #0C340h mov P2, #0C7BFh mov DP2, #3CBFh extr #1 mov ODP3, #8B1Fh mov P3, #2FC1h mov DP3, #35E0h mov P4, #0E0h ; 'a' mov DP4, #0CFh ; '-' extr #1 mov ODP6, #80h ; '' mov P6, #80h ; '' mov DP6, #7Fh ; '' mov P7, #74h ; 't' mov DP7, #0FFh mov P8, #0F8h ; '' mov DP8, #81h ; '' extr #1 mov PICON, #87h ; '' rets INIT_IN_OUTPUTS_2: mov CCM0, #0 mov CCM1, #0 mov CCM2, #400h mov CCM3, #0A900h mov CCM4, #0B00Ch mov CCM5, #0BBh ; '+' mov CCM6, #0 mov CCM7, #0 mov CC0IC, #37h ; '7' mov CC0, #0 mov CC1, #0FFFFh mov CC2IC, #36h ; '6' mov CC3IC, #35h ; '5' mov CC3, #0FFFFh mov CC4, #0FFFFh mov CC5, #0FFFFh mov CC6, #0FFFFh mov CC7, #0FFFFh mov CC8, #0FFFFh mov CC9, #0FFFFh mov CC10IC, #20h ; ' ' mov CC10, #0FFFFh mov CC11, #0FFFFh mov CC12, #0FFFFh mov CC13, #0FFFFh mov CC14IC, #7Dh ; '}' extr #2 mov CC16IC, #17h mov CC19IC, #28h ; '(' mov CC19, #0FFFFh extr #1 mov CC20IC, #29h ; ')' mov CC20, #0FFFFh extr #1 mov CC21IC, #22h ; '"' mov CC21, #0FFFFh extr #1 mov CC22IC, #0 mov CC22, #0FFFFh extr #1 mov CC23IC, #70h ; 'p' mov CC23, #0FFFFh extr #2 mov CC26IC, #1Ch mov CC28IC, #71h ; 'q' mov CC28, #0FFFFh extr #1 mov CC29IC, #72h ; 'r' mov CC29, #0FFFFh extr #1 mov CC30IC, #73h ; 's' mov CC30, #0FFFFh rets
INIT_OUTPUTS: extr #2 mov PT0, #0 mov PP0, #0EA5h mov PW0, #0 ; AGR not used extr #2 mov PT1, #0 mov PP1, #30D3h mov PW1, #0 ; N75 extr #2 mov PT2, #0 mov PP2, #2EDFh mov PW2, #0 ; TB extr #2 mov PT3, #0 mov PP3, #0FFFFh mov PW3, #0 ; EVAP mov PWMCON0, #0BFh ; '+' mov PWMCON1, #0Fh extr #1 mov PWMIC, #5Fh ; '_' mov T01CON, #414Ah mov T3CON, #0 mov T78CON, #464Ah rets
INPUTS_1: mov r4, INPUT_uhsv_word_F818 shr r4, #2 movb uhsv_byte_3808AE, rl4 mov r4, INPUT_wub_w_word_F816 shr r4, #2 movb wub_w_byte_3808B4, rl4 mov r4, INPUT_uulsuv_w_word_F814 and r4, #3FFh mov uulsuv_w_word_380E14, r4 mov r5, INPUT_ushk_w_word_F812 and r5, #3FFh mov ushk_w_word_380E16, r5 mov r2, INPUT_upwg1_w_word_F810 and r2, #3FFh mov upwg1_w_word_380E0E, r2 mov r3, INPUT_upwg2_w_word_F80E and r3, #3FFh mov upwg2_w_word_380E10, r3 mov r1, INPUT_wtmot_w_word_F80C and r1, #3FFh mov wtmot_w_word_380E1C, r1 mov r2, word_F80A and r2, #3FFh mov word_380DFC, r2 ; unused mov r2, word_F806 and r2, #3FFh mov word_380E1A, r2 ; unused mov r4, #1Eh mov r5, #120h extp r5, #1 movb rl3, [r4] movb wtans_byte_3808B2, rl3 mov r4, #20h ; ' ' mov r5, #120h extp r5, #1 movb rl2, [r4] movb byte_3808B3, rl2 ; unused mov r4, #22h ; '"' mov r5, #120h extp r5, #1 movb rl1, [r4] movb uldpe_byte_3808B0, rl1 mov r4, #14h mov r5, #120h extp r5, #1 movb rl3, [r4] movbz r4, rl3 mov r12, #0FFh sub r12, r4 cmp r12, #80h ; '' jmpr cc_ULE, loc_83E896
E_SFR:0002 ; =============== S U B R O U T I N E ======================================= E_SFR:0002 E_SFR:0002 ; Read ADC - 16 bit result into an array E_SFR:0002 E_SFR:0002 public INPUTS_ReadADC3_f002 E_SFR:0002 INPUTS_ReadADC3_f002: E_SFR:0002 mov [-r0], r6 E_SFR:0004 mov ADCON, #280h E_SFR:0008 E_SFR:0008 loc_F008: ; CODE XREF: INPUTS_ReadADC3_f002:loc_F008j E_SFR:0008 jnb ADCIR, loc_F008 E_SFR:000C bclr ADCIR E_SFR:000E mov r4, ADDAT_word_FEA0 E_SFR:0012 and r4, #3FFh E_SFR:0016 mov [r12], r4 E_SFR:0018 mov ADCON, #2AFh E_SFR:001C movb rl6, #10h E_SFR:0020 E_SFR:0020 loc_F020: ; CODE XREF: INPUTS_ReadADC3_f002:loc_F020j E_SFR:0020 ; INPUTS_ReadADC3_f002:loc_F03Ej E_SFR:0020 jnb ADCIR, loc_F020 E_SFR:0024 bclr ADCIR E_SFR:0026 mov r4, ADDAT_word_FEA0 E_SFR:002A and r4, #3FFh E_SFR:002E mov r5, r12 E_SFR:0030 E_SFR:0030 loc_F030: ; DATA XREF: INIT_OUTPUTS+2w E_SFR:0030 sub r5, #2 E_SFR:0032 E_SFR:0032 loc_F032: ; DATA XREF: INIT_OUTPUTS+10w E_SFR:0032 movbz r2, rl6 E_SFR:0034 E_SFR:0034 loc_F034: ; DATA XREF: Seg0x208@820000:28A6w E_SFR:0034 ; ADVE+F4w ... E_SFR:0034 shl r2, #1 E_SFR:0036 E_SFR:0036 loc_F036: ; DATA XREF: INIT_OUTPUTS+2Cw E_SFR:0036 ; sub_8A6CD0+8Cw E_SFR:0036 add r5, r2 E_SFR:0038 E_SFR:0038 loc_F038: ; DATA XREF: INIT_OUTPUTS+6w E_SFR:0038 mov [r5], r4 E_SFR:003A E_SFR:003A loc_F03A: ; DATA XREF: TKSTA_0:loc_877F4Cr E_SFR:003A ; sub_878000+104r ... E_SFR:003A subb rl6, #1 E_SFR:003C E_SFR:003C loc_F03C: ; DATA XREF: INIT_OUTPUTS+22w E_SFR:003C cmpb rl6, #0 E_SFR:003E E_SFR:003E loc_F03E: ; DATA XREF: INIT_OUTPUTS+30w E_SFR:003E ; sub_8A6C8C+10w ... E_SFR:003E jmpr cc_UGT, loc_F020 E_SFR:0040 mov r6, [r0+] E_SFR:0042 rets E_SFR:0042 ; End of function INPUTS_ReadADC3_f002
|