https://github.com/xyproto/lookslikegoasm
A Go package that tries to determine if the given Assembly source code looks like Go/Plan9 style Assembly
https://github.com/xyproto/lookslikegoasm
asm assembly go plan9
Last synced: 5 months ago
JSON representation
A Go package that tries to determine if the given Assembly source code looks like Go/Plan9 style Assembly
- Host: GitHub
- URL: https://github.com/xyproto/lookslikegoasm
- Owner: xyproto
- License: bsd-3-clause
- Created: 2024-10-29T09:19:44.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-10-29T10:28:38.000Z (12 months ago)
- Last Synced: 2025-01-11T00:57:26.086Z (9 months ago)
- Topics: asm, assembly, go, plan9
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lookslikegoasm
This is a package that tries to determine if the given Assembly source code looks like Go/Plan9 style Assembly or Intel/AT&T style Assembly.
The `Consider` function returns `true` if it looks like Go/Plan9 style assembly.
The utility in `cmd` can be installed with:
go install github.com/xyproto/lookslikegoasm/cmd/lookslikegoasm@latest
Example use:
```go
package mainimport (
"fmt""github.com/xyproto/lookslikegoasm"
)func main() {
asmSource := `
TEXT hello(SB), $0-0
MOVQ AX, BX
ADDQ $1, AX
CALL somefunction
`if lookslikegoasm.Consider(asmSource) {
fmt.Println("Looks like Go/Plan9 style Assembly")
} else {
fmt.Println("Does not look like Go/Plan9 style Assembly")
}
}
```General info:
* Version: 1.0.0
* License: BSD-3