From 6e87f8896106c9a673c3c049c83ef389178cef82 Mon Sep 17 00:00:00 2001 From: Vladimir Stefanovic Date: Tue, 20 Dec 2016 18:24:40 +0100 Subject: [PATCH] doc: add mips, mips64 information to asm.html Fixes #18105 Change-Id: Id56e8782ff618761ec44b6dc20891c8b48fea8df Reviewed-on: https://go-review.googlesource.com/34632 Reviewed-by: Rob Pike --- doc/asm.html | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/doc/asm.html b/doc/asm.html index 3e03c548fd..79dc7df322 100644 --- a/doc/asm.html +++ b/doc/asm.html @@ -838,6 +838,44 @@ It is a scaled mode as on the x86, but the only scale allowed is 1. +

MIPS, MIPS64

+ +

+General purpose registers are named R0 through R31, +floating point registers are F0 through F31. +

+ +

+R30 is reserved to point to g. +R23 is used as a temporary register. +

+ +

+In a TEXT directive, the frame size $-4 for MIPS or +$-8 for MIPS64 instructs the linker not to save LR. +

+ +

+SP refers to the virtual stack pointer. +For the hardware register, use R29. +

+ +

+Addressing modes: +

+ + +

Unsupported opcodes

-- 2.48.1