Untitled

mail@pastecode.io avatar
unknown
assembly_x86
6 months ago
246 B
1
Indexable
Never
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