Search
Thursday, 12th of October 2017, 7:03:35 UTC
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
17:57:06
ebrasca
How I can run some assambler instructions from mezzano in debian qemu ppc64?
18:09:31
froggey
if you want to check what you've assembled, you can copy the bytes into an assembly file as bytes and assemble it with binutils' assembler
18:10:47
froggey
the mezzano assembler will produce a vector of bytes like #(1 2 3 4), you can create a file call foo.s containing ".byte 1, 2, 3, 4"
18:33:05
ebrasca
5bit , 6 to 29 , bit 30 , bit 31
Thursday, 12th of October 2017, 19:03:35 UTC