Forum > General

asm: j is jo, but only sometimes

(1/1)

Kays:
Hi,

why does my attached program translate an instruction into something totally different? I use FPC 3.0.4.


--- Code: ASM  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---$ objdump -d --start-address=0x4001d8 --stop-address=0x4001e5 -M intel --insn-width=4 sizeOfDemo sizeOfDemo:     file format elf64-x86-64  Disassembly of section .text: 00000000004001d8 <P$SIZEOFDEMO_$$_SUM$array_of_SMALLINT$$INT64+0x18>:  4001d8:       66 8b 14 4e     mov    dx,WORD PTR [rsi+rcx*2]  4001dc:       48 01 d0        add    rax,rdx  4001df:       70 04           jo     4001e5 <P$SIZEOFDEMO_$$_SUM$array_of_SMALLINT$$INT64+0x25>  4001e1:       e2 f5           loop   4001d8 <P$SIZEOFDEMO_$$_SUM$array_of_SMALLINT$$INT64+0x18>  4001e3:       70 03           jo     4001e8 <P$SIZEOFDEMO_$$_SUM$array_of_SMALLINT$$INT64+0x28>The second jo-instruction clearly reads in the source code as j @sum_done (unconditional)

marcov:
I don't know the "j" mnemonic, but best is to file a bug. Maybe test with the normal opcode ("jmp") first.

Kays:

--- Quote from: marcov on May 16, 2018, 11:25:37 am ---I don't know the "j" mnemonic, but best is to file a bug. Maybe test with the normal opcode ("jmp") first.

--- End quote ---
Bingo.

Navigation

[0] Message Index

Go to full version