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/simsegm.asm:2 | ORG $+2
$SG10926 DB 'PUBLIC', 00H
ORG $+5
$SG10923 DB 'FAR_BSS', 00H
$SG10927 DB 'STACK', 00H
ORG $+2
$SG10928 DB 'PUBLIC', 00H
ORG $+1
$SG10929 DB 'PUBLIC', 00H
ORG $+1
$SG10930 DB 'PRIVATE', 00H
$SG10931 DB 'PRIVATE', 00H
$SG10932 DB 'PUBLIC', 00H
ORG $+1
$SG10949 DB '%s %r %s', 00H
ORG $+3
$SG10954 DB '%s %r',... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 41 | 100 |
Terraspace/UASM:x64/Release/simsegm.asm:3 | ORG $+7
$SG11041 DB '%r %r:%s', 00H
ORG $+7
$SG11043 DB 'ORG 0%xh', 00H
ORG $+7
$SG11047 DB '%r %r:ERROR', 00H
ORG $+4
$SG11051 DB '%r %r:ERROR', 00H
ORG $+4
$SG11067 DB '%s %r %s', 00H
ORG $+3
$SG11070 DB ', %s', 00H
_DATA ENDS
CONST SEGMENT
SegmNamesDef DQ FLAT:$SG10910
DQ FLAT:$SG10911
DQ FLAT:$SG10912
DQ FL... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 81 | 140 |
Terraspace/UASM:x64/Release/simsegm.asm:4 | EXTRN szDgroup:BYTE
EXTRN __ImageBase:BYTE
_BSS SEGMENT
ALIGN 8
SegmNames DQ 07H DUP (?)
_BSS ENDS
pdata SEGMENT
$pdata$ModelSimSegmInit DD imagerel $LN21
DD imagerel $LN21+296
DD imagerel $unwind$ModelSimSegmInit
$pdata$ModelSimSegmExit DD imagerel $LN9
DD imagerel $LN9+52
DD imagerel $unwind$ModelSimSegmExit
$p... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 121 | 180 |
Terraspace/UASM:x64/Release/simsegm.asm:5 | pdata ENDS
CONST SEGMENT
SegmClass DQ FLAT:$SG10918
DQ FLAT:$SG10919
DQ FLAT:$SG10920
DQ FLAT:$SG10921
DQ FLAT:$SG10922
DQ FLAT:$SG10923
DQ FLAT:$SG10924
SegmCombine DQ FLAT:$SG10926
DQ FLAT:$SG10927
DQ FLAT:$SG10928
DQ FLAT:$SG10929
DQ FLAT:$SG10930
DQ FLAT:$SG10931
DQ FLAT:$SG10932
CONST ENDS
; COMDAT xda... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 161 | 220 |
Terraspace/UASM:x64/Release/simsegm.asm:6 | DD imagerel $LN26
DD imagerel $LN26+181
DD imagerel $unwind$SetModelDefaultSegNames
$unwind$SimplifiedSegDir DD 040d01H
DD 015010dH
DD 030056006H
$chain$1$SimplifiedSegDir DD 041621H
DD 014e416H
DD 0197408H
DD imagerel $LN55
DD imagerel $LN55+71
DD imagerel $unwind$SimplifiedSegDir
$chain$2$SimplifiedSegDir DD... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 201 | 260 |
Terraspace/UASM:x64/Release/simsegm.asm:7 | ; 179 : int type;
; 180 : struct expr opndx;
; 181 :
; 182 : DebugMsg1(("SimplifiedSegDir(%s) enter\n", tokenarray[i].string_ptr ));
; 183 :
; 184 : LstWrite( LSTTYPE_DIRECTIVE, 0, NULL );
xor r8d, r8d
xor edx, edx
lea ecx, QWORD PTR [rbx+4]
call LstWrite
; 185 :
; 186 : if( Mo... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 241 | 300 |
Terraspace/UASM:x64/Release/simsegm.asm:8 | movsxd rdx, DWORD PTR i$[rsp]
mov rax, rdx
mov QWORD PTR [rsp+200], rdi
shl rax, 5
; 193 : i++; /* get past the directive token */
inc edx
mov QWORD PTR [rsp+160], r14
lea r14, OFFSET FLAT:__ImageBase
mov eax, DWORD PTR [rax+rsi+16]
mov DWORD PTR i$[rsp], edx
lea rcx, QWORD PTR [rax+rax*2]
movsxd rdi, ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 281 | 340 |
Terraspace/UASM:x64/Release/simsegm.asm:9 | mov DWORD PTR opndx$[rsp], 1024 ; 00000400H
$LN49@Simplified:
mov edx, DWORD PTR i$[rsp]
jmp SHORT $LN11@Simplified
$LN8@Simplified:
; 200 : else if( opndx.kind != EXPR_CONST ) {
test eax, eax
je SHORT $LN49@Simplified
; 201 : EmitError( CONSTANT_EXPECTED );
mov ecx, 65 ; 00000041H
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 321 | 380 |
Terraspace/UASM:x64/Release/simsegm.asm:10 | cmp BYTE PTR Options+127, bl
jne SHORT $LN11@Simplified
lea eax, DWORD PTR [rdi-2]
test eax, -6 ; fffffffaH
jne SHORT $LN11@Simplified
cmp edi, 7
je SHORT $LN11@Simplified
$LN13@Simplified:
; 210 : ( type == SIM_CODE || type == SIM_FARDATA || type == SIM_FARDATA_UN
; 211 : || ( Optio... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 361 | 420 |
Terraspace/UASM:x64/Release/simsegm.asm:11 | or eax, -1
jmp $LN52@Simplified
$LN14@Simplified:
; 220 : }
; 221 :
; 222 : if( type != SIM_STACK )
cmp edi, 1
je SHORT $LN34@Simplified
; 223 : close_currseg(); /* emit a "xxx ENDS" line to close current seg */
mov rdx, QWORD PTR ModuleInfo+432
test rdx, rdx
je SHORT $LN34@Simplified
mo... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 401 | 460 |
Terraspace/UASM:x64/Release/simsegm.asm:12 | ; 228 : switch( type ) {
cmp edi, 6
ja $LN31@Simplified
mov ecx, DWORD PTR $LN48@Simplified[r14+rdi*4]
add rcx, r14
jmp rcx
$LN17@Simplified:
; 229 : case SIM_CODE: /* .code */
; 230 : SetSimSeg( SIM_CODE, name );
mov rdx, rbx
xor ecx, ecx
call SetSimSeg
; 231 :
; 232 : if( Modu... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 441 | 500 |
Terraspace/UASM:x64/Release/simsegm.asm:13 | $LN18@Simplified:
; 237 : } else if( ModuleInfo.model == MODEL_FLAT ) {
cmp eax, 7
jne SHORT $LN21@Simplified
; 238 : name = "FLAT";
lea rbx, OFFSET FLAT:$SG11039
; 239 : } else {
jmp SHORT $LN23@Simplified
$LN21@Simplified:
; 240 : if( name == NULL )
test rbx, r... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 481 | 540 |
Terraspace/UASM:x64/Release/simsegm.asm:14 | ; 248 : * v2.05: must not be done after LstWrite() has been called!
; 249 : * Also, there are no longer bytes "emitted".
; 250 : */
; 251 : //FStoreLine();
; 252 : SetSimSeg( SIM_STACK, NULL );
xor edx, edx
lea ecx, QWORD PTR [rdx+1]
call SetSimSeg
; 253 : A... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 521 | 580 |
Terraspace/UASM:x64/Release/simsegm.asm:15 | cmp eax, 1
jbe SHORT $LN31@Simplified
mov r9, QWORD PTR SegmNames+8
lea rdx, OFFSET FLAT:szDgroup
mov r8d, 443 ; 000001bbH
lea rcx, OFFSET FLAT:$SG10949
call AddLineQueueX
; 259 : break;
jmp SHORT $LN31@Simplified
$LN27@Simplified:
; 260 : case SIM_DATA: /* .data */
; 261 : case SIM_... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 561 | 620 |
Terraspace/UASM:x64/Release/simsegm.asm:16 | mov ecx, edi
call AddToDgroup
; 267 : break;
jmp SHORT $LN31@Simplified
$LN30@Simplified:
; 268 : case SIM_FARDATA: /* .fardata */
; 269 : case SIM_FARDATA_UN: /* .fardata? */
; 270 : SetSimSeg( type, name );
mov rdx, rbx
mov ecx, edi
call SetSimSeg
; 271 : AddLineQu... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 601 | 660 |
Terraspace/UASM:x64/Release/simsegm.asm:17 | mov rdi, QWORD PTR [rsp+200]
mov r14, QWORD PTR [rsp+160]
; 282 : }
add rsp, 168 ; 000000a8H
pop rsi
pop rbx
ret 0
npad 3
$LN48@Simplified:
DD $LN17@Simplified
DD $LN24@Simplified
DD $LN27@Simplified
DD $LN27@Simplified
DD $LN30@Simplified
DD $LN30@Simplified
DD $LN27@Simplified
SimplifiedSegDir ENDP... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 641 | 700 |
Terraspace/UASM:x64/Release/simsegm.asm:18 | _TEXT SEGMENT
segm$ = 112
name$ = 120
SetSimSeg PROC ; COMDAT
; 97 : {
mov QWORD PTR [rsp+16], rbx
mov QWORD PTR [rsp+24], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 64 ; 00000040H
; 98 : char *pAlign = "WORD";
; 99 : char *pAlignSt = "PARA";
; 100 : char *pUse = ""... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 681 | 740 |
Terraspace/UASM:x64/Release/simsegm.asm:19 | ; 109 : pUse = "USE32";
; 110 : if (( ModuleInfo.curr_cpu & P_CPU_MASK ) <= P_386 )
lea rcx, OFFSET FLAT:$SG10979
lea r15, OFFSET FLAT:$SG10974
cmovne r15, rax
lea rdi, OFFSET FLAT:$SG10978
mov eax, DWORD PTR ModuleInfo+392
and eax, 240 ; 000000f0H
cmp eax, 48 ; 00000030H
cmovg rdi... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 721 | 780 |
Terraspace/UASM:x64/Release/simsegm.asm:20 | mov r14, QWORD PTR SegmClass[r13+rbx*8]
cmp ebx, 1
je SHORT $LN10@SetSimSeg
lea eax, DWORD PTR [rbx-4]
cmp eax, 1
ja SHORT $LN9@SetSimSeg
$LN10@SetSimSeg:
; 121 :
; 122 : if ( segm == SIM_STACK || segm == SIM_FARDATA || segm == SIM_FARDATA_UN )
; 123 : pAlign = pAlignSt;
mov rdi, rcx
$LN9@SetSimS... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 761 | 820 |
Terraspace/UASM:x64/Release/simsegm.asm:21 | jmp SHORT $LN18@SetSimSeg
$LN13@SetSimSeg:
; 130 : else {
; 131 : ModuleInfo.simseg_init |= ( 1 << segm );
bts eax, ebx
; 132 : /* v2.05: if segment exists already, use the current attribs.
; 133 : * This allows a better mix of full and simplified segment
; 134 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 801 | 860 |
Terraspace/UASM:x64/Release/simsegm.asm:22 | jmp SHORT $LN16@SetSimSeg
$LN26@SetSimSeg:
movzx eax, BYTE PTR ModuleInfo+421
$LN16@SetSimSeg:
; 143 : }
; 144 : if ( ModuleInfo.simseg_defd & ( 1 << segm ) )
test al, r12b
je SHORT $LN18@SetSimSeg
; 145 : pFmt = "%s %r";
lea rsi, OFFSET FLAT:$SG10993
; 146 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 841 | 900 |
Terraspace/UASM:x64/Release/simsegm.asm:23 | lea rdx, OFFSET FLAT:$SG10995
and al, 2
cmove rdx, rsi
mov rsi, rdx
$LN18@SetSimSeg:
; 157 : pFmt = "%s %r";
; 158 : }
; 159 : AddLineQueueX( pFmt, name, T_SEGMENT, pAlign, pUse, SegmCombine[segm], pClass );
mov rax, QWORD PTR SegmCombine[r13+rbx*8]
mov r9, rdi
mov QWORD PTR [rsp+48], r14... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 881 | 940 |
Terraspace/UASM:x64/Release/simsegm.asm:24 | ; 85 : if ( CurrSeg ) {
mov rdx, QWORD PTR ModuleInfo+432
test rdx, rdx
je SHORT $LN2@close_curr
; 86 : DebugMsg1(("close_currseg: current seg=%s\n", CurrSeg->sym.name));
; 87 : AddLineQueueX( "%s %r", CurrSeg->sym.name, T_ENDS );
mov rdx, QWORD PTR [rdx+8]
lea rcx, OFFSET FLAT:$SG1095... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 921 | 980 |
Terraspace/UASM:x64/Release/simsegm.asm:25 | mov eax, DWORD PTR Options+144
add eax, -2 ; fffffffeH
cmp eax, 1
jbe SHORT $LN3@AddToDgrou
; 70 : #endif
; 71 : )
; 72 : return;
; 73 :
; 74 : if( name == NULL )
test rdx, rdx
jne SHORT $LN4@AddToDgrou
; 75 : name = SegmNames[segm];
movsxd rax, ecx
lea rdx, OFFSET F... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 961 | 1,020 |
Terraspace/UASM:x64/Release/simsegm.asm:26 | ; 291 : {
$LN26:
push rdi
sub rsp, 32 ; 00000020H
; 292 : /* init segment names with default values */
; 293 : memcpy( SegmNames, SegmNamesDef, sizeof(SegmNames) );
movups xmm0, XMMWORD PTR SegmNamesDef
; 294 :
; 295 : /* option -nt set? */
; 296 : if( Options.names[OPTN_TEXT_SEG] ) {
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 1,001 | 1,060 |
Terraspace/UASM:x64/Release/simsegm.asm:27 | mov rdx, QWORD PTR Options+64
mov QWORD PTR SegmNames, rax
npad 14
$LL7@SetModelDe:
movzx ecx, BYTE PTR [rdx]
lea rdx, QWORD PTR [rdx+1]
mov BYTE PTR [rax], cl
lea rax, QWORD PTR [rax+1]
test cl, cl
jne SHORT $LL7@SetModelDe
; 299 : } else {
jmp $LN4@SetModelDe
$LN2@SetModelDe:
; 300 : if ( SI... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 1,041 | 1,100 |
Terraspace/UASM:x64/Release/simsegm.asm:28 | jne SHORT $LL22@SetModelDe
inc rax
add rcx, rax
call LclAlloc
mov QWORD PTR SegmNames, rax
npad 2
$LL8@SetModelDe:
; 303 : strcpy( SegmNames[SIM_CODE], ModuleInfo.name );
movzx ecx, BYTE PTR [rbx]
lea rbx, QWORD PTR [rbx+1]
mov BYTE PTR [rax], cl
lea rax, QWORD PTR [rax+1]
test cl, cl
jne SHOR... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 1,081 | 1,140 |
Terraspace/UASM:x64/Release/simsegm.asm:29 | ; 308 : /* option -nd set? */
; 309 : if ( Options.names[OPTN_DATA_SEG] ) {
mov rax, QWORD PTR Options+72
test rax, rax
je SHORT $LN5@SetModelDe
npad 4
$LL19@SetModelDe:
; 310 : SegmNames[SIM_DATA] = LclAlloc( strlen( Options.names[OPTN_DATA_SEG] ) + 1 );
cmp BYTE PTR [rax+rdi+1], 0
lea rdi,... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 1,121 | 1,180 |
Terraspace/UASM:x64/Release/simsegm.asm:30 | ; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\simsegm.c
_TEXT SEGMENT
ModelSimSegmExit PROC
; 361 : {
$LN9:
sub rsp, 40 ; 00000028H
; 362 : /* a model is set. Close current segment if one is open. */
; 363 : if ( CurrSeg ) {
mov rdx, QWORD PTR ModuleInfo+432
test rd... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 1,161 | 1,220 |
Terraspace/UASM:x64/Release/simsegm.asm:31 | _TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\simsegm.c
_TEXT SEGMENT
buffer$ = 48
model$ = 96
ModelSimSegmInit PROC
; 323 : {
$LN21:
push rbx
sub rsp, 80 ; 00000050H
mov ebx, ecx
; 324 : char buffer[20];
; 325 :
; 326 : ModuleInfo.simseg_init = 0; /* v2.... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 1,201 | 1,260 |
Terraspace/UASM:x64/Release/simsegm.asm:32 | ; 335 : SetSimSeg( SIM_DATA, NULL ) ;
xor edx, edx
lea ecx, QWORD PTR [rdx+2]
call SetSimSeg
; 336 : EndSimSeg( SIM_DATA );
mov rdx, QWORD PTR SegmNames+16
lea rcx, OFFSET FLAT:$SG11000
mov r8d, 442 ; 000001baH
call AddLineQueueX
; 337 :
; 338 : /* create DGROUP for BIN/OMF if ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 1,241 | 1,300 |
Terraspace/UASM:x64/Release/simsegm.asm:33 | cmp ebx, 1
jne SHORT $LN4@ModelSimSe
; 347 : strcat( buffer, ", %s" );
lea rax, QWORD PTR buffer$[rsp]
dec rax
npad 3
$LL16@ModelSimSe:
cmp BYTE PTR [rax+1], 0
lea rax, QWORD PTR [rax+1]
jne SHORT $LL16@ModelSimSe
lea r8, OFFSET FLAT:$SG11070
xor edx, edx
npad 13
$LL17@ModelSimSe:
movzx ec... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 1,281 | 1,340 |
Terraspace/UASM:x64/Release/simsegm.asm:34 | ; 355 : }
add rsp, 80 ; 00000050H
pop rbx
ret 0
$LN4@ModelSimSe:
; 349 : } else
; 350 : AddLineQueueX( buffer, szDgroup, T_GROUP, SegmNames[SIM_DATA] );
mov r9, QWORD PTR SegmNames+16
lea rdx, OFFSET FLAT:szDgroup
mov r8d, 443 ; 000001bbH
lea rcx, QWORD PTR buffer$[rsp]
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 1,321 | 1,380 |
Terraspace/UASM:x64/Release/simsegm.asm:35 | mov rax, QWORD PTR SegmClass
test rcx, rcx
cmovne rax, rcx
; 53 : return( Options.names[OPTN_CODE_CLASS] );
; 54 :
; 55 : return( SegmClass[SIM_CODE] );
; 56 : }
ret 0
GetCodeClass ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\simsegm.c
_TEXT SEGM... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/simsegm.asm | 1,361 | 1,390 |
Terraspace/UASM:x64/Release/simsegm.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23026.0
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM decoflags:BYTE
COMM broadflags:BYTE
COMM evex:BYTE
COMM ZEROLOCALS:BYTE
_DATA ENDS
_BSS SEGMENT
$SG10947 DB 01H DUP (?)
_BSS ENDS
_DATA SEGMENT
$SG10887 DB '_TEX... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/simsegm.asm | 1 | 60 |
Terraspace/UASM:x64/Release/simsegm.asm:2 | ORG $+2
$SG10903 DB 'PUBLIC', 00H
ORG $+5
$SG10900 DB 'FAR_BSS', 00H
$SG10904 DB 'STACK', 00H
ORG $+2
$SG10905 DB 'PUBLIC', 00H
ORG $+1
$SG10906 DB 'PUBLIC', 00H
ORG $+1
$SG10907 DB 'PRIVATE', 00H
$SG10908 DB 'PRIVATE', 00H
$SG10909 DB 'PUBLIC', 00H
ORG $+1
$SG10926 DB '%s %r %s', 00H
ORG $+3
$SG10931 DB '%s %r',... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/simsegm.asm | 41 | 100 |
Terraspace/UASM:x64/Release/simsegm.asm:3 | ORG $+7
$SG11018 DB '%r %r:%s', 00H
ORG $+7
$SG11020 DB 'ORG 0%xh', 00H
ORG $+7
$SG11024 DB '%r %r:ERROR', 00H
ORG $+4
$SG11028 DB '%r %r:ERROR', 00H
ORG $+4
$SG11044 DB '%s %r %s', 00H
ORG $+3
$SG11047 DB ', %s', 00H
_DATA ENDS
CONST SEGMENT
SegmNamesDef DQ FLAT:$SG10887
DQ FLAT:$SG10888
DQ FLAT:$SG10889
DQ FL... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/simsegm.asm | 81 | 140 |
Terraspace/UASM:x64/Release/simsegm.asm:4 | EXTRN szDgroup:BYTE
EXTRN __ImageBase:BYTE
_BSS SEGMENT
ALIGN 8
SegmNames DQ 07H DUP (?)
_BSS ENDS
pdata SEGMENT
$pdata$ModelSimSegmInit DD imagerel $LN21
DD imagerel $LN21+296
DD imagerel $unwind$ModelSimSegmInit
$pdata$ModelSimSegmExit DD imagerel $LN9
DD imagerel $LN9+52
DD imagerel $unwind$ModelSimSegmExit
$p... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/simsegm.asm | 121 | 180 |
Terraspace/UASM:x64/Release/simsegm.asm:5 | pdata ENDS
CONST SEGMENT
SegmClass DQ FLAT:$SG10895
DQ FLAT:$SG10896
DQ FLAT:$SG10897
DQ FLAT:$SG10898
DQ FLAT:$SG10899
DQ FLAT:$SG10900
DQ FLAT:$SG10901
SegmCombine DQ FLAT:$SG10903
DQ FLAT:$SG10904
DQ FLAT:$SG10905
DQ FLAT:$SG10906
DQ FLAT:$SG10907
DQ FLAT:$SG10908
DQ FLAT:$SG10909
CONST ENDS
; COMDAT xda... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/simsegm.asm | 161 | 220 |
Terraspace/UASM:x64/Release/simsegm.asm:10 | cmp BYTE PTR Options+127, bl
jne SHORT $LN11@Simplified
lea eax, DWORD PTR [rdi-2]
test eax, -6 ; fffffffaH
jne SHORT $LN11@Simplified
cmp edi, 7
je SHORT $LN11@Simplified
$LN13@Simplified:
; 210 : ( type == SIM_CODE || type == SIM_FARDATA || type == SIM_FARDATA_UN
; 211 : || ( Optio... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/simsegm.asm | 361 | 420 |
Terraspace/UASM:x64/Release/simsegm.asm:11 | or eax, -1
jmp $LN52@Simplified
$LN14@Simplified:
; 220 : }
; 221 :
; 222 : if( type != SIM_STACK )
cmp edi, 1
je SHORT $LN34@Simplified
; 223 : close_currseg(); /* emit a "xxx ENDS" line to close current seg */
mov rdx, QWORD PTR ModuleInfo+432
test rdx, rdx
je SHORT $LN34@Simplified
mo... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/simsegm.asm | 401 | 460 |
Terraspace/UASM:x64/Release/simsegm.asm:12 | ; 228 : switch( type ) {
cmp edi, 6
ja $LN31@Simplified
mov ecx, DWORD PTR $LN48@Simplified[r14+rdi*4]
add rcx, r14
jmp rcx
$LN17@Simplified:
; 229 : case SIM_CODE: /* .code */
; 230 : SetSimSeg( SIM_CODE, name );
mov rdx, rbx
xor ecx, ecx
call SetSimSeg
; 231 :
; 232 : if( Modu... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/simsegm.asm | 441 | 500 |
Terraspace/UASM:x64/Release/simsegm.asm:13 | $LN18@Simplified:
; 237 : } else if( ModuleInfo.model == MODEL_FLAT ) {
cmp eax, 7
jne SHORT $LN21@Simplified
; 238 : name = "FLAT";
lea rbx, OFFSET FLAT:$SG11016
; 239 : } else {
jmp SHORT $LN23@Simplified
$LN21@Simplified:
; 240 : if( name == NULL )
test rbx, r... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/simsegm.asm | 481 | 540 |
Terraspace/UASM:x64/Release/simsegm.asm:14 | ; 248 : * v2.05: must not be done after LstWrite() has been called!
; 249 : * Also, there are no longer bytes "emitted".
; 250 : */
; 251 : //FStoreLine();
; 252 : SetSimSeg( SIM_STACK, NULL );
xor edx, edx
lea ecx, QWORD PTR [rdx+1]
call SetSimSeg
; 253 : A... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/simsegm.asm | 521 | 580 |
Terraspace/UASM:x64/Release/simsegm.asm:15 | cmp eax, 1
jbe SHORT $LN31@Simplified
mov r9, QWORD PTR SegmNames+8
lea rdx, OFFSET FLAT:szDgroup
mov r8d, 442 ; 000001baH
lea rcx, OFFSET FLAT:$SG10926
call AddLineQueueX
; 259 : break;
jmp SHORT $LN31@Simplified
$LN27@Simplified:
; 260 : case SIM_DATA: /* .data */
; 261 : case SIM_... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/simsegm.asm | 561 | 620 |
Terraspace/UASM:x64/Release/simsegm.asm:16 | mov ecx, edi
call AddToDgroup
; 267 : break;
jmp SHORT $LN31@Simplified
$LN30@Simplified:
; 268 : case SIM_FARDATA: /* .fardata */
; 269 : case SIM_FARDATA_UN: /* .fardata? */
; 270 : SetSimSeg( type, name );
mov rdx, rbx
mov ecx, edi
call SetSimSeg
; 271 : AddLineQu... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/simsegm.asm | 601 | 660 |
Terraspace/UASM:x64/Release/simsegm.asm:17 | mov rdi, QWORD PTR [rsp+200]
mov r14, QWORD PTR [rsp+160]
; 282 : }
add rsp, 168 ; 000000a8H
pop rsi
pop rbx
ret 0
npad 3
$LN48@Simplified:
DD $LN17@Simplified
DD $LN24@Simplified
DD $LN27@Simplified
DD $LN27@Simplified
DD $LN30@Simplified
DD $LN30@Simplified
DD $LN27@Simplified
SimplifiedSegDir ENDP... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/simsegm.asm | 641 | 700 |
Terraspace/UASM:x64/Release/simsegm.asm:18 | _TEXT SEGMENT
segm$ = 112
name$ = 120
SetSimSeg PROC ; COMDAT
; 97 : {
mov QWORD PTR [rsp+16], rbx
mov QWORD PTR [rsp+24], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 64 ; 00000040H
; 98 : char *pAlign = "WORD";
; 99 : char *pAlignSt = "PARA";
; 100 : char *pUse = ""... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/simsegm.asm | 681 | 740 |
Terraspace/UASM:x64/Release/simsegm.asm:19 | ; 109 : pUse = "USE32";
; 110 : if (( ModuleInfo.curr_cpu & P_CPU_MASK ) <= P_386 )
lea rcx, OFFSET FLAT:$SG10956
lea r15, OFFSET FLAT:$SG10951
cmovne r15, rax
lea rdi, OFFSET FLAT:$SG10955
mov eax, DWORD PTR ModuleInfo+392
and eax, 240 ; 000000f0H
cmp eax, 48 ; 00000030H
cmovg rdi... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/simsegm.asm | 721 | 780 |
Terraspace/UASM:x64/Release/simsegm.asm:20 | mov r14, QWORD PTR SegmClass[r13+rbx*8]
cmp ebx, 1
je SHORT $LN10@SetSimSeg
lea eax, DWORD PTR [rbx-4]
cmp eax, 1
ja SHORT $LN9@SetSimSeg
$LN10@SetSimSeg:
; 121 :
; 122 : if ( segm == SIM_STACK || segm == SIM_FARDATA || segm == SIM_FARDATA_UN )
; 123 : pAlign = pAlignSt;
mov rdi, rcx
$LN9@SetSimS... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/simsegm.asm | 761 | 820 |
Terraspace/UASM:x64/Release/simsegm.asm:21 | jmp SHORT $LN18@SetSimSeg
$LN13@SetSimSeg:
; 130 : else {
; 131 : ModuleInfo.simseg_init |= ( 1 << segm );
bts eax, ebx
; 132 : /* v2.05: if segment exists already, use the current attribs.
; 133 : * This allows a better mix of full and simplified segment
; 134 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/simsegm.asm | 801 | 860 |
Terraspace/UASM:x64/Release/simsegm.asm:22 | jmp SHORT $LN16@SetSimSeg
$LN26@SetSimSeg:
movzx eax, BYTE PTR ModuleInfo+421
$LN16@SetSimSeg:
; 143 : }
; 144 : if ( ModuleInfo.simseg_defd & ( 1 << segm ) )
test al, r12b
je SHORT $LN18@SetSimSeg
; 145 : pFmt = "%s %r";
lea rsi, OFFSET FLAT:$SG10970
; 146 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/simsegm.asm | 841 | 900 |
Terraspace/UASM:x64/Release/simsegm.asm:23 | lea rdx, OFFSET FLAT:$SG10972
and al, 2
cmove rdx, rsi
mov rsi, rdx
$LN18@SetSimSeg:
; 157 : pFmt = "%s %r";
; 158 : }
; 159 : AddLineQueueX( pFmt, name, T_SEGMENT, pAlign, pUse, SegmCombine[segm], pClass );
mov rax, QWORD PTR SegmCombine[r13+rbx*8]
mov r9, rdi
mov QWORD PTR [rsp+48], r14... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/simsegm.asm | 881 | 940 |
Terraspace/UASM:x64/Release/simsegm.asm:24 | ; 85 : if ( CurrSeg ) {
mov rdx, QWORD PTR ModuleInfo+432
test rdx, rdx
je SHORT $LN2@close_curr
; 86 : DebugMsg1(("close_currseg: current seg=%s\n", CurrSeg->sym.name));
; 87 : AddLineQueueX( "%s %r", CurrSeg->sym.name, T_ENDS );
mov rdx, QWORD PTR [rdx+8]
lea rcx, OFFSET FLAT:$SG1093... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/simsegm.asm | 921 | 980 |
Terraspace/UASM:x64/Release/simsegm.asm:25 | mov eax, DWORD PTR Options+144
add eax, -2 ; fffffffeH
cmp eax, 1
jbe SHORT $LN3@AddToDgrou
; 70 : #endif
; 71 : )
; 72 : return;
; 73 :
; 74 : if( name == NULL )
test rdx, rdx
jne SHORT $LN4@AddToDgrou
; 75 : name = SegmNames[segm];
movsxd rax, ecx
lea rdx, OFFSET F... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/simsegm.asm | 961 | 1,020 |
Terraspace/UASM:x64/Release/simsegm.asm:30 | ; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\simsegm.c
_TEXT SEGMENT
ModelSimSegmExit PROC
; 361 : {
$LN9:
sub rsp, 40 ; 00000028H
; 362 : /* a model is set. Close current segment if one is open. */
; 363 : if ( CurrSeg ) {
mov rdx, QWORD PTR ModuleInfo+432
test rd... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/simsegm.asm | 1,161 | 1,220 |
Terraspace/UASM:x64/Release/simsegm.asm:31 | _TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\simsegm.c
_TEXT SEGMENT
buffer$ = 48
model$ = 96
ModelSimSegmInit PROC
; 323 : {
$LN21:
push rbx
sub rsp, 80 ; 00000050H
mov ebx, ecx
; 324 : char buffer[20];
; 325 :
; 326 : ModuleInfo.simseg_init = 0; /* v2.... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/simsegm.asm | 1,201 | 1,260 |
Terraspace/UASM:x64/Release/simsegm.asm:32 | ; 335 : SetSimSeg( SIM_DATA, NULL ) ;
xor edx, edx
lea ecx, QWORD PTR [rdx+2]
call SetSimSeg
; 336 : EndSimSeg( SIM_DATA );
mov rdx, QWORD PTR SegmNames+16
lea rcx, OFFSET FLAT:$SG10977
mov r8d, 441 ; 000001b9H
call AddLineQueueX
; 337 :
; 338 : /* create DGROUP for BIN/OMF if ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/simsegm.asm | 1,241 | 1,300 |
Terraspace/UASM:x64/Release/simsegm.asm:33 | cmp ebx, 1
jne SHORT $LN4@ModelSimSe
; 347 : strcat( buffer, ", %s" );
lea rax, QWORD PTR buffer$[rsp]
dec rax
npad 3
$LL16@ModelSimSe:
cmp BYTE PTR [rax+1], 0
lea rax, QWORD PTR [rax+1]
jne SHORT $LL16@ModelSimSe
lea r8, OFFSET FLAT:$SG11047
xor edx, edx
npad 13
$LL17@ModelSimSe:
movzx ec... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/simsegm.asm | 1,281 | 1,340 |
Terraspace/UASM:x64/Release/simsegm.asm:34 | ; 355 : }
add rsp, 80 ; 00000050H
pop rbx
ret 0
$LN4@ModelSimSe:
; 349 : } else
; 350 : AddLineQueueX( buffer, szDgroup, T_GROUP, SegmNames[SIM_DATA] );
mov r9, QWORD PTR SegmNames+16
lea rdx, OFFSET FLAT:szDgroup
mov r8d, 442 ; 000001baH
lea rcx, QWORD PTR buffer$[rsp]
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4 | github | assembler | https://github.com/Terraspace/UASM/blob/683af312c18e9c3e79e9771f25bbe4d4c9d8dfb4/x64/Release/simsegm.asm | 1,321 | 1,380 |
Terraspace/UASM:x64/Release/simsegm.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23026.0
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM decoflags:BYTE
COMM broadflags:BYTE
COMM evex:BYTE
COMM ZEROLOCALS:BYTE
_DATA ENDS
_BSS SEGMENT
$SG10946 DB 01H DUP (?)
_BSS ENDS
_DATA SEGMENT
$SG10886 DB '_TEX... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 28b09fcf7ca2f77034c045fe6612c4a02ec747a9 | github | assembler | https://github.com/Terraspace/UASM/blob/28b09fcf7ca2f77034c045fe6612c4a02ec747a9/x64/Release/simsegm.asm | 1 | 60 |
Terraspace/UASM:x64/Release/simsegm.asm:2 | ORG $+2
$SG10902 DB 'PUBLIC', 00H
ORG $+5
$SG10899 DB 'FAR_BSS', 00H
$SG10903 DB 'STACK', 00H
ORG $+2
$SG10904 DB 'PUBLIC', 00H
ORG $+1
$SG10905 DB 'PUBLIC', 00H
ORG $+1
$SG10906 DB 'PRIVATE', 00H
$SG10907 DB 'PRIVATE', 00H
$SG10908 DB 'PUBLIC', 00H
ORG $+1
$SG10925 DB '%s %r %s', 00H
ORG $+3
$SG10930 DB '%s %r',... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 28b09fcf7ca2f77034c045fe6612c4a02ec747a9 | github | assembler | https://github.com/Terraspace/UASM/blob/28b09fcf7ca2f77034c045fe6612c4a02ec747a9/x64/Release/simsegm.asm | 41 | 100 |
Terraspace/UASM:x64/Release/simsegm.asm:3 | ORG $+7
$SG11017 DB '%r %r:%s', 00H
ORG $+7
$SG11019 DB 'ORG 0%xh', 00H
ORG $+7
$SG11023 DB '%r %r:ERROR', 00H
ORG $+4
$SG11027 DB '%r %r:ERROR', 00H
ORG $+4
$SG11043 DB '%s %r %s', 00H
ORG $+3
$SG11046 DB ', %s', 00H
_DATA ENDS
CONST SEGMENT
SegmNamesDef DQ FLAT:$SG10886
DQ FLAT:$SG10887
DQ FLAT:$SG10888
DQ FL... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 28b09fcf7ca2f77034c045fe6612c4a02ec747a9 | github | assembler | https://github.com/Terraspace/UASM/blob/28b09fcf7ca2f77034c045fe6612c4a02ec747a9/x64/Release/simsegm.asm | 81 | 140 |
Terraspace/UASM:x64/Release/simsegm.asm:4 | EXTRN szDgroup:BYTE
EXTRN __ImageBase:BYTE
_BSS SEGMENT
ALIGN 8
SegmNames DQ 07H DUP (?)
_BSS ENDS
pdata SEGMENT
$pdata$ModelSimSegmInit DD imagerel $LN21
DD imagerel $LN21+296
DD imagerel $unwind$ModelSimSegmInit
$pdata$ModelSimSegmExit DD imagerel $LN9
DD imagerel $LN9+52
DD imagerel $unwind$ModelSimSegmExit
$p... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 28b09fcf7ca2f77034c045fe6612c4a02ec747a9 | github | assembler | https://github.com/Terraspace/UASM/blob/28b09fcf7ca2f77034c045fe6612c4a02ec747a9/x64/Release/simsegm.asm | 121 | 180 |
Terraspace/UASM:x64/Release/simsegm.asm:5 | pdata ENDS
CONST SEGMENT
SegmClass DQ FLAT:$SG10894
DQ FLAT:$SG10895
DQ FLAT:$SG10896
DQ FLAT:$SG10897
DQ FLAT:$SG10898
DQ FLAT:$SG10899
DQ FLAT:$SG10900
SegmCombine DQ FLAT:$SG10902
DQ FLAT:$SG10903
DQ FLAT:$SG10904
DQ FLAT:$SG10905
DQ FLAT:$SG10906
DQ FLAT:$SG10907
DQ FLAT:$SG10908
CONST ENDS
; COMDAT xda... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 28b09fcf7ca2f77034c045fe6612c4a02ec747a9 | github | assembler | https://github.com/Terraspace/UASM/blob/28b09fcf7ca2f77034c045fe6612c4a02ec747a9/x64/Release/simsegm.asm | 161 | 220 |
Terraspace/UASM:x64/Release/simsegm.asm:10 | cmp BYTE PTR Options+127, bl
jne SHORT $LN11@Simplified
lea eax, DWORD PTR [rdi-2]
test eax, -6 ; fffffffaH
jne SHORT $LN11@Simplified
cmp edi, 7
je SHORT $LN11@Simplified
$LN13@Simplified:
; 210 : ( type == SIM_CODE || type == SIM_FARDATA || type == SIM_FARDATA_UN
; 211 : || ( Optio... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 28b09fcf7ca2f77034c045fe6612c4a02ec747a9 | github | assembler | https://github.com/Terraspace/UASM/blob/28b09fcf7ca2f77034c045fe6612c4a02ec747a9/x64/Release/simsegm.asm | 361 | 420 |
Terraspace/UASM:x64/Release/simsegm.asm:11 | or eax, -1
jmp $LN52@Simplified
$LN14@Simplified:
; 220 : }
; 221 :
; 222 : if( type != SIM_STACK )
cmp edi, 1
je SHORT $LN34@Simplified
; 223 : close_currseg(); /* emit a "xxx ENDS" line to close current seg */
mov rdx, QWORD PTR ModuleInfo+432
test rdx, rdx
je SHORT $LN34@Simplified
mo... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 28b09fcf7ca2f77034c045fe6612c4a02ec747a9 | github | assembler | https://github.com/Terraspace/UASM/blob/28b09fcf7ca2f77034c045fe6612c4a02ec747a9/x64/Release/simsegm.asm | 401 | 460 |
Terraspace/UASM:x64/Release/simsegm.asm:12 | ; 228 : switch( type ) {
cmp edi, 6
ja $LN31@Simplified
mov ecx, DWORD PTR $LN48@Simplified[r14+rdi*4]
add rcx, r14
jmp rcx
$LN17@Simplified:
; 229 : case SIM_CODE: /* .code */
; 230 : SetSimSeg( SIM_CODE, name );
mov rdx, rbx
xor ecx, ecx
call SetSimSeg
; 231 :
; 232 : if( Modu... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 28b09fcf7ca2f77034c045fe6612c4a02ec747a9 | github | assembler | https://github.com/Terraspace/UASM/blob/28b09fcf7ca2f77034c045fe6612c4a02ec747a9/x64/Release/simsegm.asm | 441 | 500 |
Terraspace/UASM:x64/Release/simsegm.asm:13 | $LN18@Simplified:
; 237 : } else if( ModuleInfo.model == MODEL_FLAT ) {
cmp eax, 7
jne SHORT $LN21@Simplified
; 238 : name = "FLAT";
lea rbx, OFFSET FLAT:$SG11015
; 239 : } else {
jmp SHORT $LN23@Simplified
$LN21@Simplified:
; 240 : if( name == NULL )
test rbx, r... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 28b09fcf7ca2f77034c045fe6612c4a02ec747a9 | github | assembler | https://github.com/Terraspace/UASM/blob/28b09fcf7ca2f77034c045fe6612c4a02ec747a9/x64/Release/simsegm.asm | 481 | 540 |
Terraspace/UASM:x64/Release/simsegm.asm:14 | ; 248 : * v2.05: must not be done after LstWrite() has been called!
; 249 : * Also, there are no longer bytes "emitted".
; 250 : */
; 251 : //FStoreLine();
; 252 : SetSimSeg( SIM_STACK, NULL );
xor edx, edx
lea ecx, QWORD PTR [rdx+1]
call SetSimSeg
; 253 : A... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 28b09fcf7ca2f77034c045fe6612c4a02ec747a9 | github | assembler | https://github.com/Terraspace/UASM/blob/28b09fcf7ca2f77034c045fe6612c4a02ec747a9/x64/Release/simsegm.asm | 521 | 580 |
Terraspace/UASM:x64/Release/simsegm.asm:15 | cmp eax, 1
jbe SHORT $LN31@Simplified
mov r9, QWORD PTR SegmNames+8
lea rdx, OFFSET FLAT:szDgroup
mov r8d, 442 ; 000001baH
lea rcx, OFFSET FLAT:$SG10925
call AddLineQueueX
; 259 : break;
jmp SHORT $LN31@Simplified
$LN27@Simplified:
; 260 : case SIM_DATA: /* .data */
; 261 : case SIM_... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 28b09fcf7ca2f77034c045fe6612c4a02ec747a9 | github | assembler | https://github.com/Terraspace/UASM/blob/28b09fcf7ca2f77034c045fe6612c4a02ec747a9/x64/Release/simsegm.asm | 561 | 620 |
Terraspace/UASM:x64/Release/simsegm.asm:16 | mov ecx, edi
call AddToDgroup
; 267 : break;
jmp SHORT $LN31@Simplified
$LN30@Simplified:
; 268 : case SIM_FARDATA: /* .fardata */
; 269 : case SIM_FARDATA_UN: /* .fardata? */
; 270 : SetSimSeg( type, name );
mov rdx, rbx
mov ecx, edi
call SetSimSeg
; 271 : AddLineQu... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 28b09fcf7ca2f77034c045fe6612c4a02ec747a9 | github | assembler | https://github.com/Terraspace/UASM/blob/28b09fcf7ca2f77034c045fe6612c4a02ec747a9/x64/Release/simsegm.asm | 601 | 660 |
Terraspace/UASM:x64/Release/simsegm.asm:17 | mov rdi, QWORD PTR [rsp+200]
mov r14, QWORD PTR [rsp+160]
; 282 : }
add rsp, 168 ; 000000a8H
pop rsi
pop rbx
ret 0
npad 3
$LN48@Simplified:
DD $LN17@Simplified
DD $LN24@Simplified
DD $LN27@Simplified
DD $LN27@Simplified
DD $LN30@Simplified
DD $LN30@Simplified
DD $LN27@Simplified
SimplifiedSegDir ENDP... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 28b09fcf7ca2f77034c045fe6612c4a02ec747a9 | github | assembler | https://github.com/Terraspace/UASM/blob/28b09fcf7ca2f77034c045fe6612c4a02ec747a9/x64/Release/simsegm.asm | 641 | 700 |
Terraspace/UASM:x64/Release/simsegm.asm:18 | _TEXT SEGMENT
segm$ = 112
name$ = 120
SetSimSeg PROC ; COMDAT
; 97 : {
mov QWORD PTR [rsp+16], rbx
mov QWORD PTR [rsp+24], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 64 ; 00000040H
; 98 : char *pAlign = "WORD";
; 99 : char *pAlignSt = "PARA";
; 100 : char *pUse = ""... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 28b09fcf7ca2f77034c045fe6612c4a02ec747a9 | github | assembler | https://github.com/Terraspace/UASM/blob/28b09fcf7ca2f77034c045fe6612c4a02ec747a9/x64/Release/simsegm.asm | 681 | 740 |
Terraspace/UASM:x64/Release/simsegm.asm:19 | ; 109 : pUse = "USE32";
; 110 : if (( ModuleInfo.curr_cpu & P_CPU_MASK ) <= P_386 )
lea rcx, OFFSET FLAT:$SG10955
lea r15, OFFSET FLAT:$SG10950
cmovne r15, rax
lea rdi, OFFSET FLAT:$SG10954
mov eax, DWORD PTR ModuleInfo+392
and eax, 240 ; 000000f0H
cmp eax, 48 ; 00000030H
cmovg rdi... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 28b09fcf7ca2f77034c045fe6612c4a02ec747a9 | github | assembler | https://github.com/Terraspace/UASM/blob/28b09fcf7ca2f77034c045fe6612c4a02ec747a9/x64/Release/simsegm.asm | 721 | 780 |
Terraspace/UASM:x64/Release/simsegm.asm:20 | mov r14, QWORD PTR SegmClass[r13+rbx*8]
cmp ebx, 1
je SHORT $LN10@SetSimSeg
lea eax, DWORD PTR [rbx-4]
cmp eax, 1
ja SHORT $LN9@SetSimSeg
$LN10@SetSimSeg:
; 121 :
; 122 : if ( segm == SIM_STACK || segm == SIM_FARDATA || segm == SIM_FARDATA_UN )
; 123 : pAlign = pAlignSt;
mov rdi, rcx
$LN9@SetSimS... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 28b09fcf7ca2f77034c045fe6612c4a02ec747a9 | github | assembler | https://github.com/Terraspace/UASM/blob/28b09fcf7ca2f77034c045fe6612c4a02ec747a9/x64/Release/simsegm.asm | 761 | 820 |
Terraspace/UASM:x64/Release/simsegm.asm:21 | jmp SHORT $LN18@SetSimSeg
$LN13@SetSimSeg:
; 130 : else {
; 131 : ModuleInfo.simseg_init |= ( 1 << segm );
bts eax, ebx
; 132 : /* v2.05: if segment exists already, use the current attribs.
; 133 : * This allows a better mix of full and simplified segment
; 134 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 28b09fcf7ca2f77034c045fe6612c4a02ec747a9 | github | assembler | https://github.com/Terraspace/UASM/blob/28b09fcf7ca2f77034c045fe6612c4a02ec747a9/x64/Release/simsegm.asm | 801 | 860 |
Terraspace/UASM:x64/Release/simsegm.asm:22 | jmp SHORT $LN16@SetSimSeg
$LN26@SetSimSeg:
movzx eax, BYTE PTR ModuleInfo+421
$LN16@SetSimSeg:
; 143 : }
; 144 : if ( ModuleInfo.simseg_defd & ( 1 << segm ) )
test al, r12b
je SHORT $LN18@SetSimSeg
; 145 : pFmt = "%s %r";
lea rsi, OFFSET FLAT:$SG10969
; 146 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 28b09fcf7ca2f77034c045fe6612c4a02ec747a9 | github | assembler | https://github.com/Terraspace/UASM/blob/28b09fcf7ca2f77034c045fe6612c4a02ec747a9/x64/Release/simsegm.asm | 841 | 900 |
Terraspace/UASM:x64/Release/simsegm.asm:23 | lea rdx, OFFSET FLAT:$SG10971
and al, 2
cmove rdx, rsi
mov rsi, rdx
$LN18@SetSimSeg:
; 157 : pFmt = "%s %r";
; 158 : }
; 159 : AddLineQueueX( pFmt, name, T_SEGMENT, pAlign, pUse, SegmCombine[segm], pClass );
mov rax, QWORD PTR SegmCombine[r13+rbx*8]
mov r9, rdi
mov QWORD PTR [rsp+48], r14... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 28b09fcf7ca2f77034c045fe6612c4a02ec747a9 | github | assembler | https://github.com/Terraspace/UASM/blob/28b09fcf7ca2f77034c045fe6612c4a02ec747a9/x64/Release/simsegm.asm | 881 | 940 |
Terraspace/UASM:x64/Release/simsegm.asm:24 | ; 85 : if ( CurrSeg ) {
mov rdx, QWORD PTR ModuleInfo+432
test rdx, rdx
je SHORT $LN2@close_curr
; 86 : DebugMsg1(("close_currseg: current seg=%s\n", CurrSeg->sym.name));
; 87 : AddLineQueueX( "%s %r", CurrSeg->sym.name, T_ENDS );
mov rdx, QWORD PTR [rdx+8]
lea rcx, OFFSET FLAT:$SG1093... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 28b09fcf7ca2f77034c045fe6612c4a02ec747a9 | github | assembler | https://github.com/Terraspace/UASM/blob/28b09fcf7ca2f77034c045fe6612c4a02ec747a9/x64/Release/simsegm.asm | 921 | 980 |
Terraspace/UASM:x64/Release/simsegm.asm:25 | mov eax, DWORD PTR Options+144
add eax, -2 ; fffffffeH
cmp eax, 1
jbe SHORT $LN3@AddToDgrou
; 70 : #endif
; 71 : )
; 72 : return;
; 73 :
; 74 : if( name == NULL )
test rdx, rdx
jne SHORT $LN4@AddToDgrou
; 75 : name = SegmNames[segm];
movsxd rax, ecx
lea rdx, OFFSET F... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 28b09fcf7ca2f77034c045fe6612c4a02ec747a9 | github | assembler | https://github.com/Terraspace/UASM/blob/28b09fcf7ca2f77034c045fe6612c4a02ec747a9/x64/Release/simsegm.asm | 961 | 1,020 |
Terraspace/UASM:x64/Release/simsegm.asm:30 | ; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\simsegm.c
_TEXT SEGMENT
ModelSimSegmExit PROC
; 361 : {
$LN9:
sub rsp, 40 ; 00000028H
; 362 : /* a model is set. Close current segment if one is open. */
; 363 : if ( CurrSeg ) {
mov rdx, QWORD PTR ModuleInfo+432
test rd... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 28b09fcf7ca2f77034c045fe6612c4a02ec747a9 | github | assembler | https://github.com/Terraspace/UASM/blob/28b09fcf7ca2f77034c045fe6612c4a02ec747a9/x64/Release/simsegm.asm | 1,161 | 1,220 |
Terraspace/UASM:x64/Release/simsegm.asm:31 | _TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\simsegm.c
_TEXT SEGMENT
buffer$ = 48
model$ = 96
ModelSimSegmInit PROC
; 323 : {
$LN21:
push rbx
sub rsp, 80 ; 00000050H
mov ebx, ecx
; 324 : char buffer[20];
; 325 :
; 326 : ModuleInfo.simseg_init = 0; /* v2.... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 28b09fcf7ca2f77034c045fe6612c4a02ec747a9 | github | assembler | https://github.com/Terraspace/UASM/blob/28b09fcf7ca2f77034c045fe6612c4a02ec747a9/x64/Release/simsegm.asm | 1,201 | 1,260 |
Terraspace/UASM:x64/Release/simsegm.asm:32 | ; 335 : SetSimSeg( SIM_DATA, NULL ) ;
xor edx, edx
lea ecx, QWORD PTR [rdx+2]
call SetSimSeg
; 336 : EndSimSeg( SIM_DATA );
mov rdx, QWORD PTR SegmNames+16
lea rcx, OFFSET FLAT:$SG10976
mov r8d, 441 ; 000001b9H
call AddLineQueueX
; 337 :
; 338 : /* create DGROUP for BIN/OMF if ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 28b09fcf7ca2f77034c045fe6612c4a02ec747a9 | github | assembler | https://github.com/Terraspace/UASM/blob/28b09fcf7ca2f77034c045fe6612c4a02ec747a9/x64/Release/simsegm.asm | 1,241 | 1,300 |
Terraspace/UASM:x64/Release/simsegm.asm:33 | cmp ebx, 1
jne SHORT $LN4@ModelSimSe
; 347 : strcat( buffer, ", %s" );
lea rax, QWORD PTR buffer$[rsp]
dec rax
npad 3
$LL16@ModelSimSe:
cmp BYTE PTR [rax+1], 0
lea rax, QWORD PTR [rax+1]
jne SHORT $LL16@ModelSimSe
lea r8, OFFSET FLAT:$SG11046
xor edx, edx
npad 13
$LL17@ModelSimSe:
movzx ec... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 28b09fcf7ca2f77034c045fe6612c4a02ec747a9 | github | assembler | https://github.com/Terraspace/UASM/blob/28b09fcf7ca2f77034c045fe6612c4a02ec747a9/x64/Release/simsegm.asm | 1,281 | 1,340 |
Terraspace/UASM:x64/Release/simsegm.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23026.0
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM decoflags:BYTE
COMM broadflags:BYTE
COMM evex:BYTE
COMM ZEROLOCALS:BYTE
_DATA ENDS
_BSS SEGMENT
$SG10945 DB 01H DUP (?)
_BSS ENDS
_DATA SEGMENT
$SG10885 DB '_TEX... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 12b57bbdd33753207bcb1730f952f11ccb53cef0 | github | assembler | https://github.com/Terraspace/UASM/blob/12b57bbdd33753207bcb1730f952f11ccb53cef0/x64/Release/simsegm.asm | 1 | 60 |
Terraspace/UASM:x64/Release/simsegm.asm:2 | ORG $+2
$SG10901 DB 'PUBLIC', 00H
ORG $+5
$SG10898 DB 'FAR_BSS', 00H
$SG10902 DB 'STACK', 00H
ORG $+2
$SG10903 DB 'PUBLIC', 00H
ORG $+1
$SG10904 DB 'PUBLIC', 00H
ORG $+1
$SG10905 DB 'PRIVATE', 00H
$SG10906 DB 'PRIVATE', 00H
$SG10907 DB 'PUBLIC', 00H
ORG $+1
$SG10924 DB '%s %r %s', 00H
ORG $+3
$SG10929 DB '%s %r',... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 12b57bbdd33753207bcb1730f952f11ccb53cef0 | github | assembler | https://github.com/Terraspace/UASM/blob/12b57bbdd33753207bcb1730f952f11ccb53cef0/x64/Release/simsegm.asm | 41 | 100 |
Terraspace/UASM:x64/Release/simsegm.asm:3 | ORG $+7
$SG11016 DB '%r %r:%s', 00H
ORG $+7
$SG11018 DB 'ORG 0%xh', 00H
ORG $+7
$SG11022 DB '%r %r:ERROR', 00H
ORG $+4
$SG11026 DB '%r %r:ERROR', 00H
ORG $+4
$SG11042 DB '%s %r %s', 00H
ORG $+3
$SG11045 DB ', %s', 00H
_DATA ENDS
CONST SEGMENT
SegmNamesDef DQ FLAT:$SG10885
DQ FLAT:$SG10886
DQ FLAT:$SG10887
DQ FL... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 12b57bbdd33753207bcb1730f952f11ccb53cef0 | github | assembler | https://github.com/Terraspace/UASM/blob/12b57bbdd33753207bcb1730f952f11ccb53cef0/x64/Release/simsegm.asm | 81 | 140 |
Terraspace/UASM:x64/Release/simsegm.asm:4 | EXTRN szDgroup:BYTE
EXTRN __ImageBase:BYTE
_BSS SEGMENT
ALIGN 8
SegmNames DQ 07H DUP (?)
_BSS ENDS
pdata SEGMENT
$pdata$ModelSimSegmInit DD imagerel $LN21
DD imagerel $LN21+296
DD imagerel $unwind$ModelSimSegmInit
$pdata$ModelSimSegmExit DD imagerel $LN9
DD imagerel $LN9+52
DD imagerel $unwind$ModelSimSegmExit
$p... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 12b57bbdd33753207bcb1730f952f11ccb53cef0 | github | assembler | https://github.com/Terraspace/UASM/blob/12b57bbdd33753207bcb1730f952f11ccb53cef0/x64/Release/simsegm.asm | 121 | 180 |
Terraspace/UASM:x64/Release/simsegm.asm:5 | pdata ENDS
CONST SEGMENT
SegmClass DQ FLAT:$SG10893
DQ FLAT:$SG10894
DQ FLAT:$SG10895
DQ FLAT:$SG10896
DQ FLAT:$SG10897
DQ FLAT:$SG10898
DQ FLAT:$SG10899
SegmCombine DQ FLAT:$SG10901
DQ FLAT:$SG10902
DQ FLAT:$SG10903
DQ FLAT:$SG10904
DQ FLAT:$SG10905
DQ FLAT:$SG10906
DQ FLAT:$SG10907
CONST ENDS
; COMDAT xda... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 12b57bbdd33753207bcb1730f952f11ccb53cef0 | github | assembler | https://github.com/Terraspace/UASM/blob/12b57bbdd33753207bcb1730f952f11ccb53cef0/x64/Release/simsegm.asm | 161 | 220 |
Terraspace/UASM:x64/Release/simsegm.asm:10 | cmp BYTE PTR Options+127, bl
jne SHORT $LN11@Simplified
lea eax, DWORD PTR [rdi-2]
test eax, -6 ; fffffffaH
jne SHORT $LN11@Simplified
cmp edi, 7
je SHORT $LN11@Simplified
$LN13@Simplified:
; 210 : ( type == SIM_CODE || type == SIM_FARDATA || type == SIM_FARDATA_UN
; 211 : || ( Optio... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 12b57bbdd33753207bcb1730f952f11ccb53cef0 | github | assembler | https://github.com/Terraspace/UASM/blob/12b57bbdd33753207bcb1730f952f11ccb53cef0/x64/Release/simsegm.asm | 361 | 420 |
Terraspace/UASM:x64/Release/simsegm.asm:11 | or eax, -1
jmp $LN52@Simplified
$LN14@Simplified:
; 220 : }
; 221 :
; 222 : if( type != SIM_STACK )
cmp edi, 1
je SHORT $LN34@Simplified
; 223 : close_currseg(); /* emit a "xxx ENDS" line to close current seg */
mov rdx, QWORD PTR ModuleInfo+432
test rdx, rdx
je SHORT $LN34@Simplified
mo... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 12b57bbdd33753207bcb1730f952f11ccb53cef0 | github | assembler | https://github.com/Terraspace/UASM/blob/12b57bbdd33753207bcb1730f952f11ccb53cef0/x64/Release/simsegm.asm | 401 | 460 |
Terraspace/UASM:x64/Release/simsegm.asm:12 | ; 228 : switch( type ) {
cmp edi, 6
ja $LN31@Simplified
mov ecx, DWORD PTR $LN48@Simplified[r14+rdi*4]
add rcx, r14
jmp rcx
$LN17@Simplified:
; 229 : case SIM_CODE: /* .code */
; 230 : SetSimSeg( SIM_CODE, name );
mov rdx, rbx
xor ecx, ecx
call SetSimSeg
; 231 :
; 232 : if( Modu... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 12b57bbdd33753207bcb1730f952f11ccb53cef0 | github | assembler | https://github.com/Terraspace/UASM/blob/12b57bbdd33753207bcb1730f952f11ccb53cef0/x64/Release/simsegm.asm | 441 | 500 |
Terraspace/UASM:x64/Release/simsegm.asm:13 | $LN18@Simplified:
; 237 : } else if( ModuleInfo.model == MODEL_FLAT ) {
cmp eax, 7
jne SHORT $LN21@Simplified
; 238 : name = "FLAT";
lea rbx, OFFSET FLAT:$SG11014
; 239 : } else {
jmp SHORT $LN23@Simplified
$LN21@Simplified:
; 240 : if( name == NULL )
test rbx, r... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 12b57bbdd33753207bcb1730f952f11ccb53cef0 | github | assembler | https://github.com/Terraspace/UASM/blob/12b57bbdd33753207bcb1730f952f11ccb53cef0/x64/Release/simsegm.asm | 481 | 540 |
Terraspace/UASM:x64/Release/simsegm.asm:14 | ; 248 : * v2.05: must not be done after LstWrite() has been called!
; 249 : * Also, there are no longer bytes "emitted".
; 250 : */
; 251 : //FStoreLine();
; 252 : SetSimSeg( SIM_STACK, NULL );
xor edx, edx
lea ecx, QWORD PTR [rdx+1]
call SetSimSeg
; 253 : A... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 12b57bbdd33753207bcb1730f952f11ccb53cef0 | github | assembler | https://github.com/Terraspace/UASM/blob/12b57bbdd33753207bcb1730f952f11ccb53cef0/x64/Release/simsegm.asm | 521 | 580 |
Terraspace/UASM:x64/Release/simsegm.asm:15 | cmp eax, 1
jbe SHORT $LN31@Simplified
mov r9, QWORD PTR SegmNames+8
lea rdx, OFFSET FLAT:szDgroup
mov r8d, 442 ; 000001baH
lea rcx, OFFSET FLAT:$SG10924
call AddLineQueueX
; 259 : break;
jmp SHORT $LN31@Simplified
$LN27@Simplified:
; 260 : case SIM_DATA: /* .data */
; 261 : case SIM_... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 12b57bbdd33753207bcb1730f952f11ccb53cef0 | github | assembler | https://github.com/Terraspace/UASM/blob/12b57bbdd33753207bcb1730f952f11ccb53cef0/x64/Release/simsegm.asm | 561 | 620 |
Terraspace/UASM:x64/Release/simsegm.asm:16 | mov ecx, edi
call AddToDgroup
; 267 : break;
jmp SHORT $LN31@Simplified
$LN30@Simplified:
; 268 : case SIM_FARDATA: /* .fardata */
; 269 : case SIM_FARDATA_UN: /* .fardata? */
; 270 : SetSimSeg( type, name );
mov rdx, rbx
mov ecx, edi
call SetSimSeg
; 271 : AddLineQu... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 12b57bbdd33753207bcb1730f952f11ccb53cef0 | github | assembler | https://github.com/Terraspace/UASM/blob/12b57bbdd33753207bcb1730f952f11ccb53cef0/x64/Release/simsegm.asm | 601 | 660 |
Terraspace/UASM:x64/Release/simsegm.asm:17 | mov rdi, QWORD PTR [rsp+200]
mov r14, QWORD PTR [rsp+160]
; 282 : }
add rsp, 168 ; 000000a8H
pop rsi
pop rbx
ret 0
npad 3
$LN48@Simplified:
DD $LN17@Simplified
DD $LN24@Simplified
DD $LN27@Simplified
DD $LN27@Simplified
DD $LN30@Simplified
DD $LN30@Simplified
DD $LN27@Simplified
SimplifiedSegDir ENDP... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 12b57bbdd33753207bcb1730f952f11ccb53cef0 | github | assembler | https://github.com/Terraspace/UASM/blob/12b57bbdd33753207bcb1730f952f11ccb53cef0/x64/Release/simsegm.asm | 641 | 700 |
Terraspace/UASM:x64/Release/simsegm.asm:18 | _TEXT SEGMENT
segm$ = 112
name$ = 120
SetSimSeg PROC ; COMDAT
; 97 : {
mov QWORD PTR [rsp+16], rbx
mov QWORD PTR [rsp+24], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 64 ; 00000040H
; 98 : char *pAlign = "WORD";
; 99 : char *pAlignSt = "PARA";
; 100 : char *pUse = ""... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 12b57bbdd33753207bcb1730f952f11ccb53cef0 | github | assembler | https://github.com/Terraspace/UASM/blob/12b57bbdd33753207bcb1730f952f11ccb53cef0/x64/Release/simsegm.asm | 681 | 740 |
Terraspace/UASM:x64/Release/simsegm.asm:19 | ; 109 : pUse = "USE32";
; 110 : if (( ModuleInfo.curr_cpu & P_CPU_MASK ) <= P_386 )
lea rcx, OFFSET FLAT:$SG10954
lea r15, OFFSET FLAT:$SG10949
cmovne r15, rax
lea rdi, OFFSET FLAT:$SG10953
mov eax, DWORD PTR ModuleInfo+392
and eax, 240 ; 000000f0H
cmp eax, 48 ; 00000030H
cmovg rdi... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 12b57bbdd33753207bcb1730f952f11ccb53cef0 | github | assembler | https://github.com/Terraspace/UASM/blob/12b57bbdd33753207bcb1730f952f11ccb53cef0/x64/Release/simsegm.asm | 721 | 780 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.