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/equate.asm:2 | EXTRN myatoi128:PROC
EXTRN ModuleInfo:BYTE
EXTRN Parse_Pass:DWORD
EXTRN SymTables:BYTE
EXTRN StoreState:BYTE
EXTRN __ImageBase:BYTE
pdata SEGMENT
$pdata$CreateConstant DD imagerel $LN47
DD imagerel $LN47+213
DD imagerel $unwind$CreateConstant
$pdata$0$CreateConstant DD imagerel $LN47+213
DD imagerel $LN47+593
DD im... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 41 | 100 |
Terraspace/UASM:x64/Release/equate.asm:3 | DD 017340dH
DD 014010dH
DD 07006H
xdata ENDS
xdata SEGMENT
$unwind$CreateConstant DD 091d01H
DD 067641dH
DD 066341dH
DD 060011dH
DD 0700cf00eH
DD 0500bH
$chain$0$CreateConstant DD 020821H
DD 065e408H
DD imagerel $LN47
DD imagerel $LN47+213
DD imagerel $unwind$CreateConstant
$chain$1$CreateConstant DD 021H
D... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 81 | 140 |
Terraspace/UASM:x64/Release/equate.asm:4 | ; 508 : {
$LN7:
sub rsp, 40 ; 00000028H
; 509 : struct asym *sym;
; 510 :
; 511 : if( tokenarray[0].token != T_ID ) {
cmp BYTE PTR [rdx], 8
je SHORT $LN2@EquDirecti
; 512 : return( EmitErr( SYNTAX_ERROR_EX, tokenarray[0].string_ptr ) );
mov rdx, QWORD PTR [rdx+8]
mov ecx, 209 ; 000... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 121 | 180 |
Terraspace/UASM:x64/Release/equate.asm:5 | je SHORT $LN4@EquDirecti
; 518 : LstWrite( LSTTYPE_EQUATE, 0, sym );
xor edx, edx
mov r8, rax
lea ecx, QWORD PTR [rdx+2]
call LstWrite
$LN4@EquDirecti:
; 519 : }
; 520 : return( NOT_ERROR );
xor eax, eax
; 523 : }
add rsp, 40 ; 00000028H
ret 0
$LN3@EquDirecti:
; 521 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 161 | 220 |
Terraspace/UASM:x64/Release/equate.asm:6 | $LN7:
sub rsp, 40 ; 00000028H
; 259 : struct asym *sym;
; 260 :
; 261 : if( tokenarray[0].token != T_ID ) {
cmp BYTE PTR [rdx], 8
je SHORT $LN2@EqualSgnDi
; 262 : return( EmitErr( SYNTAX_ERROR_EX, tokenarray[0].string_ptr ) );
mov rdx, QWORD PTR [rdx+8]
mov ecx, 209 ; 000000d1H
; 27... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 201 | 260 |
Terraspace/UASM:x64/Release/equate.asm:7 | xor edx, edx
mov r8, rax
lea ecx, QWORD PTR [rdx+2]
call LstWrite
$LN4@EqualSgnDi:
; 267 : }
; 268 : return( NOT_ERROR );
xor eax, eax
; 271 : }
add rsp, 40 ; 00000028H
ret 0
$LN3@EqualSgnDi:
; 269 : }
; 270 : return( ERROR );
or eax, -1
; 271 : }
add rsp, 40 ; 0000... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 241 | 300 |
Terraspace/UASM:x64/Release/equate.asm:8 | push rdi
sub rsp, 160 ; 000000a0H
; 129 : struct asym *sym;
; 130 : const char *name = tokenarray[0].string_ptr;
; 131 : int i = 2;
; 132 : struct expr opnd;
; 133 :
; 134 : DebugMsg1(( "CreateAssemblyTimeVariable(%s) enter\n", name ));
; 135 :
; ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 281 | 340 |
Terraspace/UASM:x64/Release/equate.asm:9 | ; 156 : * E1 = E1 or 1
; 157 : * must NOT create E1.
; 158 : */
; 159 : if ( EvalOperand( &i, tokenarray, Token_Count, &opnd, 0 ) == ERROR )
mov r8d, DWORD PTR ModuleInfo+496
lea r9, QWORD PTR opnd$[rsp]
mov rdx, rcx
mov BYTE PTR [rsp+32], 0
lea rcx, QWORD PTR i$[rsp]
call ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 321 | 380 |
Terraspace/UASM:x64/Release/equate.asm:10 | ; 164 : }
; 165 :
; 166 : /* expression may be a constant or a relocatable item.
; 167 : * v2.09: kind may be EXPR_CONST and still include an undefined symbol.
; 168 : * This is caused by MakeConst() in expreval.c. Brackets changed so
; 169 : * opnd.sym is also checked f... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 361 | 420 |
Terraspace/UASM:x64/Release/equate.asm:11 | ; 180 : #if FASTPASS
; 181 : if ( StoreState == FALSE ) FStoreLine(0); /* make sure this line is evaluated in pass two */
cmp BYTE PTR StoreState, 0
jne $LN33@CreateAsse
cmp DWORD PTR Parse_Pass, 0
jne $LN33@CreateAsse
mov rcx, QWORD PTR ModuleInfo+464
xor r8d, r8d
xor edx, edx
call StoreLine... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 401 | 460 |
Terraspace/UASM:x64/Release/equate.asm:12 | ; 186 : }
; 187 :
; 188 : /* v2.08: accept any result that fits in 64-bits from expression evaluator */
; 189 : if ( opnd.hlvalue != 0 ) {
mov rax, QWORD PTR opnd$[rsp+8]
test rax, rax
jne SHORT $LN5@CreateAsse
; 190 : EmitConstError( &opnd );
; 191 : return( N... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 441 | 500 |
Terraspace/UASM:x64/Release/equate.asm:13 | cmp rcx, QWORD PTR maxintvalues[rdx+rax*8]
jle SHORT $LN17@CreateAsse
$LN5@CreateAsse:
; 150 : opnd.value64 > maxintvalues[ModuleInfo.Ofssize] ) {
; 151 : EmitConstError( &opnd );
lea rcx, QWORD PTR opnd$[rsp]
call EmitConstError
$LN33@CreateAsse:
; 152 : return( NULL );
x... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 481 | 540 |
Terraspace/UASM:x64/Release/equate.asm:14 | ; 209 : #endif
; 210 : //} else if ( sym->state == SYM_EXTERNAL && sym->weak == TRUE && sym->mem_type == MT_ABS ) {
; 211 : } else if ( sym->state == SYM_EXTERNAL && sym->weak == TRUE && sym->mem_type == MT_EMPTY ) {
cmp eax, 2
jne SHORT $LN23@CreateAsse
test BYTE PTR [rbx+47], 8
je SHORT $LN23@CreateAs... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 521 | 580 |
Terraspace/UASM:x64/Release/equate.asm:15 | ; 224 : #if FASTPASS
; 225 : /* v2.04a regression in v2.04. Do not save the variable when it
; 226 : * is defined the first time
; 227 : * v2.10: store state only when variable is changed and has been
; 228 : * defined BEFORE SaveState() has been called.
; 229 : */
; 23... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 561 | 620 |
Terraspace/UASM:x64/Release/equate.asm:16 | ; 202 : } else {
; 203 : sym_remove_table( &SymTables[TAB_UNDEF], (struct dsym *)sym );
mov rdx, rbx
lea rcx, OFFSET FLAT:SymTables
call sym_remove_table
; 204 : sym->fwdref = TRUE;
or BYTE PTR [rbx+41], 32 ; 00000020H
jmp SHORT $LN22@CreateAsse
$LN32@CreateAsse:
; 200 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 601 | 660 |
Terraspace/UASM:x64/Release/equate.asm:17 | ; 237 : #ifdef DEBUG_OUT
; 238 : if ( Parse_Pass > PASS_1 ) {
; 239 : if ( opnd.kind == EXPR_CONST && sym->uvalue != opnd.uvalue )
; 240 : DebugMsg1(( "CreateAssemblyTimeVariable(%s): kind=%u, value changed ( %d -> %d )\n", name, opnd.kind, sym->uvalue, opnd.uvalue ) );
; 241 : else... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 641 | 700 |
Terraspace/UASM:x64/Release/equate.asm:18 | mov rbx, QWORD PTR [rsp+184]
add rsp, 160 ; 000000a0H
pop rdi
ret 0
CreateAssemblyTimeVariable ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\equate.c
; COMDAT SetValue
_TEXT SEGMENT
sym$ = 8
opndx$ = 16
SetValue PROC ; COMDAT
; 59 :
; 60 : sym->isequat... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 681 | 740 |
Terraspace/UASM:x64/Release/equate.asm:19 | mov DWORD PTR [rcx+16], eax
; 68 : sym->value3264 = opndx->hvalue;
mov eax, DWORD PTR [rdx+4]
; 69 : sym->segment = NULL;
; 70 : sym->isproc = FALSE;
and BYTE PTR [rcx+41], 247 ; 000000f7H
mov DWORD PTR [rcx+56], eax
mov QWORD PTR [rcx+24], 0
; 116 : }
; 117 : #endif
;... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 721 | 780 |
Terraspace/UASM:x64/Release/equate.asm:20 | mov rax, QWORD PTR [rdx+80]
mov rcx, QWORD PTR [rax+96]
mov QWORD PTR [r8+96], rcx
$LN4@SetValue:
; 77 : }
; 78 : sym->mem_type = opndx->mem_type;
mov eax, DWORD PTR [rdx+64]
mov DWORD PTR [r8+36], eax
; 79 : /* v2.01: allow equates of variables with arbitrary type.
; 80 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 761 | 820 |
Terraspace/UASM:x64/Release/equate.asm:21 | ; 92 : /* labels are supposed to be added to the current segment's label_list chain.
; 93 : * this isn't done for alias equates, for various reasons.
; 94 : * consequently, if the alias was forward referenced, ensure that a third pass
; 95 : * will be done! regression test for... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 801 | 860 |
Terraspace/UASM:x64/Release/equate.asm:22 | ; 120 : }
ret 0
$LN6@SetValue:
; 105 : }
; 106 : } else {
; 107 : if( Parse_Pass != PASS_1 && sym->offset != ( opndx->sym->offset + opndx->value ) ) {
cmp DWORD PTR Parse_Pass, 0
je SHORT $LN9@SetValue
mov rax, QWORD PTR [rdx+80]
mov ecx, DWORD PTR [rax+16]
add ecx, DWORD PT... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 841 | 900 |
Terraspace/UASM:x64/Release/equate.asm:23 | ; 117 : #endif
; 118 : }
; 119 : return;
; 120 : }
ret 0
SetValue ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\equate.c
_TEXT SEGMENT
name$ = 48
value$ = 56
CreateVariable PROC
; 280 : {
$LN10:
mov QWORD PTR [rsp+8], rbx
mov QWORD PTR [rsp+16], rsi
pu... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 881 | 940 |
Terraspace/UASM:x64/Release/equate.asm:24 | mov rcx, rdi
call SymCreate
mov rbx, rax
; 288 : #if FASTPASS
; 289 : //sym->issaved = FALSE;
; 290 : sym->issaved = StoreState; /* v2.10 */
movzx eax, BYTE PTR StoreState
shl al, 4
xor al, BYTE PTR [rbx+41]
and al, 16
xor BYTE PTR [rbx+41], al
jmp SHORT $LN7@CreateVari
$LN2@CreateVari:
; ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 921 | 980 |
Terraspace/UASM:x64/Release/equate.asm:25 | xor BYTE PTR [rbx+41], cl
; 297 : #endif
; 298 : } else {
jmp SHORT $LN7@CreateVari
$LN4@CreateVari:
; 299 : if ( sym->isequate == FALSE ) {
test BYTE PTR [rax+40], 16
jne SHORT $LN6@CreateVari
; 300 : EmitErr( SYMBOL_REDEFINITION, name );
mov rdx, rdi
mov ecx, 143 ; 0000008fH
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 961 | 1,020 |
Terraspace/UASM:x64/Release/equate.asm:26 | ; 310 : if ( StoreState && sym->issaved == FALSE ) {
cmp BYTE PTR StoreState, 0
je SHORT $LN7@CreateVari
test BYTE PTR [rax+41], 16
jne SHORT $LN7@CreateVari
; 311 : SaveVariableState( sym );
mov rcx, rax
call SaveVariableState
$LN7@CreateVari:
; 312 : }
; 313 : #endif
; 314 :... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 1,001 | 1,060 |
Terraspace/UASM:x64/Release/equate.asm:27 | ; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\equate.c
_TEXT SEGMENT
opnd$ = 48
argbuffer$ = 160
i$ = 800
tokenarray$ = 800
CreateConstant PROC
; 339 : {
$LN47:
mov QWORD PTR [rsp+24], rbx
mov QWORD PTR [rsp+32], rsi
push rbp
push rdi
push r15
lea rbp, QWORD PTR [rsp-512]
sub r... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 1,041 | 1,100 |
Terraspace/UASM:x64/Release/equate.asm:28 | call SymFind
; 352 :
; 353 : /* if a literal follows, the equate MUST be(come) a text macro */
; 354 : if ( tokenarray[2].token == T_STRING && tokenarray[2].string_delim == '<' )
cmp BYTE PTR [rdi+64], 9
mov rbx, rax
jne SHORT $LN2@CreateCons
cmp BYTE PTR [rdi+65], 60 ; 0000003cH
jne SHORT $LN2@Crea... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 1,081 | 1,140 |
Terraspace/UASM:x64/Release/equate.asm:29 | ; 359 : ( sym->state == SYM_EXTERNAL && sym->weak == TRUE && sym->isproc == FALSE ) ) {
; 360 : /* It's a "new" equate.
; 361 : * wait with definition until type of equate is clear
; 362 : */
; 363 : } else if( sym->state == SYM_TMACRO ) {
cmp eax, 10
jne SHORT $LN6@CreateCo... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 1,121 | 1,180 |
Terraspace/UASM:x64/Release/equate.asm:31 | jne SHORT $LN17@CreateCons
; 406 : /* if the expression cannot be evaluated to a numeric value,
; 407 : * it's to become a text macro. The value of this macro will be
; 408 : * the original (unexpanded!) line - that's why it has to be
; 409 : * saved here to argbu... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 1,201 | 1,260 |
Terraspace/UASM:x64/Release/equate.asm:32 | cmove rcx, r14
cmp BYTE PTR [rdi+64], 10
mov r14, rcx
jne SHORT $LN17@CreateCons
cmp r8d, 3
jne SHORT $LN17@CreateCons
$do_single_number$48:
; 384 : do_single_number:
; 385 : /* value is a plain number. it will be accepted only if it fits into 32-bits.
; 386 : * Else a text macro is create... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 1,241 | 1,300 |
Terraspace/UASM:x64/Release/equate.asm:33 | ; 430 : if ( opnd.quoted_string && opnd.kind == EXPR_CONST ) {
cmp QWORD PTR opnd$[rsp+16], 0
mov edx, DWORD PTR opnd$[rsp+60]
je SHORT $LN18@CreateCons
test edx, edx
jne SHORT $LN18@CreateCons
; 431 : i--; /* v2.09: added; regression in v2.08 and v2.08a */
mov ecx, DWORD PTR i$[rbp-256]
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 1,281 | 1,340 |
Terraspace/UASM:x64/Release/equate.asm:34 | mov r8, QWORD PTR opnd$[rsp]
cmp r8, QWORD PTR minintvalues[r11+rax*8]
jl SHORT $LN13@CreateCons
cmp r8, QWORD PTR maxintvalues[r11+rax*8]
jg SHORT $LN13@CreateCons
; 396 : opnd.value64 <= maxintvalues[ModuleInfo.Ofssize] ) {
; 397 : rc = NOT_ERROR;
; 398 : DebugMsg1(( "Creat... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 1,321 | 1,380 |
Terraspace/UASM:x64/Release/equate.asm:35 | ; 445 : if ( rc != ERROR &&
; 446 : tokenarray[i].token == T_FINAL &&
; 447 : ( ( opnd.kind == EXPR_CONST && opnd.hlvalue == 0 ) || /* magnitude <= 64 bits? */
; 448 : ( opnd.kind == EXPR_ADDR && opnd.indirect == FALSE &&
; 449 : opnd.sym != NULL &&
; 450 : //opnd.... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 1,361 | 1,420 |
Terraspace/UASM:x64/Release/equate.asm:36 | lea r11, QWORD PTR [rsp+768]
mov rbx, QWORD PTR [r11+48]
mov rsi, QWORD PTR [r11+56]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret 0
$LN21@CreateCons:
; 432 : goto check_single_number;
; 433 : }
; 434 :
; 435 : /* check here if last token has been reached? */
; 436 : }
; 437 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 1,401 | 1,460 |
Terraspace/UASM:x64/Release/equate.asm:37 | $LN20@CreateCons:
cmp r10d, -2
jne SHORT $LN19@CreateCons
; 452 : ( opnd.instr == EMPTY ) ) {
; 453 :
; 454 : if ( !sym ) {
test rbx, rbx
jne SHORT $LN22@CreateCons
; 455 : sym = SymCreate( name );
mov rcx, rsi
call SymCreate
mov rbx, rax
; 456 : sym->asmpass = P... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 1,441 | 1,500 |
Terraspace/UASM:x64/Release/equate.asm:38 | lea rdx, QWORD PTR opnd$[rsp]
mov rcx, rbx
call SetValue
; 491 : DebugMsg1(("CreateConstant(%s): memtype=%Xh value=%" I64_SPEC "X isproc=%u variable=%u type=%s\n",
; 492 : name, sym->mem_type, (uint_64)sym->value + ( (uint_64)sym->value3264 << 32), sym->isproc, sym->variable, sym->type ? sym->t... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 1,481 | 1,540 |
Terraspace/UASM:x64/Release/equate.asm:39 | jmp SHORT $LN34@CreateCons
$LN26@CreateCons:
; 462 : } else if ( cmpvalue ) {
test r15b, r15b
je SHORT $LN34@CreateCons
; 463 : if ( opnd.kind == EXPR_CONST ) {
test edx, edx
jne SHORT $LN29@CreateCons
; 464 : /* for 64bit, it may be necessary to check 64bit value! */
; 4... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 1,521 | 1,580 |
Terraspace/UASM:x64/Release/equate.asm:40 | add ecx, DWORD PTR opnd$[rsp]
cmp DWORD PTR [rbx+16], ecx
jne SHORT $LN35@CreateCons
mov rax, QWORD PTR [r8+24]
cmp QWORD PTR [rbx+24], rax
$LN45@CreateCons:
je SHORT $LN34@CreateCons
$LN35@CreateCons:
; 474 : DebugMsg(("CreateConstant(%s), ADDR value changed: old=%X, new ofs+val=%X+%X\n", na... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | d832b9ab6afa8277173106bf0906038b8ee7956f | github | assembler | https://github.com/Terraspace/UASM/blob/d832b9ab6afa8277173106bf0906038b8ee7956f/x64/Release/equate.asm | 1,561 | 1,583 |
Terraspace/UASM:x64/Release/equate.asm:9 | ; 156 : * E1 = E1 or 1
; 157 : * must NOT create E1.
; 158 : */
; 159 : if ( EvalOperand( &i, tokenarray, Token_Count, &opnd, 0 ) == ERROR )
mov r8d, DWORD PTR ModuleInfo+496
lea r9, QWORD PTR opnd$[rsp]
mov rdx, rcx
mov BYTE PTR [rsp+32], 0
lea rcx, QWORD PTR i$[rsp]
call ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/equate.asm | 321 | 380 |
Terraspace/UASM:x64/Release/equate.asm:10 | ; 164 : }
; 165 :
; 166 : /* expression may be a constant or a relocatable item.
; 167 : * v2.09: kind may be EXPR_CONST and still include an undefined symbol.
; 168 : * This is caused by MakeConst() in expreval.c. Brackets changed so
; 169 : * opnd.sym is also checked f... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/equate.asm | 361 | 420 |
Terraspace/UASM:x64/Release/equate.asm:20 | mov rax, QWORD PTR [rdx+80]
mov rcx, QWORD PTR [rax+96]
mov QWORD PTR [r8+96], rcx
$LN4@SetValue:
; 77 : }
; 78 : sym->mem_type = opndx->mem_type;
mov eax, DWORD PTR [rdx+64]
mov DWORD PTR [r8+36], eax
; 79 : /* v2.01: allow equates of variables with arbitrary type.
; 80 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/equate.asm | 761 | 820 |
Terraspace/UASM:x64/Release/equate.asm:33 | ; 430 : if ( opnd.quoted_string && opnd.kind == EXPR_CONST ) {
cmp QWORD PTR opnd$[rsp+16], 0
mov edx, DWORD PTR opnd$[rsp+60]
je SHORT $LN18@CreateCons
test edx, edx
jne SHORT $LN18@CreateCons
; 431 : i--; /* v2.09: added; regression in v2.08 and v2.08a */
mov ecx, DWORD PTR i$[rbp-256]
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/equate.asm | 1,281 | 1,340 |
Terraspace/UASM:x64/Release/equate.asm:36 | lea r11, QWORD PTR [rsp+768]
mov rbx, QWORD PTR [r11+48]
mov rsi, QWORD PTR [r11+56]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret 0
$LN21@CreateCons:
; 432 : goto check_single_number;
; 433 : }
; 434 :
; 435 : /* check here if last token has been reached? */
; 436 : }
; 437 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | dbae18e5556c63dc8a3c3f50e8c9624a792aeda2 | github | assembler | https://github.com/Terraspace/UASM/blob/dbae18e5556c63dc8a3c3f50e8c9624a792aeda2/x64/Release/equate.asm | 1,401 | 1,460 |
Terraspace/UASM:x64/Release/equate.asm:3 | DD 017340dH
DD 014010dH
DD 07006H
xdata ENDS
xdata SEGMENT
$unwind$CreateConstant DD 091d01H
DD 067641dH
DD 066341dH
DD 060011dH
DD 0700cf00eH
DD 0500bH
$chain$0$CreateConstant DD 020821H
DD 065e408H
DD imagerel $LN47
DD imagerel $LN47+213
DD imagerel $unwind$CreateConstant
$chain$1$CreateConstant DD 021H
D... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/equate.asm | 81 | 140 |
Terraspace/UASM:x64/Release/equate.asm:4 | ; 508 : {
$LN7:
sub rsp, 40 ; 00000028H
; 509 : struct asym *sym;
; 510 :
; 511 : if( tokenarray[0].token != T_ID ) {
cmp BYTE PTR [rdx], 8
je SHORT $LN2@EquDirecti
; 512 : return( EmitErr( SYNTAX_ERROR_EX, tokenarray[0].string_ptr ) );
mov rdx, QWORD PTR [rdx+8]
mov ecx, 210 ; 000... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/equate.asm | 121 | 180 |
Terraspace/UASM:x64/Release/equate.asm:5 | je SHORT $LN4@EquDirecti
; 518 : LstWrite( LSTTYPE_EQUATE, 0, sym );
xor edx, edx
mov r8, rax
lea ecx, QWORD PTR [rdx+2]
call LstWrite
$LN4@EquDirecti:
; 519 : }
; 520 : return( NOT_ERROR );
xor eax, eax
; 523 : }
add rsp, 40 ; 00000028H
ret 0
$LN3@EquDirecti:
; 521 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/equate.asm | 161 | 220 |
Terraspace/UASM:x64/Release/equate.asm:6 | $LN7:
sub rsp, 40 ; 00000028H
; 259 : struct asym *sym;
; 260 :
; 261 : if( tokenarray[0].token != T_ID ) {
cmp BYTE PTR [rdx], 8
je SHORT $LN2@EqualSgnDi
; 262 : return( EmitErr( SYNTAX_ERROR_EX, tokenarray[0].string_ptr ) );
mov rdx, QWORD PTR [rdx+8]
mov ecx, 210 ; 000000d2H
; 27... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/equate.asm | 201 | 260 |
Terraspace/UASM:x64/Release/equate.asm:9 | ; 156 : * E1 = E1 or 1
; 157 : * must NOT create E1.
; 158 : */
; 159 : if ( EvalOperand( &i, tokenarray, Token_Count, &opnd, 0 ) == ERROR )
mov r8d, DWORD PTR ModuleInfo+496
lea r9, QWORD PTR opnd$[rsp]
mov rdx, rcx
mov BYTE PTR [rsp+32], 0
lea rcx, QWORD PTR i$[rsp]
call ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/equate.asm | 321 | 380 |
Terraspace/UASM:x64/Release/equate.asm:11 | ; 180 : #if FASTPASS
; 181 : if ( StoreState == FALSE ) FStoreLine(0); /* make sure this line is evaluated in pass two */
cmp BYTE PTR StoreState, 0
jne $LN33@CreateAsse
cmp DWORD PTR Parse_Pass, 0
jne $LN33@CreateAsse
mov rcx, QWORD PTR ModuleInfo+464
xor r8d, r8d
xor edx, edx
call StoreLine... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/equate.asm | 401 | 460 |
Terraspace/UASM:x64/Release/equate.asm:15 | ; 224 : #if FASTPASS
; 225 : /* v2.04a regression in v2.04. Do not save the variable when it
; 226 : * is defined the first time
; 227 : * v2.10: store state only when variable is changed and has been
; 228 : * defined BEFORE SaveState() has been called.
; 229 : */
; 23... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/equate.asm | 561 | 620 |
Terraspace/UASM:x64/Release/equate.asm:24 | mov rcx, rdi
call SymCreate
mov rbx, rax
; 288 : #if FASTPASS
; 289 : //sym->issaved = FALSE;
; 290 : sym->issaved = StoreState; /* v2.10 */
movzx eax, BYTE PTR StoreState
shl al, 4
xor al, BYTE PTR [rbx+41]
and al, 16
xor BYTE PTR [rbx+41], al
jmp SHORT $LN7@CreateVari
$LN2@CreateVari:
; ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/equate.asm | 921 | 980 |
Terraspace/UASM:x64/Release/equate.asm:25 | xor BYTE PTR [rbx+41], cl
; 297 : #endif
; 298 : } else {
jmp SHORT $LN7@CreateVari
$LN4@CreateVari:
; 299 : if ( sym->isequate == FALSE ) {
test BYTE PTR [rax+40], 16
jne SHORT $LN6@CreateVari
; 300 : EmitErr( SYMBOL_REDEFINITION, name );
mov rdx, rdi
mov ecx, 144 ; 00000090H
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/equate.asm | 961 | 1,020 |
Terraspace/UASM:x64/Release/equate.asm:29 | ; 359 : ( sym->state == SYM_EXTERNAL && sym->weak == TRUE && sym->isproc == FALSE ) ) {
; 360 : /* It's a "new" equate.
; 361 : * wait with definition until type of equate is clear
; 362 : */
; 363 : } else if( sym->state == SYM_TMACRO ) {
cmp eax, 10
jne SHORT $LN6@CreateCo... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/equate.asm | 1,121 | 1,180 |
Terraspace/UASM:x64/Release/equate.asm:39 | jmp SHORT $LN34@CreateCons
$LN26@CreateCons:
; 462 : } else if ( cmpvalue ) {
test r15b, r15b
je SHORT $LN34@CreateCons
; 463 : if ( opnd.kind == EXPR_CONST ) {
test edx, edx
jne SHORT $LN29@CreateCons
; 464 : /* for 64bit, it may be necessary to check 64bit value! */
; 4... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/equate.asm | 1,521 | 1,580 |
Terraspace/UASM:x64/Release/equate.asm:40 | add ecx, DWORD PTR opnd$[rsp]
cmp DWORD PTR [rbx+16], ecx
jne SHORT $LN35@CreateCons
mov rax, QWORD PTR [r8+24]
cmp QWORD PTR [rbx+24], rax
$LN45@CreateCons:
je SHORT $LN34@CreateCons
$LN35@CreateCons:
; 474 : DebugMsg(("CreateConstant(%s), ADDR value changed: old=%X, new ofs+val=%X+%X\n", na... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Release/equate.asm | 1,561 | 1,583 |
Terraspace/UASM:x64/Release/equate.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23026.0
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
PUBLIC maxintvalues
PUBLIC minintvalues
_DATA SEGMENT
COMM decoflags:BYTE
COMM broadflags:BYTE
_DATA ENDS
CONST SEGMENT
maxintvalues DQ 00000000ffffffffH
DQ 00000000ffffffffH
DQ ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 1 | 60 |
Terraspace/UASM:x64/Release/equate.asm:2 | EXTRN ModuleInfo:BYTE
EXTRN Parse_Pass:DWORD
EXTRN SymTables:BYTE
EXTRN StoreState:BYTE
EXTRN __ImageBase:BYTE
pdata SEGMENT
$pdata$CreateConstant DD imagerel $LN47
DD imagerel $LN47+213
DD imagerel $unwind$CreateConstant
$pdata$0$CreateConstant DD imagerel $LN47+213
DD imagerel $LN47+593
DD imagerel $chain$0$Creat... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 41 | 100 |
Terraspace/UASM:x64/Release/equate.asm:3 | DD 014010dH
DD 07006H
xdata ENDS
xdata SEGMENT
$unwind$CreateConstant DD 091d01H
DD 067641dH
DD 066341dH
DD 060011dH
DD 0700cf00eH
DD 0500bH
$chain$0$CreateConstant DD 020821H
DD 065e408H
DD imagerel $LN47
DD imagerel $LN47+213
DD imagerel $unwind$CreateConstant
$chain$1$CreateConstant DD 021H
DD imagerel $L... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 81 | 140 |
Terraspace/UASM:x64/Release/equate.asm:5 | ; 518 : LstWrite( LSTTYPE_EQUATE, 0, sym );
xor edx, edx
mov r8, rax
lea ecx, QWORD PTR [rdx+2]
call LstWrite
$LN4@EquDirecti:
; 519 : }
; 520 : return( NOT_ERROR );
xor eax, eax
; 523 : }
add rsp, 40 ; 00000028H
ret 0
$LN3@EquDirecti:
; 521 : }
; 522 : return(... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 161 | 220 |
Terraspace/UASM:x64/Release/equate.asm:6 | $LN7:
sub rsp, 40 ; 00000028H
; 259 : struct asym *sym;
; 260 :
; 261 : if( tokenarray[0].token != T_ID ) {
cmp BYTE PTR [rdx], 8
je SHORT $LN2@EqualSgnDi
; 262 : return( EmitErr( SYNTAX_ERROR_EX, tokenarray[0].string_ptr ) );
mov rdx, QWORD PTR [rdx+8]
mov ecx, 209 ; 000000d1H
; 27... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 201 | 260 |
Terraspace/UASM:x64/Release/equate.asm:7 | mov r8, rax
lea ecx, QWORD PTR [rdx+2]
call LstWrite
$LN4@EqualSgnDi:
; 267 : }
; 268 : return( NOT_ERROR );
xor eax, eax
; 271 : }
add rsp, 40 ; 00000028H
ret 0
$LN3@EqualSgnDi:
; 269 : }
; 270 : return( ERROR );
or eax, -1
; 271 : }
add rsp, 40 ; 00000028H
ret 0
E... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 241 | 300 |
Terraspace/UASM:x64/Release/equate.asm:8 | sub rsp, 160 ; 000000a0H
; 129 : struct asym *sym;
; 130 : const char *name = tokenarray[0].string_ptr;
; 131 : int i = 2;
; 132 : struct expr opnd;
; 133 :
; 134 : DebugMsg1(( "CreateAssemblyTimeVariable(%s) enter\n", name ));
; 135 :
; 136 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 281 | 340 |
Terraspace/UASM:x64/Release/equate.asm:9 | ; 157 : * must NOT create E1.
; 158 : */
; 159 : if ( EvalOperand( &i, tokenarray, Token_Count, &opnd, 0 ) == ERROR )
mov r8d, DWORD PTR ModuleInfo+496
lea r9, QWORD PTR opnd$[rsp]
mov rdx, rcx
mov BYTE PTR [rsp+32], 0
lea rcx, QWORD PTR i$[rsp]
call EvalOperand
cmp eax, -1
je $LN3... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 321 | 380 |
Terraspace/UASM:x64/Release/equate.asm:10 | ; 165 :
; 166 : /* expression may be a constant or a relocatable item.
; 167 : * v2.09: kind may be EXPR_CONST and still include an undefined symbol.
; 168 : * This is caused by MakeConst() in expreval.c. Brackets changed so
; 169 : * opnd.sym is also checked for opnd.kind == EXP... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 361 | 420 |
Terraspace/UASM:x64/Release/equate.asm:11 | ; 180 : #if FASTPASS
; 181 : if ( StoreState == FALSE ) FStoreLine(0); /* make sure this line is evaluated in pass two */
cmp BYTE PTR StoreState, 0
jne $LN33@CreateAsse
cmp DWORD PTR Parse_Pass, 0
jne $LN33@CreateAsse
mov rcx, QWORD PTR ModuleInfo+464
xor r8d, r8d
xor edx, edx
call StoreLine... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 401 | 460 |
Terraspace/UASM:x64/Release/equate.asm:12 | ; 186 : }
; 187 :
; 188 : /* v2.08: accept any result that fits in 64-bits from expression evaluator */
; 189 : if ( opnd.hlvalue != 0 ) {
mov rax, QWORD PTR opnd$[rsp+8]
test rax, rax
jne SHORT $LN5@CreateAsse
; 190 : EmitConstError( &opnd );
; 191 : return( N... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 441 | 500 |
Terraspace/UASM:x64/Release/equate.asm:13 | jle SHORT $LN17@CreateAsse
$LN5@CreateAsse:
; 150 : opnd.value64 > maxintvalues[ModuleInfo.Ofssize] ) {
; 151 : EmitConstError( &opnd );
lea rcx, QWORD PTR opnd$[rsp]
call EmitConstError
$LN33@CreateAsse:
; 152 : return( NULL );
xor eax, eax
; 252 : }
mov rbx, QWORD PTR... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 481 | 540 |
Terraspace/UASM:x64/Release/equate.asm:14 | ; 210 : //} else if ( sym->state == SYM_EXTERNAL && sym->weak == TRUE && sym->mem_type == MT_ABS ) {
; 211 : } else if ( sym->state == SYM_EXTERNAL && sym->weak == TRUE && sym->mem_type == MT_EMPTY ) {
cmp eax, 2
jne SHORT $LN23@CreateAsse
test BYTE PTR [rbx+47], 8
je SHORT $LN23@CreateAsse
cmp DWORD PT... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 521 | 580 |
Terraspace/UASM:x64/Release/equate.asm:15 | ; 225 : /* v2.04a regression in v2.04. Do not save the variable when it
; 226 : * is defined the first time
; 227 : * v2.10: store state only when variable is changed and has been
; 228 : * defined BEFORE SaveState() has been called.
; 229 : */
; 230 : //if ( St... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 561 | 620 |
Terraspace/UASM:x64/Release/equate.asm:16 | ; 202 : } else {
; 203 : sym_remove_table( &SymTables[TAB_UNDEF], (struct dsym *)sym );
mov rdx, rbx
lea rcx, OFFSET FLAT:SymTables
call sym_remove_table
; 204 : sym->fwdref = TRUE;
or BYTE PTR [rbx+41], 32 ; 00000020H
jmp SHORT $LN22@CreateAsse
$LN32@CreateAsse:
; 200 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 601 | 660 |
Terraspace/UASM:x64/Release/equate.asm:17 | ; 237 : #ifdef DEBUG_OUT
; 238 : if ( Parse_Pass > PASS_1 ) {
; 239 : if ( opnd.kind == EXPR_CONST && sym->uvalue != opnd.uvalue )
; 240 : DebugMsg1(( "CreateAssemblyTimeVariable(%s): kind=%u, value changed ( %d -> %d )\n", name, opnd.kind, sym->uvalue, opnd.uvalue ) );
; 241 : else... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 641 | 700 |
Terraspace/UASM:x64/Release/equate.asm:18 | mov rbx, QWORD PTR [rsp+184]
add rsp, 160 ; 000000a0H
pop rdi
ret 0
CreateAssemblyTimeVariable ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\equate.c
; COMDAT SetValue
_TEXT SEGMENT
sym$ = 8
opndx$ = 16
SetValue PROC ; COMDAT
; 59 :
; 60 : sym->isequat... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 681 | 740 |
Terraspace/UASM:x64/Release/equate.asm:19 | ; 68 : sym->value3264 = opndx->hvalue;
mov eax, DWORD PTR [rdx+4]
; 69 : sym->segment = NULL;
; 70 : sym->isproc = FALSE;
and BYTE PTR [rcx+41], 247 ; 000000f7H
mov DWORD PTR [rcx+56], eax
mov QWORD PTR [rcx+24], 0
; 116 : }
; 117 : #endif
; 118 : }
; 119 : re... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 721 | 780 |
Terraspace/UASM:x64/Release/equate.asm:20 | mov rcx, QWORD PTR [rax+96]
mov QWORD PTR [r8+96], rcx
$LN4@SetValue:
; 77 : }
; 78 : sym->mem_type = opndx->mem_type;
mov eax, DWORD PTR [rdx+64]
mov DWORD PTR [r8+36], eax
; 79 : /* v2.01: allow equates of variables with arbitrary type.
; 80 : * Currently the expression ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 761 | 820 |
Terraspace/UASM:x64/Release/equate.asm:21 | ; 93 : * this isn't done for alias equates, for various reasons.
; 94 : * consequently, if the alias was forward referenced, ensure that a third pass
; 95 : * will be done! regression test forward5.asm.
; 96 : */
; 97 : if ( sym->variable ) {
test BYTE PTR [r8+40]... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 801 | 860 |
Terraspace/UASM:x64/Release/equate.asm:22 | ret 0
$LN6@SetValue:
; 105 : }
; 106 : } else {
; 107 : if( Parse_Pass != PASS_1 && sym->offset != ( opndx->sym->offset + opndx->value ) ) {
cmp DWORD PTR Parse_Pass, 0
je SHORT $LN9@SetValue
mov rax, QWORD PTR [rdx+80]
mov ecx, DWORD PTR [rax+16]
add ecx, DWORD PTR [rdx]
cmp ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 841 | 900 |
Terraspace/UASM:x64/Release/equate.asm:23 | ; 118 : }
; 119 : return;
; 120 : }
ret 0
SetValue ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\equate.c
_TEXT SEGMENT
name$ = 48
value$ = 56
CreateVariable PROC
; 280 : {
$LN10:
mov QWORD PTR [rsp+8], rbx
mov QWORD PTR [rsp+16], rsi
push rdi
sub rsp,... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 881 | 940 |
Terraspace/UASM:x64/Release/equate.asm:25 | ; 297 : #endif
; 298 : } else {
jmp SHORT $LN7@CreateVari
$LN4@CreateVari:
; 299 : if ( sym->isequate == FALSE ) {
test BYTE PTR [rax+40], 16
jne SHORT $LN6@CreateVari
; 300 : EmitErr( SYMBOL_REDEFINITION, name );
mov rdx, rdi
mov ecx, 143 ; 0000008fH
call EmitErr
; 301 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 961 | 1,020 |
Terraspace/UASM:x64/Release/equate.asm:26 | cmp BYTE PTR StoreState, 0
je SHORT $LN7@CreateVari
test BYTE PTR [rax+41], 16
jne SHORT $LN7@CreateVari
; 311 : SaveVariableState( sym );
mov rcx, rax
call SaveVariableState
$LN7@CreateVari:
; 312 : }
; 313 : #endif
; 314 : }
; 315 : sym->isdefined = TRUE;
; 316 : sym->st... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 1,001 | 1,060 |
Terraspace/UASM:x64/Release/equate.asm:27 | ; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\equate.c
_TEXT SEGMENT
opnd$ = 48
argbuffer$ = 160
i$ = 800
tokenarray$ = 800
CreateConstant PROC
; 339 : {
$LN47:
mov QWORD PTR [rsp+24], rbx
mov QWORD PTR [rsp+32], rsi
push rbp
push rdi
push r15
lea rbp, QWORD PTR [rsp-512]
sub rsp, 768 ; 00000300H
; 340 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 1,041 | 1,100 |
Terraspace/UASM:x64/Release/equate.asm:28 | ; 352 :
; 353 : /* if a literal follows, the equate MUST be(come) a text macro */
; 354 : if ( tokenarray[2].token == T_STRING && tokenarray[2].string_delim == '<' )
cmp BYTE PTR [rdi+64], 9
mov rbx, rax
jne SHORT $LN2@CreateCons
cmp BYTE PTR [rdi+65], 60 ; 0000003cH
jne SHORT $LN2@CreateCons
; 355 ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 1,081 | 1,140 |
Terraspace/UASM:x64/Release/equate.asm:29 | ; 360 : /* It's a "new" equate.
; 361 : * wait with definition until type of equate is clear
; 362 : */
; 363 : } else if( sym->state == SYM_TMACRO ) {
cmp eax, 10
jne SHORT $LN6@CreateCons
; 364 :
; 365 : return ( SetTextMacro( tokenarray, sym, name, tokenarray[2].tokpos... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 1,121 | 1,180 |
Terraspace/UASM:x64/Release/equate.asm:30 | ; 373 : } else {
; 374 : if ( sym->asmpass == ( Parse_Pass & 0xFF ) )
mov eax, DWORD PTR Parse_Pass
cmp BYTE PTR [rbx+46], al
movzx r15d, r15b
cmove r15d, edx
; 375 : cmpvalue = TRUE;
; 376 : sym->asmpass = Parse_Pass;
mov BYTE PTR [rbx+46], al
$LN5@CreateCons:
; 377 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 1,161 | 1,220 |
Terraspace/UASM:x64/Release/equate.asm:31 | ; 406 : /* if the expression cannot be evaluated to a numeric value,
; 407 : * it's to become a text macro. The value of this macro will be
; 408 : * the original (unexpanded!) line - that's why it has to be
; 409 : * saved here to argbuffer[].
; 410 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 1,201 | 1,260 |
Terraspace/UASM:x64/Release/equate.asm:32 | cmp BYTE PTR [rdi+64], 10
mov r14, rcx
jne SHORT $LN17@CreateCons
cmp r8d, 3
jne SHORT $LN17@CreateCons
$do_single_number$48:
; 384 : do_single_number:
; 385 : /* value is a plain number. it will be accepted only if it fits into 32-bits.
; 386 : * Else a text macro is created.
; 387 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 1,241 | 1,300 |
Terraspace/UASM:x64/Release/equate.asm:33 | cmp QWORD PTR opnd$[rsp+16], 0
mov edx, DWORD PTR opnd$[rsp+60]
je SHORT $LN18@CreateCons
test edx, edx
jne SHORT $LN18@CreateCons
; 431 : i--; /* v2.09: added; regression in v2.08 and v2.08a */
mov ecx, DWORD PTR i$[rbp-256]
dec ecx
mov DWORD PTR i$[rbp-256], ecx
$check_single_number$49:
; 389 ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 1,281 | 1,340 |
Terraspace/UASM:x64/Release/equate.asm:34 | cmp r8, QWORD PTR minintvalues[r11+rax*8]
jl SHORT $LN13@CreateCons
cmp r8, QWORD PTR maxintvalues[r11+rax*8]
jg SHORT $LN13@CreateCons
; 396 : opnd.value64 <= maxintvalues[ModuleInfo.Ofssize] ) {
; 397 : rc = NOT_ERROR;
; 398 : DebugMsg1(( "CreateConstant(%s): simple numeric ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 1,321 | 1,380 |
Terraspace/UASM:x64/Release/equate.asm:35 | ; 446 : tokenarray[i].token == T_FINAL &&
; 447 : ( ( opnd.kind == EXPR_CONST && opnd.hlvalue == 0 ) || /* magnitude <= 64 bits? */
; 448 : ( opnd.kind == EXPR_ADDR && opnd.indirect == FALSE &&
; 449 : opnd.sym != NULL &&
; 450 : //opnd.sym->state != SYM_EXTERNAL ) ) &&... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 1,361 | 1,420 |
Terraspace/UASM:x64/Release/equate.asm:36 | lea r11, QWORD PTR [rsp+768]
mov rbx, QWORD PTR [r11+48]
mov rsi, QWORD PTR [r11+56]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret 0
$LN21@CreateCons:
; 432 : goto check_single_number;
; 433 : }
; 434 :
; 435 : /* check here if last token has been reached? */
; 436 : }
; 437 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 1,401 | 1,460 |
Terraspace/UASM:x64/Release/equate.asm:37 | cmp r10d, -2
jne SHORT $LN19@CreateCons
; 452 : ( opnd.instr == EMPTY ) ) {
; 453 :
; 454 : if ( !sym ) {
test rbx, rbx
jne SHORT $LN22@CreateCons
; 455 : sym = SymCreate( name );
mov rcx, rsi
call SymCreate
mov rbx, rax
; 456 : sym->asmpass = Parse_Pass;
movzx ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 1,441 | 1,500 |
Terraspace/UASM:x64/Release/equate.asm:38 | lea rdx, QWORD PTR opnd$[rsp]
mov rcx, rbx
call SetValue
; 491 : DebugMsg1(("CreateConstant(%s): memtype=%Xh value=%" I64_SPEC "X isproc=%u variable=%u type=%s\n",
; 492 : name, sym->mem_type, (uint_64)sym->value + ( (uint_64)sym->value3264 << 32), sym->isproc, sym->variable, sym->type ? sym->t... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 1,481 | 1,540 |
Terraspace/UASM:x64/Release/equate.asm:39 | $LN26@CreateCons:
; 462 : } else if ( cmpvalue ) {
test r15b, r15b
je SHORT $LN34@CreateCons
; 463 : if ( opnd.kind == EXPR_CONST ) {
test edx, edx
jne SHORT $LN29@CreateCons
; 464 : /* for 64bit, it may be necessary to check 64bit value! */
; 465 : /* v2... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 1,521 | 1,580 |
Terraspace/UASM:x64/Release/equate.asm:40 | cmp DWORD PTR [rbx+16], ecx
jne SHORT $LN35@CreateCons
mov rax, QWORD PTR [r8+24]
cmp QWORD PTR [rbx+24], rax
$LN45@CreateCons:
je SHORT $LN34@CreateCons
$LN35@CreateCons:
; 474 : DebugMsg(("CreateConstant(%s), ADDR value changed: old=%X, new ofs+val=%X+%X\n", name, sym->offset, opnd.sym->offs... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/equate.asm | Apache-2.0 | 303dca37c78b38fea8f66038909762890fd6232e | github | assembler | https://github.com/Terraspace/UASM/blob/303dca37c78b38fea8f66038909762890fd6232e/x64/Release/equate.asm | 1,561 | 1,582 |
Terraspace/UASM:x64/Release/errmsg.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23026.0
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
PUBLIC banner_printed
_DATA SEGMENT
COMM decoflags:BYTE
COMM broadflags:BYTE
COMM evex:BYTE
COMM ZEROLOCALS:BYTE
_DATA ENDS
_BSS SEGMENT
banner_printed DB 01H DUP (?)
_BSS ENDS
_DA... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/errmsg.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/errmsg.asm | 1 | 60 |
Terraspace/UASM:x64/Release/errmsg.asm:2 | DB 'Set error limit number (default=50)', 00H, '-EP', 00H, 'Outpu'
DB 't preprocessed listing to stdout', 00H, '-eq', 00H, 'don''t d'
DB 'isplay error messages', 00H, '-Fd[=<file_name>]', 00H, 'Write'
DB ' import definition file', 00H, '-Fi<file_name>', 00H, 'Force '
DB '<file_name> to be included', 00H, '-Fl[=<fil... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/errmsg.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/errmsg.asm | 41 | 100 |
Terraspace/UASM:x64/Release/errmsg.asm:3 | DB 'Zm', 00H, 'Masm v5.1 compatibility', 00H, '-Zne', 00H, 'Disab'
DB 'le syntax extensions not supported by Masm', 00H, '-Zp[n]', 00H
DB 'Set structure alignment, n=<1|2|4|8|16|32>', 00H, '-Zs', 00H, 'P'
DB 'erform syntax check only', 00H, '-zt<0|1|2>', 00H, 'Set STDCA'
DB 'LL symbol decoration: 0=No name decorati... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/errmsg.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/errmsg.asm | 81 | 140 |
Terraspace/UASM:x64/Release/errmsg.asm:4 | EXTRN GetCurrSrcPos:PROC
EXTRN MsgGetEx:PROC
EXTRN LstWrite:PROC
EXTRN LstPrintf:PROC
EXTRN LstNL:PROC
EXTRN GetCurrOffset:PROC
EXTRN print_source_nesting_structure:PROC
EXTRN Options:BYTE
EXTRN ModuleInfo:BYTE
EXTRN Parse_Pass:DWORD
EXTRN write_to_file:BYTE
EXTRN jmpenv:BYTE
_DATA SEGMENT
COMM ?_OptionsStorage@?1??__l... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/errmsg.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/errmsg.asm | 121 | 180 |
Terraspace/UASM:x64/Release/errmsg.asm:5 | $pdata$_vsprintf_l DD imagerel $LN6
DD imagerel $LN6+98
DD imagerel $unwind$_vsprintf_l
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$vsprintf DD imagerel $LN6
DD imagerel $LN6+89
DD imagerel $unwind$vsprintf
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$sprintf DD imagerel $LN8
DD imagerel $LN8+90
DD imagerel ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/errmsg.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/errmsg.asm | 161 | 220 |
Terraspace/UASM:x64/Release/errmsg.asm:6 | DD imagerel $chain$1$write_logo
$pdata$PrintUsage DD imagerel $LN16
DD imagerel $LN16+156
DD imagerel $unwind$PrintUsage
$pdata$WriteError DD imagerel $LN4
DD imagerel $LN4+30
DD imagerel $unwind$WriteError
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$PutMsg DD imagerel PutMsg
DD imagerel PutMsg+27
DD imagerel ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/errmsg.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/errmsg.asm | 201 | 260 |
Terraspace/UASM:x64/Release/errmsg.asm:7 | $pdata$2$PrtMsg DD imagerel PrtMsg+202
DD imagerel PrtMsg+263
DD imagerel $chain$2$PrtMsg
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$3$PrtMsg DD imagerel PrtMsg+263
DD imagerel PrtMsg+295
DD imagerel $chain$3$PrtMsg
pdata ENDS
; COMDAT xdata
xdata SEGMENT
$chain$3$PrtMsg DD 021H
DD imagerel PrtMsg
DD imagerel... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Release/errmsg.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Release/errmsg.asm | 241 | 300 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.