会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
无云
博客园
首页
新随笔
联系
订阅
管理
2023年6月20日
BA4988汇编代码和反汇编成C的代码(部分)
摘要: 前期因经验不足,发表的随笔反汇编错误比较多,建议参考最新的代码。 汇编代码:https://gitee.com/BA4988/ba4988-decompile-environment/tree/master/assemble 反汇编成C的代码:https://gitee.com/BA4988/ba4
阅读全文
posted @ 2023-06-20 22:43 无云
阅读(66)
评论(0)
推荐(0)
2023年1月7日
一些文本处理的函数
摘要: 头文件一般文本_UNICODE未定义_UNICODE已定义函数功能推荐函数 WinUser.h wvsprintf wvsprintfA wvsprintfW 使用指向参数列表的指针将数据写入指定缓冲区。 StringCbVPrintf、StringCbVPrintfEx、StringCchVPri
阅读全文
posted @ 2023-01-07 13:55 无云
阅读(85)
评论(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:13 无云
阅读(44)
评论(0)
推荐(0)
StringCbCatW与StringCchCatW的区别
摘要: 仔细看官方文档里,区别主要在第二个参数: StringCchCatW的cbDest:以字节为单位 StringCchCatW的cchDest:以字符为单位 大家根据实际情况选择合适的函数。 附: StringCbCat、StringCchCatStringCbCopy、StringCchCopySt
阅读全文
posted @ 2023-01-07 12:59 无云
阅读(120)
评论(0)
推荐(0)
2021年12月19日
【BA4988】_0344中断
摘要: 反汇编: _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 无云
阅读(100)
评论(0)
推荐(0)
【BA4988】_0330中断
摘要: 反汇编: _0330() { while ((EndOffSet+1) & 0x7F != StartOffSet) { if (_URCON1&0x01 == 0x00) { ReadBuf_Point[EndOffSet] = _SBUF EndOffSet += 1 EndOffSet &=
阅读全文
posted @ 2021-12-19 17:14 无云
阅读(119)
评论(0)
推荐(0)
2021年12月17日
【BA4988】SysGetKey函数
摘要: 反汇编: U8 SysGetKey() { if (KeyBuffBottom == KeyBuffTop) { return 0xFF } else { buff_point = &KeyBuffer key = buff_point[KeyBuffBottom] KeyBuffBottom+=1
阅读全文
posted @ 2021-12-17 23:20 无云
阅读(55)
评论(0)
推荐(0)
【BA4988】SysHalt函数
摘要: 反汇编: 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 无云
阅读(58)
评论(0)
推荐(0)
2021年12月15日
【BA4988】GuiGetMsg函数
摘要: 反汇编: 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 无云
阅读(38)
评论(0)
推荐(0)
2021年12月11日
【BA4988】PI_ISR_routine函数
摘要: 反汇编: 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 无云
阅读(61)
评论(0)
推荐(0)
下一页
公告