Untitled

 avatar
unknown
assembly_x86
2 years ago
246 B
4
Indexable
swapFirstwithLast proc A:byte
	LOCALS
	uses si,Ax,Dx
	lea si,A
	@@09:
	cmp byte ptr[si],'$'
	je @@out
	inc si
	jmp @@09
	
	@@out:
	dec si
	lea di,A
	mov al,[si]
	mov dl,[di]
	mov [di],al
	mov [si],dl
	ret
	endp swapFirstwithLast
Editor is loading...