summaryrefslogtreecommitdiff
path: root/miniasm/test7.asm
blob: 19d2e1f6dea94b71736f592f9dcadd6efa6cec15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; test7 - subroutines

begin:
	mov ax, 2
	mov bx, 3
	jsr add
; getting back here from 'add' subroutine, ax must be 5
end:
	hlt

add:
	add ax, bx
	ret