摘要: 前期因经验不足,发表的随笔反汇编错误比较多,建议参考最新的代码。 汇编代码:https://gitee.com/BA4988/ba4988-decompile-environment/tree/master/assemble 反汇编成C的代码:https://gitee.com/BA4988/ba4 阅读全文
posted @ 2023-06-20 22:43 无云 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 头文件一般文本_UNICODE未定义_UNICODE已定义函数功能推荐函数 WinUser.h wvsprintf wvsprintfA wvsprintfW 使用指向参数列表的指针将数据写入指定缓冲区。 StringCbVPrintf、StringCbVPrintfEx、StringCchVPri 阅读全文
posted @ 2023-01-07 13:55 无云 阅读(37) 评论(0) 推荐(0) 编辑
摘要: https://learn.microsoft.com/zh-cn/cpp/c-runtime-library/generic-text-mappings?view=msvc-170 泛型文本数据类型映射 一般文本数据类型名SBCS(_UNICODE、_MBCS 未定义)_MBCSdefined_U 阅读全文
posted @ 2023-01-07 13:14 无云 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 仔细看官方文档里,区别主要在第二个参数: StringCchCatW的cbDest:以字节为单位 StringCchCatW的cchDest:以字符为单位 大家根据实际情况选择合适的函数。 附: StringCbCat、StringCchCatStringCbCopy、StringCchCopySt 阅读全文
posted @ 2023-01-07 12:59 无云 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 反汇编: _0344() { _TISR = 0xDF if (_201B&0x01) { _ML1D = 0xEC _201B &= 0xFE _MTCT=0xF0 return } if (_201B&0x02) { if (_DATA3) { _37 = _DATA3&0xBF _MTCT = 阅读全文
posted @ 2021-12-19 17:15 无云 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 反汇编: _0330() { while ((EndOffSet+1) & 0x7F != StartOffSet) { if (_URCON1&0x01 == 0x00) { ReadBuf_Point[EndOffSet] = _SBUF EndOffSet += 1 EndOffSet &= 阅读全文
posted @ 2021-12-19 17:14 无云 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 反汇编: U8 SysGetKey() { if (KeyBuffBottom == KeyBuffTop) { return 0xFF } else { buff_point = &KeyBuffer key = buff_point[KeyBuffBottom] KeyBuffBottom+=1 阅读全文
posted @ 2021-12-17 23:20 无云 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 反汇编: void SysHalt(void) { if (_2021&0x02 == 0) { _SYSCON|=0x08 } } 汇编: [00E9E304]7304 [08 78 AD]: PHP @ 处理器状态压入堆栈[00E9E305]7305 [78 AD 21]: SEI @ 置中断禁 阅读全文
posted @ 2021-12-17 23:19 无云 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 反汇编: U8 GuiGetMsg(PtrMsg pMsg) { __stack_ptr -= 0x03 while (0x01) { __oper2 = 0x8AC2 __oper1 = 0x201E __and_long(__oper1, __oper2) __oper2 = 0x8AC6 if 阅读全文
posted @ 2021-12-15 23:36 无云 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 反汇编: PI_ISR_routine() { tmp1 = buff_point _ISR = 0x7F AutoPowerOffCount=AutoPowerOffValue if (_201B&0x04) { _AUDCON|=0xC0 _TIER|=0x20 _201B|=0x01 _MTC 阅读全文
posted @ 2021-12-11 21:50 无云 阅读(45) 评论(0) 推荐(0) 编辑