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/Debug/simsegm.asm:6 | $unwind$SetSimSeg DD 021001H
DD 0110110H
$unwind$EndSimSeg DD 010801H
DD 04208H
$unwind$SimplifiedSegDir DD 021001H
DD 0190110H
xdata ENDS
; Function compile flags: /Odtp
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\simsegm.c
_TEXT SEGMENT
type$ = 48
init$ = 52
name$ = 56
tv164 = 64
opndx$ = 80
i$ = 208
tokenarray$ ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 201 | 260 |
Terraspace/UASM:x64/Debug/simsegm.asm:7 | lea rcx, OFFSET FLAT:$SG11022
call DoDebugMsg1
; 183 :
; 184 : LstWrite( LSTTYPE_DIRECTIVE, 0, NULL );
xor r8d, r8d
xor edx, edx
mov ecx, 4
call LstWrite
; 185 :
; 186 : if( ModuleInfo.model == MODEL_NONE ) {
cmp DWORD PTR ModuleInfo+360, 0
jne SHORT $LN4@Simplified
; 187 : EmitError( M... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 241 | 300 |
Terraspace/UASM:x64/Debug/simsegm.asm:8 | mov DWORD PTR type$[rsp], eax
; 193 : i++; /* get past the directive token */
mov eax, DWORD PTR i$[rsp]
inc eax
mov DWORD PTR i$[rsp], eax
; 194 :
; 195 : if( type == SIM_STACK ) {
cmp DWORD PTR type$[rsp], 1
jne SHORT $LN5@Simplified
; 196 : if ( EvalOperand( &i, tokenarray, Token_Count,... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 281 | 340 |
Terraspace/UASM:x64/Debug/simsegm.asm:9 | $LN8@Simplified:
; 200 : else if( opndx.kind != EXPR_CONST ) {
cmp DWORD PTR opndx$[rsp+60], 0
je SHORT $LN10@Simplified
; 201 : EmitError( CONSTANT_EXPECTED );
mov ecx, 65 ; 00000041H
call EmitError
; 202 : return( ERROR );
mov eax, -1
jmp $LN1@Simplified
$LN10@Simpli... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 321 | 380 |
Terraspace/UASM:x64/Debug/simsegm.asm:10 | je SHORT $LN12@Simplified
cmp DWORD PTR type$[rsp], 5
je SHORT $LN12@Simplified
movzx eax, BYTE PTR Options+143
test eax, eax
jne SHORT $LN11@Simplified
cmp DWORD PTR type$[rsp], 2
je SHORT $LN13@Simplified
cmp DWORD PTR type$[rsp], 3
je SHORT $LN13@Simplified
cmp DWORD PTR type$[rsp], 6
jne SHORT $LN11@Simp... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 361 | 420 |
Terraspace/UASM:x64/Debug/simsegm.asm:11 | mov rcx, QWORD PTR tokenarray$[rsp]
movzx eax, BYTE PTR [rcx+rax]
test eax, eax
je SHORT $LN14@Simplified
; 218 : EmitErr( SYNTAX_ERROR_EX, tokenarray[i].string_ptr );
movsxd rax, DWORD PTR i$[rsp]
imul rax, rax, 32 ; 00000020H
mov rcx, QWORD PTR tokenarray$[rsp]
mov rdx, QWORD PTR [rcx+rax+8]
mov... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 401 | 460 |
Terraspace/UASM:x64/Debug/simsegm.asm:12 | movzx eax, BYTE PTR ModuleInfo+420
mov ecx, DWORD PTR type$[rsp]
mov edx, 1
shl edx, cl
mov ecx, edx
and eax, ecx
mov BYTE PTR init$[rsp], al
$LN16@Simplified:
; 227 :
; 228 : switch( type ) {
mov eax, DWORD PTR type$[rsp]
mov DWORD PTR tv164[rsp], eax
cmp DWORD PTR tv164[rsp], 6
ja $LN31@Simplified
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 441 | 500 |
Terraspace/UASM:x64/Debug/simsegm.asm:13 | je SHORT $LN20@Simplified
; 235 : AddToDgroup( SIM_CODE, name );
mov rdx, QWORD PTR name$[rsp]
xor ecx, ecx
call AddToDgroup
$LN20@Simplified:
; 236 : name = szDgroup;
lea rax, OFFSET FLAT:szDgroup
mov QWORD PTR name$[rsp], rax
jmp SHORT $LN19@Simplified
$LN18@Simplified:
; 237 ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 481 | 540 |
Terraspace/UASM:x64/Debug/simsegm.asm:14 | lea rcx, OFFSET FLAT:SegmNames
mov rax, QWORD PTR [rcx+rax]
mov QWORD PTR name$[rsp], rax
$LN23@Simplified:
$LN22@Simplified:
$LN19@Simplified:
; 242 : }
; 243 : AddLineQueueX( "%r %r:%s", T_ASSUME, T_CS, name );
mov r9, QWORD PTR name$[rsp]
mov r8d, 26
mov edx, 444 ; 000001bcH
lea rcx, OFF... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 521 | 580 |
Terraspace/UASM:x64/Debug/simsegm.asm:15 | ; 254 : EndSimSeg( SIM_STACK );
mov ecx, 1
call EndSimSeg
; 255 : /* add stack to dgroup for some segmented models */
; 256 : if ( !init )
movsx eax, BYTE PTR init$[rsp]
test eax, eax
jne SHORT $LN25@Simplified
; 257 : if ( ModuleInfo.distance != STACK_FAR )
cmp DWORD ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 561 | 620 |
Terraspace/UASM:x64/Debug/simsegm.asm:16 | mov r8d, 26
mov edx, 444 ; 000001bcH
lea rcx, OFFSET FLAT:$SG11050
call AddLineQueueX
; 265 : if ( name || (!init) )
cmp QWORD PTR name$[rsp], 0
jne SHORT $LN29@Simplified
movsx eax, BYTE PTR init$[rsp]
test eax, eax
jne SHORT $LN28@Simplified
$LN29@Simplified:
; 266 : AddToDgroup( t... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 601 | 660 |
Terraspace/UASM:x64/Debug/simsegm.asm:17 | call AddLineQueueX
; 272 : break;
jmp SHORT $LN2@Simplified
$LN31@Simplified:
; 273 : default: /* shouldn't happen */
; 274 : /**/myassert( 0 );
mov edx, 274 ; 00000112H
lea rcx, OFFSET FLAT:$SG11056
call InternalError
$LN2@Simplified:
; 275 : break;
; 276 : }
; 277 :
;... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 641 | 700 |
Terraspace/UASM:x64/Debug/simsegm.asm:18 | 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: /Odtp
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\simsegm.c
_TEXT SEGMENT
segm$ = 48
EndSimSeg PROC
; 165 : {
mov DWORD PTR [rsp+8]... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 681 | 740 |
Terraspace/UASM:x64/Debug/simsegm.asm:19 | sym$ = 72
pAlign$ = 80
pFmt$ = 88
pUse$ = 96
pAlignSt$ = 104
pClass$ = 112
segm$ = 144
name$ = 152
SetSimSeg PROC
; 97 : {
mov QWORD PTR [rsp+16], rdx
mov DWORD PTR [rsp+8], ecx
sub rsp, 136 ; 00000088H
; 98 : char *pAlign = "WORD";
lea rax, OFFSET FLAT:$SG10970
mov QWORD PTR pAlign$[rsp], rax
; 99... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 721 | 780 |
Terraspace/UASM:x64/Debug/simsegm.asm:20 | ; 106 : if ( ModuleInfo.model == MODEL_FLAT )
cmp DWORD PTR ModuleInfo+360, 7
jne SHORT $LN3@SetSimSeg
; 107 : pUse = "FLAT";
lea rax, OFFSET FLAT:$SG10976
mov QWORD PTR pUse$[rsp], rax
jmp SHORT $LN4@SetSimSeg
$LN3@SetSimSeg:
; 108 : else
; 109 : pUse = "USE32";
l... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 761 | 820 |
Terraspace/UASM:x64/Debug/simsegm.asm:21 | ; 114 : pAlignSt = pAlign;
mov rax, QWORD PTR pAlign$[rsp]
mov QWORD PTR pAlignSt$[rsp], rax
$LN2@SetSimSeg:
; 115 : }
; 116 :
; 117 : if ( segm == SIM_CODE )
cmp DWORD PTR segm$[rsp], 0
jne SHORT $LN7@SetSimSeg
; 118 : pClass = GetCodeClass();
call GetCodeClass
mov QWORD PTR pCl... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 801 | 860 |
Terraspace/UASM:x64/Debug/simsegm.asm:22 | ; 123 : pAlign = pAlignSt;
mov rax, QWORD PTR pAlignSt$[rsp]
mov QWORD PTR pAlign$[rsp], rax
$LN9@SetSimSeg:
; 124 :
; 125 : pFmt = "%s %r %s %s %s '%s'";
lea rax, OFFSET FLAT:$SG10986
mov QWORD PTR pFmt$[rsp], rax
; 126 : if ( name == NULL ) {
cmp QWORD PTR name$[rsp], 0
jne $LN11@SetSim... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 841 | 900 |
Terraspace/UASM:x64/Debug/simsegm.asm:23 | jmp $LN14@SetSimSeg
$LN13@SetSimSeg:
; 130 : else {
; 131 : ModuleInfo.simseg_init |= ( 1 << segm );
mov eax, DWORD PTR segm$[rsp]
mov ecx, 1
mov DWORD PTR tv192[rsp], ecx
movzx ecx, al
mov eax, DWORD PTR tv192[rsp]
shl eax, cl
movzx ecx, BYTE PTR ModuleInfo+420
or ecx, eax
mov eax, ecx... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 881 | 940 |
Terraspace/UASM:x64/Debug/simsegm.asm:24 | cmp DWORD PTR [rax+40], 3
jne SHORT $LN16@SetSimSeg
mov rax, QWORD PTR sym$[rsp]
movzx eax, BYTE PTR [rax+48]
shr al, 1
and al, 1
movzx eax, al
cmp eax, 1
jne SHORT $LN16@SetSimSeg
; 142 : ModuleInfo.simseg_defd |= ( 1 << segm );
mov eax, DWORD PTR segm$[rsp]
mov ecx, 1
mov DWORD PTR t... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 921 | 980 |
Terraspace/UASM:x64/Debug/simsegm.asm:25 | mov QWORD PTR pFmt$[rsp], rax
$LN17@SetSimSeg:
$LN14@SetSimSeg:
; 146 : }
; 147 : } else {
jmp SHORT $LN12@SetSimSeg
$LN11@SetSimSeg:
; 148 : sym = SymSearch( name );
mov rcx, QWORD PTR name$[rsp]
call SymFind
mov QWORD PTR sym$[rsp], rax
; 149 : /* v2.04: testing for state SYM_... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 961 | 1,020 |
Terraspace/UASM:x64/Debug/simsegm.asm:26 | lea rax, OFFSET FLAT:$SG10997
mov QWORD PTR pFmt$[rsp], rax
$LN18@SetSimSeg:
$LN12@SetSimSeg:
; 158 : }
; 159 : AddLineQueueX( pFmt, name, T_SEGMENT, pAlign, pUse, SegmCombine[segm], pClass );
movsxd rax, DWORD PTR segm$[rsp]
lea rcx, OFFSET FLAT:SegmCombine
mov rdx, QWORD PTR pClass$[rsp]
mov QWORD PT... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 1,001 | 1,060 |
Terraspace/UASM:x64/Debug/simsegm.asm:27 | cmp QWORD PTR ModuleInfo+432, 0
je SHORT $LN2@close_curr
; 86 : DebugMsg1(("close_currseg: current seg=%s\n", CurrSeg->sym.name));
mov rax, QWORD PTR ModuleInfo+432
mov rdx, QWORD PTR [rax+8]
lea rcx, OFFSET FLAT:$SG10955
call DoDebugMsg1
; 87 : AddLineQueueX( "%s %r", CurrSeg->sym.name, T_E... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 1,041 | 1,100 |
Terraspace/UASM:x64/Debug/simsegm.asm:28 | ; 64 : if( ModuleInfo.model == MODEL_FLAT
; 65 : #if COFF_SUPPORT
; 66 : || Options.output_format == OFORMAT_COFF
; 67 : #endif
; 68 : #if ELF_SUPPORT
; 69 : || Options.output_format == OFORMAT_ELF
cmp DWORD PTR ModuleInfo+360, 7
je SHORT $LN3@AddToDgrou
cmp DWORD PTR Options+160, 2
j... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 1,081 | 1,140 |
Terraspace/UASM:x64/Debug/simsegm.asm:29 | mov r8d, 443 ; 000001bbH
lea rdx, OFFSET FLAT:szDgroup
lea rcx, OFFSET FLAT:$SG10950
call AddLineQueueX
$LN1@AddToDgrou:
; 78 : }
add rsp, 40 ; 00000028H
ret 0
AddToDgroup ENDP
_TEXT ENDS
; Function compile flags: /Odtp
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\simsegm.c
_TEXT SEGMENT
tv190 = 32
tv83... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 1,121 | 1,180 |
Terraspace/UASM:x64/Debug/simsegm.asm:30 | imul rax, rax, 6
lea rcx, OFFSET FLAT:Options+32
cmp QWORD PTR [rcx+rax], 0
je SHORT $LN2@SetModelDe
; 297 : SegmNames[SIM_CODE] = LclAlloc( strlen( Options.names[OPTN_TEXT_SEG] ) + 1 );
mov eax, 8
imul rax, rax, 6
lea rcx, OFFSET FLAT:Options+32
mov rcx, QWORD PTR [rcx+rax]
call strlen
inc rax
mov... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 1,161 | 1,220 |
Terraspace/UASM:x64/Debug/simsegm.asm:31 | mov eax, DWORD PTR ModuleInfo+360
mov ecx, 1
mov DWORD PTR tv190[rsp], ecx
movzx ecx, al
mov eax, DWORD PTR tv190[rsp]
shl eax, cl
and eax, 112 ; 00000070H
test eax, eax
je $LN4@SetModelDe
; 301 : /* for some models, the code segment contains the module name */
; 302 : SegmNames[SI... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 1,201 | 1,260 |
Terraspace/UASM:x64/Debug/simsegm.asm:32 | ; 304 : strcat( SegmNames[SIM_CODE], SegmNamesDef[SIM_CODE] );
mov eax, 8
imul rax, rax, 0
lea rcx, OFFSET FLAT:SegmNamesDef
mov edx, 8
imul rdx, rdx, 0
mov QWORD PTR tv140[rsp], rdx
lea r8, OFFSET FLAT:SegmNames
mov rdx, QWORD PTR [rcx+rax]
mov rax, QWORD PTR tv140[rsp]
mov rcx, QWORD PTR [r8+r... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 1,241 | 1,300 |
Terraspace/UASM:x64/Debug/simsegm.asm:33 | lea rdx, OFFSET FLAT:SegmNames
mov QWORD PTR [rdx+rcx], rax
; 311 : strcpy( SegmNames[SIM_DATA], Options.names[OPTN_DATA_SEG] );
mov eax, 8
imul rax, rax, 7
lea rcx, OFFSET FLAT:Options+32
mov edx, 8
imul rdx, rdx, 2
mov QWORD PTR tv158[rsp], rdx
lea r8, OFFSET FLAT:SegmNames
mov rdx, QWORD PTR [rcx... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 1,281 | 1,340 |
Terraspace/UASM:x64/Debug/simsegm.asm:34 | je SHORT $LN2@ModelSimSe
; 364 : close_currseg();
call close_currseg
; 365 : RunLineQueue();
call RunLineQueue
$LN2@ModelSimSe:
; 366 : }
; 367 : }
add rsp, 40 ; 00000028H
ret 0
ModelSimSegmExit ENDP
_TEXT ENDS
; Function compile flags: /Odtp
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 1,321 | 1,380 |
Terraspace/UASM:x64/Debug/simsegm.asm:35 | ; 327 : /* v2.09: execute always, to make a proper listing if fastpass is off */
; 328 : //if ( Parse_Pass == PASS_1 ) {
; 329 : DebugMsg1(("ModelSimSegmInit() enter, pass one\n" ));
lea rcx, OFFSET FLAT:$SG11070
call DoDebugMsg1
; 330 : /* create default code segment (_TEXT) */
; 331 :... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 1,361 | 1,420 |
Terraspace/UASM:x64/Debug/simsegm.asm:36 | je SHORT $LN3@ModelSimSe
cmp DWORD PTR Options+160, 0
jne $LN2@ModelSimSe
$LN3@ModelSimSe:
; 340 : ( Options.output_format == OFORMAT_OMF
; 341 : #if BIN_SUPPORT
; 342 : || Options.output_format == OFORMAT_BIN
; 343 : #endif
; 344 : )) {
; 345 : strcpy( buffer, "%s... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 1,401 | 1,460 |
Terraspace/UASM:x64/Debug/simsegm.asm:37 | lea rcx, QWORD PTR buffer$[rsp]
call AddLineQueueX
; 349 : } else
jmp SHORT $LN5@ModelSimSe
$LN4@ModelSimSe:
; 350 : AddLineQueueX( buffer, szDgroup, T_GROUP, SegmNames[SIM_DATA] );
mov eax, 8
imul rax, rax, 2
lea rcx, OFFSET FLAT:SegmNames
mov r9, QWORD PTR [rcx+rax]
mov r8d, 4... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 1,441 | 1,500 |
Terraspace/UASM:x64/Debug/simsegm.asm:38 | _TEXT ENDS
; Function compile flags: /Odtp
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\simsegm.c
_TEXT SEGMENT
GetCodeClass PROC
; 51 : /* option -nc set? */
; 52 : if ( Options.names[OPTN_CODE_CLASS] )
mov eax, 8
imul rax, rax, 8
lea rcx, OFFSET FLAT:Options+32
cmp QWORD PTR [rcx+rax], 0
je SHORT $... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 1,481 | 1,540 |
Terraspace/UASM:x64/Debug/simsegm.asm:39 | _TEXT SEGMENT
segno$ = 8
SimGetSegName PROC
; 44 : {
mov DWORD PTR [rsp+8], ecx
; 45 : return( SegmNames[segno] );
movsxd rax, DWORD PTR segno$[rsp]
lea rcx, OFFSET FLAT:SegmNames
mov rax, QWORD PTR [rcx+rax*8]
; 46 : }
ret 0
SimGetSegName ENDP
_TEXT ENDS
END | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/simsegm.asm | 1,521 | 1,540 |
Terraspace/UASM:x64/Debug/simsegm.asm:23 | jmp $LN14@SetSimSeg
$LN13@SetSimSeg:
; 130 : else {
; 131 : ModuleInfo.simseg_init |= ( 1 << segm );
mov eax, DWORD PTR segm$[rsp]
mov ecx, 1
mov DWORD PTR tv192[rsp], ecx
movzx ecx, al
mov eax, DWORD PTR tv192[rsp]
shl eax, cl
movzx ecx, BYTE PTR ModuleInfo+420
or ecx, eax
mov eax, ecx... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Debug/simsegm.asm | 881 | 940 |
Terraspace/UASM:x64/Debug/simsegm.asm:24 | cmp DWORD PTR [rax+32], 3
jne SHORT $LN16@SetSimSeg
mov rax, QWORD PTR sym$[rsp]
movzx eax, BYTE PTR [rax+40]
shr al, 1
and al, 1
movzx eax, al
cmp eax, 1
jne SHORT $LN16@SetSimSeg
; 142 : ModuleInfo.simseg_defd |= ( 1 << segm );
mov eax, DWORD PTR segm$[rsp]
mov ecx, 1
mov DWORD PTR t... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Debug/simsegm.asm | 921 | 980 |
Terraspace/UASM:x64/Debug/simsegm.asm:25 | mov QWORD PTR pFmt$[rsp], rax
$LN17@SetSimSeg:
$LN14@SetSimSeg:
; 146 : }
; 147 : } else {
jmp SHORT $LN12@SetSimSeg
$LN11@SetSimSeg:
; 148 : sym = SymSearch( name );
mov rcx, QWORD PTR name$[rsp]
call SymFind
mov QWORD PTR sym$[rsp], rax
; 149 : /* v2.04: testing for state SYM_... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Debug/simsegm.asm | 961 | 1,020 |
Terraspace/UASM:x64/Debug/simsegm.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23026.0
include listing.inc
INCLUDELIB MSVCRTD
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM decoflags:BYTE
COMM broadflags:BYTE
COMM evex:BYTE
COMM ZEROLOCALS:BYTE
_DATA ENDS
_BSS SEGMENT
$SG10934 DB 01H DUP (?)
_BSS ENDS
_DATA SEGMENT
$SG10873 DB '_TE... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 1 | 60 |
Terraspace/UASM:x64/Debug/simsegm.asm:2 | ORG $+2
$SG10889 DB 'PUBLIC', 00H
ORG $+5
$SG10886 DB 'FAR_BSS', 00H
$SG10890 DB 'STACK', 00H
ORG $+2
$SG10891 DB 'PUBLIC', 00H
ORG $+1
$SG10892 DB 'PUBLIC', 00H
ORG $+1
$SG10893 DB 'PRIVATE', 00H
$SG10894 DB 'PRIVATE', 00H
$SG10895 DB 'PUBLIC', 00H
ORG $+1
$SG10912 DB '%s %r %s', 00H
ORG $+7
$SG10917 DB 'close_c... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 41 | 100 |
Terraspace/UASM:x64/Debug/simsegm.asm:3 | ORG $+6
$SG10984 DB 'SimplifiedSegDir(%s) enter', 0aH, 00H
$SG11004 DB 'FLAT', 00H
ORG $+7
$SG11006 DB '%r %r:%s', 00H
ORG $+7
$SG11008 DB 'ORG 0%xh', 00H
ORG $+7
$SG11012 DB '%r %r:ERROR', 00H
ORG $+4
$SG11016 DB '%r %r:ERROR', 00H
ORG $+4
$SG11018 DB 'simsegm.c', 00H
ORG $+6
$SG11019 DB 'SimplifiedSegDir exit',... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 81 | 140 |
Terraspace/UASM:x64/Debug/simsegm.asm:4 | DQ FLAT:$SG10890
DQ FLAT:$SG10891
DQ FLAT:$SG10892
DQ FLAT:$SG10893
DQ FLAT:$SG10894
DQ FLAT:$SG10895
CONST ENDS
PUBLIC SimGetSegName
PUBLIC GetCodeClass
PUBLIC ModelSimSegmInit
PUBLIC ModelSimSegmExit
PUBLIC SetModelDefaultSegNames
PUBLIC SimplifiedSegDir
EXTRN memcpy:PROC
EXTRN strcat:PROC
EXTRN strcpy:PROC
EXTR... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 121 | 180 |
Terraspace/UASM:x64/Debug/simsegm.asm:5 | _BSS SEGMENT
ALIGN 8
SegmNames DQ 07H DUP (?)
_BSS ENDS
pdata SEGMENT
$pdata$SimGetSegName DD imagerel $LN3
DD imagerel $LN3+23
DD imagerel $unwind$SimGetSegName
$pdata$GetCodeClass DD imagerel $LN4
DD imagerel $LN4+69
DD imagerel $unwind$GetCodeClass
$pdata$ModelSimSegmInit DD imagerel $LN7
DD imagerel $LN7+348... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 161 | 220 |
Terraspace/UASM:x64/Debug/simsegm.asm:6 | rtc$TMZ ENDS
; COMDAT rtc$IMZ
rtc$IMZ SEGMENT
_RTC_InitBase.rtc$IMZ DQ FLAT:_RTC_InitBase
rtc$IMZ ENDS
CONST SEGMENT
ModelSimSegmInit$rtcName$0 DB 062H
DB 075H
DB 066H
DB 066H
DB 065H
DB 072H
DB 00H
ORG $+1
ModelSimSegmInit$rtcVarDesc DD 038H
DD 014H
DQ FLAT:ModelSimSegmInit$rtcName$0
ORG $+48
ModelSimSegmIni... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 201 | 260 |
Terraspace/UASM:x64/Debug/simsegm.asm:7 | DQ FLAT:SimplifiedSegDir$rtcVarDesc
CONST ENDS
xdata SEGMENT
$unwind$SimGetSegName DD 010501H
DD 07005H
$unwind$GetCodeClass DD 010201H
DD 07002H
$unwind$ModelSimSegmInit DD 022e19H
DD 07005d209H
DD imagerel __GSHandlerCheck
DD 060H
$unwind$ModelSimSegmExit DD 021501H
DD 070023206H
$unwind$SetModelDefaultSegNames... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 241 | 300 |
Terraspace/UASM:x64/Debug/simsegm.asm:8 | ; 176 : {
$LN37:
mov QWORD PTR [rsp+16], rdx
mov DWORD PTR [rsp+8], ecx
push rdi
sub rsp, 208 ; 000000d0H
mov rdi, rsp
mov ecx, 52 ; 00000034H
mov eax, -858993460 ; ccccccccH
rep stosd
mov ecx, DWORD PTR [rsp+224]
mov BYTE PTR $T6[rsp], 0
mov BYTE PTR $T5[rsp], 0
; 177 : const char *name =... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 281 | 340 |
Terraspace/UASM:x64/Debug/simsegm.asm:9 | ; 185 :
; 186 : if( ModuleInfo.model == MODEL_NONE ) {
cmp DWORD PTR ModuleInfo+360, 0
jne SHORT $LN4@Simplified
; 187 : EmitError( MODEL_IS_NOT_DECLARED );
mov ecx, 96 ; 00000060H
call EmitError
; 188 : return( ERROR );
mov eax, -1
jmp $LN1@Simplified
$LN4@Simplified:
; 189 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 321 | 380 |
Terraspace/UASM:x64/Debug/simsegm.asm:10 | cmp DWORD PTR type$[rsp], 1
jne SHORT $LN5@Simplified
; 196 : if ( EvalOperand( &i, tokenarray, Token_Count, &opndx, 0 ) == ERROR )
mov BYTE PTR $T5[rsp], 1
mov BYTE PTR [rsp+32], 0
lea r9, QWORD PTR opndx$[rsp]
mov r8d, DWORD PTR ModuleInfo+496
mov rdx, QWORD PTR tokenarray$[rsp]
lea rcx, QWORD PTR i... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 361 | 420 |
Terraspace/UASM:x64/Debug/simsegm.asm:11 | mov ecx, 65 ; 00000041H
call EmitError
; 202 : return( ERROR );
mov eax, -1
jmp $LN1@Simplified
$LN10@Simplified:
$LN9@Simplified:
; 203 : }
; 204 : } else {
jmp $LN6@Simplified
$LN5@Simplified:
; 205 : /* Masm accepts a name argument for .CODE and .FARDATA[?] only.
; 20... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 401 | 460 |
Terraspace/UASM:x64/Debug/simsegm.asm:12 | cmp DWORD PTR type$[rsp], 3
je SHORT $LN13@Simplified
cmp DWORD PTR type$[rsp], 6
jne SHORT $LN11@Simplified
$LN13@Simplified:
$LN12@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/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 441 | 500 |
Terraspace/UASM:x64/Debug/simsegm.asm:13 | imul rax, rax, 32 ; 00000020H
mov rcx, QWORD PTR tokenarray$[rsp]
mov rdx, QWORD PTR [rcx+rax+8]
mov ecx, 209 ; 000000d1H
call EmitErr
; 219 : return( ERROR );
mov eax, -1
jmp $LN1@Simplified
$LN14@Simplified:
; 220 : }
; 221 :
; 222 : if( type != SIM_STACK )
cmp DWORD PTR type$[rsp... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 481 | 540 |
Terraspace/UASM:x64/Debug/simsegm.asm:14 | $LN16@Simplified:
; 227 :
; 228 : switch( type ) {
mov eax, DWORD PTR type$[rsp]
mov DWORD PTR tv164[rsp], eax
cmp DWORD PTR tv164[rsp], 6
ja $LN31@Simplified
movsxd rax, DWORD PTR tv164[rsp]
lea rcx, OFFSET FLAT:__ImageBase
mov eax, DWORD PTR $LN36@Simplified[rcx+rax*4]
add rax, rcx
jmp rax
$LN17@Simp... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 521 | 580 |
Terraspace/UASM:x64/Debug/simsegm.asm:15 | $LN20@Simplified:
; 236 : name = szDgroup;
lea rax, OFFSET FLAT:szDgroup
mov QWORD PTR name$[rsp], rax
jmp SHORT $LN19@Simplified
$LN18@Simplified:
; 237 : } else if( ModuleInfo.model == MODEL_FLAT ) {
cmp DWORD PTR ModuleInfo+360, 7
jne SHORT $LN21@Simplified
; 238 : name =... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 561 | 620 |
Terraspace/UASM:x64/Debug/simsegm.asm:16 | ; 242 : }
; 243 : AddLineQueueX( "%r %r:%s", T_ASSUME, T_CS, name );
mov r9, QWORD PTR name$[rsp]
mov r8d, 26
mov edx, 439 ; 000001b7H
lea rcx, OFFSET FLAT:$SG11006
call AddLineQueueX
; 244 : break;
jmp $LN2@Simplified
$LN24@Simplified:
; 245 : case SIM_STACK: /* .stack */
;... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 601 | 660 |
Terraspace/UASM:x64/Debug/simsegm.asm:17 | mov ecx, 1
call EndSimSeg
; 255 : /* add stack to dgroup for some segmented models */
; 256 : if ( !init )
cmp BYTE PTR $T6[rsp], 0
jne SHORT $LN34@Simplified
lea rcx, OFFSET FLAT:SimplifiedSegDir$rtcName$1
call _RTC_UninitUse
$LN34@Simplified:
movsx eax, BYTE PTR init$[rsp]
test eax, eax
jn... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 641 | 700 |
Terraspace/UASM:x64/Debug/simsegm.asm:18 | call SetSimSeg
; 264 : AddLineQueueX( "%r %r:ERROR", T_ASSUME, T_CS );
mov r8d, 26
mov edx, 439 ; 000001b7H
lea rcx, OFFSET FLAT:$SG11012
call AddLineQueueX
; 265 : if ( name || (!init) )
cmp QWORD PTR name$[rsp], 0
jne SHORT $LN29@Simplified
cmp BYTE PTR $T6[rsp], 0
jne SHORT $LN35@Sim... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 681 | 740 |
Terraspace/UASM:x64/Debug/simsegm.asm:19 | mov ecx, DWORD PTR type$[rsp]
call SetSimSeg
; 271 : AddLineQueueX( "%r %r:ERROR", T_ASSUME, T_CS );
mov r8d, 26
mov edx, 439 ; 000001b7H
lea rcx, OFFSET FLAT:$SG11016
call AddLineQueueX
; 272 : break;
jmp SHORT $LN2@Simplified
$LN31@Simplified:
; 273 : default: /* shouldn't happen ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 721 | 780 |
Terraspace/UASM:x64/Debug/simsegm.asm:20 | ; 282 : }
mov rdi, rax
mov rcx, rsp
lea rdx, OFFSET FLAT:SimplifiedSegDir$rtcFrameData
call _RTC_CheckStackVars
mov rax, rdi
add rsp, 208 ; 000000d0H
pop rdi
ret 0
$LN36@Simplified:
DD $LN17@Simplified
DD $LN24@Simplified
DD $LN27@Simplified
DD $LN27@Simplified
DD $LN30@Simplified
DD $LN30@Simplified... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 761 | 820 |
Terraspace/UASM:x64/Debug/simsegm.asm:21 | movsxd rax, DWORD PTR segm$[rsp]
lea rcx, OFFSET FLAT:SegmNames
mov r8d, 437 ; 000001b5H
mov rdx, QWORD PTR [rcx+rax*8]
lea rcx, OFFSET FLAT:$SG10964
call AddLineQueueX
; 167 : return;
; 168 : }
add rsp, 32 ; 00000020H
pop rdi
ret 0
EndSimSeg ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 801 | 860 |
Terraspace/UASM:x64/Debug/simsegm.asm:22 | mov ecx, DWORD PTR [rsp+144]
; 98 : char *pAlign = "WORD";
lea rax, OFFSET FLAT:$SG10932
mov QWORD PTR pAlign$[rsp], rax
; 99 : char *pAlignSt = "PARA";
lea rax, OFFSET FLAT:$SG10933
mov QWORD PTR pAlignSt$[rsp], rax
; 100 : char *pUse = "";
lea rax, OFFSET FLAT:$SG10934
mov QWORD PTR pUse$... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 841 | 900 |
Terraspace/UASM:x64/Debug/simsegm.asm:23 | ; 109 : pUse = "USE32";
lea rax, OFFSET FLAT:$SG10939
mov QWORD PTR pUse$[rsp], rax
$LN4@SetSimSeg:
; 110 : if (( ModuleInfo.curr_cpu & P_CPU_MASK ) <= P_386 )
mov eax, DWORD PTR ModuleInfo+392
and eax, 240 ; 000000f0H
cmp eax, 48 ; 00000030H
jg SHORT $LN5@SetSimSeg
; 111 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 881 | 940 |
Terraspace/UASM:x64/Debug/simsegm.asm:24 | ; 118 : pClass = GetCodeClass();
call GetCodeClass
mov QWORD PTR pClass$[rsp], rax
jmp SHORT $LN8@SetSimSeg
$LN7@SetSimSeg:
; 119 : else
; 120 : pClass = SegmClass[segm];
movsxd rax, DWORD PTR segm$[rsp]
lea rcx, OFFSET FLAT:SegmClass
mov rax, QWORD PTR [rcx+rax*8]
mov QWORD PTR pClass$... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 921 | 980 |
Terraspace/UASM:x64/Debug/simsegm.asm:25 | cmp QWORD PTR name$[rsp], 0
jne $LN11@SetSimSeg
; 127 : name = SegmNames[segm];
movsxd rax, DWORD PTR segm$[rsp]
lea rcx, OFFSET FLAT:SegmNames
mov rax, QWORD PTR [rcx+rax*8]
mov QWORD PTR name$[rsp], rax
; 128 : if ( ModuleInfo.simseg_init & ( 1 << segm ) )
movzx eax, BYTE PTR ModuleInfo+42... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 961 | 1,020 |
Terraspace/UASM:x64/Debug/simsegm.asm:26 | mov eax, ecx
mov BYTE PTR ModuleInfo+420, al
; 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 differently: the attributes
; 135 : * of the si... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 1,001 | 1,060 |
Terraspace/UASM:x64/Debug/simsegm.asm:27 | mov DWORD PTR tv200[rsp], ecx
movzx ecx, al
mov eax, DWORD PTR tv200[rsp]
shl eax, cl
movzx ecx, BYTE PTR ModuleInfo+421
or ecx, eax
mov eax, ecx
mov BYTE PTR ModuleInfo+421, al
$LN16@SetSimSeg:
$LN15@SetSimSeg:
; 143 : }
; 144 : if ( ModuleInfo.simseg_defd & ( 1 << segm ) )
movzx ea... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 1,041 | 1,100 |
Terraspace/UASM:x64/Debug/simsegm.asm:28 | mov QWORD PTR sym$[rsp], rax
; 149 : /* v2.04: testing for state SYM_SEG isn't enough. The segment
; 150 : * might have been "defined" by a GROUP directive. Additional
; 151 : * check for segment's lname index is needed.
; 152 : * v2.12: check 'isdefined' member instead of 'lname... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 1,081 | 1,140 |
Terraspace/UASM:x64/Debug/simsegm.asm:29 | mov rax, QWORD PTR pUse$[rsp]
mov QWORD PTR [rsp+32], rax
mov r9, QWORD PTR pAlign$[rsp]
mov r8d, 436 ; 000001b4H
mov rdx, QWORD PTR name$[rsp]
mov rcx, QWORD PTR pFmt$[rsp]
call AddLineQueueX
; 160 : return;
; 161 : }
add rsp, 128 ; 00000080H
pop rdi
ret 0
SetSimSeg ENDP
_TEXT ENDS
; Function co... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 1,121 | 1,180 |
Terraspace/UASM:x64/Debug/simsegm.asm:30 | call DoDebugMsg1
; 87 : AddLineQueueX( "%s %r", CurrSeg->sym.name, T_ENDS );
mov r8d, 437 ; 000001b5H
mov rax, QWORD PTR ModuleInfo+432
mov rdx, QWORD PTR [rax+8]
lea rcx, OFFSET FLAT:$SG10918
call AddLineQueueX
$LN2@close_curr:
; 88 : }
; 89 : }
add rsp, 32 ; 00000020H
pop rdi
ret ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 1,161 | 1,220 |
Terraspace/UASM:x64/Debug/simsegm.asm:31 | ; 65 : #if COFF_SUPPORT
; 66 : || Options.output_format == OFORMAT_COFF
; 67 : #endif
; 68 : #if ELF_SUPPORT
; 69 : || Options.output_format == OFORMAT_ELF
cmp DWORD PTR ModuleInfo+360, 7
je SHORT $LN3@AddToDgrou
cmp DWORD PTR Options+160, 2
je SHORT $LN3@AddToDgrou
cmp DWORD PTR Options+1... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 1,201 | 1,260 |
Terraspace/UASM:x64/Debug/simsegm.asm:32 | lea rdx, OFFSET FLAT:szDgroup
lea rcx, OFFSET FLAT:$SG10912
call AddLineQueueX
$LN1@AddToDgrou:
; 78 : }
add rsp, 32 ; 00000020H
pop rdi
ret 0
AddToDgroup ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\simsegm.c
_TEXT SEGMENT
tv83 = 32
tv190 = 40
tv91 = ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 1,241 | 1,300 |
Terraspace/UASM:x64/Debug/simsegm.asm:33 | ; 294 :
; 295 : /* option -nt set? */
; 296 : if( Options.names[OPTN_TEXT_SEG] ) {
mov eax, 8
imul rax, rax, 6
lea rcx, OFFSET FLAT:Options+32
cmp QWORD PTR [rcx+rax], 0
je SHORT $LN2@SetModelDe
; 297 : SegmNames[SIM_CODE] = LclAlloc( strlen( Options.names[OPTN_TEXT_SEG] ) + 1 );
mov eax, 8... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 1,281 | 1,340 |
Terraspace/UASM:x64/Debug/simsegm.asm:34 | jmp $LN3@SetModelDe
$LN2@SetModelDe:
; 300 : if ( SIZE_CODEPTR & ( 1 << ModuleInfo.model ) ) {
mov eax, DWORD PTR ModuleInfo+360
mov ecx, 1
mov DWORD PTR tv190[rsp], ecx
movzx ecx, al
mov eax, DWORD PTR tv190[rsp]
shl eax, cl
and eax, 112 ; 00000070H
test eax, eax
je $LN4@SetModelDe
; 301 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 1,321 | 1,380 |
Terraspace/UASM:x64/Debug/simsegm.asm:35 | lea rcx, OFFSET FLAT:SegmNames
lea rdx, OFFSET FLAT:ModuleInfo+512
mov rcx, QWORD PTR [rcx+rax]
call strcpy
; 304 : strcat( SegmNames[SIM_CODE], SegmNamesDef[SIM_CODE] );
mov eax, 8
imul rax, rax, 0
lea rcx, OFFSET FLAT:SegmNamesDef
mov edx, 8
imul rdx, rdx, 0
mov QWORD PTR tv140[rsp], rdx
lea ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 1,361 | 1,420 |
Terraspace/UASM:x64/Debug/simsegm.asm:36 | inc rax
mov rcx, rax
call LclAlloc
mov ecx, 8
imul rcx, rcx, 2
lea rdx, OFFSET FLAT:SegmNames
mov QWORD PTR [rdx+rcx], rax
; 311 : strcpy( SegmNames[SIM_DATA], Options.names[OPTN_DATA_SEG] );
mov eax, 8
imul rax, rax, 7
lea rcx, OFFSET FLAT:Options+32
mov edx, 8
imul rdx, rdx, 2
mov QWORD PTR tv1... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 1,401 | 1,460 |
Terraspace/UASM:x64/Debug/simsegm.asm:37 | push rdi
sub rsp, 32 ; 00000020H
mov rdi, rsp
mov ecx, 8
mov eax, -858993460 ; ccccccccH
rep stosd
; 362 : /* a model is set. Close current segment if one is open. */
; 363 : if ( CurrSeg ) {
cmp QWORD PTR ModuleInfo+432, 0
je SHORT $LN2@ModelSimSe
; 364 : close_currseg();
call clo... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 1,441 | 1,500 |
Terraspace/UASM:x64/Debug/simsegm.asm:38 | $LN7:
mov DWORD PTR [rsp+8], ecx
push rdi
sub rsp, 112 ; 00000070H
mov rdi, rsp
mov ecx, 28
mov eax, -858993460 ; ccccccccH
rep stosd
mov ecx, DWORD PTR [rsp+128]
mov rax, QWORD PTR __security_cookie
xor rax, rsp
mov QWORD PTR __$ArrayPad$[rsp], rax
; 324 : char buffer[20];
; 325 :
; 326 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 1,481 | 1,540 |
Terraspace/UASM:x64/Debug/simsegm.asm:39 | ; 335 : SetSimSeg( SIM_DATA, NULL ) ;
xor edx, edx
mov ecx, 2
call SetSimSeg
; 336 : EndSimSeg( SIM_DATA );
mov ecx, 2
call EndSimSeg
; 337 :
; 338 : /* create DGROUP for BIN/OMF if model isn't FLAT */
; 339 : if( model != MODEL_FLAT &&
cmp DWORD PTR model$[rsp], 7
je $L... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 1,521 | 1,580 |
Terraspace/UASM:x64/Debug/simsegm.asm:40 | lea rdx, OFFSET FLAT:$SG11038
lea rcx, QWORD PTR buffer$[rsp]
call strcat
; 348 : AddLineQueueX( buffer, szDgroup, T_GROUP, SegmNames[SIM_CODE], SegmNames[SIM_DATA] );
mov eax, 8
imul rax, rax, 2
lea rcx, OFFSET FLAT:SegmNames
mov edx, 8
imul rdx, rdx, 0
lea r8, OFFSET FLAT:SegmNames
mov rax... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 1,561 | 1,620 |
Terraspace/UASM:x64/Debug/simsegm.asm:41 | ; 352 : DebugMsg1(("ModelSimSegmInit() exit\n" ));
lea rcx, OFFSET FLAT:$SG11039
call DoDebugMsg1
; 353 : //}
; 354 : return( NOT_ERROR );
xor eax, eax
; 355 : }
mov edi, eax
mov rcx, rsp
lea rdx, OFFSET FLAT:ModelSimSegmInit$rtcFrameData
call _RTC_CheckStackVars
mov eax, edi
mov rcx, ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 1,601 | 1,660 |
Terraspace/UASM:x64/Debug/simsegm.asm:42 | lea rcx, OFFSET FLAT:Options+32
cmp QWORD PTR [rcx+rax], 0
je SHORT $LN2@GetCodeCla
; 53 : return( Options.names[OPTN_CODE_CLASS] );
mov eax, 8
imul rax, rax, 8
lea rcx, OFFSET FLAT:Options+32
mov rax, QWORD PTR [rcx+rax]
jmp SHORT $LN1@GetCodeCla
$LN2@GetCodeCla:
; 54 :
; 55 : return( SegmC... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 1,641 | 1,693 |
Terraspace/UASM:x64/Debug/simsegm.asm:43 | ; 45 : return( SegmNames[segno] );
movsxd rax, DWORD PTR segno$[rsp]
lea rcx, OFFSET FLAT:SegmNames
mov rax, QWORD PTR [rcx+rax*8]
; 46 : }
pop rdi
ret 0
SimGetSegName ENDP
_TEXT ENDS
END | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/simsegm.asm | 1,681 | 1,693 |
Terraspace/UASM:x64/Debug/simsegm.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23026.0
include listing.inc
INCLUDELIB MSVCRTD
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM decoflags:BYTE
COMM broadflags:BYTE
COMM evex:BYTE
_DATA ENDS
_BSS SEGMENT
$SG10935 DB 01H DUP (?)
_BSS ENDS
_DATA SEGMENT
$SG10874 DB '_TEXT', 00H
ORG $+2
$SG... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/simsegm.asm | 1 | 60 |
Terraspace/UASM:x64/Debug/simsegm.asm:2 | $SG10890 DB 'PUBLIC', 00H
ORG $+5
$SG10887 DB 'FAR_BSS', 00H
$SG10891 DB 'STACK', 00H
ORG $+2
$SG10892 DB 'PUBLIC', 00H
ORG $+1
$SG10893 DB 'PUBLIC', 00H
ORG $+1
$SG10894 DB 'PRIVATE', 00H
$SG10895 DB 'PRIVATE', 00H
$SG10896 DB 'PUBLIC', 00H
ORG $+1
$SG10913 DB '%s %r %s', 00H
ORG $+7
$SG10918 DB 'close_currseg: ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/simsegm.asm | 41 | 100 |
Terraspace/UASM:x64/Debug/simsegm.asm:3 | $SG10985 DB 'SimplifiedSegDir(%s) enter', 0aH, 00H
$SG11005 DB 'FLAT', 00H
ORG $+7
$SG11007 DB '%r %r:%s', 00H
ORG $+7
$SG11009 DB 'ORG 0%xh', 00H
ORG $+7
$SG11013 DB '%r %r:ERROR', 00H
ORG $+4
$SG11017 DB '%r %r:ERROR', 00H
ORG $+4
$SG11019 DB 'simsegm.c', 00H
ORG $+6
$SG11020 DB 'SimplifiedSegDir exit', 0aH, 00... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/simsegm.asm | 81 | 140 |
Terraspace/UASM:x64/Debug/simsegm.asm:4 | DQ FLAT:$SG10892
DQ FLAT:$SG10893
DQ FLAT:$SG10894
DQ FLAT:$SG10895
DQ FLAT:$SG10896
CONST ENDS
PUBLIC SimGetSegName
PUBLIC GetCodeClass
PUBLIC ModelSimSegmInit
PUBLIC ModelSimSegmExit
PUBLIC SetModelDefaultSegNames
PUBLIC SimplifiedSegDir
EXTRN memcpy:PROC
EXTRN strcat:PROC
EXTRN strcpy:PROC
EXTRN strlen:PROC
EXTR... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/simsegm.asm | 121 | 180 |
Terraspace/UASM:x64/Debug/simsegm.asm:5 | ALIGN 8
SegmNames DQ 07H DUP (?)
_BSS ENDS
pdata SEGMENT
$pdata$SimGetSegName DD imagerel $LN3
DD imagerel $LN3+23
DD imagerel $unwind$SimGetSegName
$pdata$GetCodeClass DD imagerel $LN4
DD imagerel $LN4+69
DD imagerel $unwind$GetCodeClass
$pdata$ModelSimSegmInit DD imagerel $LN7
DD imagerel $LN7+348
DD imagerel ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/simsegm.asm | 161 | 220 |
Terraspace/UASM:x64/Debug/simsegm.asm:6 | ; COMDAT rtc$IMZ
rtc$IMZ SEGMENT
_RTC_InitBase.rtc$IMZ DQ FLAT:_RTC_InitBase
rtc$IMZ ENDS
CONST SEGMENT
ModelSimSegmInit$rtcName$0 DB 062H
DB 075H
DB 066H
DB 066H
DB 065H
DB 072H
DB 00H
ORG $+1
ModelSimSegmInit$rtcVarDesc DD 038H
DD 014H
DQ FLAT:ModelSimSegmInit$rtcName$0
ORG $+48
ModelSimSegmInit$rtcFrameDat... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/simsegm.asm | 201 | 260 |
Terraspace/UASM:x64/Debug/simsegm.asm:7 | CONST ENDS
xdata SEGMENT
$unwind$SimGetSegName DD 010501H
DD 07005H
$unwind$GetCodeClass DD 010201H
DD 07002H
$unwind$ModelSimSegmInit DD 022e19H
DD 07005d209H
DD imagerel __GSHandlerCheck
DD 060H
$unwind$ModelSimSegmExit DD 021501H
DD 070023206H
$unwind$SetModelDefaultSegNames DD 021501H
DD 070029206H
$unwind$A... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/simsegm.asm | 241 | 300 |
Terraspace/UASM:x64/Debug/simsegm.asm:8 | ; 176 : {
$LN37:
mov QWORD PTR [rsp+16], rdx
mov DWORD PTR [rsp+8], ecx
push rdi
sub rsp, 208 ; 000000d0H
mov rdi, rsp
mov ecx, 52 ; 00000034H
mov eax, -858993460 ; ccccccccH
rep stosd
mov ecx, DWORD PTR [rsp+224]
mov BYTE PTR $T6[rsp], 0
mov BYTE PTR $T5[rsp], 0
; 177 : const char *name =... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/simsegm.asm | 281 | 340 |
Terraspace/UASM:x64/Debug/simsegm.asm:9 | ; 185 :
; 186 : if( ModuleInfo.model == MODEL_NONE ) {
cmp DWORD PTR ModuleInfo+360, 0
jne SHORT $LN4@Simplified
; 187 : EmitError( MODEL_IS_NOT_DECLARED );
mov ecx, 96 ; 00000060H
call EmitError
; 188 : return( ERROR );
mov eax, -1
jmp $LN1@Simplified
$LN4@Simplified:
; 189 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/simsegm.asm | 321 | 380 |
Terraspace/UASM:x64/Debug/simsegm.asm:10 | cmp DWORD PTR type$[rsp], 1
jne SHORT $LN5@Simplified
; 196 : if ( EvalOperand( &i, tokenarray, Token_Count, &opndx, 0 ) == ERROR )
mov BYTE PTR $T5[rsp], 1
mov BYTE PTR [rsp+32], 0
lea r9, QWORD PTR opndx$[rsp]
mov r8d, DWORD PTR ModuleInfo+496
mov rdx, QWORD PTR tokenarray$[rsp]
lea rcx, QWORD PTR i... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/simsegm.asm | 361 | 420 |
Terraspace/UASM:x64/Debug/simsegm.asm:11 | mov ecx, 65 ; 00000041H
call EmitError
; 202 : return( ERROR );
mov eax, -1
jmp $LN1@Simplified
$LN10@Simplified:
$LN9@Simplified:
; 203 : }
; 204 : } else {
jmp $LN6@Simplified
$LN5@Simplified:
; 205 : /* Masm accepts a name argument for .CODE and .FARDATA[?] only.
; 20... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/simsegm.asm | 401 | 460 |
Terraspace/UASM:x64/Debug/simsegm.asm:12 | je SHORT $LN13@Simplified
cmp DWORD PTR type$[rsp], 6
jne SHORT $LN11@Simplified
$LN13@Simplified:
$LN12@Simplified:
; 210 : ( type == SIM_CODE || type == SIM_FARDATA || type == SIM_FARDATA_UN
; 211 : || ( Options.strict_masm_compat == FALSE &&
; 212 : ( type == SIM_DATA || ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/simsegm.asm | 441 | 500 |
Terraspace/UASM:x64/Debug/simsegm.asm:13 | mov rcx, QWORD PTR tokenarray$[rsp]
mov rdx, QWORD PTR [rcx+rax+8]
mov ecx, 209 ; 000000d1H
call EmitErr
; 219 : return( ERROR );
mov eax, -1
jmp $LN1@Simplified
$LN14@Simplified:
; 220 : }
; 221 :
; 222 : if( type != SIM_STACK )
cmp DWORD PTR type$[rsp], 1
je SHORT $LN15@Simplified
;... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/simsegm.asm | 481 | 540 |
Terraspace/UASM:x64/Debug/simsegm.asm:14 | ; 227 :
; 228 : switch( type ) {
mov eax, DWORD PTR type$[rsp]
mov DWORD PTR tv164[rsp], eax
cmp DWORD PTR tv164[rsp], 6
ja $LN31@Simplified
movsxd rax, DWORD PTR tv164[rsp]
lea rcx, OFFSET FLAT:__ImageBase
mov eax, DWORD PTR $LN36@Simplified[rcx+rax*4]
add rax, rcx
jmp rax
$LN17@Simplified:
; 229 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/simsegm.asm | 521 | 580 |
Terraspace/UASM:x64/Debug/simsegm.asm:15 | ; 236 : name = szDgroup;
lea rax, OFFSET FLAT:szDgroup
mov QWORD PTR name$[rsp], rax
jmp SHORT $LN19@Simplified
$LN18@Simplified:
; 237 : } else if( ModuleInfo.model == MODEL_FLAT ) {
cmp DWORD PTR ModuleInfo+360, 7
jne SHORT $LN21@Simplified
; 238 : name = "FLAT";
lea rax,... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/simsegm.asm | 561 | 620 |
Terraspace/UASM:x64/Debug/simsegm.asm:16 | ; 243 : AddLineQueueX( "%r %r:%s", T_ASSUME, T_CS, name );
mov r9, QWORD PTR name$[rsp]
mov r8d, 26
mov edx, 439 ; 000001b7H
lea rcx, OFFSET FLAT:$SG11007
call AddLineQueueX
; 244 : break;
jmp $LN2@Simplified
$LN24@Simplified:
; 245 : case SIM_STACK: /* .stack */
; 246 : /* ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/simsegm.asm | 601 | 660 |
Terraspace/UASM:x64/Debug/simsegm.asm:17 | call EndSimSeg
; 255 : /* add stack to dgroup for some segmented models */
; 256 : if ( !init )
cmp BYTE PTR $T6[rsp], 0
jne SHORT $LN34@Simplified
lea rcx, OFFSET FLAT:SimplifiedSegDir$rtcName$1
call _RTC_UninitUse
$LN34@Simplified:
movsx eax, BYTE PTR init$[rsp]
test eax, eax
jne SHORT $LN2... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/simsegm.asm | 641 | 700 |
Terraspace/UASM:x64/Debug/simsegm.asm:18 | ; 264 : AddLineQueueX( "%r %r:ERROR", T_ASSUME, T_CS );
mov r8d, 26
mov edx, 439 ; 000001b7H
lea rcx, OFFSET FLAT:$SG11013
call AddLineQueueX
; 265 : if ( name || (!init) )
cmp QWORD PTR name$[rsp], 0
jne SHORT $LN29@Simplified
cmp BYTE PTR $T6[rsp], 0
jne SHORT $LN35@Simplified
lea rcx... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/simsegm.asm | 681 | 740 |
Terraspace/UASM:x64/Debug/simsegm.asm:19 | call SetSimSeg
; 271 : AddLineQueueX( "%r %r:ERROR", T_ASSUME, T_CS );
mov r8d, 26
mov edx, 439 ; 000001b7H
lea rcx, OFFSET FLAT:$SG11017
call AddLineQueueX
; 272 : break;
jmp SHORT $LN2@Simplified
$LN31@Simplified:
; 273 : default: /* shouldn't happen */
; 274 : /**/myasser... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/simsegm.asm | 721 | 780 |
Terraspace/UASM:x64/Debug/simsegm.asm:20 | ; 282 : }
mov rdi, rax
mov rcx, rsp
lea rdx, OFFSET FLAT:SimplifiedSegDir$rtcFrameData
call _RTC_CheckStackVars
mov rax, rdi
add rsp, 208 ; 000000d0H
pop rdi
ret 0
$LN36@Simplified:
DD $LN17@Simplified
DD $LN24@Simplified
DD $LN27@Simplified
DD $LN27@Simplified
DD $LN30@Simplified
DD $LN30@Simplified... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/simsegm.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/simsegm.asm | 761 | 820 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.