mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-08 21:13:39 +00:00
arm: implement arm.ReadRegister
This pseudo-function reads the contents of the specified register, for example "sp".
This commit is contained in:
@@ -50,6 +50,10 @@ func Asm(asm string)
|
||||
// })
|
||||
func AsmFull(asm string, regs map[string]interface{})
|
||||
|
||||
// ReadRegister returns the contents of the specified register. The register
|
||||
// must be a processor register, reachable with the "mov" instruction.
|
||||
func ReadRegister(name string) uintptr
|
||||
|
||||
//go:volatile
|
||||
type RegValue uint32
|
||||
|
||||
|
||||
Reference in New Issue
Block a user