1
我使用X86大會和需要逐個字符兩個緩衝區比較和反映,如果他們在第三緩衝匹配或不成炭X86 MASM比較兩個緩衝區
僞代碼:
Compare(ESI=msg_buffer_ptr, EDI=recover_buffer_ptr, EBX=err_buffer_ptr)
;Compare a character in ESI && EDI
;if ESI == 0 then we are at the end of the string and just return after adding add a 0 to EBX
;if they equal; " " -> EBX
;if it's a 0dh or 0ah, then transpose them into EBX
;else if they don't equal; "X" -> EBX
;Loop to next character
我無法確定如何訪問每個角色。
這是有道理的。我腦海中的事情絕對過於複雜。謝謝!! – alicht 2012-04-10 21:43:44