; Call a bit of machine code in memory, given an argument
; By Neil A Carson, RiscBSD kernel team, 1995

R0  RN 0
R1  RN 1
R2  RN 2
R3  RN 3
R4  RN 4
R5  RN 5
R6  RN 6
R7  RN 7
R8  RN 8
R9  RN 9
R10 RN 10
R11 RN 11
R12 RN 12
R13 RN 13
R14 RN 14
R15 RN 15

pc  RN 15
lr  RN 14
sp  RN 13

	AREA |as$$code|, CODE, READONLY

;
; Call a bit of machine code. R0 = value of R0, R1 = address of code
;
; extern void mc_call(int r0, void *address);
;

	EXPORT mc_call
mc_call
	MOV	pc, R1

	END

; woo
