Skip to content

Commit d8a1b3c

Browse files
committed
add arm/arm64 byte code comment
1 parent e10905e commit d8a1b3c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

asm_bytes.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ const (
88

99
// arm/arm64
1010
var (
11-
armcode = []byte{0x04, 0xF0, 0x1F, 0xE5}
12-
arm64code = []byte{0x49, 0x00, 0x00, 0x58, 0x20, 0x01, 0x1F, 0xD6}
11+
armcode = []byte{0x04, 0xF0, 0x1F, 0xE5} //LDR PC, [PC, #-4]
12+
arm64code = []byte{
13+
0x49, 0x00, 0x00, 0x58, // LDR X9 [PC+8]
14+
0x20, 0x01, 0x1F, 0xD6} // BR X9
1315
)
1416

1517
// x86/amd64

0 commit comments

Comments
 (0)