汇编语言80X86求代码!麻烦各位大神帮帮忙
在一个字符串中查找 某个字符第一次出现的位置,字符串和字符要求从键盘输入,字符串以0作为结束符,代码中要写过程,过程传递两个参数,1.要查找的字符 2.串的地址
用该模板
;Program:
;Author:
;Date:
.386
.MODEL FLAT
ExitProcess PROTO NEAR32 stdcall, dwExitCode:DWORD
INCLUDE io.h ; header file for input/output
cr EQU 0dh ; carriage return character
Lf EQU 0ah ; line feed
.STACK 4096 ; reserve 4096-byte stack
.DATA ; reserve storage for data
.CODE ; start of main program code
_start:
INVOKE ExitProcess, 0 ; exit with return code 0
PUBLIC _start ; make entry point public
END ; end of source code