strcmp.s
来自「标准c库代码,可以应用于各个系统提供了大量的基本函数」· S 代码 · 共 28 行
S
28 行
#include "defines.h"#ifdef __H8300H__ .h8300h#endif .section .text .align 2 .global _strcmp_strcmp: MOVP A0P,A2P MOVP A1P,A3P.L5: mov.b @A2P+,A1L beq .L3 mov.b @A3P+,A0L cmp.b A0L,A1L beq .L5 subs #1,A3P.L3: mov.b @(-1,A2P),A0L mov.b #0,A0H mov.b @A3P,A1L mov.b #0,A1H sub.w A1,A0 rts .end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?