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/omffixup.asm:15 | $LN5@TranslateL:
; 156 : }
; 157 : }
; 158 : return( p - buf );
sub rdx, r10
mov eax, edx
; 159 : }
ret 0
TranslateLogref ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\omffixup.c
; COMDAT putTargetDatum
_TEXT SEGMENT
p$ = 8
method$ = 16
datum$ =... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/omffixup.asm | 561 | 620 |
Terraspace/UASM:x64/Release/omffixup.asm:16 | ; 104 : }
ret 0
putTargetDatum ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\omffixup.c
; COMDAT putFrameDatum
_TEXT SEGMENT
p$ = 8
method$ = 16
datum$ = 24
putFrameDatum PROC ; COMDAT
; 81 : switch( method ) {
cmp dl, 2
ja SHORT $LN2@putFrameDa
; 82 :... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/omffixup.asm | 601 | 660 |
Terraspace/UASM:x64/Release/omffixup.asm:17 | ; 86 : #if 0 /* v2.12: FRAME_ABS is invalid according to TIS OMF docs. */
; 87 : case FRAME_ABS:
; 88 : return( put16( p, datum ) );
; 89 : #endif
; 90 : }
; 91 : /* for FRAME_LOC & FRAME_TARG ( & FRAME_NONE ) there's no datum to write. */
; 92 : return( p );
mov rax, rcx
; 93 ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/omffixup.asm | 641 | 700 |
Terraspace/UASM:x64/Release/omffixup.asm:18 | _TEXT SEGMENT
p$ = 8
value$ = 16
put16 PROC ; COMDAT
; 67 : WriteU16( p, value );
mov WORD PTR [rcx], dx
; 68 : return( p + sizeof( uint_16 ) );
lea rax, QWORD PTR [rcx+2]
; 69 : }
ret 0
put16 ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\omffi... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/omffixup.asm | 681 | 740 |
Terraspace/UASM:x64/Release/omffixup.asm:19 | ; 59 : }
; 60 : *p++ = index;
mov BYTE PTR [rcx], dl
lea rax, QWORD PTR [rcx+1]
; 61 : return( p );
; 62 : }
ret 0
putIndex ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\omffixup.c
_TEXT SEGMENT
lr$ = 32
fixup$ = 80
buf$ = 88
displ$ = 96
type$ = ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/omffixup.asm | 721 | 780 |
Terraspace/UASM:x64/Release/omffixup.asm:20 | ; 196 : struct logref lr;
; 197 :
; 198 : lr.is_secondary = FALSE;
; 199 : lr.target_offset = sym->offset + displ;
; 200 :
; 201 : lr.frame_datum = fixup->frame_datum;
movzx edi, WORD PTR [rsi+42]
mov r15d, DWORD PTR [rcx+16]
add r15d, r8d
mov WORD PTR lr$[rsp+2], di
; 202 :
; 203 : /*... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/omffixup.asm | 761 | 820 |
Terraspace/UASM:x64/Release/omffixup.asm:21 | ; 215 : lr.frame_datum = omf_GetGrpIdx( sym );
call omf_GetGrpIdx
mov edi, eax
mov WORD PTR lr$[rsp+2], ax
; 216 : }
; 217 : } else { /* SYM_INTERNAL */
jmp SHORT $LN3@OmfFixGenF
$LN2@OmfFixGenF:
; 218 : DebugMsg(("OmfFixGenFixModend(%p): fixup->frame_type/datum=%u/%u sym->na... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/omffixup.asm | 801 | 860 |
Terraspace/UASM:x64/Release/omffixup.asm:22 | mov dl, 5
$LN6@OmfFixGenF:
; 230 : }
; 231 : return( TranslateLogref( &lr, buf, type ) );
movzx eax, dl
lea rcx, QWORD PTR [r14+1]
shl al, 4
or al, bpl
mov BYTE PTR [r14], al
cmp dl, 2
ja SHORT $LN15@OmfFixGenF
cmp di, 127 ; 0000007fH
jbe SHORT $LN20@OmfFixGenF
shr di, 8
or dil, 128 ; 0000... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/omffixup.asm | 841 | 900 |
Terraspace/UASM:x64/Release/omffixup.asm:23 | add rax, 4
jmp SHORT $LN12@OmfFixGenF
$LN11@OmfFixGenF:
movzx ecx, WORD PTR lr$[rsp+8]
mov WORD PTR [rax], cx
add rax, 2
$LN12@OmfFixGenF:
; 232 : }
mov rbx, QWORD PTR [rsp+80]
sub rax, r14
mov rbp, QWORD PTR [rsp+88]
mov rsi, QWORD PTR [rsp+96]
mov rdi, QWORD PTR [rsp+104]
add rsp, 48 ; 00000030H
pop... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/omffixup.asm | 881 | 940 |
Terraspace/UASM:x64/Release/omffixup.asm:24 | push r15
sub rsp, 48 ; 00000030H
; 371 : uint_8 locat1;
; 372 : uint_8 self_relative = FALSE;
; 373 : unsigned data_rec_offset;
; 374 : struct logref lr;
; 375 :
; 376 : /**/myassert( fixup != NULL );
; 377 : /**/myassert( buf != NULL );
; 378 : /**/myassert( type == FIX_GEN_... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/omffixup.asm | 921 | 980 |
Terraspace/UASM:x64/Release/omffixup.asm:25 | ; 386 : /* no break */
; 387 : case FIX_OFF8:
; 388 : locat1 = ( LOC_OFFSET_LO << 2 );
xor bl, bl
; 389 : break;
jmp SHORT $LN2@OmfFixGenF
$LN6@OmfFixGenF:
; 390 : case FIX_RELOFF16:
; 391 : self_relative = TRUE;
mov sil, 1
$LN7@OmfFixGenF:
; 392 : /* no b... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/omffixup.asm | 961 | 1,020 |
Terraspace/UASM:x64/Release/omffixup.asm:26 | ; 400 : locat1 = ( fixup->loader_resolved ? LOC_MS_LINK_OFFSET_32 << 2 : LOC_MS_OFFSET_32 << 2 );
movzx ebx, BYTE PTR [rdi+33]
and bl, 1
shl bl, 4
or bl, 36 ; 00000024H
; 401 : break;
jmp SHORT $LN2@OmfFixGenF
$LN10@OmfFixGenF:
; 402 : case FIX_HIBYTE:
; 403 : locat1 = ( LOC... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/omffixup.asm | 1,001 | 1,060 |
Terraspace/UASM:x64/Release/omffixup.asm:27 | $LN13@OmfFixGenF:
; 411 : case FIX_PTR32:
; 412 : locat1 = ( LOC_MS_BASE_OFFSET_32 << 2 );
mov bl, 44 ; 0000002cH
$LN2@OmfFixGenF:
; 419 : }
; 420 : locat1 |= self_relative ? 0x80 : 0xc0; /* bit 7: 1=is a fixup subrecord */
; 421 :
; 422 : if ( omf_fill_logref( fixup, &lr ) == 0 )
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/omffixup.asm | 1,041 | 1,100 |
Terraspace/UASM:x64/Release/omffixup.asm:28 | ; 434 : return( 2 + TranslateLogref( &lr, buf+2, type ) );
mov r8d, ebp
cmovne ecx, eax
mov eax, edx
shr eax, 8
lea rdx, QWORD PTR [r14+2]
or cl, al
or cl, bl
mov BYTE PTR [r14], cl
lea rcx, QWORD PTR lr$[rsp]
call TranslateLogref
add eax, 2
jmp SHORT $LN1@OmfFixGenF
$LN14@OmfFixGenF:
; 413 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/omffixup.asm | 1,081 | 1,140 |
Terraspace/UASM:x64/Release/omffixup.asm:29 | ; 435 : }
mov rbx, QWORD PTR [rsp+80]
mov rbp, QWORD PTR [rsp+88]
mov rsi, QWORD PTR [rsp+96]
add rsp, 48 ; 00000030H
pop r15
pop r14
pop rdi
ret 0
npad 3
$LN19@OmfFixGenF:
DD $LN4@OmfFixGenF
DD $LN6@OmfFixGenF
DD $LN8@OmfFixGenF
DD $LN5@OmfFixGenF
DD $LN7@OmfFixGenF
DD $LN9@OmfFixGenF
DD $LN14@Om... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/omffixup.asm | 1,121 | 1,147 |
Terraspace/UASM:x64/Release/omffixup.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
PUBLIC OmfFixGenFix
PUBLIC OmfFixGenFixModend
EXTRN EmitErr:PROC
EXTRN GetSegIdx:PROC
EXTRN omf_Get... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/omffixup.asm | 1 | 60 |
Terraspace/UASM:x64/Release/omffixup.asm:2 | xdata ENDS
xdata SEGMENT
$unwind$OmfFixGenFix DD 0a1801H
DD 0c6418H
DD 0b5418H
DD 0a3418H
DD 0f0145218H
DD 07010e012H
$unwind$OmfFixGenFixModend DD 0c1e01H
DD 0d741eH
DD 0c641eH
DD 0b541eH
DD 0a341eH
DD 0f01a521eH
DD 0c016e018H
xdata ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/omffixup.asm | 41 | 100 |
Terraspace/UASM:x64/Release/omffixup.asm:3 | ; 243 : DebugMsg1(("omf_fill_logref: sym=%s, state=%d, fixup->type=%u\n",
; 244 : sym ? sym->name : "NULL", sym ? sym->state : -1, fixup->type ));
; 245 :
; 246 : /*------------------------------------*/
; 247 : /* Determine the Target and the Frame */
; 248 : /*--------------------... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/omffixup.asm | 81 | 140 |
Terraspace/UASM:x64/Release/omffixup.asm:6 | ; 277 :
; 278 : } else if( sym->state == SYM_SEG ) {
cmp eax, 3
jne SHORT $LN11@omf_fill_l
; 279 :
; 280 : DebugMsg1(("omf_fill_logref: sym->state is SYM_SEG %s\n" ));
; 281 : lr->target = TARGET_SEG;
mov BYTE PTR [rdx+5], 4
; 282 : lr->target_datum = GetSegIdx( sym );
call Ge... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/omffixup.asm | 201 | 260 |
Terraspace/UASM:x64/Release/omffixup.asm:7 | mov BYTE PTR [rbx], 0
; 288 : lr->frame_datum = lr->target_datum;
mov WORD PTR [rbx+2], ax
; 289 : }
; 290 :
; 291 : } else {
jmp $LN24@omf_fill_l
$LN11@omf_fill_l:
; 292 :
; 293 : /* symbol is a label */
; 294 :
; 295 : lr->frame_datum = fixup->frame_datum;
movz... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/omffixup.asm | 241 | 300 |
Terraspace/UASM:x64/Release/omffixup.asm:8 | cmp BYTE PTR [rdi+40], 1
jne $LN23@omf_fill_l
cmp WORD PTR [rdi+42], 0
jne $LN23@omf_fill_l
; 303 : /* set the frame to the frame of the corresponding segment */
; 304 : lr->frame_datum = omf_GetGrpIdx( sym );
call omf_GetGrpIdx
mov WORD PTR [rbx+2], ax
; 305 : }
;... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/omffixup.asm | 281 | 340 |
Terraspace/UASM:x64/Release/omffixup.asm:9 | ; 315 : } else if ( sym->segment == NULL ) { /* shouldn't happen */
mov rax, QWORD PTR [rcx+24]
test rax, rax
jne SHORT $LN20@omf_fill_l
; 316 : EmitErr( SEGMENT_MISSING_FOR_FIXUP, sym->name );
mov rdx, QWORD PTR [rcx+8]
mov ecx, 164 ; 000000a4H
call EmitErr
; 317 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/omffixup.asm | 321 | 380 |
Terraspace/UASM:x64/Release/omffixup.asm:10 | ; 321 : lr->target_datum = ((struct dsym *)sym->segment)->e.seginfo->seg_idx;
mov rax, QWORD PTR [rcx+24]
mov rcx, QWORD PTR [rax+96]
movzx eax, WORD PTR [rcx+68]
mov WORD PTR [rdx+6], ax
; 322 : lr->frame = FRAME_TARG;
mov BYTE PTR [rdx], sil
; 323 : return( ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/omffixup.asm | 361 | 420 |
Terraspace/UASM:x64/Release/omffixup.asm:11 | $LN24@omf_fill_l:
; 332 : lr->frame = (uint_8)fixup->frame_type;
; 333 : } else {
; 334 : lr->frame = FRAME_TARG;
; 335 : }
; 336 : }
; 337 :
; 338 : /*--------------------*/
; 339 : /* Optimize the fixup */
; 340 : /*--------------------*/
; 341 :
; 34... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/omffixup.asm | 401 | 460 |
Terraspace/UASM:x64/Release/omffixup.asm:12 | _TEXT SEGMENT
lr$ = 8
buf$ = 16
type$ = 24
TranslateLogref PROC ; COMDAT
; 121 : uint_8 *p;
; 122 : uint_8 target;
; 123 :
; 124 : /**/myassert( lr != NULL );
; 125 : /**/myassert( buf != NULL );
; 126 : /**/myassert( type == FIX_GEN_INTEL || type == FIX_GEN_MS386 );
; 127 :
; 128 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/omffixup.asm | 441 | 500 |
Terraspace/UASM:x64/Release/omffixup.asm:13 | ; 142 : * T : 0 = target is defined by tt
; 143 : * 1 = target is defined by thread# in tt, P is used as bit 2 for method
; 144 : * P : 0 = target displacement field is present
; 145 : * 1 = no displacement field
; 146 : * tt : target method
; 147 : */
; 148 : *p++ =... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/omffixup.asm | 481 | 540 |
Terraspace/UASM:x64/Release/omffixup.asm:14 | inc rdx
$LN18@TranslateL:
mov BYTE PTR [rdx], r8b
inc rdx
; 151 : if( ( target & 0x04 ) == 0 ) {
test r9b, 4
jne SHORT $LN5@TranslateL
; 152 : if( type == FIX_GEN_MS386 ) {
cmp r11d, 1
jne SHORT $LN4@TranslateL
; 153 : p = put32( p, (uint_32)lr->target_offset );
mov eax, DWORD PT... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/omffixup.asm | 521 | 580 |
Terraspace/UASM:x64/Release/omffixup.asm:15 | ; 156 : }
; 157 : }
; 158 : return( p - buf );
sub rdx, r10
mov eax, edx
; 159 : }
ret 0
TranslateLogref ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\omffixup.c
; COMDAT putTargetDatum
_TEXT SEGMENT
p$ = 8
method$ = 16
datum$ = 24
putTargetDatum... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/omffixup.asm | 561 | 620 |
Terraspace/UASM:x64/Release/omffixup.asm:16 | ; 104 : }
ret 0
putTargetDatum ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\omffixup.c
; COMDAT putFrameDatum
_TEXT SEGMENT
p$ = 8
method$ = 16
datum$ = 24
putFrameDatum PROC ; COMDAT
; 81 : switch( method ) {
cmp dl, 2
ja SHORT $LN2@putFrameDa
; 82 :... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/omffixup.asm | 601 | 660 |
Terraspace/UASM:x64/Release/omffixup.asm:17 | ; 86 : #if 0 /* v2.12: FRAME_ABS is invalid according to TIS OMF docs. */
; 87 : case FRAME_ABS:
; 88 : return( put16( p, datum ) );
; 89 : #endif
; 90 : }
; 91 : /* for FRAME_LOC & FRAME_TARG ( & FRAME_NONE ) there's no datum to write. */
; 92 : return( p );
mov rax, rcx
; 93 ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/omffixup.asm | 641 | 700 |
Terraspace/UASM:x64/Release/omffixup.asm:18 | p$ = 8
value$ = 16
put16 PROC ; COMDAT
; 67 : WriteU16( p, value );
mov WORD PTR [rcx], dx
; 68 : return( p + sizeof( uint_16 ) );
lea rax, QWORD PTR [rcx+2]
; 69 : }
ret 0
put16 ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\omffixup.c
; COMDAT... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/omffixup.asm | 681 | 740 |
Terraspace/UASM:x64/Release/omffixup.asm:19 | ; 60 : *p++ = index;
mov BYTE PTR [rcx], dl
lea rax, QWORD PTR [rcx+1]
; 61 : return( p );
; 62 : }
ret 0
putIndex ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\omffixup.c
_TEXT SEGMENT
lr$ = 32
fixup$ = 80
buf$ = 88
displ$ = 96
type$ = 104
OmfFixGenFi... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/omffixup.asm | 721 | 780 |
Terraspace/UASM:x64/Release/omffixup.asm:20 | ; 196 : struct logref lr;
; 197 :
; 198 : lr.is_secondary = FALSE;
; 199 : lr.target_offset = sym->offset + displ;
; 200 :
; 201 : lr.frame_datum = fixup->frame_datum;
movzx edi, WORD PTR [rsi+42]
mov r15d, DWORD PTR [rcx+16]
add r15d, r8d
mov WORD PTR lr$[rsp+2], di
; 202 :
; 203 : /*... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/omffixup.asm | 761 | 820 |
Terraspace/UASM:x64/Release/omffixup.asm:21 | call omf_GetGrpIdx
mov edi, eax
mov WORD PTR lr$[rsp+2], ax
; 216 : }
; 217 : } else { /* SYM_INTERNAL */
jmp SHORT $LN3@OmfFixGenF
$LN2@OmfFixGenF:
; 218 : DebugMsg(("OmfFixGenFixModend(%p): fixup->frame_type/datum=%u/%u sym->name=%s state=%X segm=%s\n",
; 219 : fixup, f... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/omffixup.asm | 801 | 860 |
Terraspace/UASM:x64/Release/omffixup.asm:22 | mov dl, 5
$LN6@OmfFixGenF:
; 230 : }
; 231 : return( TranslateLogref( &lr, buf, type ) );
movzx eax, dl
lea rcx, QWORD PTR [r14+1]
shl al, 4
or al, bpl
mov BYTE PTR [r14], al
cmp dl, 2
ja SHORT $LN15@OmfFixGenF
cmp di, 127 ; 0000007fH
jbe SHORT $LN20@OmfFixGenF
shr di, 8
or dil, 128 ; 0000... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/omffixup.asm | 841 | 900 |
Terraspace/UASM:x64/Release/omffixup.asm:23 | jmp SHORT $LN12@OmfFixGenF
$LN11@OmfFixGenF:
movzx ecx, WORD PTR lr$[rsp+8]
mov WORD PTR [rax], cx
add rax, 2
$LN12@OmfFixGenF:
; 232 : }
mov rbx, QWORD PTR [rsp+80]
sub rax, r14
mov rbp, QWORD PTR [rsp+88]
mov rsi, QWORD PTR [rsp+96]
mov rdi, QWORD PTR [rsp+104]
add rsp, 48 ; 00000030H
pop r15
pop r1... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/omffixup.asm | 881 | 940 |
Terraspace/UASM:x64/Release/omffixup.asm:24 | sub rsp, 48 ; 00000030H
; 371 : uint_8 locat1;
; 372 : uint_8 self_relative = FALSE;
; 373 : unsigned data_rec_offset;
; 374 : struct logref lr;
; 375 :
; 376 : /**/myassert( fixup != NULL );
; 377 : /**/myassert( buf != NULL );
; 378 : /**/myassert( type == FIX_GEN_INTEL || t... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/omffixup.asm | 921 | 980 |
Terraspace/UASM:x64/Release/omffixup.asm:25 | ; 386 : /* no break */
; 387 : case FIX_OFF8:
; 388 : locat1 = ( LOC_OFFSET_LO << 2 );
xor bl, bl
; 389 : break;
jmp SHORT $LN2@OmfFixGenF
$LN6@OmfFixGenF:
; 390 : case FIX_RELOFF16:
; 391 : self_relative = TRUE;
mov sil, 1
$LN7@OmfFixGenF:
; 392 : /* no b... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/omffixup.asm | 961 | 1,020 |
Terraspace/UASM:x64/Release/omffixup.asm:26 | movzx ebx, BYTE PTR [rdi+33]
and bl, 1
shl bl, 4
or bl, 36 ; 00000024H
; 401 : break;
jmp SHORT $LN2@OmfFixGenF
$LN10@OmfFixGenF:
; 402 : case FIX_HIBYTE:
; 403 : locat1 = ( LOC_OFFSET_HI << 2 );
mov bl, 16
; 404 : break;
jmp SHORT $LN2@OmfFixGenF
$LN11@OmfFixGenF:
; 405... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/omffixup.asm | 1,001 | 1,060 |
Terraspace/UASM:x64/Release/omffixup.asm:27 | ; 411 : case FIX_PTR32:
; 412 : locat1 = ( LOC_MS_BASE_OFFSET_32 << 2 );
mov bl, 44 ; 0000002cH
$LN2@OmfFixGenF:
; 419 : }
; 420 : locat1 |= self_relative ? 0x80 : 0xc0; /* bit 7: 1=is a fixup subrecord */
; 421 :
; 422 : if ( omf_fill_logref( fixup, &lr ) == 0 )
lea rdx, QWORD PT... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/omffixup.asm | 1,041 | 1,100 |
Terraspace/UASM:x64/Release/omffixup.asm:28 | mov r8d, ebp
cmovne ecx, eax
mov eax, edx
shr eax, 8
lea rdx, QWORD PTR [r14+2]
or cl, al
or cl, bl
mov BYTE PTR [r14], cl
lea rcx, QWORD PTR lr$[rsp]
call TranslateLogref
add eax, 2
jmp SHORT $LN1@OmfFixGenF
$LN14@OmfFixGenF:
; 413 : break;
; 414 : default: /* shouldn't happen. Check for vali... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/omffixup.asm | 1,081 | 1,140 |
Terraspace/UASM:x64/Release/omffixup.asm:3 | ; 243 : DebugMsg1(("omf_fill_logref: sym=%s, state=%d, fixup->type=%u\n",
; 244 : sym ? sym->name : "NULL", sym ? sym->state : -1, fixup->type ));
; 245 :
; 246 : /*------------------------------------*/
; 247 : /* Determine the Target and the Frame */
; 248 : /*--------------------... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/omffixup.asm | 81 | 140 |
Terraspace/UASM:x64/Release/omffixup.asm:4 | mov eax, DWORD PTR [rcx+32]
test eax, eax
jne SHORT $LN5@omf_fill_l
; 260 :
; 261 : DebugMsg(("omf_fill_logref: sym->state is SYM_UNDEFINED\n" ));
; 262 : EmitErr( SYMBOL_NOT_DEFINED, sym->name );
mov rdx, QWORD PTR [rcx+8]
lea ecx, QWORD PTR [rax+103]
call EmitErr
$LN29@omf_fill_l:
; 263 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/omffixup.asm | 121 | 180 |
Terraspace/UASM:x64/Release/omffixup.asm:8 | cmp BYTE PTR [rdi+40], 1
jne $LN23@omf_fill_l
cmp WORD PTR [rdi+42], 0
jne $LN23@omf_fill_l
; 303 : /* set the frame to the frame of the corresponding segment */
; 304 : lr->frame_datum = omf_GetGrpIdx( sym );
call omf_GetGrpIdx
mov WORD PTR [rbx+2], ax
; 305 : }
;... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/omffixup.asm | 281 | 340 |
Terraspace/UASM:x64/Release/omffixup.asm:9 | ; 315 : } else if ( sym->segment == NULL ) { /* shouldn't happen */
mov rax, QWORD PTR [rcx+24]
test rax, rax
jne SHORT $LN20@omf_fill_l
; 316 : EmitErr( SEGMENT_MISSING_FOR_FIXUP, sym->name );
mov rdx, QWORD PTR [rcx+8]
mov ecx, 165 ; 000000a5H
call EmitErr
; 317 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/omffixup.asm | 321 | 380 |
Terraspace/UASM:x64/Release/omffixup.asm:28 | mov r8d, ebp
cmovne ecx, eax
mov eax, edx
shr eax, 8
lea rdx, QWORD PTR [r14+2]
or cl, al
or cl, bl
mov BYTE PTR [r14], cl
lea rcx, QWORD PTR lr$[rsp]
call TranslateLogref
add eax, 2
jmp SHORT $LN1@OmfFixGenF
$LN14@OmfFixGenF:
; 413 : break;
; 414 : default: /* shouldn't happen. Check for vali... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/omffixup.asm | 1,081 | 1,140 |
Terraspace/UASM:x64/Release/omffixup.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
PUBLIC OmfFixGenFix
PUBLIC OmfFixGenFixModend
EXTRN EmitErr:PROC
EXTRN GetSegIdx:PROC
EXTRN omf_GetGrpIdx:PROC
EXT... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omffixup.asm | 1 | 60 |
Terraspace/UASM:x64/Release/omffixup.asm:2 | xdata SEGMENT
$unwind$OmfFixGenFix DD 0a1801H
DD 0c6418H
DD 0b5418H
DD 0a3418H
DD 0f0145218H
DD 07010e012H
$unwind$OmfFixGenFixModend DD 0c1e01H
DD 0d741eH
DD 0c641eH
DD 0b541eH
DD 0a341eH
DD 0f01a521eH
DD 0c016e018H
xdata ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\omf... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omffixup.asm | 41 | 100 |
Terraspace/UASM:x64/Release/omffixup.asm:3 | ; 244 : sym ? sym->name : "NULL", sym ? sym->state : -1, fixup->type ));
; 245 :
; 246 : /*------------------------------------*/
; 247 : /* Determine the Target and the Frame */
; 248 : /*------------------------------------*/
; 249 :
; 250 : if( sym == NULL ) {
mov esi, 5
test... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omffixup.asm | 81 | 140 |
Terraspace/UASM:x64/Release/omffixup.asm:4 | test eax, eax
jne SHORT $LN5@omf_fill_l
; 260 :
; 261 : DebugMsg(("omf_fill_logref: sym->state is SYM_UNDEFINED\n" ));
; 262 : EmitErr( SYMBOL_NOT_DEFINED, sym->name );
mov rdx, QWORD PTR [rcx+8]
lea ecx, QWORD PTR [rax+102]
call EmitErr
$LN29@omf_fill_l:
; 263 : return( 0 );
xor ea... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omffixup.asm | 121 | 180 |
Terraspace/UASM:x64/Release/omffixup.asm:5 | ; 269 : lr->target_datum = ((struct dsym *)sym)->e.grpinfo->grp_idx;
mov rax, QWORD PTR [rcx+96]
movzx ecx, WORD PTR [rax+8]
mov WORD PTR [rdx+6], cx
; 270 : if( fixup->frame_type != FRAME_NONE ) {
movzx eax, BYTE PTR [rdi+40]
cmp al, 6
je SHORT $LN9@omf_fill_l
; 271 : lr->frame... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omffixup.asm | 161 | 220 |
Terraspace/UASM:x64/Release/omffixup.asm:7 | ; 288 : lr->frame_datum = lr->target_datum;
mov WORD PTR [rbx+2], ax
; 289 : }
; 290 :
; 291 : } else {
jmp $LN24@omf_fill_l
$LN11@omf_fill_l:
; 292 :
; 293 : /* symbol is a label */
; 294 :
; 295 : lr->frame_datum = fixup->frame_datum;
movzx eax, WORD PTR [rdi+42... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omffixup.asm | 241 | 300 |
Terraspace/UASM:x64/Release/omffixup.asm:8 | jne $LN23@omf_fill_l
cmp WORD PTR [rdi+42], 0
jne $LN23@omf_fill_l
; 303 : /* set the frame to the frame of the corresponding segment */
; 304 : lr->frame_datum = omf_GetGrpIdx( sym );
call omf_GetGrpIdx
mov WORD PTR [rbx+2], ax
; 305 : }
; 306 : } else {
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omffixup.asm | 281 | 340 |
Terraspace/UASM:x64/Release/omffixup.asm:10 | ; 321 : lr->target_datum = ((struct dsym *)sym->segment)->e.seginfo->seg_idx;
mov rax, QWORD PTR [rcx+24]
mov rcx, QWORD PTR [rax+96]
movzx eax, WORD PTR [rcx+68]
mov WORD PTR [rdx+6], ax
; 322 : lr->frame = FRAME_TARG;
mov BYTE PTR [rdx], sil
; 323 : return( ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omffixup.asm | 361 | 420 |
Terraspace/UASM:x64/Release/omffixup.asm:11 | ; 332 : lr->frame = (uint_8)fixup->frame_type;
; 333 : } else {
; 334 : lr->frame = FRAME_TARG;
; 335 : }
; 336 : }
; 337 :
; 338 : /*--------------------*/
; 339 : /* Optimize the fixup */
; 340 : /*--------------------*/
; 341 :
; 342 : if( lr->fr... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omffixup.asm | 401 | 460 |
Terraspace/UASM:x64/Release/omffixup.asm:12 | lr$ = 8
buf$ = 16
type$ = 24
TranslateLogref PROC ; COMDAT
; 121 : uint_8 *p;
; 122 : uint_8 target;
; 123 :
; 124 : /**/myassert( lr != NULL );
; 125 : /**/myassert( buf != NULL );
; 126 : /**/myassert( type == FIX_GEN_INTEL || type == FIX_GEN_MS386 );
; 127 :
; 128 : /*
; 129 :... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omffixup.asm | 441 | 500 |
Terraspace/UASM:x64/Release/omffixup.asm:13 | ; 143 : * 1 = target is defined by thread# in tt, P is used as bit 2 for method
; 144 : * P : 0 = target displacement field is present
; 145 : * 1 = no displacement field
; 146 : * tt : target method
; 147 : */
; 148 : *p++ = ( lr->frame << 4 ) | ( target );
movzx eax, BY... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omffixup.asm | 481 | 540 |
Terraspace/UASM:x64/Release/omffixup.asm:14 | $LN18@TranslateL:
mov BYTE PTR [rdx], r8b
inc rdx
; 151 : if( ( target & 0x04 ) == 0 ) {
test r9b, 4
jne SHORT $LN5@TranslateL
; 152 : if( type == FIX_GEN_MS386 ) {
cmp r11d, 1
jne SHORT $LN4@TranslateL
; 153 : p = put32( p, (uint_32)lr->target_offset );
mov eax, DWORD PTR [rcx+8... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omffixup.asm | 521 | 580 |
Terraspace/UASM:x64/Release/omffixup.asm:15 | ; 156 : }
; 157 : }
; 158 : return( p - buf );
sub rdx, r10
mov eax, edx
; 159 : }
ret 0
TranslateLogref ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\omffixup.c
; COMDAT putTargetDatum
_TEXT SEGMENT
p$ = 8
method$ = 16
datum$ = 24
putTargetDatum... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omffixup.asm | 561 | 620 |
Terraspace/UASM:x64/Release/omffixup.asm:16 | ret 0
putTargetDatum ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\omffixup.c
; COMDAT putFrameDatum
_TEXT SEGMENT
p$ = 8
method$ = 16
datum$ = 24
putFrameDatum PROC ; COMDAT
; 81 : switch( method ) {
cmp dl, 2
ja SHORT $LN2@putFrameDa
; 82 : case FRA... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omffixup.asm | 601 | 660 |
Terraspace/UASM:x64/Release/omffixup.asm:17 | ; 87 : case FRAME_ABS:
; 88 : return( put16( p, datum ) );
; 89 : #endif
; 90 : }
; 91 : /* for FRAME_LOC & FRAME_TARG ( & FRAME_NONE ) there's no datum to write. */
; 92 : return( p );
mov rax, rcx
; 93 : }
ret 0
putFrameDatum ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omffixup.asm | 641 | 700 |
Terraspace/UASM:x64/Release/omffixup.asm:18 | value$ = 16
put16 PROC ; COMDAT
; 67 : WriteU16( p, value );
mov WORD PTR [rcx], dx
; 68 : return( p + sizeof( uint_16 ) );
lea rax, QWORD PTR [rcx+2]
; 69 : }
ret 0
put16 ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\omffixup.c
; COMDAT putInd... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omffixup.asm | 681 | 740 |
Terraspace/UASM:x64/Release/omffixup.asm:19 | mov BYTE PTR [rcx], dl
lea rax, QWORD PTR [rcx+1]
; 61 : return( p );
; 62 : }
ret 0
putIndex ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\omffixup.c
_TEXT SEGMENT
lr$ = 32
fixup$ = 80
buf$ = 88
displ$ = 96
type$ = 104
OmfFixGenFixModend PROC
; 194 : {
$LN... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omffixup.asm | 721 | 780 |
Terraspace/UASM:x64/Release/omffixup.asm:20 | ; 197 :
; 198 : lr.is_secondary = FALSE;
; 199 : lr.target_offset = sym->offset + displ;
; 200 :
; 201 : lr.frame_datum = fixup->frame_datum;
movzx edi, WORD PTR [rsi+42]
mov r15d, DWORD PTR [rcx+16]
add r15d, r8d
mov WORD PTR lr$[rsp+2], di
; 202 :
; 203 : /* symbol is always a code label ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omffixup.asm | 761 | 820 |
Terraspace/UASM:x64/Release/omffixup.asm:21 | call omf_GetGrpIdx
mov edi, eax
mov WORD PTR lr$[rsp+2], ax
; 216 : }
; 217 : } else { /* SYM_INTERNAL */
jmp SHORT $LN3@OmfFixGenF
$LN2@OmfFixGenF:
; 218 : DebugMsg(("OmfFixGenFixModend(%p): fixup->frame_type/datum=%u/%u sym->name=%s state=%X segm=%s\n",
; 219 : fixup, f... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omffixup.asm | 801 | 860 |
Terraspace/UASM:x64/Release/omffixup.asm:22 | $LN6@OmfFixGenF:
; 230 : }
; 231 : return( TranslateLogref( &lr, buf, type ) );
movzx eax, dl
lea rcx, QWORD PTR [r14+1]
shl al, 4
or al, bpl
mov BYTE PTR [r14], al
cmp dl, 2
ja SHORT $LN15@OmfFixGenF
cmp di, 127 ; 0000007fH
jbe SHORT $LN20@OmfFixGenF
shr di, 8
or dil, 128 ; 00000080H
mov... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omffixup.asm | 841 | 900 |
Terraspace/UASM:x64/Release/omffixup.asm:23 | $LN11@OmfFixGenF:
movzx ecx, WORD PTR lr$[rsp+8]
mov WORD PTR [rax], cx
add rax, 2
$LN12@OmfFixGenF:
; 232 : }
mov rbx, QWORD PTR [rsp+80]
sub rax, r14
mov rbp, QWORD PTR [rsp+88]
mov rsi, QWORD PTR [rsp+96]
mov rdi, QWORD PTR [rsp+104]
add rsp, 48 ; 00000030H
pop r15
pop r14
pop r12
ret 0
OmfFixGen... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omffixup.asm | 881 | 940 |
Terraspace/UASM:x64/Release/omffixup.asm:24 | ; 371 : uint_8 locat1;
; 372 : uint_8 self_relative = FALSE;
; 373 : unsigned data_rec_offset;
; 374 : struct logref lr;
; 375 :
; 376 : /**/myassert( fixup != NULL );
; 377 : /**/myassert( buf != NULL );
; 378 : /**/myassert( type == FIX_GEN_INTEL || type == FIX_GEN_MS386 );
; 379... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omffixup.asm | 921 | 980 |
Terraspace/UASM:x64/Release/omffixup.asm:25 | ; 387 : case FIX_OFF8:
; 388 : locat1 = ( LOC_OFFSET_LO << 2 );
xor bl, bl
; 389 : break;
jmp SHORT $LN2@OmfFixGenF
$LN6@OmfFixGenF:
; 390 : case FIX_RELOFF16:
; 391 : self_relative = TRUE;
mov sil, 1
$LN7@OmfFixGenF:
; 392 : /* no break */
; 393 : case FIX_OF... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omffixup.asm | 961 | 1,020 |
Terraspace/UASM:x64/Release/omffixup.asm:26 | movzx ebx, BYTE PTR [rdi+33]
and bl, 1
shl bl, 4
or bl, 36 ; 00000024H
; 401 : break;
jmp SHORT $LN2@OmfFixGenF
$LN10@OmfFixGenF:
; 402 : case FIX_HIBYTE:
; 403 : locat1 = ( LOC_OFFSET_HI << 2 );
mov bl, 16
; 404 : break;
jmp SHORT $LN2@OmfFixGenF
$LN11@OmfFixGenF:
; 405... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omffixup.asm | 1,001 | 1,060 |
Terraspace/UASM:x64/Release/omffixup.asm:27 | ; 411 : case FIX_PTR32:
; 412 : locat1 = ( LOC_MS_BASE_OFFSET_32 << 2 );
mov bl, 44 ; 0000002cH
$LN2@OmfFixGenF:
; 419 : }
; 420 : locat1 |= self_relative ? 0x80 : 0xc0; /* bit 7: 1=is a fixup subrecord */
; 421 :
; 422 : if ( omf_fill_logref( fixup, &lr ) == 0 )
lea rdx, QWORD PT... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omffixup.asm | 1,041 | 1,100 |
Terraspace/UASM:x64/Release/omffixup.asm:28 | mov r8d, ebp
cmovne ecx, eax
mov eax, edx
shr eax, 8
lea rdx, QWORD PTR [r14+2]
or cl, al
or cl, bl
mov BYTE PTR [r14], cl
lea rcx, QWORD PTR lr$[rsp]
call TranslateLogref
add eax, 2
jmp SHORT $LN1@OmfFixGenF
$LN14@OmfFixGenF:
; 413 : break;
; 414 : default: /* shouldn't happen. Check for vali... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omffixup.asm | 1,081 | 1,140 |
Terraspace/UASM:x64/Release/omffixup.asm:29 | mov rbx, QWORD PTR [rsp+80]
mov rbp, QWORD PTR [rsp+88]
mov rsi, QWORD PTR [rsp+96]
add rsp, 48 ; 00000030H
pop r15
pop r14
pop rdi
ret 0
npad 3
$LN19@OmfFixGenF:
DD $LN4@OmfFixGenF
DD $LN6@OmfFixGenF
DD $LN8@OmfFixGenF
DD $LN5@OmfFixGenF
DD $LN7@OmfFixGenF
DD $LN9@OmfFixGenF
DD $LN14@OmfFixGenF
DD ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omffixup.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omffixup.asm | 1,121 | 1,145 |
Terraspace/UASM:x64/Release/omfint.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
_DATA SEGMENT
$SG7763 DB 'omfint.c', 00H
ORG $+7
$SG7870 DB 'omfint.c', 00H
_... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/omfint.asm | 1 | 60 |
Terraspace/UASM:x64/Release/omfint.asm:2 | DD imagerel WEndRec+331
DD imagerel $unwind$WEndRec
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$PutMem DD imagerel PutMem
DD imagerel PutMem+92
DD imagerel $unwind$PutMem
pdata ENDS
pdata SEGMENT
$pdata$writeMisc DD imagerel writeMisc
DD imagerel writeMisc+99
DD imagerel $unwind$writeMisc
$pdata$writeMisc32 DD ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/omfint.asm | 41 | 100 |
Terraspace/UASM:x64/Release/omfint.asm:3 | $pdata$writeLinsym DD imagerel writeLinsym
DD imagerel writeLinsym+160
DD imagerel $unwind$writeLinsym
$pdata$writeUnexp DD imagerel writeUnexp
DD imagerel writeUnexp+34
DD imagerel $unwind$writeUnexp
pdata ENDS
CONST SEGMENT
myFuncs DQ FLAT:writeUnexp
DQ FLAT:writeMisc
DQ FLAT:writeMisc32
DQ FLAT:writeSegdef
D... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/omfint.asm | 81 | 140 |
Terraspace/UASM:x64/Release/omfint.asm:4 | DB 00H
DB 00H
DB 00H
DB 00H
DB 01H
DB 02H
DB 01H
DB 08H
DB 01H
DB 00H
DB 01H
DB 00H
DB 00H
DB 0aH
DB 0bH
DB 01H
DB 02H
DB 01H
CONST ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$PutMem DD 040a01H
DD 06340aH
DD 07006320aH
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$WEndRec DD 040a01H
DD 06340aH
DD 0... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/omfint.asm | 121 | 180 |
Terraspace/UASM:x64/Release/omfint.asm:5 | DD 06340aH
DD 07006320aH
$unwind$writeMisc32 DD 040a01H
DD 06340aH
DD 07006320aH
$unwind$writeComent DD 040a01H
DD 06340aH
DD 07006320aH
$unwind$writeSegdef DD 010401H
DD 04204H
$unwind$writeLedata DD 040a01H
DD 06340aH
DD 07006320aH
$unwind$writeTheadr DD 040a01H
DD 06340aH
DD 07006320aH
$unwind$writeModend ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/omfint.asm | 161 | 220 |
Terraspace/UASM:x64/Release/omfint.asm:6 | ; 456 : {
sub rsp, 40 ; 00000028H
; 457 : DebugMsg(("unexpected OMF record type 0x%02X\n", objr->command ));
; 458 : Fatal( INTERNAL_ERROR, __FILE__, __LINE__ );
mov r8d, 458 ; 000001caH
lea rdx, OFFSET FLAT:$SG7870
mov ecx, 110 ; 0000006eH
call Fatal
; 459 : /* this is never reached,... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/omfint.asm | 201 | 260 |
Terraspace/UASM:x64/Release/omfint.asm:7 | ; 444 : WBegRec( out, CMD_LINSYM + objr->is_32 );
movzx eax, BYTE PTR [rdx+17]
mov rbx, rcx
mov DWORD PTR [rcx], 0
sub al, 60 ; 0000003cH
mov BYTE PTR [rcx+4], al
; 445 : PutByte( out, objr->d.linsym.flags );
movzx eax, BYTE PTR [rdx+20]
mov BYTE PTR [rcx+7], al
inc DWORD PTR [rcx]
; 446 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/omfint.asm | 241 | 300 |
Terraspace/UASM:x64/Release/omfint.asm:8 | lea rcx, QWORD PTR [rbx+7]
mov r8d, edi
add rcx, rax
call memcpy
add DWORD PTR [rbx], edi
jmp SHORT $LN16@writeLinsy
$LN15@writeLinsy:
mov r8d, 168 ; 000000a8H
lea rdx, OFFSET FLAT:$SG7763
lea ecx, QWORD PTR [r8-58]
call Fatal
$LN16@writeLinsy:
; 448 : WEndRec( out );
mov rcx, rbx
call WEndRec
; 4... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/omfint.asm | 281 | 340 |
Terraspace/UASM:x64/Release/omfint.asm:9 | ; 413 : /**/myassert( objr->command == CMD_COMDAT );
; 414 :
; 415 : /* write CMD_COMDAT/CMD_COMD32 */
; 416 : WBegRec( out, objr->command + objr->is_32 );
movzx eax, BYTE PTR [rdx+16]
mov rbx, rcx
add al, BYTE PTR [rdx+17]
mov r10, rdx
mov DWORD PTR [rcx], 0
mov BYTE PTR [rcx+4], al
; 417 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/omfint.asm | 321 | 380 |
Terraspace/UASM:x64/Release/omfint.asm:10 | mov ecx, eax
je SHORT $LN2@writeComda
mov eax, DWORD PTR [rdx+24]
mov DWORD PTR [rcx+rbx+7], eax
add DWORD PTR [rbx], 4
; 422 : } else {
jmp SHORT $LN16@writeComda
$LN2@writeComda:
; 423 : PutWord( out, objr->d.comdat.offset );
movzx eax, WORD PTR [rdx+24]
mov WORD PTR [rcx+rbx+7], ax
add DWOR... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/omfint.asm | 361 | 420 |
Terraspace/UASM:x64/Release/omfint.asm:11 | ; 427 : PutBase( out, &objr->d.comdat.base );
lea rdx, QWORD PTR [r10+30]
mov rcx, rbx
call PutBase
$LN4@writeComda:
; 428 : }
; 429 : PutIndex( out, objr->d.comdat.public_lname_idx );
movzx edx, WORD PTR [r10+36]
cmp dx, 127 ; 0000007fH
jbe SHORT $LN28@writeComda
mov eax, DWORD PTR [rb... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/omfint.asm | 401 | 460 |
Terraspace/UASM:x64/Release/omfint.asm:12 | jmp SHORT $LN34@writeComda
$LN33@writeComda:
mov r8d, 168 ; 000000a8H
lea rdx, OFFSET FLAT:$SG7763
lea ecx, QWORD PTR [r8-58]
call Fatal
$LN34@writeComda:
; 432 : WEndRec( out );
mov rcx, rbx
call WEndRec
; 433 : return( 0 );
; 434 : }
mov rbx, QWORD PTR [rsp+48]
xor eax, eax
add rsp, 32 ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/omfint.asm | 441 | 500 |
Terraspace/UASM:x64/Release/omfint.asm:13 | movzx eax, BYTE PTR [rdx+17]
mov r10, rdx
sub al, 108 ; 0000006cH
mov DWORD PTR [rcx], 0
; 398 : PutBase( out, &objr->d.linnum.base );
add rdx, 20
mov BYTE PTR [rcx+4], al
mov rbx, rcx
call PutBase
; 399 : PutMem( out, objr->data, objr->length );
mov ecx, DWORD PTR [rbx]
mov eax, 4079 ; 00... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/omfint.asm | 481 | 540 |
Terraspace/UASM:x64/Release/omfint.asm:14 | ; 401 : return( 0 );
; 402 : }
mov rbx, QWORD PTR [rsp+48]
xor eax, eax
add rsp, 32 ; 00000020H
pop rdi
ret 0
writeLinnum ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\omfint.c
_TEXT SEGMENT
out$ = 48
objr$ = 56
writePubdef PROC
; 381 : {
mov QWORD PTR... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/omfint.asm | 521 | 580 |
Terraspace/UASM:x64/Release/omfint.asm:15 | ; 386 : PutMem( out, objr->data, objr->length );
mov ecx, DWORD PTR [rbx]
mov eax, 4079 ; 00000fefH
mov edi, DWORD PTR [r10]
sub eax, ecx
cmp edi, eax
ja SHORT $LN6@writePubde
mov rdx, QWORD PTR [r10+8]
mov eax, ecx
lea rcx, QWORD PTR [rbx+7]
mov r8d, edi
add rcx, rax
call memcpy
add DWORD PTR [rb... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/omfint.asm | 561 | 620 |
Terraspace/UASM:x64/Release/omfint.asm:16 | ; COMDAT PutBase
_TEXT SEGMENT
out$ = 8
base$ = 16
PutBase PROC ; COMDAT
; 371 : {
mov r9, rcx
; 372 : PutIndex( out, base->grp_idx );
movzx ecx, WORD PTR [rdx]
cmp cx, 127 ; 0000007fH
jbe SHORT $LN7@PutBase
mov eax, DWORD PTR [r9]
movzx r8d, cx
shr r8w, 8
or r8b, 128 ; 00000080H
mov BYTE... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/omfint.asm | 601 | 660 |
Terraspace/UASM:x64/Release/omfint.asm:17 | inc DWORD PTR [r9]
; 374 : if( base->grp_idx == 0 && base->seg_idx == 0 ) {
cmp WORD PTR [rdx], 0
jne SHORT $LN18@PutBase
cmp WORD PTR [rdx+2], 0
jne SHORT $LN18@PutBase
; 375 : PutWord( out, base->frame );
mov ecx, DWORD PTR [r9]
movzx eax, WORD PTR [rdx+4]
mov WORD PTR [rcx+r9+7], ax
add DWO... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/omfint.asm | 641 | 700 |
Terraspace/UASM:x64/Release/omfint.asm:18 | ; 342 :
; 343 : is32 = ( ( objr->is_32 && objr->d.modend.start_addrs ) ? TRUE : FALSE );
cmp BYTE PTR [rdx+17], 0
mov rbx, rcx
je SHORT $LN5@writeModen
cmp BYTE PTR [rdx+21], 0
je SHORT $LN5@writeModen
mov eax, 1
jmp SHORT $LN6@writeModen
$LN5@writeModen:
xor eax, eax
$LN6@writeModen:
; 344 : WBegR... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/omfint.asm | 681 | 740 |
Terraspace/UASM:x64/Release/omfint.asm:19 | ; 355 : //is_log = objr->d.modend.is_logical;
; 356 : //mtype |= 0x40 | is_log;
; 357 : mtype |= 0x41;
or cl, 65 ; 00000041H
; 358 : PutByte( out, mtype );
; 359 : PutMem( out, objr->data, objr->length );
mov eax, 4079 ; 00000fefH
mov BYTE PTR [rbx+7], cl
inc D... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/omfint.asm | 721 | 780 |
Terraspace/UASM:x64/Release/omfint.asm:20 | inc DWORD PTR [rbx]
$LN15@writeModen:
; 362 :
; 363 : WEndRec( out );
mov rcx, rbx
call WEndRec
mov rdi, QWORD PTR [rsp+48]
; 364 : return( 0 );
xor eax, eax
; 365 : }
add rsp, 32 ; 00000020H
pop rbx
ret 0
writeModend ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/omfint.asm | 761 | 820 |
Terraspace/UASM:x64/Release/omfint.asm:21 | mov BYTE PTR [rcx+4], al
mov DWORD PTR [rcx], 0
mov edi, DWORD PTR [rdx]
cmp edi, 4079 ; 00000fefH
ja SHORT $LN8@writeThead
mov rdx, QWORD PTR [rdx+8]
mov r8d, edi
add rcx, 7
call memcpy
add DWORD PTR [rbx], edi
jmp SHORT $LN9@writeThead
$LN8@writeThead:
mov r8d, 168 ; 000000a8H
lea rdx, OFFSET FLAT:$... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/omfint.asm | 801 | 860 |
Terraspace/UASM:x64/Release/omfint.asm:22 | sub rsp, 32 ; 00000020H
; 312 : /**/myassert( objr->command == CMD_LEDATA || objr->command == CMD_LIDATA );
; 313 :
; 314 : WBegRec( out, objr->command + objr->is_32 );
movzx eax, BYTE PTR [rdx+16]
mov rbx, rcx
add al, BYTE PTR [rdx+17]
mov BYTE PTR [rcx+4], al
mov DWORD PTR [rcx], 0
; 315 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/omfint.asm | 841 | 900 |
Terraspace/UASM:x64/Release/omfint.asm:23 | ; 318 : } else {
jmp SHORT $LN16@writeLedat
$LN2@writeLedat:
; 319 : PutWord( out, objr->d.ledata.offset );
movzx eax, WORD PTR [rdx+24]
mov WORD PTR [rcx+rbx+7], ax
add DWORD PTR [rbx], 2
$LN16@writeLedat:
; 320 : }
; 321 : PutMem( out, objr->data, objr->length );
mov ecx, DWORD PTR [... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/omfint.asm | 881 | 940 |
Terraspace/UASM:x64/Release/omfint.asm:24 | ; 323 : return( 0 );
; 324 : }
mov rbx, QWORD PTR [rsp+48]
xor eax, eax
add rsp, 32 ; 00000020H
pop rdi
ret 0
writeLedata ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\omfint.c
_TEXT SEGMENT
out$ = 48
objr$ = 56
writeSegdef PROC
; 215 : {
sub rsp, 40 ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/omfint.asm | 921 | 980 |
Terraspace/UASM:x64/Release/omfint.asm:26 | test r9d, r9d
jne SHORT $LN2@writeSegde
cmp DWORD PTR [rdx+36], 65536 ; 00010000H
jne SHORT $LN2@writeSegde
; 255 : acbp |= 0x02;
or al, 2
$LN2@writeSegde:
; 256 : }
; 257 :
; 258 : /* the segdef record is small (16bit: size 6 - 9 ):
; 259 : * - byte acbp
; 260 : * - word (32bit:... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/omfint.asm | 1,001 | 1,060 |
Terraspace/UASM:x64/Release/omfint.asm:27 | movzx eax, WORD PTR [rdx+28]
mov WORD PTR [rcx+r8+7], ax
add DWORD PTR [r8], 2
; 274 : PutByte( out, objr->d.segdef.abs.offset );
movzx eax, BYTE PTR [rdx+32]
mov ecx, DWORD PTR [r8]
mov BYTE PTR [rcx+r8+7], al
inc DWORD PTR [r8]
mov eax, DWORD PTR [r8]
$LN13@writeSegde:
; 275 : }
; 276 : i... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/omfint.asm | 1,041 | 1,100 |
Terraspace/UASM:x64/Release/omfint.asm:28 | movzx r9d, WORD PTR [rdx+40]
cmp r9w, 127 ; 0000007fH
jbe SHORT $LN22@writeSegde
mov eax, DWORD PTR [r8]
movzx ecx, r9w
shr cx, 8
or cl, 128 ; 00000080H
mov BYTE PTR [rax+r8+7], cl
inc DWORD PTR [r8]
$LN22@writeSegde:
mov eax, DWORD PTR [r8]
mov BYTE PTR [rax+r8+7], r9b
inc DWORD PTR [r8]
; 283 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/omfint.asm | 1,081 | 1,140 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.