11 2021 档案

摘要:反汇编: startup() { __lib_temp_ptr = 0x17D7 __stack_ptr = 0x17D7 self.S = 0xFF // 修改栈指针 _SYSCON = 0x02 _CPUCLK = 0x03 _SYSCON = 0x44 _OSCK = 0xF3 _SYSCON 阅读全文
posted @ 2021-11-28 15:23 无云 阅读(221) 评论(0) 推荐(0)
摘要:vectors 00000300 000003B9 0x0300 JMP F7110x0304 JMP F71D0x0308 JMP F7590x030C JMP F7650x0310 JMP F7710x0314 JMP F77D0x0318 JMP F7890x031C JMP F7950x03 阅读全文
posted @ 2021-11-28 14:12 无云 阅读(88) 评论(0) 推荐(0)
摘要:反汇编: 汇编: E901 [4C BD F5]: JMP $F5BD @ 转移F5BD [A0 00 B1]: LDY #$00 @ 送变址寄存器YF5BF [B1 28 85]: LDA ($28),Y @ $17AF = #$A0 @ 送累加器F5C1 [85 2F C8]: STA $2F 阅读全文
posted @ 2021-11-27 12:19 无云 阅读(113) 评论(0) 推荐(0)
摘要:反汇编: _restore_bank_number(bankNumber) { BankSwitchTemp = bankNumber if (BankSwitchTemp < 0xE0) { _03E5 = 0x80 _03E4 = 0x0E BankSwitchTemp1 = 0x0E80 } 阅读全文
posted @ 2021-11-26 22:31 无云 阅读(50) 评论(0) 推荐(0)
摘要:反汇编: U8 SysReadCom(U8 *str, U8 *size) { AutoPowerOffCount = AutoPowerOffValue Read_buf = str Write_buf = size Read_size = *Write_buf if (_2278 != 0) { 阅读全文
posted @ 2021-11-26 21:51 无云 阅读(123) 评论(0) 推荐(0)
摘要:反汇编: U8 SysWriteCom( U8 len,U8 *buf) { Pack_len = len Com_addr = buf if (Pack_len = 0) { AutoPowerOffCount = AutoPowerOffValue return 0 } for (Send_le 阅读全文
posted @ 2021-11-25 23:22 无云 阅读(357) 评论(0) 推荐(0)
摘要:反汇编: void DataBankSwitch(U8 logicStartBank,U8 bankNumber,U16 physicalStartBank) { _BK_SEL = logicStartBank _BK_ADRL = physicalStartBank & 0xFF _BK_ADR 阅读全文
posted @ 2021-11-23 22:35 无云 阅读(159) 评论(0) 推荐(0)
摘要:反汇编: void GetDataBankNumber(U8 logicStartBank,U16* physicalBankNumber) { buff_point = physicalBankNumber; _BK_SEL = logicStartBank physicalBankNumber 阅读全文
posted @ 2021-11-23 22:15 无云 阅读(64) 评论(0) 推荐(0)
摘要:反汇编: __indirect_call() { *(U16 *)(&__addr_reg) -= 1 __addr_reg_1压入堆栈 __addr_reg压入堆栈 //跳转到*(U16 *)(&__addr_reg)执行 } 汇编: D572 [A8 38 A5]: TAY @ 累加器送变址寄存 阅读全文
posted @ 2021-11-23 21:44 无云 阅读(159) 评论(0) 推荐(0)
摘要:反汇编: _switch_bank_number(bankNumber) { BankSwitchTemp = bankNumber if (BankSwitchTemp > 0xE0) { BankSwitchTemp = BankSwitchTemp - 0xE0 BankSwitchTemp1 阅读全文
posted @ 2021-11-23 21:42 无云 阅读(66) 评论(0) 推荐(0)
摘要:反汇编: U8 _get_current_bank_number() { _BK_SEL = 0x05 if (_BK_ADRH >= *0x03E4) { BankSwitchTemp = 0x00 tmp = *(U16 *)(&_BK_ADRL) - (((*(U8 *)0x03E4) << 阅读全文
posted @ 2021-11-23 21:38 无云 阅读(67) 评论(0) 推荐(0)
摘要:反汇编: __banked_function_call() { current_bank_number = _get_current_bank_number() _switch_bank_number(*(U8 *)((U16 *)__addr_reg + 2), current_bank_numb 阅读全文
posted @ 2021-11-23 21:35 无云 阅读(50) 评论(0) 推荐(0)
摘要:存放的是函数地址,或JMP指令0xE700 fillmem0xE703 atoi0xE706 atol0xE709 itoa0xE70C movmem0xE70F ltoa0xE712 strcat0xE715 strchr0xE718 strcmp0xE71B strcpy0xE71E strle 阅读全文
posted @ 2021-11-22 22:55 无云 阅读(463) 评论(0) 推荐(0)
摘要:0xD000 ___div_char0xD032 ___div_int0xD0A8 ___div_long0xD184 ___mult_char0xD1A2 ___mult_int0xD201 ___mult_long0xD29D __add_long0xD2CA __and_long0xD2F6 阅读全文
posted @ 2021-11-22 22:49 无云 阅读(80) 评论(0) 推荐(0)
摘要:0x2C00 MEM_HEAP_START 堆首地址, 堆大小:0x1400 阅读全文
posted @ 2021-11-22 22:45 无云 阅读(17) 评论(0) 推荐(0)
摘要:从0x1800开始存储程序的全局变量 0x1800 uninit_data_group 至0x1FFF 下载程序的 bank 号从 e0 开始 阅读全文
posted @ 2021-11-22 22:44 无云 阅读(46) 评论(0) 推荐(0)
摘要:存放函数中的变量,函数参数0x1700 # 栈底?0x17FF # 栈顶? 阅读全文
posted @ 2021-11-22 22:42 无云 阅读(31) 评论(0) 推荐(0)
摘要:0x2D Melody_point0x2F buff_point0x31 buff_point10x33 SONG_ADDR0x35 RHYTHM_ADDR0x37 MLDY_CTL0x38 Ram_Point10x3A Ram_Point20x3C Com_addr SysWriteCom 指向要 阅读全文
posted @ 2021-11-22 22:41 无云 阅读(108) 评论(0) 推荐(0)
摘要:0x20 __oper10x21 __oper1+10x22 __oper1_high80x23 __oper20x24 __oper2+10x25 __oper2_high80x26 __addr_reg 地址寄存器0x27 __addr_reg+1 地址寄存器0x28 __stack_ptr 栈 阅读全文
posted @ 2021-11-22 22:38 无云 阅读(45) 评论(0) 推荐(0)
摘要:0x00 _DATA10x01 _DATA20x02 _DATA30x03 _DATA40x04 _ISR0x05 _TISR0x06 _SPH1LH0x07 _SPH2LH0x08 _SBUF 串口写数据寄存器0x09 _URISR 串口状态寄存器(bit5为1代表数据发送结束)0x0A _MMC 阅读全文
posted @ 2021-11-22 22:34 无云 阅读(83) 评论(0) 推荐(0)