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:5 | CONST SEGMENT
SegmClass DQ FLAT:$SG10879
DQ FLAT:$SG10880
DQ FLAT:$SG10881
DQ FLAT:$SG10882
DQ FLAT:$SG10883
DQ FLAT:$SG10884
DQ FLAT:$SG10885
SegmCombine DQ FLAT:$SG10887
DQ FLAT:$SG10888
DQ FLAT:$SG10889
DQ FLAT:$SG10890
DQ FLAT:$SG10891
DQ FLAT:$SG10892
DQ FLAT:$SG10893
CONST ENDS
; COMDAT xdata
xdata SE... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/simsegm.asm | 161 | 220 |
Terraspace/UASM:x64/Release/simsegm.asm:10 | 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 : || ( Options.strict_masm_compat == FALSE... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/simsegm.asm | 361 | 420 |
Terraspace/UASM:x64/Release/simsegm.asm:11 | 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
mov rdx, QWORD... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/simsegm.asm | 401 | 460 |
Terraspace/UASM:x64/Release/simsegm.asm:12 | 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( ModuleInfo.model == MODEL_TINY ) {
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/simsegm.asm | 441 | 500 |
Terraspace/UASM:x64/Release/simsegm.asm:13 | ; 237 : } else if( ModuleInfo.model == MODEL_FLAT ) {
cmp eax, 7
jne SHORT $LN21@Simplified
; 238 : name = "FLAT";
lea rbx, OFFSET FLAT:$SG11000
; 239 : } else {
jmp SHORT $LN23@Simplified
$LN21@Simplified:
; 240 : if( name == NULL )
test rbx, rbx
cmove rbx, QWOR... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/simsegm.asm | 481 | 540 |
Terraspace/UASM:x64/Release/simsegm.asm:14 | ; 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 : AddLineQueueX( "ORG 0%xh", opndx.value );
mov edx, DWORD PTR opndx$[rsp]
lea... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/simsegm.asm | 521 | 580 |
Terraspace/UASM:x64/Release/simsegm.asm:15 | jbe SHORT $LN31@Simplified
mov r9, QWORD PTR SegmNames+8
lea rdx, OFFSET FLAT:szDgroup
mov r8d, 438 ; 000001b6H
lea rcx, OFFSET FLAT:$SG10910
call AddLineQueueX
; 259 : break;
jmp SHORT $LN31@Simplified
$LN27@Simplified:
; 260 : case SIM_DATA: /* .data */
; 261 : case SIM_DATA_UN: /* ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/simsegm.asm | 561 | 620 |
Terraspace/UASM:x64/Release/simsegm.asm:16 | 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 : AddLineQueueX( "%r %r:E... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/simsegm.asm | 601 | 660 |
Terraspace/UASM:x64/Release/simsegm.asm:17 | 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
_TEXT ENDS
; Function compile... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/simsegm.asm | 641 | 700 |
Terraspace/UASM:x64/Release/simsegm.asm:18 | 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 = "";
; 101 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/simsegm.asm | 681 | 740 |
Terraspace/UASM:x64/Release/simsegm.asm:19 | ; 110 : if (( ModuleInfo.curr_cpu & P_CPU_MASK ) <= P_386 )
lea rcx, OFFSET FLAT:$SG10940
lea r15, OFFSET FLAT:$SG10935
cmovne r15, rax
lea rdi, OFFSET FLAT:$SG10939
mov eax, DWORD PTR ModuleInfo+392
and eax, 240 ; 000000f0H
cmp eax, 48 ; 00000030H
cmovg rdi, rcx
; 111 : pAlign = ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/simsegm.asm | 721 | 780 |
Terraspace/UASM:x64/Release/simsegm.asm:20 | 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@SetSimSeg:
mov QWORD PTR [rsp+112], r12
; 124 ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/simsegm.asm | 761 | 820 |
Terraspace/UASM:x64/Release/simsegm.asm:21 | $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 : * directives. M... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/simsegm.asm | 801 | 860 |
Terraspace/UASM:x64/Release/simsegm.asm:22 | $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:$SG10954
; 146 : }
; 147 : } else {
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/simsegm.asm | 841 | 900 |
Terraspace/UASM:x64/Release/simsegm.asm:23 | 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
mov r8d, 436 ; 000001b4H
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/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:$SG1091... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/simsegm.asm | 921 | 980 |
Terraspace/UASM:x64/Release/simsegm.asm:25 | 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 FLAT:SegmNames
mov rdx, QWORD PT... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/simsegm.asm | 961 | 1,020 |
Terraspace/UASM:x64/Release/simsegm.asm:29 | ; 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, QWORD PTR [rdi+1]
jne SHORT $LL19... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/simsegm.asm | 1,121 | 1,180 |
Terraspace/UASM:x64/Release/simsegm.asm:30 | ; 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 rdx, rdx
je SHORT $LN2@ModelSimSe
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/simsegm.asm | 1,161 | 1,220 |
Terraspace/UASM:x64/Release/simsegm.asm:31 | ; 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.09: reset i... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/simsegm.asm | 1,201 | 1,260 |
Terraspace/UASM:x64/Release/simsegm.asm:32 | 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:$SG10961
mov r8d, 437 ; 000001b5H
call AddLineQueueX
; 337 :
; 338 : /* create DGROUP for BIN/OMF if model isn't FLAT */
; 339 : if( model !=... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/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:$SG11031
xor edx, edx
npad 13
$LL17@ModelSimSe:
movzx ec... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/simsegm.asm | 1,281 | 1,340 |
Terraspace/UASM:x64/Release/simsegm.asm:6 | 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 021H
DD imagerel ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/simsegm.asm | 201 | 260 |
Terraspace/UASM:x64/Release/simsegm.asm:7 | ; 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( ModuleInfo.model == MODEL_NONE ) ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/simsegm.asm | 241 | 300 |
Terraspace/UASM:x64/Release/simsegm.asm:8 | 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, DWORD PTR SpecialTable[r14+rcx*... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/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, 66 ; 00000042H
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/simsegm.asm | 321 | 380 |
Terraspace/UASM:x64/Release/simsegm.asm:10 | 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 : || ( Options.strict_masm_compat == FALSE... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/simsegm.asm | 361 | 420 |
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
_DATA ENDS
_BSS SEGMENT
$SG10929 DB 01H DUP (?)
_BSS ENDS
_DATA SEGMENT
$SG10869 DB '_TEXT', 00H
ORG $+2
$SG10870 DB 'STACK'... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 1 | 60 |
Terraspace/UASM:x64/Release/simsegm.asm:2 | ORG $+5
$SG10882 DB 'FAR_BSS', 00H
$SG10886 DB 'STACK', 00H
ORG $+2
$SG10887 DB 'PUBLIC', 00H
ORG $+1
$SG10888 DB 'PUBLIC', 00H
ORG $+1
$SG10889 DB 'PRIVATE', 00H
$SG10890 DB 'PRIVATE', 00H
$SG10891 DB 'PUBLIC', 00H
ORG $+1
$SG10908 DB '%s %r %s', 00H
ORG $+3
$SG10913 DB '%s %r', 00H
ORG $+2
$SG10927 DB 'WORD', 0... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 41 | 100 |
Terraspace/UASM:x64/Release/simsegm.asm:3 | ORG $+7
$SG11002 DB 'ORG 0%xh', 00H
ORG $+7
$SG11006 DB '%r %r:ERROR', 00H
ORG $+4
$SG11010 DB '%r %r:ERROR', 00H
ORG $+4
$SG11026 DB '%s %r %s', 00H
ORG $+3
$SG11029 DB ', %s', 00H
_DATA ENDS
CONST SEGMENT
SegmNamesDef DQ FLAT:$SG10869
DQ FLAT:$SG10870
DQ FLAT:$SG10871
DQ FLAT:$SG10872
DQ FLAT:$SG10873
DQ FLA... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 81 | 140 |
Terraspace/UASM:x64/Release/simsegm.asm:4 | _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
$pdata$SetModelDefaultSegNames DD imagerel $L... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 121 | 180 |
Terraspace/UASM:x64/Release/simsegm.asm:5 | SegmClass DQ FLAT:$SG10877
DQ FLAT:$SG10878
DQ FLAT:$SG10879
DQ FLAT:$SG10880
DQ FLAT:$SG10881
DQ FLAT:$SG10882
DQ FLAT:$SG10883
SegmCombine DQ FLAT:$SG10885
DQ FLAT:$SG10886
DQ FLAT:$SG10887
DQ FLAT:$SG10888
DQ FLAT:$SG10889
DQ FLAT:$SG10890
DQ FLAT:$SG10891
CONST ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 161 | 220 |
Terraspace/UASM:x64/Release/simsegm.asm:6 | 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 021H
DD imagerel $LN55
DD imagerel $LN5... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 201 | 260 |
Terraspace/UASM:x64/Release/simsegm.asm:7 | ; 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( ModuleInfo.model == MODEL_NONE ) {
cmp DWORD PTR ModuleInfo+360... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 241 | 300 |
Terraspace/UASM:x64/Release/simsegm.asm:8 | 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, DWORD PTR SpecialTable[r14+rcx*4+4]
; 194 :... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 281 | 340 |
Terraspace/UASM:x64/Release/simsegm.asm:9 | $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
call EmitError
; 202 : return( ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 321 | 380 |
Terraspace/UASM:x64/Release/simsegm.asm:10 | 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 : || ( Options.strict_masm_compat == FALSE &&
; 212 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 361 | 420 |
Terraspace/UASM:x64/Release/simsegm.asm:11 | $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
mov rdx, QWORD PTR [rdx+8]
lea rcx... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 401 | 460 |
Terraspace/UASM:x64/Release/simsegm.asm:13 | ; 237 : } else if( ModuleInfo.model == MODEL_FLAT ) {
cmp eax, 7
jne SHORT $LN21@Simplified
; 238 : name = "FLAT";
lea rbx, OFFSET FLAT:$SG10998
; 239 : } else {
jmp SHORT $LN23@Simplified
$LN21@Simplified:
; 240 : if( name == NULL )
test rbx, rbx
cmove rbx, QWOR... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 481 | 540 |
Terraspace/UASM:x64/Release/simsegm.asm:14 | ; 250 : */
; 251 : //FStoreLine();
; 252 : SetSimSeg( SIM_STACK, NULL );
xor edx, edx
lea ecx, QWORD PTR [rdx+1]
call SetSimSeg
; 253 : AddLineQueueX( "ORG 0%xh", opndx.value );
mov edx, DWORD PTR opndx$[rsp]
lea rcx, OFFSET FLAT:$SG11002
call AddLineQueueX
; 254 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 521 | 580 |
Terraspace/UASM:x64/Release/simsegm.asm:15 | mov r9, QWORD PTR SegmNames+8
lea rdx, OFFSET FLAT:szDgroup
mov r8d, 438 ; 000001b6H
lea rcx, OFFSET FLAT:$SG10908
call AddLineQueueX
; 259 : break;
jmp SHORT $LN31@Simplified
$LN27@Simplified:
; 260 : case SIM_DATA: /* .data */
; 261 : case SIM_DATA_UN: /* .data? */
; 262 : case ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 561 | 620 |
Terraspace/UASM:x64/Release/simsegm.asm:16 | ; 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 : AddLineQueueX( "%r %r:ERROR", T_ASSUME, T... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 601 | 660 |
Terraspace/UASM:x64/Release/simsegm.asm:17 | ; 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
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwas... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 641 | 700 |
Terraspace/UASM:x64/Release/simsegm.asm:18 | 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 = "";
; 101 : struct asym... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 681 | 740 |
Terraspace/UASM:x64/Release/simsegm.asm:19 | lea rcx, OFFSET FLAT:$SG10938
lea r15, OFFSET FLAT:$SG10933
cmovne r15, rax
lea rdi, OFFSET FLAT:$SG10937
mov eax, DWORD PTR ModuleInfo+392
and eax, 240 ; 000000f0H
cmp eax, 48 ; 00000030H
cmovg rdi, rcx
; 111 : pAlign = "DWORD";
; 112 : else
; 113 : pAlign = "PARA";
; ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 721 | 780 |
Terraspace/UASM:x64/Release/simsegm.asm:20 | 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@SetSimSeg:
mov QWORD PTR [rsp+112], r12
; 124 :
; 125 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 761 | 820 |
Terraspace/UASM:x64/Release/simsegm.asm:21 | ; 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 : * directives. Masm behaves differ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 801 | 860 |
Terraspace/UASM:x64/Release/simsegm.asm:22 | 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:$SG10952
; 146 : }
; 147 : } else {
jmp SHORT $LN18@S... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 841 | 900 |
Terraspace/UASM:x64/Release/simsegm.asm:23 | 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
mov r8d, 436 ; 000001b4H
mov QWORD P... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 881 | 940 |
Terraspace/UASM:x64/Release/simsegm.asm:24 | 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:$SG10913
mov r8d, 437 ; 000001b5H
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 921 | 980 |
Terraspace/UASM:x64/Release/simsegm.asm:25 | 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 FLAT:SegmNames
mov rdx, QWORD PTR [rdx+rax*8]
$LN4@AddToDgrou... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 961 | 1,020 |
Terraspace/UASM:x64/Release/simsegm.asm:26 | $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] ) {
mov rax, QW... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 1,001 | 1,060 |
Terraspace/UASM:x64/Release/simsegm.asm:27 | 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 ( SIZE_CODEPTR & ( 1 << ModuleInfo.model ) ) {
mov ecx, DWORD P... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 1,041 | 1,100 |
Terraspace/UASM:x64/Release/simsegm.asm:28 | 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 SHORT $LL8@SetModelDe
; 304 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 1,081 | 1,140 |
Terraspace/UASM:x64/Release/simsegm.asm:29 | 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, QWORD PTR [rdi+1]
jne SHORT $LL19@SetModelDe
lea rcx, QWORD PTR [rdi+1]
call LclAllo... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 1,121 | 1,180 |
Terraspace/UASM:x64/Release/simsegm.asm:30 | _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 rdx, rdx
je SHORT $LN2@ModelSimSe
; 364 : close_currseg();
mov rdx, QWORD PTR... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 1,161 | 1,220 |
Terraspace/UASM:x64/Release/simsegm.asm:31 | ; 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.09: reset init flags */
mov BYTE PTR Modul... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 1,201 | 1,260 |
Terraspace/UASM:x64/Release/simsegm.asm:32 | 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:$SG10959
mov r8d, 437 ; 000001b5H
call AddLineQueueX
; 337 :
; 338 : /* create DGROUP for BIN/OMF if model isn't FLAT */
; 339 : if( model !=... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 1,241 | 1,300 |
Terraspace/UASM:x64/Release/simsegm.asm:33 | 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:$SG11029
xor edx, edx
npad 13
$LL17@ModelSimSe:
movzx ecx, BYTE PTR ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 1,281 | 1,340 |
Terraspace/UASM:x64/Release/simsegm.asm:34 | 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, 438 ; 000001b6H
lea rcx, QWORD PTR buffer$[rsp]
call AddLineQ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 1,321 | 1,380 |
Terraspace/UASM:x64/Release/simsegm.asm:35 | 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 SEGMENT
segno$ = 8
SimGetSegName PROC
; 45 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 8620efda0299123d1e80a37337b2d5ecea45ed1b | github | assembler | https://github.com/Terraspace/UASM/blob/8620efda0299123d1e80a37337b2d5ecea45ed1b/x64/Release/simsegm.asm | 1,361 | 1,388 |
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
_DATA ENDS
_BSS SEGMENT
$SG10924 DB 01H DUP (?)
_BSS ENDS
_DATA SEGMENT
$SG10864 DB '_TEXT', 00H
ORG $+2
$SG10865 DB 'STACK'... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/simsegm.asm | 1 | 60 |
Terraspace/UASM:x64/Release/simsegm.asm:2 | ORG $+5
$SG10877 DB 'FAR_BSS', 00H
$SG10881 DB 'STACK', 00H
ORG $+2
$SG10882 DB 'PUBLIC', 00H
ORG $+1
$SG10883 DB 'PUBLIC', 00H
ORG $+1
$SG10884 DB 'PRIVATE', 00H
$SG10885 DB 'PRIVATE', 00H
$SG10886 DB 'PUBLIC', 00H
ORG $+1
$SG10903 DB '%s %r %s', 00H
ORG $+3
$SG10908 DB '%s %r', 00H
ORG $+2
$SG10922 DB 'WORD', 0... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/simsegm.asm | 41 | 100 |
Terraspace/UASM:x64/Release/simsegm.asm:3 | ORG $+7
$SG10997 DB 'ORG 0%xh', 00H
ORG $+7
$SG11001 DB '%r %r:ERROR', 00H
ORG $+4
$SG11005 DB '%r %r:ERROR', 00H
ORG $+4
$SG11021 DB '%s %r %s', 00H
ORG $+3
$SG11024 DB ', %s', 00H
_DATA ENDS
CONST SEGMENT
SegmNamesDef DQ FLAT:$SG10864
DQ FLAT:$SG10865
DQ FLAT:$SG10866
DQ FLAT:$SG10867
DQ FLAT:$SG10868
DQ FLA... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/simsegm.asm | 81 | 140 |
Terraspace/UASM:x64/Release/simsegm.asm:4 | _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
$pdata$SetModelDefaultSegNames DD imagerel $L... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/simsegm.asm | 121 | 180 |
Terraspace/UASM:x64/Release/simsegm.asm:5 | SegmClass DQ FLAT:$SG10872
DQ FLAT:$SG10873
DQ FLAT:$SG10874
DQ FLAT:$SG10875
DQ FLAT:$SG10876
DQ FLAT:$SG10877
DQ FLAT:$SG10878
SegmCombine DQ FLAT:$SG10880
DQ FLAT:$SG10881
DQ FLAT:$SG10882
DQ FLAT:$SG10883
DQ FLAT:$SG10884
DQ FLAT:$SG10885
DQ FLAT:$SG10886
CONST ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/simsegm.asm | 161 | 220 |
Terraspace/UASM:x64/Release/simsegm.asm:10 | 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 : || ( Options.strict_masm_compat == FALSE &&
; 212 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/simsegm.asm | 361 | 420 |
Terraspace/UASM:x64/Release/simsegm.asm:11 | $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
mov rdx, QWORD PTR [rdx+8]
lea rcx... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/simsegm.asm | 401 | 460 |
Terraspace/UASM:x64/Release/simsegm.asm:12 | 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( ModuleInfo.model == MODEL_TINY ) {
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/simsegm.asm | 441 | 500 |
Terraspace/UASM:x64/Release/simsegm.asm:13 | ; 237 : } else if( ModuleInfo.model == MODEL_FLAT ) {
cmp eax, 7
jne SHORT $LN21@Simplified
; 238 : name = "FLAT";
lea rbx, OFFSET FLAT:$SG10993
; 239 : } else {
jmp SHORT $LN23@Simplified
$LN21@Simplified:
; 240 : if( name == NULL )
test rbx, rbx
cmove rbx, QWOR... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/simsegm.asm | 481 | 540 |
Terraspace/UASM:x64/Release/simsegm.asm:14 | ; 250 : */
; 251 : //FStoreLine();
; 252 : SetSimSeg( SIM_STACK, NULL );
xor edx, edx
lea ecx, QWORD PTR [rdx+1]
call SetSimSeg
; 253 : AddLineQueueX( "ORG 0%xh", opndx.value );
mov edx, DWORD PTR opndx$[rsp]
lea rcx, OFFSET FLAT:$SG10997
call AddLineQueueX
; 254 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/simsegm.asm | 521 | 580 |
Terraspace/UASM:x64/Release/simsegm.asm:15 | mov r9, QWORD PTR SegmNames+8
lea rdx, OFFSET FLAT:szDgroup
mov r8d, 438 ; 000001b6H
lea rcx, OFFSET FLAT:$SG10903
call AddLineQueueX
; 259 : break;
jmp SHORT $LN31@Simplified
$LN27@Simplified:
; 260 : case SIM_DATA: /* .data */
; 261 : case SIM_DATA_UN: /* .data? */
; 262 : case ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/simsegm.asm | 561 | 620 |
Terraspace/UASM:x64/Release/simsegm.asm:16 | ; 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 : AddLineQueueX( "%r %r:ERROR", T_ASSUME, T... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/simsegm.asm | 601 | 660 |
Terraspace/UASM:x64/Release/simsegm.asm:17 | ; 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
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwas... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/simsegm.asm | 641 | 700 |
Terraspace/UASM:x64/Release/simsegm.asm:18 | 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 = "";
; 101 : struct asym... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/simsegm.asm | 681 | 740 |
Terraspace/UASM:x64/Release/simsegm.asm:19 | lea rcx, OFFSET FLAT:$SG10933
lea r15, OFFSET FLAT:$SG10928
cmovne r15, rax
lea rdi, OFFSET FLAT:$SG10932
mov eax, DWORD PTR ModuleInfo+392
and eax, 240 ; 000000f0H
cmp eax, 48 ; 00000030H
cmovg rdi, rcx
; 111 : pAlign = "DWORD";
; 112 : else
; 113 : pAlign = "PARA";
; ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/simsegm.asm | 721 | 780 |
Terraspace/UASM:x64/Release/simsegm.asm:20 | 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@SetSimSeg:
mov QWORD PTR [rsp+112], r12
; 124 :
; 125 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/simsegm.asm | 761 | 820 |
Terraspace/UASM:x64/Release/simsegm.asm:21 | ; 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 : * directives. Masm behaves differ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/simsegm.asm | 801 | 860 |
Terraspace/UASM:x64/Release/simsegm.asm:22 | 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:$SG10947
; 146 : }
; 147 : } else {
jmp SHORT $LN18@S... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/simsegm.asm | 841 | 900 |
Terraspace/UASM:x64/Release/simsegm.asm:23 | 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
mov r8d, 436 ; 000001b4H
mov QWORD P... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/simsegm.asm | 881 | 940 |
Terraspace/UASM:x64/Release/simsegm.asm:24 | 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:$SG10908
mov r8d, 437 ; 000001b5H
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/simsegm.asm | 921 | 980 |
Terraspace/UASM:x64/Release/simsegm.asm:25 | 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 FLAT:SegmNames
mov rdx, QWORD PTR [rdx+rax*8]
$LN4@AddToDgrou... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/simsegm.asm | 961 | 1,020 |
Terraspace/UASM:x64/Release/simsegm.asm:29 | 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, QWORD PTR [rdi+1]
jne SHORT $LL19@SetModelDe
lea rcx, QWORD PTR [rdi+1]
call LclAllo... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/simsegm.asm | 1,121 | 1,180 |
Terraspace/UASM:x64/Release/simsegm.asm:30 | _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 rdx, rdx
je SHORT $LN2@ModelSimSe
; 364 : close_currseg();
mov rdx, QWORD PTR... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/simsegm.asm | 1,161 | 1,220 |
Terraspace/UASM:x64/Release/simsegm.asm:31 | ; 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.09: reset init flags */
mov BYTE PTR Modul... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/simsegm.asm | 1,201 | 1,260 |
Terraspace/UASM:x64/Release/simsegm.asm:32 | 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:$SG10954
mov r8d, 437 ; 000001b5H
call AddLineQueueX
; 337 :
; 338 : /* create DGROUP for BIN/OMF if model isn't FLAT */
; 339 : if( model !=... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/simsegm.asm | 1,241 | 1,300 |
Terraspace/UASM:x64/Release/simsegm.asm:33 | 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:$SG11024
xor edx, edx
npad 13
$LL17@ModelSimSe:
movzx ecx, BYTE PTR ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/simsegm.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/simsegm.asm | 1,281 | 1,340 |
Terraspace/UASM:x64/Release/tbyte.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
tab_plus_exp DD 00H
DD 00H
DD 0a0000000H
DW 04002H
ORG $+2
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/tbyte.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/tbyte.asm | 1 | 60 |
Terraspace/UASM:x64/Release/tbyte.asm:4 | DD 0637a1939H
DD 0c0314325H
DW 03cacH
ORG $+2
DD 07132d2e4H
DD 0db23d21cH
DD 09049ee32H
DW 0395aH
ORG $+2
DD 087a600a6H
DD 0da57c0bdH
DD 0a2a682a5H
DW 032b5H
ORG $+2
DD 04925110fH
DD 034362de4H
DD 0ceae534fH
DW 0256bH
ORG $+2
DD 02de37e46H
DD 0d2ce9fdeH
DD 0a6dd04c8H
DW 0ad8H
ORG $+2
CONST ENDS
P... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/tbyte.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/tbyte.asm | 121 | 180 |
Terraspace/UASM:x64/Release/tbyte.asm:5 | $pdata$7$strtotb DD imagerel $LN122+590
DD imagerel $LN122+754
DD imagerel $chain$7$strtotb
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$normalize DD imagerel normalize
DD imagerel normalize+313
DD imagerel $unwind$normalize
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$multiply DD imagerel multiply
DD imagerel... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/tbyte.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/tbyte.asm | 161 | 220 |
Terraspace/UASM:x64/Release/tbyte.asm:6 | xdata ENDS
; COMDAT xdata
xdata SEGMENT
$chain$2$TB_create DD 061421H
DD 0a7414H
DD 09540dH
DD 083405H
DD imagerel TB_create
DD imagerel TB_create+6
DD imagerel $unwind$TB_create
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$TB_create DD 020601H
DD 060025206H
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$mul... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/tbyte.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/tbyte.asm | 201 | 260 |
Terraspace/UASM:x64/Release/tbyte.asm:7 | $chain$5$strtotb DD 085f21H
DD 0bc45fH
DD 08f40cH
DD 09e408H
DD 0ad404H
DD imagerel $LN122+16
DD imagerel $LN122+34
DD imagerel $chain$1$strtotb
$chain$6$strtotb DD 060021H
DD 08f400H
DD 09e400H
DD 0bc400H
DD imagerel $LN122+16
DD imagerel $LN122+34
DD imagerel $chain$1$strtotb
$chain$7$strtotb DD 021H
DD... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/tbyte.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/tbyte.asm | 241 | 300 |
Terraspace/UASM:x64/Release/tbyte.asm:8 | ; 330 : const struct ELD *tabExp;
; 331 : int i;
; 332 : struct ELD res;
; 333 :
; 334 : if( exponent < 0 ) {
test edx, edx
jns SHORT $LN5@TB_create
; 335 : exponent = -exponent;
neg ebx
; 336 : tabExp = tab_minus_exp;
lea rbp, OFFSET FLAT:tab_minus_exp
; 337 : } el... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/tbyte.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/tbyte.asm | 281 | 340 |
Terraspace/UASM:x64/Release/tbyte.asm:9 | test bl, 1
je SHORT $LN7@TB_create
; 343 : multiply(&res, tabExp + i, &res);
movsxd rdx, edi
lea r8, QWORD PTR res$[rsp]
shl rdx, 4
lea rcx, QWORD PTR res$[rsp]
add rdx, rbp
call multiply
$LN7@TB_create:
; 344 : }
; 345 : exponent >>= 1;
sar ebx, 1
; 346 : if( expone... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/tbyte.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/tbyte.asm | 321 | 380 |
Terraspace/UASM:x64/Release/tbyte.asm:10 | mov rdi, QWORD PTR [rsp+80]
mov rbp, QWORD PTR [rsp+72]
mov rbx, QWORD PTR [rsp+64]
shl rcx, 32 ; 00000020H
add rax, rcx
mov WORD PTR [rsi+8], dx
; 353 : /* round result */
; 354 : if( res.m32[0] & 0x80000000U ) {
test DWORD PTR res$[rsp], -2147483648 ; 80000000H
mov QWORD PTR [rsi], rax
je SHOR... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/tbyte.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/tbyte.asm | 361 | 420 |
Terraspace/UASM:x64/Release/tbyte.asm:11 | add rsp, 48 ; 00000030H
pop rsi
ret 0
$LN11@TB_create:
; 358 : } else {
; 359 : ld->m++;
inc rax
mov QWORD PTR [rsi], rax
$LN19@TB_create:
; 360 : }
; 361 : }
; 362 : return( 0 );
xor eax, eax
; 363 : }
add rsp, 48 ; 00000030H
pop rsi
ret 0
TB_create ENDP
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/tbyte.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/tbyte.asm | 401 | 460 |
Terraspace/UASM:x64/Release/tbyte.asm:12 | mov QWORD PTR [rsp+32], rbx
mov QWORD PTR [rsp+24], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 64 ; 00000040H
; 284 : uint_64 x1;
; 285 : union u192 r1;
; 286 : int_32 exp;
; 287 :
; 288 : exp = (int_32)(op1->e & 0x7fff) + (int_32)(op2->e & 0x7fff) - EX... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/tbyte.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/tbyte.asm | 441 | 500 |
Terraspace/UASM:x64/Release/tbyte.asm:13 | imul rdi, rbp
imul rbx, rsi
mov QWORD PTR r1$[rsp], rax
and r9d, 32767 ; 00007fffH
mov r11d, DWORD PTR r1$[rsp+4]
add r8d, r9d
mov DWORD PTR exp$1$[rsp], r8d
mov eax, r12d
mov r8d, DWORD PTR [rcx+8]
imul rax, r14
mov QWORD PTR cy$3$[rsp], r8
mov QWORD PTR r1$[rsp+8], rax
mov eax, r13d
imul rax, r8
mov ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/tbyte.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/tbyte.asm | 481 | 540 |
Terraspace/UASM:x64/Release/tbyte.asm:14 | mov eax, r8d
mov r10, r9
; 295 : add192( &r1, x1, 1 );
mov r8d, r11d
shr r10, 32 ; 00000020H
add r10, rax
mov rax, r10
shr rax, 32 ; 00000020H
add r15d, eax
mov eax, ebx
add r8, rax
shr rbx, 32 ; 00000020H
mov DWORD PTR r1$[rsp+4], r8d
shr r8, 32 ; 00000020H
mov eax, edi
add r8, rax... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/tbyte.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/tbyte.asm | 521 | 580 |
Terraspace/UASM:x64/Release/tbyte.asm:15 | ; 299 : add192( &r1, x1, 2 );
; 300 : x1 = (uint_64)(op1->m32[1]) * (uint_64)(op2->m32[2]);
imul r13, r14
mov r8, rbx
mov r10d, ebx
mov rbx, QWORD PTR cy$3$[rsp]
shr r8, 32 ; 00000020H
add r8, rax
mov eax, edx
mov r9, r8
shr r9, 32 ; 00000020H
add r9, rax
mov rax, r9
shr rax, 32 ; 000... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/tbyte.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Release/tbyte.asm | 561 | 620 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.