⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bank1.asm

📁 基于51的智能卡操作系统
💻 ASM
字号:
				Name    exe
$Include (Main.inc)

public	find_INS
;public	Exec_INS_Operate
extrn	code	(Command_INS_End)
extrn	code	(Command_INS)
extrn	code	(Number_INS)

?PR?PROG_exe                       SEGMENT CODE

                                RSEG    ?PR?PROG_exe
find_INS:
	mov 	r2, #Number_INS
        mov 	dptr, #Command_INS                  	; INS 指令表起始地?
find_INS_table_start:
        mov 	a,r2
        jz 	not_find_INS_in_table
find_INS_table_loop:
        clr 	a
        movc 	a,@a+dptr
        xrl 	a,byINS
        jz 	find_INS_in_table                   	; 是否为 INS

	inc 	dptr
	inc 	dptr
	inc 	dptr
	inc 	dptr
        djnz 	r2,find_INS_table_loop            	; 查找下一个
not_find_INS_in_table:
	clr 	c
	ret
find_INS_in_table:
        mov 	a, #01h
        movc 	a, @a+dptr
                                
find_INS_Success:
        setb 	c
        ret                                     	; 找到, 返回

;cseg		at	07fffh
;		db 00h



	end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -