Skip to content

Commit

Permalink
add arm/arm64 byte code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pkujhd committed Jun 4, 2020
1 parent e10905e commit d8a1b3c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions asm_bytes.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ const (

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

// x86/amd64
Expand Down

0 comments on commit d8a1b3c

Please sign in to comment.