我有2個功能。一個是撥打CountChar
和DisplayResult
如下。我如何將charInput數組作爲參考從CountChar
函數傳遞給DisplayResult
函數?任何幫助將非常感激。謝謝。如何在彙編語言中引用數組?
CountChar PROC
pushad
xor eax, eax
xor ebx, ebx
xor edx, edx
mov esi, 0
mov ecx, bufSize
L1:
mov al, buffer[esi]
mov dl, charInput[eax]
inc dl
mov charInput[eax], dl ; How to pass charInput as reference ????
inc esi
loop L1 ; end loop
popad
ret
CountChar ENDP
DisplayResult PROC
pushad
; somehow retrieve the charInput from above for display ???
popad
ret
DisplayResult ENDP