mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-06 03:53:42 +00:00
ffa38b183b
This page has been a big help in adding support for this new chip: https://wiki.osdev.org/HiFive-1_Bare_Bones
11 lines
395 B
Go
11 lines
395 B
Go
package riscv
|
|
|
|
// Run the given assembly code. The code will be marked as having side effects,
|
|
// as it doesn't produce output and thus would normally be eliminated by the
|
|
// optimizer.
|
|
func Asm(asm string)
|
|
|
|
// 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
|