Search
17:09:04
ebrasca
froggey: Binutils help, but I don't know how to add firs instruction.
17:17:11
froggey
you implemented define-instruction, didn't you?
17:25:29
ebrasca
; Debugger entered on #<SB-KERNEL:CASE-FAILURE expected-type: (MEMBER :X86-64 :ARM64) datum: :PPC64>
17:28:03
froggey
find whatever function is signalling that error & add :ppc64 to it
17:29:18
ebrasca
LAP-PPC64> (define-instruction bl (address)
17:29:18
ebrasca
(when (emit #x05000048 address)
17:29:18
ebrasca
(return-from instruction t)))
17:32:05
froggey
emit takes bytes, not words
17:32:36
froggey
you should look at how the arm assembler works, that'll be more similar to ppc than x86 is
17:33:14
froggey
specifically arm's b instruction, around line 1166
17:34:15
froggey
arm64 has emit-instruction, which takes a whole instruction word and breaks it up into bytes for emit