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/omfint.asm:13 | 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 ; 00000fefH
mov edi, DWORD PTR [r... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omfint.asm | 481 | 540 |
Terraspace/UASM:x64/Release/omfint.asm:14 | ; 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 [rsp+8], rbx
push rdi
s... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omfint.asm | 521 | 580 |
Terraspace/UASM:x64/Release/omfint.asm:15 | 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 [rbx], edi
jmp SHORT $LN7@writePubde
$LN6@writePubde:
mov... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omfint.asm | 561 | 620 |
Terraspace/UASM:x64/Release/omfint.asm:19 | ; 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 DWORD PTR [rbx]
mov ecx, DWORD PTR [rbx]
mov edi, DWOR... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omfint.asm | 721 | 780 |
Terraspace/UASM:x64/Release/omfint.asm:20 | ; 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.13.1s\hjwasm2.13.1s\omfint.c
_TEXT SEG... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omfint.asm | 761 | 820 |
Terraspace/UASM:x64/Release/omfint.asm:21 | 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:$SG7741
lea ecx, QWORD PTR [r8-58]
call Fatal
$LN... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omfint.asm | 801 | 860 |
Terraspace/UASM:x64/Release/omfint.asm:23 | 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 [rbx]
mov eax, 4079 ;... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omfint.asm | 881 | 940 |
Terraspace/UASM:x64/Release/omfint.asm:30 | mov rbx, rcx
mov BYTE PTR [rcx+4], 136 ; 00000088H
; 206 : PutByte( out, objr->d.coment.attr );
movzx eax, BYTE PTR [rdx+20]
mov BYTE PTR [rcx+7], al
inc DWORD PTR [rcx]
mov r8d, DWORD PTR [rcx]
; 207 : PutByte( out, objr->d.coment.cmt_class );
movzx eax, BYTE PTR [rdx+21]
mov BYTE PTR [r8+rcx+7]... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omfint.asm | 1,161 | 1,220 |
Terraspace/UASM:x64/Release/omfint.asm:31 | mov rcx, rbx
call WEndRec
; 210 : return( 0 );
; 211 : }
mov rbx, QWORD PTR [rsp+48]
xor eax, eax
add rsp, 32 ; 00000020H
pop rdi
ret 0
writeComent ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\omfint.c
_TEXT SEGMENT
out$ = 48
objr$ = 56
writeMisc32 PROC... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omfint.asm | 1,201 | 1,260 |
Terraspace/UASM:x64/Release/omfint.asm:32 | cmp edi, 4079 ; 00000fefH
ja SHORT $LN6@writeMisc3
mov rdx, QWORD PTR [rdx+8]
mov r8d, edi
add rcx, 7
call memcpy
add DWORD PTR [rbx], edi
jmp SHORT $LN7@writeMisc3
$LN6@writeMisc3:
mov r8d, 168 ; 000000a8H
lea rdx, OFFSET FLAT:$SG7741
lea ecx, QWORD PTR [r8-58]
call Fatal
$LN7@writeMisc3:
; 196 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omfint.asm | 1,241 | 1,300 |
Terraspace/UASM:x64/Release/omfint.asm:33 | push rdi
sub rsp, 32 ; 00000020H
; 179 : /**/myassert( objr->data != NULL );
; 180 :
; 181 : WBegRec( out, objr->command );
movzx eax, BYTE PTR [rdx+16]
mov rbx, rcx
mov BYTE PTR [rcx+4], al
mov DWORD PTR [rcx], 0
; 182 : PutMem( out, objr->data, objr->length );
mov edi, DWORD PTR [rdx]
c... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omfint.asm | 1,281 | 1,340 |
Terraspace/UASM:x64/Release/omfint.asm:35 | ; 164 : out->in_buf += length;
add DWORD PTR [rbx], edi
; 169 : }
; 170 : }
mov rbx, QWORD PTR [rsp+48]
add rsp, 32 ; 00000020H
pop rdi
ret 0
$LN2@PutMem:
; 165 : } else {
; 166 : /* this "shouldn't happen". */
; 167 : DebugMsg(("PutMem: buffer overflow error [length=%... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/omfint.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/omfint.asm | 1,361 | 1,420 |
Terraspace/UASM:x64/Release/posndir.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
CONST SEGMENT
NopList16 DB 03H
DB 02eH
DB 08bH
DB 0c0H
DB 08bH
DB 0c0H
D... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/posndir.asm | 1 | 60 |
Terraspace/UASM:x64/Release/posndir.asm:2 | DB 00H
DB 08dH
DB 044H
DB 020H
DB 00H
DB 08dH
DB 040H
DB 00H
DB 08bH
DB 0ffH
DB 090H
ORG $+3
NopList64 DB 07H
DB 0fH
DB 01fH
DB 080H
DB 00H
DB 00H
DB 00H
DB 00H
DB 066H
DB 0fH
DB 01fH
DB 044H
DB 00H
DB 00H
DB 0fH
DB 01fH
DB 044H
DB 00H
DB 00H
DB 0fH
DB 01fH
DB 040H
DB 00H
DB 0fH
DB 01... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/posndir.asm | 41 | 100 |
Terraspace/UASM:x64/Release/posndir.asm:3 | DB 090H
CONST ENDS
PUBLIC AlignCurrOffset
PUBLIC OrgDirective
PUBLIC AlignDirective
EXTRN EmitError:PROC
EXTRN EmitErr:PROC
EXTRN EmitWarn:PROC
EXTRN OutputByte:PROC
EXTRN FillDataBytes:PROC
EXTRN myltoa:PROC
EXTRN GetCurrOffset:PROC
EXTRN SetCurrOffset:PROC
EXTRN GetCurrSegAlign:PROC
EXTRN EvalOperand:PROC
EXTRN SetSt... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/posndir.asm | 81 | 140 |
Terraspace/UASM:x64/Release/posndir.asm:4 | DD imagerel $LN39+560
DD imagerel $unwind$AlignDirective
pdata ENDS
CONST SEGMENT
ORG $+3
NopLists DQ FLAT:NopList16
DQ FLAT:NopList32
DQ FLAT:NopList64
CONST ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$fill_in_objfile_space DD 0a6001H
DD 09e460H
DD 08745bH
DD 075451H
DD 06344cH
DD 060023206H
xdata ENDS
xdata SE... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/posndir.asm | 121 | 180 |
Terraspace/UASM:x64/Release/posndir.asm:5 | mov DWORD PTR [rsp+8], ecx
push rbx
sub rsp, 192 ; 000000c0H
movsxd r9, ecx
mov rbx, rdx
; 195 : int seg_align;
; 196 : struct expr opndx;
; 197 : uint_32 CurrAddr;
; 198 : char buffer[32];
; 199 :
; 200 : DebugMsg1(("AlignDirective enter\n"));
; 201 :
; 202 : switch( tokenarray[... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/posndir.asm | 161 | 220 |
Terraspace/UASM:x64/Release/posndir.asm:6 | mov ecx, DWORD PTR opndx$[rsp]
jmp $LN15@AlignDirec
$LN7@AlignDirec:
; 203 : case T_ALIGN:
; 204 : i++;
; 205 : if ( EvalOperand( &i, tokenarray, Token_Count, &opndx, EXPF_NOUNDEF ) == ERROR )
mov r8d, DWORD PTR ModuleInfo+496
lea rcx, QWORD PTR i$[rsp]
inc r9d
mov BYTE PTR [rsp+32], 2
mo... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/posndir.asm | 201 | 260 |
Terraspace/UASM:x64/Release/posndir.asm:7 | mov ecx, DWORD PTR opndx$[rsp]
mov eax, 1
cmp eax, ecx
jge SHORT $LN36@AlignDirec
npad 5
$LL6@AlignDirec:
add eax, eax
cmp eax, ecx
jl SHORT $LL6@AlignDirec
$LN36@AlignDirec:
; 211 : if( power != align_value ) {
je SHORT $LN34@AlignDirec
; 212 : return( EmitErr( POWER_OF_2, alig... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/posndir.asm | 241 | 300 |
Terraspace/UASM:x64/Release/posndir.asm:8 | ; 217 : align_value = CurrStruct->e.structinfo->alignment;
mov rax, QWORD PTR [rax+96]
movzx ecx, BYTE PTR [rax+28]
mov DWORD PTR opndx$[rsp], ecx
jmp SHORT $LN34@AlignDirec
$LN14@AlignDirec:
; 218 : else
; 219 : align_value = GetCurrSegAlign();
call GetCurrSegAlig... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/posndir.asm | 281 | 340 |
Terraspace/UASM:x64/Release/posndir.asm:9 | ; 231 : }
; 232 :
; 233 : /* ALIGN/EVEN inside a STRUCT definition? */
; 234 : if ( CurrStruct )
cmp QWORD PTR CurrStruct, 0
je SHORT $LN18@AlignDirec
; 235 : return( AlignInStruct( align_value ));
call AlignInStruct
; 266 : }
add rsp, 192 ; 000000c0H
pop rbx
ret 0
$LN18@AlignDir... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/posndir.asm | 321 | 380 |
Terraspace/UASM:x64/Release/posndir.asm:10 | test eax, eax
jg SHORT $LN22@AlignDirec
; 242 : return( EmitError( MUST_BE_IN_SEGMENT_BLOCK ) );
mov ecx, 82 ; 00000052H
; 220 : } else {
; 221 : return( EmitError( CONSTANT_EXPECTED ) );
call EmitError
; 266 : }
add rsp, 192 ; 000000c0H
pop rbx
ret 0
$LN22@AlignDirec:... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/posndir.asm | 361 | 420 |
Terraspace/UASM:x64/Release/posndir.asm:11 | lea rdx, QWORD PTR buffer$[rsp]
lea r8d, QWORD PTR [r9+10]
call myltoa
mov r8, rax
mov edx, 130 ; 00000082H
mov ecx, 1
call EmitWarn
$LN24@AlignDirec:
; 248 : //return( ERROR ); /* v2.0: don't exit */
; 249 : }
; 250 : /* v2.04: added, Skip backpatching after ALIGN occured */
; 251 : i... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/posndir.asm | 401 | 460 |
Terraspace/UASM:x64/Release/posndir.asm:12 | mov ebx, eax
div ecx
; 257 : if( seg_align ) {
test edx, edx
je SHORT $LN26@AlignDirec
; 258 : align_value -= seg_align;
sub ecx, edx
mov DWORD PTR opndx$[rsp], ecx
; 259 : fill_in_objfile_space( align_value );
call fill_in_objfile_space
$LN26@AlignDirec:
; 260 : }
; 261 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/posndir.asm | 441 | 500 |
Terraspace/UASM:x64/Release/posndir.asm:13 | add rsp, 192 ; 000000c0H
pop rbx
ret 0
$LN12@AlignDirec:
; 220 : } else {
; 221 : return( EmitError( CONSTANT_EXPECTED ) );
mov ecx, 65 ; 00000041H
call EmitError
; 266 : }
add rsp, 192 ; 000000c0H
pop rbx
ret 0
AlignDirective ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/posndir.asm | 481 | 540 |
Terraspace/UASM:x64/Release/posndir.asm:14 | ; 142 : /* v2.04: no output if nothing has been written yet */
; 143 : if( CurrSeg->e.seginfo->written == FALSE ) {
mov rcx, QWORD PTR ModuleInfo+432
mov rax, QWORD PTR [rcx+96]
test BYTE PTR [rax+107], 32 ; 00000020H
jne SHORT $LN13@fill_in_ob
; 144 :
; 145 : SetCurrOffset( CurrSeg, size, T... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/posndir.asm | 521 | 580 |
Terraspace/UASM:x64/Release/posndir.asm:15 | ; 169 : }
; 170 : }
; 171 : }
add rsp, 32 ; 00000020H
pop rsi
; 148 :
; 149 : FillDataBytes( 0x00, size ); /* just output nulls */
jmp FillDataBytes
$LN19@fill_in_ob:
; 150 :
; 151 : } else {
; 152 : /* output appropriate NOP type instructions to fill in the gap */
; 1... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/posndir.asm | 561 | 620 |
Terraspace/UASM:x64/Release/posndir.asm:16 | ; 156 : OutputByte( NopLists[ ModuleInfo.Ofssize ][i] );
movzx ecx, BYTE PTR [rcx+rdi]
call OutputByte
movzx edx, BYTE PTR ModuleInfo+404
lea rdi, QWORD PTR [rdi+1]
inc ebx
mov rcx, QWORD PTR [r14+rdx*8]
movzx eax, BYTE PTR [rcx]
cmp ebx, eax
jle SHORT $LL6@fill_in_ob
$LN5@fill_in_ob:
; 157 ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/posndir.asm | 601 | 660 |
Terraspace/UASM:x64/Release/posndir.asm:17 | cmp ebx, esi
jbe SHORT $LN31@fill_in_ob
mov eax, ebx
sub eax, esi
cmp eax, 2
jb SHORT $LC32@fill_in_ob
lea eax, DWORD PTR [rsi+1]
npad 12
; 161 :
; 162 : i=1; /* here i is the index into the NOP table */
; 163 : for( nop_type = NopLists[ ModuleInfo.Ofssize ][0]; nop_type > size ; nop_type-- )... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/posndir.asm | 641 | 700 |
Terraspace/UASM:x64/Release/posndir.asm:18 | ; 165 : }
; 166 : /* i now is the index of the 1st part of the NOP that we want */
; 167 : for( ; nop_type > 0; nop_type--,i++ ) {
dec ebx
$LN33@fill_in_ob:
lea eax, DWORD PTR [r8+rcx]
add ebp, eax
$LN31@fill_in_ob:
test ebx, ebx
jle SHORT $LN46@fill_in_ob
movsxd rdi, ebp
npad 11
$LL1... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/posndir.asm | 681 | 740 |
Terraspace/UASM:x64/Release/posndir.asm:19 | ; 170 : }
; 171 : }
add rsp, 32 ; 00000020H
pop rsi
ret 0
fill_in_objfile_space ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\posndir.c
_TEXT SEGMENT
opndx$ = 48
i$ = 176
tokenarray$ = 184
OrgDirective PROC
; 94 : {
$LN18:
mov r11, rsp
push rbx
sub rs... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/posndir.asm | 721 | 780 |
Terraspace/UASM:x64/Release/posndir.asm:20 | sbb cl, cl
and cl, 2
mov BYTE PTR [rsp+32], cl
lea rcx, QWORD PTR [r11+8]
call EvalOperand
cmp eax, -1
jne SHORT $LN2@OrgDirecti
; 104 : return( ERROR );
or eax, eax
; 128 : }
add rsp, 160 ; 000000a0H
pop rbx
ret 0
$LN2@OrgDirecti:
; 105 : if ( tokenarray[i].token != T_FINAL ) {
movsx... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/posndir.asm | 761 | 820 |
Terraspace/UASM:x64/Release/posndir.asm:21 | ; 108 : if ( CurrStruct ) {
cmp QWORD PTR CurrStruct, 0
je SHORT $LN4@OrgDirecti
; 109 : if ( opndx.kind == EXPR_CONST )
cmp DWORD PTR opndx$[rsp+60], 0
jne $LN14@OrgDirecti
; 110 : return( SetStructCurrentOffset( opndx.value ) );
mov ecx, DWORD PTR opndx$[rsp]
call SetStructCurren... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/posndir.asm | 801 | 860 |
Terraspace/UASM:x64/Release/posndir.asm:22 | add rsp, 160 ; 000000a0H
pop rbx
ret 0
$LN7@OrgDirecti:
; 114 : }
; 115 : #if FASTPASS
; 116 : if ( StoreState == FALSE ) FStoreLine(0);
cmp BYTE PTR StoreState, 0
jne SHORT $LN9@OrgDirecti
cmp DWORD PTR Parse_Pass, 0
jne SHORT $LN11@OrgDirecti
mov rcx, QWORD PTR ModuleInfo+464
xor r8d, ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/posndir.asm | 841 | 900 |
Terraspace/UASM:x64/Release/posndir.asm:23 | mov eax, DWORD PTR opndx$[rsp+60]
test eax, eax
jne SHORT $LN12@OrgDirecti
; 123 : return( SetCurrOffset( CurrSeg, opndx.value, FALSE, FALSE ) );
mov edx, DWORD PTR opndx$[rsp]
xor r9d, r9d
xor r8d, r8d
mov rcx, r10
call SetCurrOffset
; 128 : }
add rsp, 160 ; 000000a0H
pop rbx
ret 0
$LN12... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/posndir.asm | 881 | 940 |
Terraspace/UASM:x64/Release/posndir.asm:24 | ret 0
$LN14@OrgDirecti:
; 126 : }
; 127 : return( EmitError( ORG_NEEDS_A_CONSTANT_OR_LOCAL_OFFSET ) );
mov ecx, 40 ; 00000028H
call EmitError
; 128 : }
add rsp, 160 ; 000000a0H
pop rbx
ret 0
OrgDirective ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.1... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/posndir.asm | 921 | 980 |
Terraspace/UASM:x64/Release/posndir.asm:25 | ; 183 : seg_align = CurrAddr % alignment;
xor edx, edx
div ebx
; 184 : if( seg_align ) {
test edx, edx
je SHORT $LN2@AlignCurrO
; 185 : alignment -= seg_align;
sub ebx, edx
; 186 : fill_in_objfile_space( alignment );
mov ecx, ebx
; 187 : }
; 188 : }
add rsp, 32 ; 00... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/posndir.asm | 961 | 998 |
Terraspace/UASM:x64/Release/posndir.asm:4 | DD imagerel $LN39+560
DD imagerel $unwind$AlignDirective
pdata ENDS
CONST SEGMENT
ORG $+3
NopLists DQ FLAT:NopList16
DQ FLAT:NopList32
DQ FLAT:NopList64
CONST ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$fill_in_objfile_space DD 0a6001H
DD 09e460H
DD 08745bH
DD 075451H
DD 06344cH
DD 060023206H
xdata ENDS
xdata SE... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | b6bee747552c348862b443ee3dba33a9f71485f4 | github | assembler | https://github.com/Terraspace/UASM/blob/b6bee747552c348862b443ee3dba33a9f71485f4/x64/Release/posndir.asm | 121 | 180 |
Terraspace/UASM:x64/Release/posndir.asm:5 | mov DWORD PTR [rsp+8], ecx
push rbx
sub rsp, 192 ; 000000c0H
movsxd r9, ecx
mov rbx, rdx
; 195 : int seg_align;
; 196 : struct expr opndx;
; 197 : uint_32 CurrAddr;
; 198 : char buffer[32];
; 199 :
; 200 : DebugMsg1(("AlignDirective enter\n"));
; 201 :
; 202 : switch( tokenarray[... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | b6bee747552c348862b443ee3dba33a9f71485f4 | github | assembler | https://github.com/Terraspace/UASM/blob/b6bee747552c348862b443ee3dba33a9f71485f4/x64/Release/posndir.asm | 161 | 220 |
Terraspace/UASM:x64/Release/posndir.asm:7 | mov ecx, DWORD PTR opndx$[rsp]
mov eax, 1
cmp eax, ecx
jge SHORT $LN36@AlignDirec
npad 5
$LL6@AlignDirec:
add eax, eax
cmp eax, ecx
jl SHORT $LL6@AlignDirec
$LN36@AlignDirec:
; 211 : if( power != align_value ) {
je SHORT $LN34@AlignDirec
; 212 : return( EmitErr( POWER_OF_2, alig... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | b6bee747552c348862b443ee3dba33a9f71485f4 | github | assembler | https://github.com/Terraspace/UASM/blob/b6bee747552c348862b443ee3dba33a9f71485f4/x64/Release/posndir.asm | 241 | 300 |
Terraspace/UASM:x64/Release/posndir.asm:8 | ; 217 : align_value = CurrStruct->e.structinfo->alignment;
mov rax, QWORD PTR [rax+96]
movzx ecx, BYTE PTR [rax+16]
mov DWORD PTR opndx$[rsp], ecx
jmp SHORT $LN34@AlignDirec
$LN14@AlignDirec:
; 218 : else
; 219 : align_value = GetCurrSegAlign();
call GetCurrSegAlig... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | b6bee747552c348862b443ee3dba33a9f71485f4 | github | assembler | https://github.com/Terraspace/UASM/blob/b6bee747552c348862b443ee3dba33a9f71485f4/x64/Release/posndir.asm | 281 | 340 |
Terraspace/UASM:x64/Release/posndir.asm:4 | DD imagerel $LN39+560
DD imagerel $unwind$AlignDirective
pdata ENDS
CONST SEGMENT
ORG $+3
NopLists DQ FLAT:NopList16
DQ FLAT:NopList32
DQ FLAT:NopList64
CONST ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$fill_in_objfile_space DD 0a6001H
DD 09e460H
DD 08745bH
DD 075451H
DD 06344cH
DD 060023206H
xdata ENDS
xdata SE... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/posndir.asm | 121 | 180 |
Terraspace/UASM:x64/Release/posndir.asm:5 | mov DWORD PTR [rsp+8], ecx
push rbx
sub rsp, 192 ; 000000c0H
movsxd r9, ecx
mov rbx, rdx
; 195 : int seg_align;
; 196 : struct expr opndx;
; 197 : uint_32 CurrAddr;
; 198 : char buffer[32];
; 199 :
; 200 : DebugMsg1(("AlignDirective enter\n"));
; 201 :
; 202 : switch( tokenarray[... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/posndir.asm | 161 | 220 |
Terraspace/UASM:x64/Release/posndir.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
CONST SEGMENT
NopList16 DB 03H
DB 02eH
DB 08bH
DB 0c0H
DB 08bH
DB 0c0H
DB 090H
ORG $+1
NopLi... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/posndir.asm | 1 | 60 |
Terraspace/UASM:x64/Release/posndir.asm:2 | DB 08dH
DB 044H
DB 020H
DB 00H
DB 08dH
DB 040H
DB 00H
DB 08bH
DB 0ffH
DB 090H
ORG $+3
NopList64 DB 07H
DB 0fH
DB 01fH
DB 080H
DB 00H
DB 00H
DB 00H
DB 00H
DB 066H
DB 0fH
DB 01fH
DB 044H
DB 00H
DB 00H
DB 0fH
DB 01fH
DB 044H
DB 00H
DB 00H
DB 0fH
DB 01fH
DB 040H
DB 00H
DB 0fH
DB 01fH
DB 0... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/posndir.asm | 41 | 100 |
Terraspace/UASM:x64/Release/posndir.asm:3 | CONST ENDS
PUBLIC AlignCurrOffset
PUBLIC OrgDirective
PUBLIC AlignDirective
EXTRN EmitError:PROC
EXTRN EmitErr:PROC
EXTRN EmitWarn:PROC
EXTRN OutputByte:PROC
EXTRN FillDataBytes:PROC
EXTRN myltoa:PROC
EXTRN GetCurrOffset:PROC
EXTRN SetCurrOffset:PROC
EXTRN GetCurrSegAlign:PROC
EXTRN EvalOperand:PROC
EXTRN SetStructCurr... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/posndir.asm | 81 | 140 |
Terraspace/UASM:x64/Release/posndir.asm:4 | DD imagerel $unwind$AlignDirective
pdata ENDS
CONST SEGMENT
ORG $+3
NopLists DQ FLAT:NopList16
DQ FLAT:NopList32
DQ FLAT:NopList64
CONST ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$fill_in_objfile_space DD 0a6001H
DD 09e460H
DD 08745bH
DD 075451H
DD 06344cH
DD 060023206H
xdata ENDS
xdata SEGMENT
$unwind$AlignCurr... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/posndir.asm | 121 | 180 |
Terraspace/UASM:x64/Release/posndir.asm:5 | push rbx
sub rsp, 192 ; 000000c0H
movsxd r9, ecx
mov rbx, rdx
; 195 : int seg_align;
; 196 : struct expr opndx;
; 197 : uint_32 CurrAddr;
; 198 : char buffer[32];
; 199 :
; 200 : DebugMsg1(("AlignDirective enter\n"));
; 201 :
; 202 : switch( tokenarray[i].tokval ) {
mov r8, r9
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/posndir.asm | 161 | 220 |
Terraspace/UASM:x64/Release/posndir.asm:7 | mov eax, 1
cmp eax, ecx
jge SHORT $LN36@AlignDirec
npad 5
$LL6@AlignDirec:
add eax, eax
cmp eax, ecx
jl SHORT $LL6@AlignDirec
$LN36@AlignDirec:
; 211 : if( power != align_value ) {
je SHORT $LN34@AlignDirec
; 212 : return( EmitErr( POWER_OF_2, align_value ) );
mov edx, ecx
mov... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/posndir.asm | 241 | 300 |
Terraspace/UASM:x64/Release/posndir.asm:8 | ; 217 : align_value = CurrStruct->e.structinfo->alignment;
mov rax, QWORD PTR [rax+96]
movzx ecx, BYTE PTR [rax+16]
mov DWORD PTR opndx$[rsp], ecx
jmp SHORT $LN34@AlignDirec
$LN14@AlignDirec:
; 218 : else
; 219 : align_value = GetCurrSegAlign();
call GetCurrSegAlig... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/posndir.asm | 281 | 340 |
Terraspace/UASM:x64/Release/posndir.asm:9 | ; 231 : }
; 232 :
; 233 : /* ALIGN/EVEN inside a STRUCT definition? */
; 234 : if ( CurrStruct )
cmp QWORD PTR CurrStruct, 0
je SHORT $LN18@AlignDirec
; 235 : return( AlignInStruct( align_value ));
call AlignInStruct
; 266 : }
add rsp, 192 ; 000000c0H
pop rbx
ret 0
$LN18@AlignDir... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/posndir.asm | 321 | 380 |
Terraspace/UASM:x64/Release/posndir.asm:10 | test eax, eax
jg SHORT $LN22@AlignDirec
; 242 : return( EmitError( MUST_BE_IN_SEGMENT_BLOCK ) );
mov ecx, 82 ; 00000052H
; 220 : } else {
; 221 : return( EmitError( CONSTANT_EXPECTED ) );
call EmitError
; 266 : }
add rsp, 192 ; 000000c0H
pop rbx
ret 0
$LN22@AlignDirec:... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/posndir.asm | 361 | 420 |
Terraspace/UASM:x64/Release/posndir.asm:11 | lea r8d, QWORD PTR [r9+10]
call myltoa
mov r8, rax
mov edx, 130 ; 00000082H
mov ecx, 1
call EmitWarn
$LN24@AlignDirec:
; 248 : //return( ERROR ); /* v2.0: don't exit */
; 249 : }
; 250 : /* v2.04: added, Skip backpatching after ALIGN occured */
; 251 : if ( Parse_Pass == PASS_1 && CurrS... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/posndir.asm | 401 | 460 |
Terraspace/UASM:x64/Release/posndir.asm:12 | div ecx
; 257 : if( seg_align ) {
test edx, edx
je SHORT $LN26@AlignDirec
; 258 : align_value -= seg_align;
sub ecx, edx
mov DWORD PTR opndx$[rsp], ecx
; 259 : fill_in_objfile_space( align_value );
call fill_in_objfile_space
$LN26@AlignDirec:
; 260 : }
; 261 : if ( CurrFile[... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/posndir.asm | 441 | 500 |
Terraspace/UASM:x64/Release/posndir.asm:13 | pop rbx
ret 0
$LN12@AlignDirec:
; 220 : } else {
; 221 : return( EmitError( CONSTANT_EXPECTED ) );
mov ecx, 65 ; 00000041H
call EmitError
; 266 : }
add rsp, 192 ; 000000c0H
pop rbx
ret 0
AlignDirective ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/posndir.asm | 481 | 540 |
Terraspace/UASM:x64/Release/posndir.asm:14 | ; 143 : if( CurrSeg->e.seginfo->written == FALSE ) {
mov rcx, QWORD PTR ModuleInfo+432
mov rax, QWORD PTR [rcx+96]
test BYTE PTR [rax+107], 32 ; 00000020H
jne SHORT $LN13@fill_in_ob
; 144 :
; 145 : SetCurrOffset( CurrSeg, size, TRUE, TRUE );
mov r9b, 1
mov edx, esi
movzx r8d, r9b
; 169 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/posndir.asm | 521 | 580 |
Terraspace/UASM:x64/Release/posndir.asm:15 | ; 170 : }
; 171 : }
add rsp, 32 ; 00000020H
pop rsi
; 148 :
; 149 : FillDataBytes( 0x00, size ); /* just output nulls */
jmp FillDataBytes
$LN19@fill_in_ob:
; 150 :
; 151 : } else {
; 152 : /* output appropriate NOP type instructions to fill in the gap */
; 153 :
; 154 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/posndir.asm | 561 | 620 |
Terraspace/UASM:x64/Release/posndir.asm:16 | ; 156 : OutputByte( NopLists[ ModuleInfo.Ofssize ][i] );
movzx ecx, BYTE PTR [rcx+rdi]
call OutputByte
movzx edx, BYTE PTR ModuleInfo+404
lea rdi, QWORD PTR [rdi+1]
inc ebx
mov rcx, QWORD PTR [r14+rdx*8]
movzx eax, BYTE PTR [rcx]
cmp ebx, eax
jle SHORT $LL6@fill_in_ob
$LN5@fill_in_ob:
; 157 ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/posndir.asm | 601 | 660 |
Terraspace/UASM:x64/Release/posndir.asm:17 | jbe SHORT $LN31@fill_in_ob
mov eax, ebx
sub eax, esi
cmp eax, 2
jb SHORT $LC32@fill_in_ob
lea eax, DWORD PTR [rsi+1]
npad 12
; 161 :
; 162 : i=1; /* here i is the index into the NOP table */
; 163 : for( nop_type = NopLists[ ModuleInfo.Ofssize ][0]; nop_type > size ; nop_type-- ) {
$LL34@fill... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/posndir.asm | 641 | 700 |
Terraspace/UASM:x64/Release/posndir.asm:18 | ; 165 : }
; 166 : /* i now is the index of the 1st part of the NOP that we want */
; 167 : for( ; nop_type > 0; nop_type--,i++ ) {
dec ebx
$LN33@fill_in_ob:
lea eax, DWORD PTR [r8+rcx]
add ebp, eax
$LN31@fill_in_ob:
test ebx, ebx
jle SHORT $LN46@fill_in_ob
movsxd rdi, ebp
npad 11
$LL1... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/posndir.asm | 681 | 740 |
Terraspace/UASM:x64/Release/posndir.asm:19 | ; 171 : }
add rsp, 32 ; 00000020H
pop rsi
ret 0
fill_in_objfile_space ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\posndir.c
_TEXT SEGMENT
opndx$ = 48
i$ = 176
tokenarray$ = 184
OrgDirective PROC
; 94 : {
$LN18:
mov r11, rsp
push rbx
sub rsp, 160 ; 000... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/posndir.asm | 721 | 780 |
Terraspace/UASM:x64/Release/posndir.asm:20 | and cl, 2
mov BYTE PTR [rsp+32], cl
lea rcx, QWORD PTR [r11+8]
call EvalOperand
cmp eax, -1
jne SHORT $LN2@OrgDirecti
; 104 : return( ERROR );
or eax, eax
; 128 : }
add rsp, 160 ; 000000a0H
pop rbx
ret 0
$LN2@OrgDirecti:
; 105 : if ( tokenarray[i].token != T_FINAL ) {
movsxd rax, DWORD... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/posndir.asm | 761 | 820 |
Terraspace/UASM:x64/Release/posndir.asm:21 | cmp QWORD PTR CurrStruct, 0
je SHORT $LN4@OrgDirecti
; 109 : if ( opndx.kind == EXPR_CONST )
cmp DWORD PTR opndx$[rsp+60], 0
jne $LN14@OrgDirecti
; 110 : return( SetStructCurrentOffset( opndx.value ) );
mov ecx, DWORD PTR opndx$[rsp]
call SetStructCurrentOffset
; 128 : }
add rsp, 160 ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/posndir.asm | 801 | 860 |
Terraspace/UASM:x64/Release/posndir.asm:22 | pop rbx
ret 0
$LN7@OrgDirecti:
; 114 : }
; 115 : #if FASTPASS
; 116 : if ( StoreState == FALSE ) FStoreLine(0);
cmp BYTE PTR StoreState, 0
jne SHORT $LN9@OrgDirecti
cmp DWORD PTR Parse_Pass, 0
jne SHORT $LN11@OrgDirecti
mov rcx, QWORD PTR ModuleInfo+464
xor r8d, r8d
xor edx, edx
call Store... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/posndir.asm | 841 | 900 |
Terraspace/UASM:x64/Release/posndir.asm:23 | test eax, eax
jne SHORT $LN12@OrgDirecti
; 123 : return( SetCurrOffset( CurrSeg, opndx.value, FALSE, FALSE ) );
mov edx, DWORD PTR opndx$[rsp]
xor r9d, r9d
xor r8d, r8d
mov rcx, r10
call SetCurrOffset
; 128 : }
add rsp, 160 ; 000000a0H
pop rbx
ret 0
$LN12@OrgDirecti:
; 124 : else... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/posndir.asm | 881 | 940 |
Terraspace/UASM:x64/Release/posndir.asm:24 | $LN14@OrgDirecti:
; 126 : }
; 127 : return( EmitError( ORG_NEEDS_A_CONSTANT_OR_LOCAL_OFFSET ) );
mov ecx, 40 ; 00000028H
call EmitError
; 128 : }
add rsp, 160 ; 000000a0H
pop rbx
ret 0
OrgDirective ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\p... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/posndir.asm | 921 | 980 |
Terraspace/UASM:x64/Release/posndir.asm:25 | xor edx, edx
div ebx
; 184 : if( seg_align ) {
test edx, edx
je SHORT $LN2@AlignCurrO
; 185 : alignment -= seg_align;
sub ebx, edx
; 186 : fill_in_objfile_space( alignment );
mov ecx, ebx
; 187 : }
; 188 : }
add rsp, 32 ; 00000020H
pop rbx
; 186 : fill_in_objfil... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/posndir.asm | 961 | 997 |
Terraspace/UASM:x64/Release/posndir.asm:23 | test eax, eax
jne SHORT $LN12@OrgDirecti
; 123 : return( SetCurrOffset( CurrSeg, opndx.value, FALSE, FALSE ) );
mov edx, DWORD PTR opndx$[rsp]
xor r9d, r9d
xor r8d, r8d
mov rcx, r10
call SetCurrOffset
; 128 : }
add rsp, 160 ; 000000a0H
pop rbx
ret 0
$LN12@OrgDirecti:
; 124 : else... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/posndir.asm | 881 | 940 |
Terraspace/UASM:x64/Release/posndir.asm:6 | mov ecx, DWORD PTR opndx$[rsp]
jmp $LN15@AlignDirec
$LN7@AlignDirec:
; 203 : case T_ALIGN:
; 204 : i++;
; 205 : if ( EvalOperand( &i, tokenarray, Token_Count, &opndx, EXPF_NOUNDEF ) == ERROR )
mov r8d, DWORD PTR ModuleInfo+496
lea rcx, QWORD PTR i$[rsp]
inc r9d
mov BYTE PTR [rsp+32], 2
mo... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/posndir.asm | 201 | 260 |
Terraspace/UASM:x64/Release/posndir.asm:7 | mov eax, 1
cmp eax, ecx
jge SHORT $LN36@AlignDirec
npad 5
$LL6@AlignDirec:
add eax, eax
cmp eax, ecx
jl SHORT $LL6@AlignDirec
$LN36@AlignDirec:
; 211 : if( power != align_value ) {
je SHORT $LN34@AlignDirec
; 212 : return( EmitErr( POWER_OF_2, align_value ) );
mov edx, ecx
mov... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/posndir.asm | 241 | 300 |
Terraspace/UASM:x64/Release/posndir.asm:8 | ; 217 : align_value = CurrStruct->e.structinfo->alignment;
mov rax, QWORD PTR [rax+96]
movzx ecx, BYTE PTR [rax+16]
mov DWORD PTR opndx$[rsp], ecx
jmp SHORT $LN34@AlignDirec
$LN14@AlignDirec:
; 218 : else
; 219 : align_value = GetCurrSegAlign();
call GetCurrSegAlig... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/posndir.asm | 281 | 340 |
Terraspace/UASM:x64/Release/posndir.asm:9 | ; 231 : }
; 232 :
; 233 : /* ALIGN/EVEN inside a STRUCT definition? */
; 234 : if ( CurrStruct )
cmp QWORD PTR CurrStruct, 0
je SHORT $LN18@AlignDirec
; 235 : return( AlignInStruct( align_value ));
call AlignInStruct
; 266 : }
add rsp, 192 ; 000000c0H
pop rbx
ret 0
$LN18@AlignDir... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/posndir.asm | 321 | 380 |
Terraspace/UASM:x64/Release/posndir.asm:10 | test eax, eax
jg SHORT $LN22@AlignDirec
; 242 : return( EmitError( MUST_BE_IN_SEGMENT_BLOCK ) );
mov ecx, 83 ; 00000053H
; 220 : } else {
; 221 : return( EmitError( CONSTANT_EXPECTED ) );
call EmitError
; 266 : }
add rsp, 192 ; 000000c0H
pop rbx
ret 0
$LN22@AlignDirec:... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/posndir.asm | 361 | 420 |
Terraspace/UASM:x64/Release/posndir.asm:11 | lea r8d, QWORD PTR [r9+10]
call myltoa
mov r8, rax
mov edx, 131 ; 00000083H
mov ecx, 1
call EmitWarn
$LN24@AlignDirec:
; 248 : //return( ERROR ); /* v2.0: don't exit */
; 249 : }
; 250 : /* v2.04: added, Skip backpatching after ALIGN occured */
; 251 : if ( Parse_Pass == PASS_1 && CurrS... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/posndir.asm | 401 | 460 |
Terraspace/UASM:x64/Release/posndir.asm:12 | div ecx
; 257 : if( seg_align ) {
test edx, edx
je SHORT $LN26@AlignDirec
; 258 : align_value -= seg_align;
sub ecx, edx
mov DWORD PTR opndx$[rsp], ecx
; 259 : fill_in_objfile_space( align_value );
call fill_in_objfile_space
$LN26@AlignDirec:
; 260 : }
; 261 : if ( CurrFile[... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/posndir.asm | 441 | 500 |
Terraspace/UASM:x64/Release/posndir.asm:13 | pop rbx
ret 0
$LN12@AlignDirec:
; 220 : } else {
; 221 : return( EmitError( CONSTANT_EXPECTED ) );
mov ecx, 66 ; 00000042H
call EmitError
; 266 : }
add rsp, 192 ; 000000c0H
pop rbx
ret 0
AlignDirective ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/posndir.asm | 481 | 540 |
Terraspace/UASM:x64/Release/posndir.asm:20 | and cl, 2
mov BYTE PTR [rsp+32], cl
lea rcx, QWORD PTR [r11+8]
call EvalOperand
cmp eax, -1
jne SHORT $LN2@OrgDirecti
; 104 : return( ERROR );
or eax, eax
; 128 : }
add rsp, 160 ; 000000a0H
pop rbx
ret 0
$LN2@OrgDirecti:
; 105 : if ( tokenarray[i].token != T_FINAL ) {
movsxd rax, DWORD... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/posndir.asm | 761 | 820 |
Terraspace/UASM:x64/Release/posndir.asm:21 | cmp QWORD PTR CurrStruct, 0
je SHORT $LN4@OrgDirecti
; 109 : if ( opndx.kind == EXPR_CONST )
cmp DWORD PTR opndx$[rsp+60], 0
jne $LN14@OrgDirecti
; 110 : return( SetStructCurrentOffset( opndx.value ) );
mov ecx, DWORD PTR opndx$[rsp]
call SetStructCurrentOffset
; 128 : }
add rsp, 160 ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/posndir.asm | 801 | 860 |
Terraspace/UASM:x64/Release/posndir.asm:23 | test eax, eax
jne SHORT $LN12@OrgDirecti
; 123 : return( SetCurrOffset( CurrSeg, opndx.value, FALSE, FALSE ) );
mov edx, DWORD PTR opndx$[rsp]
xor r9d, r9d
xor r8d, r8d
mov rcx, r10
call SetCurrOffset
; 128 : }
add rsp, 160 ; 000000a0H
pop rbx
ret 0
$LN12@OrgDirecti:
; 124 : else... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/posndir.asm | 881 | 940 |
Terraspace/UASM:x64/Release/posndir.asm:24 | $LN14@OrgDirecti:
; 126 : }
; 127 : return( EmitError( ORG_NEEDS_A_CONSTANT_OR_LOCAL_OFFSET ) );
mov ecx, 41 ; 00000029H
call EmitError
; 128 : }
add rsp, 160 ; 000000a0H
pop rbx
ret 0
OrgDirective ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\p... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/posndir.asm | 921 | 980 |
Terraspace/UASM:x64/Release/posndir.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
CONST SEGMENT
NopList16 DB 03H
DB 02eH
DB 08bH
DB 0c0H
DB 08bH
DB 0c0H
DB 090H
ORG $+1
NopList32 DB 07H
DB... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/posndir.asm | 1 | 60 |
Terraspace/UASM:x64/Release/posndir.asm:2 | DB 044H
DB 020H
DB 00H
DB 08dH
DB 040H
DB 00H
DB 08bH
DB 0ffH
DB 090H
ORG $+3
NopList64 DB 07H
DB 0fH
DB 01fH
DB 080H
DB 00H
DB 00H
DB 00H
DB 00H
DB 066H
DB 0fH
DB 01fH
DB 044H
DB 00H
DB 00H
DB 0fH
DB 01fH
DB 044H
DB 00H
DB 00H
DB 0fH
DB 01fH
DB 040H
DB 00H
DB 0fH
DB 01fH
DB 00H
DB 06... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/posndir.asm | 41 | 100 |
Terraspace/UASM:x64/Release/posndir.asm:3 | PUBLIC AlignCurrOffset
PUBLIC OrgDirective
PUBLIC AlignDirective
EXTRN EmitError:PROC
EXTRN EmitErr:PROC
EXTRN EmitWarn:PROC
EXTRN OutputByte:PROC
EXTRN FillDataBytes:PROC
EXTRN myltoa:PROC
EXTRN GetCurrOffset:PROC
EXTRN SetCurrOffset:PROC
EXTRN GetCurrSegAlign:PROC
EXTRN EvalOperand:PROC
EXTRN SetStructCurrentOffset:P... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/posndir.asm | 81 | 140 |
Terraspace/UASM:x64/Release/posndir.asm:4 | pdata ENDS
CONST SEGMENT
ORG $+3
NopLists DQ FLAT:NopList16
DQ FLAT:NopList32
DQ FLAT:NopList64
CONST ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$fill_in_objfile_space DD 0a6001H
DD 09e460H
DD 08745bH
DD 075451H
DD 06344cH
DD 060023206H
xdata ENDS
xdata SEGMENT
$unwind$AlignCurrOffset DD 020601H
DD 030023206H
$u... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/posndir.asm | 121 | 180 |
Terraspace/UASM:x64/Release/posndir.asm:5 | sub rsp, 192 ; 000000c0H
movsxd r9, ecx
mov rbx, rdx
; 195 : int seg_align;
; 196 : struct expr opndx;
; 197 : uint_32 CurrAddr;
; 198 : char buffer[32];
; 199 :
; 200 : DebugMsg1(("AlignDirective enter\n"));
; 201 :
; 202 : switch( tokenarray[i].tokval ) {
mov r8, r9
shl r8, 5
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/posndir.asm | 161 | 220 |
Terraspace/UASM:x64/Release/posndir.asm:6 | jmp $LN15@AlignDirec
$LN7@AlignDirec:
; 203 : case T_ALIGN:
; 204 : i++;
; 205 : if ( EvalOperand( &i, tokenarray, Token_Count, &opndx, EXPF_NOUNDEF ) == ERROR )
mov r8d, DWORD PTR ModuleInfo+496
lea rcx, QWORD PTR i$[rsp]
inc r9d
mov BYTE PTR [rsp+32], 2
mov DWORD PTR i$[rsp], r9d
lea r9... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/posndir.asm | 201 | 260 |
Terraspace/UASM:x64/Release/posndir.asm:7 | cmp eax, ecx
jge SHORT $LN36@AlignDirec
npad 5
$LL6@AlignDirec:
add eax, eax
cmp eax, ecx
jl SHORT $LL6@AlignDirec
$LN36@AlignDirec:
; 211 : if( power != align_value ) {
je SHORT $LN34@AlignDirec
; 212 : return( EmitErr( POWER_OF_2, align_value ) );
mov edx, ecx
mov ecx, 129 ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/posndir.asm | 241 | 300 |
Terraspace/UASM:x64/Release/posndir.asm:8 | mov rax, QWORD PTR [rax+96]
movzx ecx, BYTE PTR [rax+16]
mov DWORD PTR opndx$[rsp], ecx
jmp SHORT $LN34@AlignDirec
$LN14@AlignDirec:
; 218 : else
; 219 : align_value = GetCurrSegAlign();
call GetCurrSegAlign
mov ecx, eax
mov DWORD PTR opndx$[rsp], eax
$LN34@AlignDirec:
mov r9d, DW... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/posndir.asm | 281 | 340 |
Terraspace/UASM:x64/Release/posndir.asm:9 | ; 232 :
; 233 : /* ALIGN/EVEN inside a STRUCT definition? */
; 234 : if ( CurrStruct )
cmp QWORD PTR CurrStruct, 0
je SHORT $LN18@AlignDirec
; 235 : return( AlignInStruct( align_value ));
call AlignInStruct
; 266 : }
add rsp, 192 ; 000000c0H
pop rbx
ret 0
$LN18@AlignDirec:
; 236 :
;... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/posndir.asm | 321 | 380 |
Terraspace/UASM:x64/Release/posndir.asm:10 | jg SHORT $LN22@AlignDirec
; 242 : return( EmitError( MUST_BE_IN_SEGMENT_BLOCK ) );
mov ecx, 82 ; 00000052H
; 220 : } else {
; 221 : return( EmitError( CONSTANT_EXPECTED ) );
call EmitError
; 266 : }
add rsp, 192 ; 000000c0H
pop rbx
ret 0
$LN22@AlignDirec:
; 243 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/posndir.asm | 361 | 420 |
Terraspace/UASM:x64/Release/posndir.asm:11 | call myltoa
mov r8, rax
mov edx, 130 ; 00000082H
mov ecx, 1
call EmitWarn
$LN24@AlignDirec:
; 248 : //return( ERROR ); /* v2.0: don't exit */
; 249 : }
; 250 : /* v2.04: added, Skip backpatching after ALIGN occured */
; 251 : if ( Parse_Pass == PASS_1 && CurrSeg && CurrSeg->e.seginfo->Fi... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/posndir.asm | 401 | 460 |
Terraspace/UASM:x64/Release/posndir.asm:12 | ; 257 : if( seg_align ) {
test edx, edx
je SHORT $LN26@AlignDirec
; 258 : align_value -= seg_align;
sub ecx, edx
mov DWORD PTR opndx$[rsp], ecx
; 259 : fill_in_objfile_space( align_value );
call fill_in_objfile_space
$LN26@AlignDirec:
; 260 : }
; 261 : if ( CurrFile[LST] ) {
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/posndir.asm | 441 | 500 |
Terraspace/UASM:x64/Release/posndir.asm:13 | ret 0
$LN12@AlignDirec:
; 220 : } else {
; 221 : return( EmitError( CONSTANT_EXPECTED ) );
mov ecx, 65 ; 00000041H
call EmitError
; 266 : }
add rsp, 192 ; 000000c0H
pop rbx
ret 0
AlignDirective ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/posndir.asm | 481 | 540 |
Terraspace/UASM:x64/Release/posndir.asm:14 | mov rcx, QWORD PTR ModuleInfo+432
mov rax, QWORD PTR [rcx+96]
test BYTE PTR [rax+107], 32 ; 00000020H
jne SHORT $LN13@fill_in_ob
; 144 :
; 145 : SetCurrOffset( CurrSeg, size, TRUE, TRUE );
mov r9b, 1
mov edx, esi
movzx r8d, r9b
; 169 : }
; 170 : }
; 171 : }
add rsp, 32 ; 000000... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/posndir.asm | 521 | 580 |
Terraspace/UASM:x64/Release/posndir.asm:15 | ; 171 : }
add rsp, 32 ; 00000020H
pop rsi
; 148 :
; 149 : FillDataBytes( 0x00, size ); /* just output nulls */
jmp FillDataBytes
$LN19@fill_in_ob:
; 150 :
; 151 : } else {
; 152 : /* output appropriate NOP type instructions to fill in the gap */
; 153 :
; 154 : while( size... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/posndir.asm | 561 | 620 |
Terraspace/UASM:x64/Release/posndir.asm:16 | movzx ecx, BYTE PTR [rcx+rdi]
call OutputByte
movzx edx, BYTE PTR ModuleInfo+404
lea rdi, QWORD PTR [rdi+1]
inc ebx
mov rcx, QWORD PTR [r14+rdx*8]
movzx eax, BYTE PTR [rcx]
cmp ebx, eax
jle SHORT $LL6@fill_in_ob
$LN5@fill_in_ob:
; 157 : }
; 158 : size -= NopLists[ ModuleInfo.Ofssize ]... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/posndir.asm | 601 | 660 |
Terraspace/UASM:x64/Release/posndir.asm:17 | mov eax, ebx
sub eax, esi
cmp eax, 2
jb SHORT $LC32@fill_in_ob
lea eax, DWORD PTR [rsi+1]
npad 12
; 161 :
; 162 : i=1; /* here i is the index into the NOP table */
; 163 : for( nop_type = NopLists[ ModuleInfo.Ofssize ][0]; nop_type > size ; nop_type-- ) {
$LL34@fill_in_ob:
; 164 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/posndir.asm | 641 | 700 |
Terraspace/UASM:x64/Release/posndir.asm:18 | ; 166 : /* i now is the index of the 1st part of the NOP that we want */
; 167 : for( ; nop_type > 0; nop_type--,i++ ) {
dec ebx
$LN33@fill_in_ob:
lea eax, DWORD PTR [r8+rcx]
add ebp, eax
$LN31@fill_in_ob:
test ebx, ebx
jle SHORT $LN46@fill_in_ob
movsxd rdi, ebp
npad 11
$LL12@fill_in_ob:
; 16... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/posndir.asm | 681 | 740 |
Terraspace/UASM:x64/Release/posndir.asm:19 | add rsp, 32 ; 00000020H
pop rsi
ret 0
fill_in_objfile_space ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\posndir.c
_TEXT SEGMENT
opndx$ = 48
i$ = 176
tokenarray$ = 184
OrgDirective PROC
; 94 : {
$LN18:
mov r11, rsp
push rbx
sub rsp, 160 ; 000000a0H
; 95 ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/posndir.asm | 721 | 780 |
Terraspace/UASM:x64/Release/posndir.asm:20 | mov BYTE PTR [rsp+32], cl
lea rcx, QWORD PTR [r11+8]
call EvalOperand
cmp eax, -1
jne SHORT $LN2@OrgDirecti
; 104 : return( ERROR );
or eax, eax
; 128 : }
add rsp, 160 ; 000000a0H
pop rbx
ret 0
$LN2@OrgDirecti:
; 105 : if ( tokenarray[i].token != T_FINAL ) {
movsxd rax, DWORD PTR i$[rsp... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/posndir.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/posndir.asm | 761 | 820 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.