From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <732b1707b783c57f27b9c26d5e9c0900@felloff.net> Date: Mon, 1 Feb 2016 23:48:43 +0100 From: cinap_lenrek@felloff.net To: 9fans@9fans.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] FP register usage in Plan9 assembler Topicbox-Message-UUID: 80fe14b2-ead9-11e9-9d60-3106f5b1d025 FP is a translated to a varying offset to SP depending on where in the program you are. arguments on the stack are padded to 8 bytes on amd64, the first argument is not passed on the stack on function entry, but passed in BP register (RARG is an alias for that), however the slot on the stack for first arg is still reserved so we have a save place to splill it. so 0(FP) is first function argument on the stack, 8(FP) second argument 16(FP) third ect... -- cinap