diff -r d55d740fb1fc -r 704b049b9aa2 udis86sx/UDIS86Instruction.st --- a/udis86sx/UDIS86Instruction.st Mon Jun 25 15:45:17 2018 +0100 +++ b/udis86sx/UDIS86Instruction.st Thu Aug 16 14:10:06 2018 +0100 @@ -79,20 +79,27 @@ ^ assembly ! -branchTargetAddress - " - Return and address of next instruction if branch is taken. - Assumes that this instruction is a branch instruction. +branchTarget " - self assert: self isBranchInstruction. - self assert: operand0 notNil. - self assert: operand0 type = UD_OP_JIMM. - + Return and address of next instruction if branch is taken. + Assumes that this instruction is a branch instruction." + + self assert:self isBranch. + self assert:operand0 notNil. + self assert:operand0 type = UD_OP_JIMM. ^ pc + len + operand0 sval. "Created: / 26-06-2018 / 11:38:34 / Jan Vrany " ! ! +!UDIS86Instruction methodsFor:'enumerating'! + +instructionsDo: aBlock + aBlock value: self. + + "Created: / 16-08-2018 / 16:15:05 / Jan Vrany " +! ! + !UDIS86Instruction methodsFor:'initialization'! setAssembly: aString @@ -149,22 +156,22 @@ !UDIS86Instruction methodsFor:'testing'! -isBranchInstruction +isBranch " - Return `true` is this instruction is some sort of branch instruction. - " - ^ mnemonic between: UD_Ijo and: UD_Ijmp + Return `true` is this instruction is some sort of branch instruction." + + ^ mnemonic between:UD_Ijo and:UD_Ijmp "Created: / 26-06-2018 / 11:35:57 / Jan Vrany " ! -isReturnInstruction - " - Return `true` is this instruction is a return - " - ^ mnemonic between: UD_Iret and: UD_Iretf +isReturn + "Return `true` is this instruction is a return" + + ^ mnemonic between:UD_Iret and:UD_Iretf "Created: / 26-06-2018 / 15:39:00 / Jan Vrany " + "Modified (comment): / 16-08-2018 / 14:02:26 / Jan Vrany " ! ! !UDIS86Instruction class methodsFor:'documentation'!