2017-07-21 12:52 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000011Cheat Enginepublic2008-08-27 13:19
ReporterSunBeam 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusconfirmedResolutionopen 
Summary0000011: Short/Long jumps in Auto-assembler
DescriptionWhen using scripts like:

alloc(cave,128)
label(end)
label(back)

cave:
cmp byte ptr [cave],0
je end
dec word ptr [esi+edx*2]
end:
lea eax,[esi+edx*2]
jmp back

Cheat Engine will automatically use a LONG JUMP where "je end" is. Since 'end' is a label inside the cave, the jump should be a short one ;)
TagsNo tags attached.
Attached Files

-Relationships
related to 0000054confirmed CE 5.4.2 - Additional NOPs after conditional jump 
+Relationships

-Notes

~0000015

Dark Byte (developer)

Last edited: 2007-09-14 06:16

je end is actually a short jump
I think you mean the fill code thats placed between the short jump and the next instruction.
That is needed because at the time of assembling it isn't yet known if the total number of instructions between end and the jump is bigger than 128 bytes or not. (If it's bigger, it has to be a long jump, and it can't find out if the size is bigger if there are other jumps in between that can also change size. That it is in the same cave doesn't explicitly mean it's always a short jump)

Anyhow, the delay of the fill code takes up arround 0.00000000016 seconds on a 3GHz cpu

~0000119

Dark Byte (developer)

Minor update on this one, implemented the short and long override for jumps. So if you know it's going to be a short jump, you can do "je short end"
+Notes

-Issue History
Date Modified Username Field Change
2007-09-13 06:55 SunBeam New Issue
2007-09-14 06:05 Dark Byte Status new => assigned
2007-09-14 06:05 Dark Byte Assigned To => Dark Byte
2007-09-14 06:15 Dark Byte Note Added: 0000015
2007-09-14 06:15 Dark Byte Status assigned => confirmed
2007-09-14 06:16 Dark Byte Note Edited: 0000015
2007-09-14 06:23 Dark Byte Assigned To Dark Byte =>
2008-07-14 02:34 Dark Byte Relationship added related to 0000054
2008-08-27 13:19 Dark Byte Note Added: 0000119
+Issue History