Documentation
¶
Index ¶
- Constants
- func GetPassMnemonic() map[uint64]string
- func IsOptionalPass() map[uint64]bool
- func Needed_bits(num int) int
- type BasmChunk
- type BasmFragment
- type BasmInstance
- func (bi *BasmInstance) ActivateOptimization(opt string) error
- func (bi *BasmInstance) ActivePass(active uint64) bool
- func (bi *BasmInstance) Alert(logline ...interface{})
- func (bi *BasmInstance) Assembler2BCOF() error
- func (bi *BasmInstance) Assembler2BondMachine() error
- func (bi *BasmInstance) BasmInstanceInit(bm *bondmachine.Bondmachine)
- func (bi *BasmInstance) CodeChoice(rSize uint8, i int, sh string) error
- func (bi *BasmInstance) CreateConnectingProcessor(rSize uint8, cp *bmline.BasmElement, procid int, romCode string, ...) (*procbuilder.Machine, error)
- func (bi *BasmInstance) Debug(logline ...interface{})
- func (bi *BasmInstance) DumpRequirements() bmreqs.ExportedReqs
- func (bi *BasmInstance) GetBCOF() *bcof.BCOFEntry
- func (bi *BasmInstance) GetBondMachine() *bondmachine.Bondmachine
- func (bi *BasmInstance) GetEndpoints(t uint8, name string) (in endpoint, out endpoint, err error)
- func (bi *BasmInstance) GetFI(finame string) (int, *bmline.BasmElement, error)
- func (bi *BasmInstance) GetLinks(t uint8, name string, index string, dir string) ([]string, error)
- func (bi *BasmInstance) GetMeta(req string) (string, error)
- func (bi *BasmInstance) Info(logline ...interface{})
- func (bi *BasmInstance) LLVMGetLocalID(inst value.Value) (int64, error)
- func (bi *BasmInstance) ParseAssemblyDefault(filePath string) error
- func (bi *BasmInstance) ParseAssemblyFile(filePath string, parseFunction func(*BasmInstance, string, uint32) error) error
- func (bi *BasmInstance) ParseAssemblyLLVM(filePath string) error
- func (bi *BasmInstance) ParseAssemblyString(text string, parseFunction func(*BasmInstance, string, uint32) error) error
- func (bi *BasmInstance) ParseAssemblyStringDefault(text string) error
- func (bi *BasmInstance) PrintInit()
- func (bi *BasmInstance) RunAssembler() error
- func (bi *BasmInstance) SetActive(pass string) error
- func (bi *BasmInstance) SetDebug()
- func (bi *BasmInstance) SetVerbose()
- func (bi *BasmInstance) String() string
- func (bi *BasmInstance) UnsetActive(pass string) error
- func (bi *BasmInstance) Warning(logline ...interface{})
- type BasmMacro
- type BasmSection
Constants ¶
View Source
const ( FIRSTLINE = -2 LASTLINE = -3 NULLLINE = -1 )
View Source
const ( IOLINK = uint8(0) + iota FILINK )
View Source
const (
LAST_PASS = passSymbolsResolver
)
View Source
const (
OPT_INVALID_UNUSED = 0 + iota
)
Variables ¶
This section is empty.
Functions ¶
func GetPassMnemonic ¶
func IsOptionalPass ¶
func Needed_bits ¶
Types ¶
type BasmFragment ¶
type BasmFragment struct {
// contains filtered or unexported fields
}
func (*BasmFragment) String ¶
func (m *BasmFragment) String() string
type BasmInstance ¶
type BasmInstance struct { *bminfo.BMinfo *bmconfig.BmConfig // contains filtered or unexported fields }
func (*BasmInstance) ActivateOptimization ¶
func (bi *BasmInstance) ActivateOptimization(opt string) error
func (*BasmInstance) ActivePass ¶
func (bi *BasmInstance) ActivePass(active uint64) bool
func (*BasmInstance) Alert ¶
func (bi *BasmInstance) Alert(logline ...interface{})
Alert helper function
func (*BasmInstance) Assembler2BCOF ¶
func (bi *BasmInstance) Assembler2BCOF() error
Assembler2BCOF transform an assembled instance into a BCOF file
func (*BasmInstance) Assembler2BondMachine ¶
func (bi *BasmInstance) Assembler2BondMachine() error
Assembler2BondMachine transform an assembled instance into a BCOF file
func (*BasmInstance) BasmInstanceInit ¶
func (bi *BasmInstance) BasmInstanceInit(bm *bondmachine.Bondmachine)
func (*BasmInstance) CodeChoice ¶
func (bi *BasmInstance) CodeChoice(rSize uint8, i int, sh string) error
func (*BasmInstance) CreateConnectingProcessor ¶
func (bi *BasmInstance) CreateConnectingProcessor(rSize uint8, cp *bmline.BasmElement, procid int, romCode string, romData string, ramCode string, ramData string, execMode string) (*procbuilder.Machine, error)
func (*BasmInstance) Debug ¶
func (bi *BasmInstance) Debug(logline ...interface{})
Debug helper functrion
func (*BasmInstance) DumpRequirements ¶
func (bi *BasmInstance) DumpRequirements() bmreqs.ExportedReqs
func (*BasmInstance) GetBCOF ¶
func (bi *BasmInstance) GetBCOF() *bcof.BCOFEntry
func (*BasmInstance) GetBondMachine ¶
func (bi *BasmInstance) GetBondMachine() *bondmachine.Bondmachine
func (*BasmInstance) GetEndpoints ¶
func (bi *BasmInstance) GetEndpoints(t uint8, name string) (in endpoint, out endpoint, err error)
func (*BasmInstance) GetFI ¶
func (bi *BasmInstance) GetFI(finame string) (int, *bmline.BasmElement, error)
func (*BasmInstance) Info ¶
func (bi *BasmInstance) Info(logline ...interface{})
Info helper function
func (*BasmInstance) LLVMGetLocalID ¶
func (bi *BasmInstance) LLVMGetLocalID(inst value.Value) (int64, error)
func (*BasmInstance) ParseAssemblyDefault ¶
func (bi *BasmInstance) ParseAssemblyDefault(filePath string) error
func (*BasmInstance) ParseAssemblyFile ¶
func (bi *BasmInstance) ParseAssemblyFile(filePath string, parseFunction func(*BasmInstance, string, uint32) error) error
ParseAssemblyFile opens the actual assembly file and call a parse function on every line with the underline BasmInstance loaded
func (*BasmInstance) ParseAssemblyLLVM ¶
func (bi *BasmInstance) ParseAssemblyLLVM(filePath string) error
func (*BasmInstance) ParseAssemblyString ¶
func (bi *BasmInstance) ParseAssemblyString(text string, parseFunction func(*BasmInstance, string, uint32) error) error
ParseAssemblyString opens the actual assembly file and call a parse function on every line with the underline BasmInstance loaded
func (*BasmInstance) ParseAssemblyStringDefault ¶
func (bi *BasmInstance) ParseAssemblyStringDefault(text string) error
func (*BasmInstance) PrintInit ¶
func (bi *BasmInstance) PrintInit()
func (*BasmInstance) SetActive ¶
func (bi *BasmInstance) SetActive(pass string) error
func (*BasmInstance) SetDebug ¶
func (bi *BasmInstance) SetDebug()
SetDebug sets the debug flag on a BasmInstance
func (*BasmInstance) SetVerbose ¶
func (bi *BasmInstance) SetVerbose()
SetVerbose sets the verbose flag on a BasmInstance
func (*BasmInstance) String ¶
func (bi *BasmInstance) String() string
func (*BasmInstance) UnsetActive ¶
func (bi *BasmInstance) UnsetActive(pass string) error
func (*BasmInstance) Warning ¶
func (bi *BasmInstance) Warning(logline ...interface{})
Warning helper function
type BasmSection ¶
type BasmSection struct {
// contains filtered or unexported fields
}
func (*BasmSection) String ¶
func (m *BasmSection) String() string
Source Files
¶
- asmparser.go
- basm.go
- callresolver.go
- creatorbcof.go
- creatorbm.go
- datasects2bytes.go
- dynamicalinstructions.go
- entrypoints.go
- fragmentanalyzer.go
- fragmentcomposer.go
- fragmentoptimizer.go
- fragmentpruner.go
- linereader.go
- links.go
- llvmparser.go
- macroresolver.go
- matcherresolver.go
- memcomposer.go
- meta.go
- metadatainfer.go
- passes.go
- sectioncleaner.go
- symbolresolver.go
- symboltagger.go
- templatefinalizer.go
- templateresolver.go
- templates.go
- transform.go
- utils.go
Click to show internal directories.
Click to hide internal directories.