From 4a6cac464355fcbb3ada8f1c491ccfdd53f41b01 Mon Sep 17 00:00:00 2001 From: Peter Hinch <peter@hinch.me.uk> Date: Thu, 17 Mar 2016 11:24:05 +0000 Subject: [PATCH] docs: Update asm tutorial, maximum number of allowed args is now 4. --- docs/pyboard/tutorial/assembler.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/pyboard/tutorial/assembler.rst b/docs/pyboard/tutorial/assembler.rst index 7c6cf44c4..1fe2bc4b0 100644 --- a/docs/pyboard/tutorial/assembler.rst +++ b/docs/pyboard/tutorial/assembler.rst @@ -64,8 +64,8 @@ This code uses a few new concepts: Accepting arguments ------------------- -Inline assembler functions can accept up to 3 arguments. If they are -used, they must be named ``r0``, ``r1`` and ``r2`` to reflect the registers +Inline assembler functions can accept up to 4 arguments. If they are +used, they must be named ``r0``, ``r1``, ``r2`` and ``r3`` to reflect the registers and the calling conventions. Here is a function that adds its arguments:: -- GitLab