id stringlengths 22 129 | text stringlengths 60 19.5k | arch stringclasses 9
values | syntax stringclasses 5
values | kind stringclasses 4
values | repo stringclasses 32
values | path stringlengths 7 108 | license stringclasses 10
values | commit stringlengths 40 40 | source_host stringclasses 1
value | category stringclasses 15
values | source_url stringlengths 85 192 | line_start int64 1 5.48k | line_end int64 4 5.5k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Terraspace/UASM:x64/Release/branch.asm:11 | mov DWORD PTR [rbx+28], 130 ; 00000082H
$LN147@process_br:
; 263 : }
; 264 : }
; 265 : if( ( CodeInfo->mem_type == MT_EMPTY ||
; 266 : CodeInfo->mem_type == MT_NEAR ) &&
mov eax, DWORD PTR [rbx+28]
cmp eax, 192 ; 000000c0H
je SHORT $LN41@process_br
cmp eax, 129 ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/branch.asm | 401 | 460 |
Terraspace/UASM:x64/Release/branch.asm:12 | mov rcx, rbx
call FarCallToNear
$LN42@process_br:
; 278 : }
; 279 :
; 280 : //addr = sym->offset; /* v2.02: this has been done above */
; 281 : DebugMsg(("process_branch: step1: addr=%Xh\n", addr ));
; 282 : addr -= ( GetCurrOffset() + 2 ); /* calculate the displa... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/branch.asm | 441 | 500 |
Terraspace/UASM:x64/Release/branch.asm:13 | $LN44@process_br:
; 289 :
; 290 : /* v2.02: removed */
; 291 : //if( CodeInfo->token == T_CALL && CodeInfo->mem_type == MT_EMPTY ) {
; 292 : // CodeInfo->mem_type = MT_NEAR;
; 293 : //}
; 294 : DebugMsg(("process_branch: CI.memtype=%Xh addr=%Xh\n", C... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/branch.asm | 481 | 540 |
Terraspace/UASM:x64/Release/branch.asm:15 | add al, al
xor al, BYTE PTR [rbx+9]
and al, 2
xor BYTE PTR [rbx+9], al
; 332 : if ( CodeInfo->prefix.opsiz )
test BYTE PTR [rbx+9], 2
je SHORT $LN60@process_br
; 333 : addr--;
; 334 : } else if( CodeInfo->Ofssize > USE16 ) {
jmp SHORT $LN157@proce... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/branch.asm | 561 | 620 |
Terraspace/UASM:x64/Release/branch.asm:16 | mov eax, DWORD PTR [rbx+24]
sub eax, 456 ; 000001c8H
cmp eax, 29
ja SHORT $LN61@process_br
; 340 : }
; 341 : if( IS_CONDJMP( CodeInfo->token ) ) {
; 342 : /* 1 extra byte for opcode ( 0F ) */
; 343 : addr--;
dec ebp
$LN61@process_br:
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/branch.asm | 601 | 660 |
Terraspace/UASM:x64/Release/branch.asm:18 | mov r13d, DWORD PTR state$1$[rsp]
test r13d, r13d
je $LN66@process_br
; 381 : return( NOT_ERROR ); /* exit, no fixup is written! */
jmp $LN158@process_br
$LN64@process_br:
; 362 : //return( SCRAP_INSTRUCTION );
; 363 : //} else if( !PhaseError ) {
; 3... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/branch.asm | 681 | 740 |
Terraspace/UASM:x64/Release/branch.asm:21 | $LN33@process_br:
; 238 : symseg->e.seginfo->group == CurrSeg->e.seginfo->group )
; 239 : ;
; 240 : /* v2.05: added SegOverride condition */
; 241 : //else if ( opndx->mem_type == MT_NEAR ) {
; 242 : else if ( opndx->mem_type ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/branch.asm | 801 | 860 |
Terraspace/UASM:x64/Release/branch.asm:22 | ; 393 : * another segment of the same group. However, a fixup must be written.
; 394 : * Masm does NOT optimize if destination is external!
; 395 : */
; 396 : if( CodeInfo->token == T_CALL &&
; 397 : CodeInfo->mem_type == MT_EMPTY &&
cmp DWORD PTR [rbx+24], 454 ; 000001c6H
mov ebp, D... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/branch.asm | 841 | 900 |
Terraspace/UASM:x64/Release/branch.asm:23 | ; 403 : FarCallToNear( CodeInfo ); /* switch mem_type to NEAR */
mov rcx, rbx
call FarCallToNear
$LN69@process_br:
; 404 : }
; 405 : }
; 406 : /* forward ref, or external symbol */
; 407 : if( CodeInfo->mem_type == MT_EMPTY && mem_type != MT_EMPTY && opndx->instr != T_SHORT ) {
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/branch.asm | 881 | 940 |
Terraspace/UASM:x64/Release/branch.asm:24 | ; 416 : }
; 417 : /* v2.06: commented 2 lines to copy behavior of MT_NEAR */
; 418 : //CodeInfo->mem_type = mem_type;
; 419 : //break;
; 420 : case MT_NEAR:
; 421 : /* v2.04: 'if' added */
; 422 : if ( state != SYM_UNDEFINED )
test... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/branch.asm | 921 | 980 |
Terraspace/UASM:x64/Release/branch.asm:28 | ; 457 : } else {
; 458 : fixup_type = FIX_PTR16;
mov edi, 9
; 459 : CodeInfo->opnd[OPND1].type = OP_I32;
mov DWORD PTR [rbx+32], 524288 ; 00080000H
; 460 : }
; 461 : break;
; 462 : #ifdef DEBUG_OUT
; 463 : default: /* cannot happe... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/branch.asm | 1,081 | 1,140 |
Terraspace/UASM:x64/Release/branch.asm:29 | je $LN89@process_br
cmp ecx, edi
je $LN91@process_br
lea eax, DWORD PTR [rdx-486]
cmp eax, 17
ja SHORT $LN104@process_br
; 523 : break;
; 524 : #ifdef DEBUG_OUT
; 525 : default:
; 526 : DebugMsg(("process_branch: JMP/CALL, unexpected mem_type=%X\n", CodeInfo->mem_type ));
; 527... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/branch.asm | 1,121 | 1,180 |
Terraspace/UASM:x64/Release/branch.asm:44 | mov eax, 6
cmovne ebx, eax
; 88 : } else {
jmp SHORT $LN4@jumpExtend
$LN5@jumpExtend:
; 89 : /* it's EA OOOOOOOO SSSS or EA OOOO SSSS */
; 90 : next_ins_size = CodeInfo->Ofssize ? 7 : 5;
cmp BYTE PTR [rdi+106], 0
mov ebx, 5
mov eax, 7
cmovne ebx, eax
; 91 : }
;... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/branch.asm | 1,721 | 1,780 |
Terraspace/UASM:x64/Release/branch.asm:45 | mov rax, QWORD PTR [rdi+16]
movzx ecx, BYTE PTR [rax+12]
xor cl, 1
call OutputByte
; 102 : OutputCodeByte( next_ins_size );
movzx ecx, bl
call OutputByte
; 103 : CodeInfo->token = T_JMP;
; 104 : CodeInfo->pinstr = &InstrTable[ IndexFromToken( T_JMP )];
; 105 :
; 106 : return;
; 107 : }
m... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/branch.asm | 1,761 | 1,789 |
Terraspace/UASM:x64/Release/branch.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23026.0
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM decoflags:BYTE
COMM broadflags:BYTE
COMM evex:BYTE
COMM ZEROLOCALS:BYTE
_DATA ENDS
_BSS SEGMENT
$SG10751 DB 01H DUP (?)
_BSS ENDS
PUBLIC process_branch
EXTRN Emi... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 28b09fcf7ca2f77034c045fe6612c4a02ec747a9 | github | assembler | https://github.com/Terraspace/UASM/blob/28b09fcf7ca2f77034c045fe6612c4a02ec747a9/x64/Release/branch.asm | 1 | 60 |
Terraspace/UASM:x64/Release/branch.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23026.0
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM decoflags:BYTE
COMM broadflags:BYTE
COMM evex:BYTE
COMM ZEROLOCALS:BYTE
_DATA ENDS
_BSS SEGMENT
$SG10750 DB 01H DUP (?)
_BSS ENDS
PUBLIC process_branch
EXTRN Emi... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 12b57bbdd33753207bcb1730f952f11ccb53cef0 | github | assembler | https://github.com/Terraspace/UASM/blob/12b57bbdd33753207bcb1730f952f11ccb53cef0/x64/Release/branch.asm | 1 | 60 |
Terraspace/UASM:x64/Release/branch.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23026.0
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM decoflags:BYTE
COMM broadflags:BYTE
COMM evex:BYTE
COMM ZEROLOCALS:BYTE
_DATA ENDS
_BSS SEGMENT
$SG10739 DB 01H DUP (?)
_BSS ENDS
PUBLIC process_branch
EXTRN Emi... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | b6bee747552c348862b443ee3dba33a9f71485f4 | github | assembler | https://github.com/Terraspace/UASM/blob/b6bee747552c348862b443ee3dba33a9f71485f4/x64/Release/branch.asm | 1 | 60 |
Terraspace/UASM:x64/Release/branch.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23026.0
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM decoflags:BYTE
COMM broadflags:BYTE
COMM evex:BYTE
COMM ZEROLOCALS:BYTE
_DATA ENDS
_BSS SEGMENT
$SG10735 DB 01H DUP (?)
_BSS ENDS
PUBLIC process_branch
EXTRN Emi... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/branch.asm | 1 | 60 |
Terraspace/UASM:x64/Release/branch.asm:3 | xdata SEGMENT
$unwind$jumpExtend DD 040a01H
DD 06340aH
DD 07006320aH
xdata ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\branch.c
_TEXT SEGMENT
CodeInfo$ = 80
state$1$ = 88
CurrOpnd$ = 88
opndx$ = 96
process_branch PROC
; 135 : {
$LN167:
push rbx
push rsi
push r13
sub rsp, ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/branch.asm | 81 | 140 |
Terraspace/UASM:x64/Release/branch.asm:11 | mov DWORD PTR [rbx+28], 130 ; 00000082H
$LN147@process_br:
; 263 : }
; 264 : }
; 265 : if( ( CodeInfo->mem_type == MT_EMPTY ||
; 266 : CodeInfo->mem_type == MT_NEAR ) &&
mov eax, DWORD PTR [rbx+28]
cmp eax, 192 ; 000000c0H
je SHORT $LN41@process_br
cmp eax, 129 ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/branch.asm | 401 | 460 |
Terraspace/UASM:x64/Release/branch.asm:12 | mov rcx, rbx
call FarCallToNear
$LN42@process_br:
; 278 : }
; 279 :
; 280 : //addr = sym->offset; /* v2.02: this has been done above */
; 281 : DebugMsg(("process_branch: step1: addr=%Xh\n", addr ));
; 282 : addr -= ( GetCurrOffset() + 2 ); /* calculate the displa... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/branch.asm | 441 | 500 |
Terraspace/UASM:x64/Release/branch.asm:13 | $LN44@process_br:
; 289 :
; 290 : /* v2.02: removed */
; 291 : //if( CodeInfo->token == T_CALL && CodeInfo->mem_type == MT_EMPTY ) {
; 292 : // CodeInfo->mem_type = MT_NEAR;
; 293 : //}
; 294 : DebugMsg(("process_branch: CI.memtype=%Xh addr=%Xh\n", C... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/branch.asm | 481 | 540 |
Terraspace/UASM:x64/Release/branch.asm:15 | add al, al
xor al, BYTE PTR [rbx+9]
and al, 2
xor BYTE PTR [rbx+9], al
; 332 : if ( CodeInfo->prefix.opsiz )
test BYTE PTR [rbx+9], 2
je SHORT $LN60@process_br
; 333 : addr--;
; 334 : } else if( CodeInfo->Ofssize > USE16 ) {
jmp SHORT $LN157@proce... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/branch.asm | 561 | 620 |
Terraspace/UASM:x64/Release/branch.asm:16 | mov eax, DWORD PTR [rbx+24]
sub eax, 452 ; 000001c4H
cmp eax, 29
ja SHORT $LN61@process_br
; 340 : }
; 341 : if( IS_CONDJMP( CodeInfo->token ) ) {
; 342 : /* 1 extra byte for opcode ( 0F ) */
; 343 : addr--;
dec ebp
$LN61@process_br:
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/branch.asm | 601 | 660 |
Terraspace/UASM:x64/Release/branch.asm:18 | mov r13d, DWORD PTR state$1$[rsp]
test r13d, r13d
je $LN66@process_br
; 381 : return( NOT_ERROR ); /* exit, no fixup is written! */
jmp $LN158@process_br
$LN64@process_br:
; 362 : //return( SCRAP_INSTRUCTION );
; 363 : //} else if( !PhaseError ) {
; 3... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/branch.asm | 681 | 740 |
Terraspace/UASM:x64/Release/branch.asm:21 | $LN33@process_br:
; 238 : symseg->e.seginfo->group == CurrSeg->e.seginfo->group )
; 239 : ;
; 240 : /* v2.05: added SegOverride condition */
; 241 : //else if ( opndx->mem_type == MT_NEAR ) {
; 242 : else if ( opndx->mem_type ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/branch.asm | 801 | 860 |
Terraspace/UASM:x64/Release/branch.asm:22 | ; 393 : * another segment of the same group. However, a fixup must be written.
; 394 : * Masm does NOT optimize if destination is external!
; 395 : */
; 396 : if( CodeInfo->token == T_CALL &&
; 397 : CodeInfo->mem_type == MT_EMPTY &&
cmp DWORD PTR [rbx+24], 450 ; 000001c2H
mov ebp, D... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/branch.asm | 841 | 900 |
Terraspace/UASM:x64/Release/branch.asm:23 | ; 403 : FarCallToNear( CodeInfo ); /* switch mem_type to NEAR */
mov rcx, rbx
call FarCallToNear
$LN69@process_br:
; 404 : }
; 405 : }
; 406 : /* forward ref, or external symbol */
; 407 : if( CodeInfo->mem_type == MT_EMPTY && mem_type != MT_EMPTY && opndx->instr != T_SHORT ) {
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/branch.asm | 881 | 940 |
Terraspace/UASM:x64/Release/branch.asm:24 | ; 416 : }
; 417 : /* v2.06: commented 2 lines to copy behavior of MT_NEAR */
; 418 : //CodeInfo->mem_type = mem_type;
; 419 : //break;
; 420 : case MT_NEAR:
; 421 : /* v2.04: 'if' added */
; 422 : if ( state != SYM_UNDEFINED )
test... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/branch.asm | 921 | 980 |
Terraspace/UASM:x64/Release/branch.asm:28 | ; 457 : } else {
; 458 : fixup_type = FIX_PTR16;
mov edi, 9
; 459 : CodeInfo->opnd[OPND1].type = OP_I32;
mov DWORD PTR [rbx+32], 524288 ; 00080000H
; 460 : }
; 461 : break;
; 462 : #ifdef DEBUG_OUT
; 463 : default: /* cannot happe... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/branch.asm | 1,081 | 1,140 |
Terraspace/UASM:x64/Release/branch.asm:29 | je $LN89@process_br
cmp ecx, edi
je $LN91@process_br
lea eax, DWORD PTR [rdx-482]
cmp eax, 17
ja SHORT $LN104@process_br
; 523 : break;
; 524 : #ifdef DEBUG_OUT
; 525 : default:
; 526 : DebugMsg(("process_branch: JMP/CALL, unexpected mem_type=%X\n", CodeInfo->mem_type ));
; 527... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/branch.asm | 1,121 | 1,180 |
Terraspace/UASM:x64/Release/branch.asm:44 | mov eax, 6
cmovne ebx, eax
; 88 : } else {
jmp SHORT $LN4@jumpExtend
$LN5@jumpExtend:
; 89 : /* it's EA OOOOOOOO SSSS or EA OOOO SSSS */
; 90 : next_ins_size = CodeInfo->Ofssize ? 7 : 5;
cmp BYTE PTR [rdi+106], 0
mov ebx, 5
mov eax, 7
cmovne ebx, eax
; 91 : }
;... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/branch.asm | 1,721 | 1,780 |
Terraspace/UASM:x64/Release/branch.asm:45 | mov rax, QWORD PTR [rdi+16]
movzx ecx, BYTE PTR [rax+12]
xor cl, 1
call OutputByte
; 102 : OutputCodeByte( next_ins_size );
movzx ecx, bl
call OutputByte
; 103 : CodeInfo->token = T_JMP;
; 104 : CodeInfo->pinstr = &InstrTable[ IndexFromToken( T_JMP )];
; 105 :
; 106 : return;
; 107 : }
m... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/branch.asm | 1,761 | 1,789 |
Terraspace/UASM:x64/Release/branch.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23026.0
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM decoflags:BYTE
COMM broadflags:BYTE
COMM evex:BYTE
_DATA ENDS
_BSS SEGMENT
$SG10734 DB 01H DUP (?)
_BSS ENDS
PUBLIC process_branch
EXTRN EmitError:PROC
EXTRN Emi... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 1 | 60 |
Terraspace/UASM:x64/Release/branch.asm:2 | $pdata$FarCallToNear DD imagerel FarCallToNear
DD imagerel FarCallToNear+53
DD imagerel $unwind$FarCallToNear
pdata ENDS
pdata SEGMENT
$pdata$process_branch DD imagerel $LN167
DD imagerel $LN167+242
DD imagerel $unwind$process_branch
$pdata$4$process_branch DD imagerel $LN167+242
DD imagerel $LN167+2116
DD imager... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 41 | 100 |
Terraspace/UASM:x64/Release/branch.asm:3 | $unwind$jumpExtend DD 040a01H
DD 06340aH
DD 07006320aH
xdata ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\branch.c
_TEXT SEGMENT
CodeInfo$ = 80
state$1$ = 88
CurrOpnd$ = 88
opndx$ = 96
process_branch PROC
; 135 : {
$LN167:
push rbx
push rsi
push r13
sub rsp, 48 ; 00000... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 81 | 140 |
Terraspace/UASM:x64/Release/branch.asm:4 | test edx, edx
je SHORT $LN14@process_br
; 147 : //EmitError( SYNTAX_ERROR ); /* v2.10: error msg changed */
; 148 : return( EmitError( INVALID_INSTRUCTION_OPERANDS ) );
mov ecx, 49 ; 00000031H
; 632 : }
add rsp, 48 ; 00000030H
pop r13
pop rsi
pop rbx
; 147 : //EmitError( S... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 121 | 180 |
Terraspace/UASM:x64/Release/branch.asm:5 | ; 157 : if ( opndx->override != NULL ) {
cmp QWORD PTR [r8+48], 0
je SHORT $LN19@process_br
; 158 : segm_override( opndx, NULL );
xor edx, edx
mov rcx, r8
call segm_override
; 159 : DebugMsg(("process_branch(%" I32_SPEC "X): segment override %s\n", GetCurrOffset(), SegOverride ? SegOverr... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 161 | 220 |
Terraspace/UASM:x64/Release/branch.asm:6 | pop r13
pop rsi
pop rbx
; 162 : return( EmitErr( CANNOT_ACCESS_LABEL_THROUGH_SEGMENT_REGISTERS, opndx->sym ? opndx->sym->name : "" ) );
jmp EmitErr
$LN18@process_br:
; 163 : }
; 164 : /* v2.05: switch to far jmp/call */
; 165 : if ( SegOverride != &CurrSeg->... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 201 | 260 |
Terraspace/UASM:x64/Release/branch.asm:7 | mov DWORD PTR [rbx+44], r14d
mov QWORD PTR [rsp+32], r15
mov DWORD PTR [rbx+40], eax
; 176 : sym = opndx->sym;
mov r15, QWORD PTR [rsi+80]
; 177 : if( sym == NULL ) { /* no symbolic label specified? */
test r15, r15
jne SHORT $LN20@process_br
; 178 : DebugMsg(("process_branch(%" I32_SPEC "X... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 241 | 300 |
Terraspace/UASM:x64/Release/branch.asm:8 | ; 199 : state = sym->state;
mov eax, DWORD PTR [r15+32]
mov QWORD PTR [rsp+80], rbp
mov QWORD PTR [rsp+96], rdi
mov QWORD PTR [rsp+104], r12
mov DWORD PTR state$1$[rsp], eax
; 200 : addr = GetCurrOffset(); /* for SYM_UNDEFINED, will force distance to SHORT */
call GetCurrOffset
; 201 :
; 202 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 281 | 340 |
Terraspace/UASM:x64/Release/branch.asm:9 | $LN21@process_br:
cmp ecx, edi
je SHORT $LN136@process_br
; 249 : }
; 250 : } else if ( state != SYM_UNDEFINED ) {
test ecx, ecx
je SHORT $LN27@process_br
; 251 : DebugMsg(("process_branch(%s): error, unexpected symbol state=%u\n", sym->name, sym->state ));
; 252 : return( EmitErr... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 321 | 380 |
Terraspace/UASM:x64/Release/branch.asm:10 | mov rdx, QWORD PTR [r15+24]
; 224 : if( symseg == NULL || ( CurrSeg != symseg ) ) {
test rdx, rdx
je $LN28@process_br
cmp QWORD PTR ModuleInfo+432, rdx
jne $LN28@process_br
$LN27@process_br:
; 253 : }
; 254 :
; 255 : if ( state != SYM_EXTERNAL ) {
cmp ecx, 2
je $LN150@process_br
$LN139@pro... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 361 | 420 |
Terraspace/UASM:x64/Release/branch.asm:11 | $LN147@process_br:
; 263 : }
; 264 : }
; 265 : if( ( CodeInfo->mem_type == MT_EMPTY ||
; 266 : CodeInfo->mem_type == MT_NEAR ) &&
mov eax, DWORD PTR [rbx+28]
cmp eax, 192 ; 000000c0H
je SHORT $LN41@process_br
cmp eax, 129 ; 00000081H
jne $LN149@process_br
$LN4... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 401 | 460 |
Terraspace/UASM:x64/Release/branch.asm:12 | call FarCallToNear
$LN42@process_br:
; 278 : }
; 279 :
; 280 : //addr = sym->offset; /* v2.02: this has been done above */
; 281 : DebugMsg(("process_branch: step1: addr=%Xh\n", addr ));
; 282 : addr -= ( GetCurrOffset() + 2 ); /* calculate the displacement */
ca... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 441 | 500 |
Terraspace/UASM:x64/Release/branch.asm:13 | ; 289 :
; 290 : /* v2.02: removed */
; 291 : //if( CodeInfo->token == T_CALL && CodeInfo->mem_type == MT_EMPTY ) {
; 292 : // CodeInfo->mem_type = MT_NEAR;
; 293 : //}
; 294 : DebugMsg(("process_branch: CI.memtype=%Xh addr=%Xh\n", CodeInfo->mem_type, ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 481 | 540 |
Terraspace/UASM:x64/Release/branch.asm:14 | ; 323 : if ( opndx->Ofssize != USE_EMPTY ) {
movzx eax, BYTE PTR [rsi+69]
cmp al, 254 ; 000000feH
je SHORT $LN54@process_br
; 324 : if ( opndx->Ofssize == USE16 ) {
test al, al
jne SHORT $LN56@process_br
; 325 : CodeInfo->opnd[OPND1].type = OP_... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 521 | 580 |
Terraspace/UASM:x64/Release/branch.asm:15 | xor al, BYTE PTR [rbx+9]
and al, 2
xor BYTE PTR [rbx+9], al
; 332 : if ( CodeInfo->prefix.opsiz )
test BYTE PTR [rbx+9], 2
je SHORT $LN60@process_br
; 333 : addr--;
; 334 : } else if( CodeInfo->Ofssize > USE16 ) {
jmp SHORT $LN157@process_br
$LN54@... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 561 | 620 |
Terraspace/UASM:x64/Release/branch.asm:16 | sub eax, 452 ; 000001c4H
cmp eax, 29
ja SHORT $LN61@process_br
; 340 : }
; 341 : if( IS_CONDJMP( CodeInfo->token ) ) {
; 342 : /* 1 extra byte for opcode ( 0F ) */
; 343 : addr--;
dec ebp
$LN61@process_br:
; 344 : }
; ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 601 | 660 |
Terraspace/UASM:x64/Release/branch.asm:18 | mov r13d, DWORD PTR state$1$[rsp]
test r13d, r13d
je $LN66@process_br
; 381 : return( NOT_ERROR ); /* exit, no fixup is written! */
jmp $LN158@process_br
$LN64@process_br:
; 362 : //return( SCRAP_INSTRUCTION );
; 363 : //} else if( !PhaseError ) {
; 3... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 681 | 740 |
Terraspace/UASM:x64/Release/branch.asm:19 | test ebp, ebp
jns SHORT $LN52@process_br
; 315 : addr -= SCHAR_MIN;
mov eax, -128 ; ffffffffffffff80H
sub eax, ebp
; 316 : addr = 0 - addr;
mov ebp, eax
; 317 : } else
jmp SHORT $LN53@process_br
$LN52@process_br:
; 318 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 721 | 780 |
Terraspace/UASM:x64/Release/branch.asm:21 | ; 238 : symseg->e.seginfo->group == CurrSeg->e.seginfo->group )
; 239 : ;
; 240 : /* v2.05: added SegOverride condition */
; 241 : //else if ( opndx->mem_type == MT_NEAR ) {
; 242 : else if ( opndx->mem_type == MT_NEAR && SegOv... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 801 | 860 |
Terraspace/UASM:x64/Release/branch.asm:22 | ; 394 : * Masm does NOT optimize if destination is external!
; 395 : */
; 396 : if( CodeInfo->token == T_CALL &&
; 397 : CodeInfo->mem_type == MT_EMPTY &&
cmp DWORD PTR [rbx+24], 450 ; 000001c2H
mov ebp, DWORD PTR [rsi+64]
jne SHORT $LN69@process_br
cmp DWORD PTR [rbx+28], 192 ; 000000... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 841 | 900 |
Terraspace/UASM:x64/Release/branch.asm:23 | mov rcx, rbx
call FarCallToNear
$LN69@process_br:
; 404 : }
; 405 : }
; 406 : /* forward ref, or external symbol */
; 407 : if( CodeInfo->mem_type == MT_EMPTY && mem_type != MT_EMPTY && opndx->instr != T_SHORT ) {
cmp DWORD PTR [rbx+28], 192 ; 000000c0H
jne SHORT $LN76@process_br
cmp ebp... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 881 | 940 |
Terraspace/UASM:x64/Release/branch.asm:24 | ; 416 : }
; 417 : /* v2.06: commented 2 lines to copy behavior of MT_NEAR */
; 418 : //CodeInfo->mem_type = mem_type;
; 419 : //break;
; 420 : case MT_NEAR:
; 421 : /* v2.04: 'if' added */
; 422 : if ( state != SYM_UNDEFINED )
test... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 921 | 980 |
Terraspace/UASM:x64/Release/branch.asm:25 | ; 435 : CodeInfo->isfar = TRUE; /* flag isn't set if explicit is true */
; 436 : DebugMsg1(("process_branch: FAR call/jmp\n"));
; 437 : switch( CodeInfo->mem_type ) {
mov ecx, DWORD PTR [rbx+28]
or al, 4
mov BYTE PTR [rbx+142], al
sub ecx, 129 ; 00000081H
je SHORT $LN81@process_br
s... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 961 | 1,020 |
Terraspace/UASM:x64/Release/branch.asm:26 | ; 441 : }
; 442 : /* fall through */
; 443 : case MT_FAR:
; 444 : case MT_EMPTY:
; 445 : /* v1.95: explicit flag to be removed! */
; 446 : //if ( opndx->explicit && opndx->Ofssize != USE_EMPTY )
; 447 : if ( opndx->Ofssize != USE_EMPTY )... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 1,001 | 1,060 |
Terraspace/UASM:x64/Release/branch.asm:27 | ; 454 : if( IS_OPER_32( CodeInfo ) ) {
movzx eax, BYTE PTR [rbx+9]
shr eax, 1
cmp BYTE PTR [rbx+106], r14b
je SHORT $LN132@process_br
not eax
$LN132@process_br:
and eax, edi
test eax, eax
je SHORT $LN87@process_br
; 455 : fixup_type = FIX_PTR32;
mov edi, 10
; 456 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 1,041 | 1,100 |
Terraspace/UASM:x64/Release/branch.asm:28 | ; 458 : fixup_type = FIX_PTR16;
mov edi, 9
; 459 : CodeInfo->opnd[OPND1].type = OP_I32;
mov DWORD PTR [rbx+32], 524288 ; 00080000H
; 460 : }
; 461 : break;
; 462 : #ifdef DEBUG_OUT
; 463 : default: /* cannot happen */
; 464 : Debu... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 1,081 | 1,140 |
Terraspace/UASM:x64/Release/branch.asm:29 | cmp ecx, edi
je $LN91@process_br
lea eax, DWORD PTR [rdx-482]
cmp eax, 17
ja SHORT $LN104@process_br
; 523 : break;
; 524 : #ifdef DEBUG_OUT
; 525 : default:
; 526 : DebugMsg(("process_branch: JMP/CALL, unexpected mem_type=%X\n", CodeInfo->mem_type ));
; 527 : /**/m... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 1,121 | 1,180 |
Terraspace/UASM:x64/Release/branch.asm:30 | jmp $LN8@process_br
$LN104@process_br:
; 544 : }
; 545 : /* just Jxx remaining */
; 546 :
; 547 : if( ( ModuleInfo.curr_cpu & P_CPU_MASK ) >= P_386 ) {
mov eax, DWORD PTR ModuleInfo+392
and eax, 240 ; 000000f0H
cmp eax, 48 ; 00000030H
jl $LN106@process_br
; 548 :
; 549 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 1,161 | 1,220 |
Terraspace/UASM:x64/Release/branch.asm:31 | jmp $LN8@process_br
$LN114@process_br:
; 563 : } else if( CodeInfo->Ofssize > USE16 ) {
; 564 : fixup_type = FIX_RELOFF32;
; 565 : CodeInfo->opnd[OPND1].type = OP_I32;
; 566 : } else {
; 567 : fixup_type = FIX_RELOFF16;
; ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 1,201 | 1,260 |
Terraspace/UASM:x64/Release/branch.asm:32 | $LN163@process_br:
setne al
; 579 : /* destination is FAR (externdef <dest>:far */
; 580 : DebugMsg(("process_branch: JMP/CALL, FAR memtype, jump extension\n" ));
; 581 : jumpExtend( CodeInfo, TRUE );
mov edx, edi
and al, dil
mov rcx, rbx
add al, al
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 1,241 | 1,300 |
Terraspace/UASM:x64/Release/branch.asm:33 | ; 587 : fixup_type = FIX_PTR16;
mov edi, 9
; 588 : CodeInfo->opnd[OPND1].type = OP_I32;
mov DWORD PTR [rbx+32], 524288 ; 00080000H
; 589 : }
; 590 : break;
jmp $LN8@process_br
$LN115@process_br:
; 591 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 1,281 | 1,340 |
Terraspace/UASM:x64/Release/branch.asm:34 | setne al
and al, dil
add al, al
or BYTE PTR [rbx+9], al
; 562 : CodeInfo->opnd[OPND1].type = (opndx->Ofssize >= USE32) ? OP_I32 : OP_I16;
mov eax, 524288 ; 00080000H
cmp BYTE PTR [rsi+69], dil
cmovae r12d, eax
mov DWORD PTR [rbx+32], r12d
jmp $LN8@process_br
$LN106@process_br:
; 595 ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 1,321 | 1,380 |
Terraspace/UASM:x64/Release/branch.asm:35 | mov DWORD PTR [rbx+32], 131072 ; 00020000H
setne r14b
inc r14d
; 608 : break;
jmp $LN8@process_br
$LN124@process_br:
; 609 : case MT_NEAR: /* allow Jxx NEAR if LJMP on */
; 610 : case MT_FAR:
; 611 : if ( ModuleInfo.ljmp ) {
test BYTE PTR ModuleInfo+4... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 1,361 | 1,420 |
Terraspace/UASM:x64/Release/branch.asm:36 | ; 618 : jumpExtend( CodeInfo, FALSE );
xor edx, edx
call jumpExtend
$LN112@process_br:
; 619 : fixup_type = FIX_RELOFF16;
mov edi, 2
; 620 : CodeInfo->opnd[OPND1].type = OP_I16;
mov DWORD PTR [rbx+32], r12d
; 621 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 1,401 | 1,460 |
Terraspace/UASM:x64/Release/branch.asm:38 | ; 491 : DebugMsg1(("process_branch: JMP/CALL, CodeInfo->memtype=%X\n", CodeInfo->mem_type ));
; 492 : switch( CodeInfo->mem_type ) {
mov ecx, DWORD PTR [rbx+28]
sub ecx, 129 ; 00000081H
je SHORT $LN96@process_br
cmp ecx, 63 ; 0000003fH
jne SHORT $LN8@process_br
; 493 : case MT_E... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 1,481 | 1,540 |
Terraspace/UASM:x64/Release/branch.asm:41 | $LN162@process_br:
mov edx, edi
mov rcx, r15
call CreateFixup
mov QWORD PTR [rbx+48], rax
$LN158@process_br:
; 631 : return( NOT_ERROR );
xor eax, eax
$LN156@process_br:
mov rdi, QWORD PTR [rsp+96]
mov r12, QWORD PTR [rsp+104]
mov rbp, QWORD PTR [rsp+80]
$LN153@process_br:
mov r14, QWORD PTR [rsp+40]
m... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 1,601 | 1,660 |
Terraspace/UASM:x64/Release/branch.asm:42 | cmp DWORD PTR Parse_Pass, 1
mov rbx, rcx
jne SHORT $LN2@FarCallToN
; 116 : EmitWarn( 4, CALL_FAR_TO_NEAR );
mov edx, 133 ; 00000085H
mov ecx, 4
call EmitWarn
$LN2@FarCallToN:
; 117 :
; 118 : OutputCodeByte( 0x0E ); /* 0x0E is "PUSH CS" opcode */
mov cl, 14
call OutputByte
; 119 : Code... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 1,641 | 1,700 |
Terraspace/UASM:x64/Release/branch.asm:43 | mov QWORD PTR [rsp+8], rbx
push rdi
sub rsp, 32 ; 00000020H
; 77 : //uint_8 opcode;
; 78 : unsigned next_ins_size;
; 79 :
; 80 : if( Parse_Pass == PASS_2 )
cmp DWORD PTR Parse_Pass, 1
mov ebx, edx
mov rdi, rcx
jne SHORT $LN2@jumpExtend
; 81 : EmitWarn( 4, EXTENDING_JUMP );
m... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 1,681 | 1,740 |
Terraspace/UASM:x64/Release/branch.asm:44 | cmovne ebx, eax
; 88 : } else {
jmp SHORT $LN4@jumpExtend
$LN5@jumpExtend:
; 89 : /* it's EA OOOOOOOO SSSS or EA OOOO SSSS */
; 90 : next_ins_size = CodeInfo->Ofssize ? 7 : 5;
cmp BYTE PTR [rdi+106], 0
mov ebx, 5
mov eax, 7
cmovne ebx, eax
; 91 : }
; 92 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 1,721 | 1,780 |
Terraspace/UASM:x64/Release/branch.asm:45 | movzx ecx, BYTE PTR [rax+12]
xor cl, 1
call OutputByte
; 102 : OutputCodeByte( next_ins_size );
movzx ecx, bl
call OutputByte
; 103 : CodeInfo->token = T_JMP;
; 104 : CodeInfo->pinstr = &InstrTable[ IndexFromToken( T_JMP )];
; 105 :
; 106 : return;
; 107 : }
mov rbx, QWORD PTR [rsp+48]
m... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/branch.asm | 1,761 | 1,788 |
Terraspace/UASM:x64/Release/branch.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23026.0
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM decoflags:BYTE
COMM broadflags:BYTE
COMM evex:BYTE
_DATA ENDS
_BSS SEGMENT
$SG10736 DB 01H DUP (?)
_BSS ENDS
PUBLIC process_branch
EXTRN EmitError:PROC
EXTRN Emi... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/branch.asm | 1 | 60 |
Terraspace/UASM:x64/Release/branch.asm:4 | test edx, edx
je SHORT $LN14@process_br
; 147 : //EmitError( SYNTAX_ERROR ); /* v2.10: error msg changed */
; 148 : return( EmitError( INVALID_INSTRUCTION_OPERANDS ) );
mov ecx, 49 ; 00000031H
; 632 : }
add rsp, 48 ; 00000030H
pop r13
pop rsi
pop rbx
; 147 : //EmitError( S... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/branch.asm | 121 | 180 |
Terraspace/UASM:x64/Release/branch.asm:25 | ; 435 : CodeInfo->isfar = TRUE; /* flag isn't set if explicit is true */
; 436 : DebugMsg1(("process_branch: FAR call/jmp\n"));
; 437 : switch( CodeInfo->mem_type ) {
mov ecx, DWORD PTR [rbx+28]
or al, 4
mov BYTE PTR [rbx+142], al
sub ecx, 129 ; 00000081H
je SHORT $LN81@process_br
s... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/branch.asm | 961 | 1,020 |
Terraspace/UASM:x64/Release/branch.asm:3 | $unwind$jumpExtend DD 040a01H
DD 06340aH
DD 07006320aH
xdata ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\branch.c
_TEXT SEGMENT
CodeInfo$ = 80
state$1$ = 88
CurrOpnd$ = 88
opndx$ = 96
process_branch PROC
; 135 : {
$LN167:
push rbx
push rsi
push r13
sub rsp, 48 ; 00000... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/branch.asm | 81 | 140 |
Terraspace/UASM:x64/Release/branch.asm:4 | test edx, edx
je SHORT $LN14@process_br
; 147 : //EmitError( SYNTAX_ERROR ); /* v2.10: error msg changed */
; 148 : return( EmitError( INVALID_INSTRUCTION_OPERANDS ) );
mov ecx, 50 ; 00000032H
; 632 : }
add rsp, 48 ; 00000030H
pop r13
pop rsi
pop rbx
; 147 : //EmitError( S... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/branch.asm | 121 | 180 |
Terraspace/UASM:x64/Release/branch.asm:5 | ; 157 : if ( opndx->override != NULL ) {
cmp QWORD PTR [r8+48], 0
je SHORT $LN19@process_br
; 158 : segm_override( opndx, NULL );
xor edx, edx
mov rcx, r8
call segm_override
; 159 : DebugMsg(("process_branch(%" I32_SPEC "X): segment override %s\n", GetCurrOffset(), SegOverride ? SegOverr... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/branch.asm | 161 | 220 |
Terraspace/UASM:x64/Release/branch.asm:6 | pop r13
pop rsi
pop rbx
; 162 : return( EmitErr( CANNOT_ACCESS_LABEL_THROUGH_SEGMENT_REGISTERS, opndx->sym ? opndx->sym->name : "" ) );
jmp EmitErr
$LN18@process_br:
; 163 : }
; 164 : /* v2.05: switch to far jmp/call */
; 165 : if ( SegOverride != &CurrSeg->... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/branch.asm | 201 | 260 |
Terraspace/UASM:x64/Release/branch.asm:7 | mov DWORD PTR [rbx+44], r14d
mov QWORD PTR [rsp+32], r15
mov DWORD PTR [rbx+40], eax
; 176 : sym = opndx->sym;
mov r15, QWORD PTR [rsi+80]
; 177 : if( sym == NULL ) { /* no symbolic label specified? */
test r15, r15
jne SHORT $LN20@process_br
; 178 : DebugMsg(("process_branch(%" I32_SPEC "X... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/branch.asm | 241 | 300 |
Terraspace/UASM:x64/Release/branch.asm:8 | ; 199 : state = sym->state;
mov eax, DWORD PTR [r15+32]
mov QWORD PTR [rsp+80], rbp
mov QWORD PTR [rsp+96], rdi
mov QWORD PTR [rsp+104], r12
mov DWORD PTR state$1$[rsp], eax
; 200 : addr = GetCurrOffset(); /* for SYM_UNDEFINED, will force distance to SHORT */
call GetCurrOffset
; 201 :
; 202 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/branch.asm | 281 | 340 |
Terraspace/UASM:x64/Release/branch.asm:9 | $LN21@process_br:
cmp ecx, edi
je SHORT $LN136@process_br
; 249 : }
; 250 : } else if ( state != SYM_UNDEFINED ) {
test ecx, ecx
je SHORT $LN27@process_br
; 251 : DebugMsg(("process_branch(%s): error, unexpected symbol state=%u\n", sym->name, sym->state ));
; 252 : return( EmitErr... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/branch.asm | 321 | 380 |
Terraspace/UASM:x64/Release/branch.asm:17 | cmp DWORD PTR [rbx+32], 131072 ; 00020000H
je SHORT $LN65@process_br
; 358 : if( CodeInfo->mem_type == MT_EMPTY && ModuleInfo.ljmp == TRUE ) {
mov edx, DWORD PTR [rbx+28]
cmp edx, 192 ; 000000c0H
jne SHORT $LN64@process_br
test BYTE PTR ModuleInfo+408, 32 ; 00000020H
je SHORT $LN64@pro... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/branch.asm | 641 | 700 |
Terraspace/UASM:x64/Release/branch.asm:18 | mov r13d, DWORD PTR state$1$[rsp]
test r13d, r13d
je $LN66@process_br
; 381 : return( NOT_ERROR ); /* exit, no fixup is written! */
jmp $LN158@process_br
$LN64@process_br:
; 362 : //return( SCRAP_INSTRUCTION );
; 363 : //} else if( !PhaseError ) {
; 3... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/branch.asm | 681 | 740 |
Terraspace/UASM:x64/Release/branch.asm:19 | test ebp, ebp
jns SHORT $LN52@process_br
; 315 : addr -= SCHAR_MIN;
mov eax, -128 ; ffffffffffffff80H
sub eax, ebp
; 316 : addr = 0 - addr;
mov ebp, eax
; 317 : } else
jmp SHORT $LN53@process_br
$LN52@process_br:
; 318 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/branch.asm | 721 | 780 |
Terraspace/UASM:x64/Release/branch.asm:20 | ; 225 : /* if label has a different segment and jump/call is near or short,
; 226 : report an error */
; 227 : //if ( ModuleInfo.flatgrp_idx != 0 )
; 228 : /* v2.09: make sure there's no near jmp/call between 32- and 64-bit */
; 229 : //if ( ModuleInfo.f... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/branch.asm | 761 | 820 |
Terraspace/UASM:x64/Release/branch.asm:21 | ; 238 : symseg->e.seginfo->group == CurrSeg->e.seginfo->group )
; 239 : ;
; 240 : /* v2.05: added SegOverride condition */
; 241 : //else if ( opndx->mem_type == MT_NEAR ) {
; 242 : else if ( opndx->mem_type == MT_NEAR && SegOv... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/branch.asm | 801 | 860 |
Terraspace/UASM:x64/Release/branch.asm:28 | ; 458 : fixup_type = FIX_PTR16;
mov edi, 9
; 459 : CodeInfo->opnd[OPND1].type = OP_I32;
mov DWORD PTR [rbx+32], 524288 ; 00080000H
; 460 : }
; 461 : break;
; 462 : #ifdef DEBUG_OUT
; 463 : default: /* cannot happen */
; 464 : Debu... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/branch.asm | 1,081 | 1,140 |
Terraspace/UASM:x64/Release/branch.asm:33 | ; 587 : fixup_type = FIX_PTR16;
mov edi, 9
; 588 : CodeInfo->opnd[OPND1].type = OP_I32;
mov DWORD PTR [rbx+32], 524288 ; 00080000H
; 589 : }
; 590 : break;
jmp $LN8@process_br
$LN115@process_br:
; 591 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/branch.asm | 1,281 | 1,340 |
Terraspace/UASM:x64/Release/branch.asm:36 | ; 618 : jumpExtend( CodeInfo, FALSE );
xor edx, edx
call jumpExtend
$LN112@process_br:
; 619 : fixup_type = FIX_RELOFF16;
mov edi, 2
; 620 : CodeInfo->opnd[OPND1].type = OP_I16;
mov DWORD PTR [rbx+32], r12d
; 621 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/branch.asm | 1,401 | 1,460 |
Terraspace/UASM:x64/Release/branch.asm:37 | mov ecx, 44 ; 0000002cH
call EmitError
jmp $LN156@process_br
$LN90@process_br:
; 477 : }
; 478 : if( CodeInfo->mem_type == MT_EMPTY ) {
cmp DWORD PTR [rbx+28], 192 ; 000000c0H
jne SHORT $LN91@process_br
; 479 : fixup_option = OPTJ_CALL;
mov r14d, 4
$LN110@process_br:
; 480... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/branch.asm | 1,441 | 1,500 |
Terraspace/UASM:x64/Release/branch.asm:41 | $LN162@process_br:
mov edx, edi
mov rcx, r15
call CreateFixup
mov QWORD PTR [rbx+48], rax
$LN158@process_br:
; 631 : return( NOT_ERROR );
xor eax, eax
$LN156@process_br:
mov rdi, QWORD PTR [rsp+96]
mov r12, QWORD PTR [rsp+104]
mov rbp, QWORD PTR [rsp+80]
$LN153@process_br:
mov r14, QWORD PTR [rsp+40]
m... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/branch.asm | 1,601 | 1,660 |
Terraspace/UASM:x64/Release/branch.asm:42 | cmp DWORD PTR Parse_Pass, 1
mov rbx, rcx
jne SHORT $LN2@FarCallToN
; 116 : EmitWarn( 4, CALL_FAR_TO_NEAR );
mov edx, 134 ; 00000086H
mov ecx, 4
call EmitWarn
$LN2@FarCallToN:
; 117 :
; 118 : OutputCodeByte( 0x0E ); /* 0x0E is "PUSH CS" opcode */
mov cl, 14
call OutputByte
; 119 : Code... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/branch.asm | 1,641 | 1,700 |
Terraspace/UASM:x64/Release/branch.asm:43 | mov QWORD PTR [rsp+8], rbx
push rdi
sub rsp, 32 ; 00000020H
; 77 : //uint_8 opcode;
; 78 : unsigned next_ins_size;
; 79 :
; 80 : if( Parse_Pass == PASS_2 )
cmp DWORD PTR Parse_Pass, 1
mov ebx, edx
mov rdi, rcx
jne SHORT $LN2@jumpExtend
; 81 : EmitWarn( 4, EXTENDING_JUMP );
m... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/branch.asm | 1,681 | 1,740 |
Terraspace/UASM:x64/Release/branch.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23026.0
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM decoflags:BYTE
COMM broadflags:BYTE
_DATA ENDS
_BSS SEGMENT
$SG10734 DB 01H DUP (?)
_BSS ENDS
PUBLIC process_branch
EXTRN EmitError:PROC
EXTRN EmitErr:PROC
EXTRN... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/branch.asm | 1 | 60 |
Terraspace/UASM:x64/Release/branch.asm:2 | DD imagerel FarCallToNear+53
DD imagerel $unwind$FarCallToNear
pdata ENDS
pdata SEGMENT
$pdata$process_branch DD imagerel $LN167
DD imagerel $LN167+242
DD imagerel $unwind$process_branch
$pdata$4$process_branch DD imagerel $LN167+242
DD imagerel $LN167+2116
DD imagerel $chain$4$process_branch
$pdata$5$process_bran... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/branch.asm | 41 | 100 |
Terraspace/UASM:x64/Release/branch.asm:3 | DD 06340aH
DD 07006320aH
xdata ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\branch.c
_TEXT SEGMENT
CodeInfo$ = 80
state$1$ = 88
CurrOpnd$ = 88
opndx$ = 96
process_branch PROC
; 135 : {
$LN167:
push rbx
push rsi
push r13
sub rsp, 48 ; 00000030H
; 136 : int_32 ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/branch.asm | 81 | 140 |
Terraspace/UASM:x64/Release/branch.asm:4 | je SHORT $LN14@process_br
; 147 : //EmitError( SYNTAX_ERROR ); /* v2.10: error msg changed */
; 148 : return( EmitError( INVALID_INSTRUCTION_OPERANDS ) );
mov ecx, 49 ; 00000031H
; 632 : }
add rsp, 48 ; 00000030H
pop r13
pop rsi
pop rbx
; 147 : //EmitError( SYNTAX_ERROR ); ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/branch.asm | 121 | 180 |
Terraspace/UASM:x64/Release/branch.asm:5 | cmp QWORD PTR [r8+48], 0
je SHORT $LN19@process_br
; 158 : segm_override( opndx, NULL );
xor edx, edx
mov rcx, r8
call segm_override
; 159 : DebugMsg(("process_branch(%" I32_SPEC "X): segment override %s\n", GetCurrOffset(), SegOverride ? SegOverride->name : "NULL" ));
; 160 : if ( Seg... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/branch.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/branch.asm | 161 | 220 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.