Register | Login
Forum Index > Bugs and Fixes > Jcc instructions
Author Message
Pages: 1 2
0CodErr
Ziron Guru
(send private message)

Posts: 199
Topics: 37

Location:
[1624] - posted: 2015-02-04 19:20:42
Later I will probably further optimise things, but for now it is fine.
Ok, then smile
I asked because if we tested some builder and it works fine then it is no warranty that other builders also works fine. And it means that need more tests then.
0CodErr
Ziron Guru
(send private message)

Posts: 199
Topics: 37

Location:
[1645] - posted: 2015-02-07 11:09:42
Here are all jumps can be coded as short:
Code:
program RAW_IMAGE 'test';

#set bits 32;

$repeat 64: jmp l1 $end l1:

Result:
Code:
00000000  E987000000        jmp dword 0x8c
00000005  E982000000        jmp dword 0x8c
0000000A  E97D000000        jmp dword 0x8c
0000000F  E978000000        jmp dword 0x8c
00000014  EB76              jmp short 0x8c
00000016  EB74              jmp short 0x8c
00000018  EB72              jmp short 0x8c
0000001A  EB70              jmp short 0x8c
0000001C  EB6E              jmp short 0x8c
0000001E  EB6C              jmp short 0x8c
00000020  EB6A              jmp short 0x8c
00000022  EB68              jmp short 0x8c
00000024  EB66              jmp short 0x8c
00000026  EB64              jmp short 0x8c
00000028  EB62              jmp short 0x8c
0000002A  EB60              jmp short 0x8c
0000002C  EB5E              jmp short 0x8c
0000002E  EB5C              jmp short 0x8c
00000030  EB5A              jmp short 0x8c
00000032  EB58              jmp short 0x8c
00000034  EB56              jmp short 0x8c
00000036  EB54              jmp short 0x8c
00000038  EB52              jmp short 0x8c
0000003A  EB50              jmp short 0x8c
0000003C  EB4E              jmp short 0x8c
0000003E  EB4C              jmp short 0x8c
00000040  EB4A              jmp short 0x8c
00000042  EB48              jmp short 0x8c
00000044  EB46              jmp short 0x8c
00000046  EB44              jmp short 0x8c
00000048  EB42              jmp short 0x8c
0000004A  EB40              jmp short 0x8c
0000004C  EB3E              jmp short 0x8c
0000004E  EB3C              jmp short 0x8c
00000050  EB3A              jmp short 0x8c
00000052  EB38              jmp short 0x8c
00000054  EB36              jmp short 0x8c
00000056  EB34              jmp short 0x8c
00000058  EB32              jmp short 0x8c
0000005A  EB30              jmp short 0x8c
0000005C  EB2E              jmp short 0x8c
0000005E  EB2C              jmp short 0x8c
00000060  EB2A              jmp short 0x8c
00000062  EB28              jmp short 0x8c
00000064  EB26              jmp short 0x8c
00000066  EB24              jmp short 0x8c
00000068  EB22              jmp short 0x8c
0000006A  EB20              jmp short 0x8c
0000006C  EB1E              jmp short 0x8c
0000006E  EB1C              jmp short 0x8c
00000070  EB1A              jmp short 0x8c
00000072  EB18              jmp short 0x8c
00000074  EB16              jmp short 0x8c
00000076  EB14              jmp short 0x8c
00000078  EB12              jmp short 0x8c
0000007A  EB10              jmp short 0x8c
0000007C  EB0E              jmp short 0x8c
0000007E  EB0C              jmp short 0x8c
00000080  EB0A              jmp short 0x8c
00000082  EB08              jmp short 0x8c
00000084  EB06              jmp short 0x8c
00000086  EB04              jmp short 0x8c
00000088  EB02              jmp short 0x8c
0000008A  EB00              jmp short 0x8c
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[1651] - posted: 2015-02-07 18:59:25
Fixed for next release.

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
0CodErr
Ziron Guru
(send private message)

Posts: 199
Topics: 37

Location:
[1660] - posted: 2015-02-10 16:56:43
Code:
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 repeat {
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }
 }

Result


Take a look at first not short instruction
Code:
;........................................
0000007C  EB82              jmp short 0x0
0000007E  E97DFFFFFF        jmp dword 0x0
;........................................

It also can be coded as short variant i.e.
Code:
EB80
0CodErr
Ziron Guru
(send private message)

Posts: 199
Topics: 37

Location:
[1661] - posted: 2015-02-10 16:57:38
Result for above http://pastebin.com/0rFA3wFS
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[1669] - posted: 2015-02-11 14:16:55
Thanks, this should be fixed in next release.

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Pages: 1 2
create new reply


Quick reply:

Message:



Currently Active Users:
There are currently 7 user(s) online. 0 member(s) and 7 guest(s)
Most users ever online was 1046, January 28, 2022, 2:08 pm.


Statistics:
Threads: 225 | Posts: 1848 | Members: 51 | Active Members: 51
Welcome to our newest member, yecate
const Copyright = '2011-2024 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd