Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crawshaw/asm
/ functions
Functions
29 in github.com/crawshaw/asm
⨍
Functions
29
◇
Types & classes
10
↓ 46 callers
Method
Addr
Addr makes an Addr representing a register.
i64/register.go:7
↓ 18 callers
Method
Ind
Ind makes an Addr representing a memory address pointed to by the given register.
i64/register.go:16
↓ 4 callers
Function
Imm
Imm builds an Addr that represents immediate data. The value of v must be of type uint8, uint32, or uint64.
i64/addr.go:41
↓ 4 callers
Method
valueUint64
()
i64/addr.go:84
↓ 4 callers
Method
writeTo
(w io.Writer)
i64/i64.go:238
↓ 3 callers
Method
Bytes
Bytes returns the assembled bytes of a program.
i64/program.go:109
↓ 3 callers
Method
make
(p *Instruction)
i64/i64.go:49
↓ 2 callers
Function
Rel
Rel builds an Addr that represents a relative address. The value of v must be of type int8 or int32.
i64/addr.go:55
↓ 2 callers
Method
String
()
i64/addr.go:145
↓ 2 callers
Method
String
()
i64/op.go:152
↓ 2 callers
Method
layOut
layOut translates Instruction into ins and resolves labels.
i64/program.go:13
↓ 2 callers
Method
makeImm
(r Addr)
i64/i64.go:221
↓ 2 callers
Method
printText
(w io.Writer)
i64/i64.go:279
↓ 2 callers
Method
valueInt64
()
i64/addr.go:68
↓ 2 callers
Function
writeBytes
(w io.Writer, width int, v uint64)
i64/i64.go:292
↓ 1 callers
Method
PrintText
PrintText writes a textual representation of the program to w.
i64/program.go:118
↓ 1 callers
Method
WriteTo
WriteTo writes the assembled bytes of a program to w.
i64/program.go:93
↓ 1 callers
Method
addRegToOp
()
i64/i64.go:78
↓ 1 callers
Method
directAddress
(r2 Addr)
i64/i64.go:204
↓ 1 callers
Method
indirectAddress
(r2 Addr)
i64/i64.go:152
↓ 1 callers
Method
makeMod
(bits modBits)
i64/i64.go:99
Function
Call
(fn, arg unsafe.Pointer, n uint32)
call/call.go:6
Function
LabelAddr
LabelAddr builds an Addr that represents a label.
i64/addr.go:66
Method
String
String returns the name of the register.
i64/register.go:19
Function
TestI64
(t *testing.T)
i64/i64_test.go:112
Function
TestOpName
(t *testing.T)
i64/i64_test.go:136
Function
TestProgram
(t *testing.T)
program/program_test.go:105
Function
init
()
i64/optab.go:60
Method
printText
(w io.Writer, codeblockEnd int)
i64/addr.go:100