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:cpumodel.asm:35 | or cx, 256 ; 00000100H
$LN41@SetCPU:
mov WORD PTR ModuleInfo+388, cx
$LN7@SetCPU:
; 434 : }
; 435 :
; 436 : DebugMsg1(("SetCPU: ModuleInfo.curr_cpu=%X, @Cpu=%X\n", ModuleInfo.curr_cpu, ModuleInfo.cpu ));
; 437 :
; 438 : //MakeCPUConstant( newcpu );
; 439 : if ( ModuleInfo.model == MODEL_NONE... | x86_64 | masm-like | handwritten | Terraspace/UASM | cpumodel.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/cpumodel.asm | 1,361 | 1,420 |
Terraspace/UASM:cpumodel.asm:36 | setge BYTE PTR ModuleInfo+405
$LN34@SetCPU:
call SetOfssize
movzx ecx, WORD PTR ModuleInfo+388
$LN35@SetCPU:
; 446 :
; 447 : /* Set @Cpu */
; 448 : /* differs from Codeinfo cpu setting */
; 449 :
; 450 : sym_Cpu = CreateVariable( "@Cpu", ModuleInfo.cpu );
movsx edx, cx
lea rcx, OFFSET FLAT:$SG592... | x86_64 | masm-like | handwritten | Terraspace/UASM | cpumodel.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/cpumodel.asm | 1,401 | 1,460 |
Terraspace/UASM:cpumodel.asm:37 | DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 1
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 2
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 3
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB... | x86_64 | masm-like | handwritten | Terraspace/UASM | cpumodel.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/cpumodel.asm | 1,441 | 1,500 |
Terraspace/UASM:cpumodel.asm:38 | DB 6
DB 6
DB 6
DB 6
DB 3
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 4
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 5
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 5
Set... | x86_64 | masm-like | handwritten | Terraspace/UASM | cpumodel.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/cpumodel.asm | 1,481 | 1,540 |
Terraspace/UASM:cpumodel.asm:39 | DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 5
SetCPU ENDP
_TEXT ENDS
PUBLIC CpuDirective
EXTRN SpecialTable:BYTE
; Function compile flags: /Ogtpy
_TEXT SEGMENT
i$ = 8
tokenarray$ = 16
CpuDirective PROC NEAR
; 464 : {
mov r9, rdx
; 465 : enum cpu_info newcpu;
; 466 :
; 467 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | cpumodel.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/cpumodel.asm | 1,521 | 1,580 |
Terraspace/UASM:cpumodel.asm:40 | ; 475 : return( ERROR );
; 476 : if ( opndx.kind != EXPR_CONST || opndx.value < 1 || opndx.value > 4 ) {
; 477 : return( EmitConstError( &opndx ) );
; 478 : }
; 479 : newcpy &= ~P_SSEALL;
; 480 : switch ( opndx.value ) {
; 481 : case 4: newcpy |= P_... | x86_64 | masm-like | handwritten | Terraspace/UASM | cpumodel.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/cpumodel.asm | 1,561 | 1,612 |
Terraspace/UASM:cpumodel.asm:41 | ; 492 : }
; 493 :
; 494 : return( SetCPU( newcpu ) );
mov ecx, eax
; 495 : }
jmp SetCPU
CpuDirective ENDP
_TEXT ENDS
END | x86_64 | masm-like | handwritten | Terraspace/UASM | cpumodel.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/cpumodel.asm | 1,601 | 1,612 |
Terraspace/UASM:directiv.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 14.00.40310.41
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
PUBLIC directive_tab
PUBLIC NameDirective
PUBLIC IncludeLibDirective
PUBLIC IncBinDirective
PUBLIC EchoDirective
PUBLIC AliasDirective
PUBLIC RadixDirective
PUBLIC SegOrderDirecti... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 1 | 60 |
Terraspace/UASM:directiv.asm:2 | EXTRN ExcFrameDirective:NEAR
EXTRN SizeStrDir:NEAR
EXTRN InStrDir:NEAR
EXTRN SafeSEHDirective:NEAR
EXTRN ModelDirective:NEAR
EXTRN StartupExitDirective:NEAR
EXTRN HllEndDir:NEAR
EXTRN HllExitDir:NEAR
EXTRN HllStartDir:NEAR
EXTRN SimplifiedSegDir:NEAR
EXTRN ListMacroDirective:NEAR
EXTRN ListingDirective:NEAR
EXTRN CpuDi... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 41 | 100 |
Terraspace/UASM:directiv.asm:3 | DQ FLAT:CpuDirective
DQ FLAT:ListingDirective
DQ FLAT:ListMacroDirective
DQ FLAT:SegOrderDirective
DQ FLAT:SimplifiedSegDir
DQ FLAT:HllStartDir
DQ FLAT:HllExitDir
DQ FLAT:HllEndDir
DQ FLAT:StartupExitDirective
DQ FLAT:ModelDirective
DQ FLAT:RadixDirective
DQ FLAT:SafeSEHDirective
DQ FLAT:InStrDir
DQ FLAT:S... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 81 | 140 |
Terraspace/UASM:directiv.asm:4 | DQ FLAT:NameDirective
DQ FLAT:OptionDirective
DQ FLAT:ContextDirective
CONST ENDS
_DATA SEGMENT
$SG5874 DB '%s', 0aH, 00H
; Function compile flags: /Ogtpy
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\directiv.c
_DATA ENDS
_TEXT SEGMENT
i$ = 8
tokenarray$ = 16
StubDir PROC NEAR
; 48 : ret_code StubDir( int i, struc... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 121 | 180 |
Terraspace/UASM:directiv.asm:5 | $LN7:
sub rsp, 40 ; 00000028H
; 56 : if ( Parse_Pass == PASS_1 ) /* display in pass 1 only */
cmp DWORD PTR Parse_Pass, 0
mov rax, rdx
jne SHORT $LN6@EchoDirect
; 57 : if ( Options.preprocessor_stdout == FALSE ) { /* don't print to stdout if -EP is on! */
cmp BYTE PTR Options+134, 0
jne SH... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 161 | 220 |
Terraspace/UASM:directiv.asm:6 | EXTRN ModuleInfo:BYTE
xdata SEGMENT
$unwind$IncludeDirective DD 072901H
DD 097429H
DD 086416H
DD 073411H
DD 04204H
xdata ENDS
pdata SEGMENT
$pdata$IncludeDirective DD @imagerel($LN15#)
DD @imagerel($LN15#+250)
DD @imagerel($unwind$IncludeDirective#)
; Function compile flags: /Ogtpy
pdata ENDS
_TEXT SEGMENT
i$ = 4... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 201 | 260 |
Terraspace/UASM:directiv.asm:7 | $LN9@IncludeDir:
; 77 : }
; 78 :
; 79 : i++; /* skip directive */
inc ebx
mov QWORD PTR [rsp+72], rdi
; 80 : /* v2.03: allow plain numbers as file name argument */
; 81 : //if ( tokenarray[i].token == T_FINAL || tokenarray[i].token == T_NUM ) {
; 82 : if ( tokenarray[i].token == T_F... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 241 | 300 |
Terraspace/UASM:directiv.asm:8 | jne SHORT $LN7@IncludeDir
cmp BYTE PTR [rdi+rsi+1], 60 ; 0000003cH
jne SHORT $LN7@IncludeDir
; 89 : if ( tokenarray[i+1].token != T_FINAL ) {
inc rdx
shl rdx, 5
cmp BYTE PTR [rdx+rsi], 0
je SHORT $LN6@IncludeDir
; 90 : return( EmitErr( SYNTAX_ERROR_EX, tokenarray[i+1].tokpos ) );
mov... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 281 | 340 |
Terraspace/UASM:directiv.asm:9 | ; 99 : for ( p = tokenarray[Token_Count].tokpos - 1; p > name && isspace(*p); *p = NULLC, p-- );
movsxd rax, DWORD PTR ModuleInfo+496
mov rdi, QWORD PTR [rdi+rsi+24]
shl rax, 5
mov rbx, QWORD PTR [rax+rsi+24]
dec rbx
cmp rbx, rdi
jbe SHORT $LN14@IncludeDir
$LL4@IncludeDir:
movsx ecx, BYTE PTR [rbx]
... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 321 | 380 |
Terraspace/UASM:directiv.asm:10 | xor eax, eax
; 104 : }
add rsp, 40 ; 00000028H
ret 0
IncludeDirective ENDP
_TEXT ENDS
EXTRN QEnqueue:NEAR
EXTRN LclAlloc:NEAR
xdata SEGMENT
$unwind$IncludeLibrary DD 051501H
DD 097415H
DD 083410H
DD 04204H
xdata ENDS
pdata SEGMENT
$pdata$IncludeLibrary DD @imagerel(IncludeLibrary#)
DD @imagerel(IncludeLibr... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 361 | 420 |
Terraspace/UASM:directiv.asm:11 | ; 119 : for ( q = ModuleInfo.g.LibQueue.head; q ; q = q->next ) {
mov r8, QWORD PTR ModuleInfo+64
mov QWORD PTR [rsp+64], rbx
mov QWORD PTR [rsp+72], rdi
test r8, r8
mov rbx, rcx
je SHORT $LN2@IncludeLib
npad 3
$LL4@IncludeLib:
; 120 : //if ( _stricmp( dir->sym.name, name) == 0)
; 121 : ... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 401 | 460 |
Terraspace/UASM:directiv.asm:12 | repne scasb
not rcx
add rcx, 15
call LclAlloc
; 125 : strcpy( q->value, name );
lea rdi, QWORD PTR [rax+8]
mov rdx, rdi
sub rdx, rbx
$LL7@IncludeLib:
movzx ecx, BYTE PTR [rbx]
inc rbx
test cl, cl
mov BYTE PTR [rdx+rbx-1], cl
jne SHORT $LL7@IncludeLib
; 126 : QEnqueue( &ModuleInfo.g.LibQueue, q )... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 441 | 500 |
Terraspace/UASM:directiv.asm:13 | ; 128 : }
add rsp, 40 ; 00000028H
ret 0
IncludeLibrary ENDP
_TEXT ENDS
EXTRN EmitWarn:NEAR
xdata SEGMENT
$unwind$IncludeLibDirective DD 031001H
DD 097410H
DD 04204H
xdata ENDS
pdata SEGMENT
$pdata$IncludeLibDirective DD @imagerel($LN29#)
DD @imagerel($LN29#+33)
DD @imagerel($unwind$IncludeLibDirective#)
pda... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 481 | 540 |
Terraspace/UASM:directiv.asm:14 | $pdata$4$IncludeLibDirective DD @imagerel($LN29#+136)
DD @imagerel($LN29#+339)
DD @imagerel($chain$4$IncludeLibDirective#)
; Function compile flags: /Ogtpy
pdata ENDS
_TEXT SEGMENT
i$ = 48
tokenarray$ = 56
IncludeLibDirective PROC NEAR
; 150 : {
$LN29:
sub rsp, 40 ; 00000028H
; 151 : char *name;
; 152 ... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 521 | 580 |
Terraspace/UASM:directiv.asm:15 | mov QWORD PTR [rsp+64], rsi
; 157 : /* v2.03: library name may be just a "number" */
; 158 : //if ( tokenarray[i].token == T_FINAL || tokenarray[i].token == T_NUM ) {
; 159 : if ( tokenarray[i].token == T_FINAL ) {
movsxd rsi, ecx
mov rbx, rsi
shl rbx, 5
cmp BYTE PTR [rbx+rdx], 0
jne SHORT $LN7@In... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 561 | 620 |
Terraspace/UASM:directiv.asm:16 | mov rdx, QWORD PTR [rdx+rdi+24]
mov ecx, 209 ; 000000d1H
call EmitErr
mov rbx, QWORD PTR [rsp+56]
mov rsi, QWORD PTR [rsp+64]
mov rdi, QWORD PTR [rsp+72]
; 184 : }
add rsp, 40 ; 00000028H
ret 0
$LN5@IncludeLib@2:
; 169 : }
; 170 : /* v2.08: use GetLiteralValue() */
; 171 : /... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 601 | 660 |
Terraspace/UASM:directiv.asm:17 | jbe SHORT $LN26@IncludeLib@2
npad 4
$LL3@IncludeLib@2:
movsx ecx, BYTE PTR [rdi]
call isspace
test eax, eax
je SHORT $LN26@IncludeLib@2
mov BYTE PTR [rdi], 0
dec rdi
cmp rdi, rbx
ja SHORT $LL3@IncludeLib@2
$LN26@IncludeLib@2:
; 180 : }
; 181 :
; 182 : IncludeLibrary( name );
mov r8, QWORD PTR Mod... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 641 | 700 |
Terraspace/UASM:directiv.asm:18 | xor eax, eax
mov rcx, -1
mov rdi, rbx
repne scasb
not rcx
add rcx, 15
call LclAlloc
lea rdx, QWORD PTR [rax+8]
sub rdx, rbx
npad 1
$LL17@IncludeLib@2:
movzx ecx, BYTE PTR [rbx]
inc rbx
test cl, cl
mov BYTE PTR [rdx+rbx-1], cl
jne SHORT $LL17@IncludeLib@2
lea rcx, OFFSET FLAT:ModuleInfo+64
mov rdx, rax
... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 681 | 740 |
Terraspace/UASM:directiv.asm:19 | EXTRN fseek:NEAR
EXTRN omf_OutSelect:NEAR
EXTRN EvalOperand:NEAR
EXTRN memcpy:NEAR
xdata SEGMENT
$unwind$IncBinDirective DD 061701H
DD 0157417H
DD 01a3410H
DD 017010aH
xdata ENDS
pdata SEGMENT
$pdata$IncBinDirective DD @imagerel($LN29#)
DD @imagerel($LN29#+445)
DD @imagerel($unwind$IncBinDirective#)
pdata ENDS
xda... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 721 | 780 |
Terraspace/UASM:directiv.asm:20 | $chain$4$IncBinDirective DD 021H
DD @imagerel($LN29#+445)
DD @imagerel($LN29#+471)
DD @imagerel($chain$2$IncBinDirective#)
xdata ENDS
pdata SEGMENT
$pdata$4$IncBinDirective DD @imagerel($LN29#+581)
DD @imagerel($LN29#+593)
DD @imagerel($chain$4$IncBinDirective#)
pdata ENDS
xdata SEGMENT
$chain$5$IncBinDirective DD... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 761 | 820 |
Terraspace/UASM:directiv.asm:21 | ; 199 : unsigned char* pBinData;
; 200 : size_t result = 0;
; 201 :
; 202 : DebugMsg(("IncBinDirective enter\n"));
; 203 :
; 204 : i++; /* skip the directive */
inc ecx
mov QWORD PTR [rax+24], rbx
mov rbx, rdx
mov QWORD PTR [rax-16], rdi
; 205 : /* v2.03: file name may be just a "number" */
;... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 801 | 860 |
Terraspace/UASM:directiv.asm:22 | movzx eax, BYTE PTR [rdx+rbx+1]
cmp al, 34 ; 00000022H
je SHORT $LN19@IncBinDire
cmp al, 39 ; 00000027H
je SHORT $LN19@IncBinDire
; 217 : } else if ( tokenarray[i].string_delim == '<' ) {
cmp al, 60 ; 0000003cH
jne $LN21@IncBinDire
; 218 : /* v2.08: use GetLiteralValue() inste... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 841 | 900 |
Terraspace/UASM:directiv.asm:23 | mov ecx, DWORD PTR [r11+rbx+16]
mov BYTE PTR [rcx+rax], dil
$LN16@IncBinDire:
; 226 : }
; 227 : i++;
mov ecx, DWORD PTR i$[rsp]
inc ecx
; 228 : if ( tokenarray[i].token == T_COMMA ) {
movsxd rax, ecx
mov DWORD PTR i$[rsp], ecx
shl rax, 5
cmp BYTE PTR [rax+rbx], 44 ; 0000002cH
jne $LN5@IncBi... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 881 | 940 |
Terraspace/UASM:directiv.asm:24 | ; 233 : fileoffset = opndx.value;
mov edi, DWORD PTR opndx$[rsp]
jmp SHORT $LN10@IncBinDire
$LN12@IncBinDire:
; 234 : } else if ( opndx.kind != EXPR_EMPTY ) {
cmp eax, -2
; 235 : return( EmitError( CONSTANT_EXPECTED ) );
jne SHORT $LN26@IncBinDire
$LN10@IncBinDire:
; 236 : ... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 921 | 980 |
Terraspace/UASM:directiv.asm:25 | ; 240 : return( ERROR );
mov eax, -1
jmp $LN23@IncBinDire
$LN8@IncBinDire:
; 241 : if ( opndx.kind == EXPR_CONST ) {
mov eax, DWORD PTR opndx$[rsp+60]
test eax, eax
; 242 : sizemax = opndx.value;
je SHORT $LN25@IncBinDire
; 243 : } else if ( opndx.k... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 961 | 1,020 |
Terraspace/UASM:directiv.asm:26 | mov rdx, QWORD PTR [rdx+rbx+24]
mov ecx, 209 ; 000000d1H
call EmitErr
jmp $LN23@IncBinDire
$LN4@IncBinDire:
; 250 : }
; 251 :
; 252 : if( CurrSeg == NULL ) {
cmp QWORD PTR ModuleInfo+432, 0
jne SHORT $LN3@IncBinDire
; 253 : return( EmitError( MUST_BE_IN_SEGMENT_BLOCK ) );
mov ecx, 82 ... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 1,001 | 1,060 |
Terraspace/UASM:directiv.asm:27 | mov rcx, QWORD PTR ModuleInfo+488
xor edx, edx
mov QWORD PTR [rsp+216], rbp
call SearchFile
test rax, rax
mov rbp, rax
je SHORT $LN1@IncBinDire
; 264 : {
; 265 : /* v2.14 : Get File Size */
; 266 : fseek( file, 0L, SEEK_END );
xor edx, edx
mov rcx, rax
mov QWORD PTR [rsp+176], rsi
lea r8d, QWORD PTR... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 1,041 | 1,100 |
Terraspace/UASM:directiv.asm:28 | mov r9, rbp
mov r8d, 1
mov rcx, rax
mov rdx, rbx
mov rdi, rax
call fread
; 271 : OutputBinBytes(pBinData, sz);
mov edx, esi
mov rcx, rdi
call OutputBinBytes
; 272 :
; 273 : /* transfer file content to the current segment. */
; 274 : //if ( fileoffset )
; 275 : //fseek( file... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 1,081 | 1,140 |
Terraspace/UASM:directiv.asm:29 | xor eax, eax
jmp SHORT $LN23@IncBinDire
$LN21@IncBinDire:
; 222 : return( EmitError( FILENAME_MUST_BE_ENCLOSED_IN_QUOTES_OR_BRACKETS ) );
; 223 : }
; 224 : } else {
; 225 : return( EmitError( FILENAME_MUST_BE_ENCLOSED_IN_QUOTES_OR_BRACKETS ) );
mov ecx, 241 ; 000000f1H
$LN28@I... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 1,121 | 1,180 |
Terraspace/UASM:directiv.asm:30 | DD 04c405H
DD @imagerel($LN31#)
DD @imagerel($LN31#+112)
DD @imagerel($unwind$AliasDirective#)
xdata ENDS
pdata SEGMENT
$pdata$2$AliasDirective DD @imagerel($LN31#+112)
DD @imagerel($LN31#+167)
DD @imagerel($chain$2$AliasDirective#)
pdata ENDS
xdata SEGMENT
$chain$5$AliasDirective DD 040a21H
DD 09740aH
DD 04c400... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 1,161 | 1,220 |
Terraspace/UASM:directiv.asm:31 | xdata ENDS
pdata SEGMENT
$pdata$7$AliasDirective DD @imagerel($LN31#+459)
DD @imagerel($LN31#+484)
DD @imagerel($chain$7$AliasDirective#)
pdata ENDS
xdata SEGMENT
$chain$9$AliasDirective DD 060021H
DD 04c400H
DD 097400H
DD 086400H
DD @imagerel($LN31#)
DD @imagerel($LN31#+112)
DD @imagerel($unwind$AliasDirective... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 1,201 | 1,260 |
Terraspace/UASM:directiv.asm:32 | sub rsp, 40 ; 00000028H
; 307 : //char *tmp;
; 308 : struct asym *sym;
; 309 : char *subst;
; 310 :
; 311 : i++; /* go past ALIAS */
inc ecx
mov QWORD PTR [rsp+48], rbx
mov QWORD PTR [rsp+56], rbp
; 312 :
; 313 : if ( tokenarray[i].token != T_STRING ||
; 314 : tokenarray[i]... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 1,241 | 1,300 |
Terraspace/UASM:directiv.asm:33 | ; 326 :
; 327 : if ( tokenarray[i+2].token != T_STRING ||
; 328 : tokenarray[i+2].string_delim != '<' ) {
lea rax, QWORD PTR [r8+2]
shl rax, 5
cmp BYTE PTR [rax+rbx], 9
jne $LN22@AliasDirec
cmp BYTE PTR [rax+rbx+1], 60 ; 0000003cH
jne $LN22@AliasDirec
; 329 : DebugMsg(("AliasDirective:... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 1,281 | 1,340 |
Terraspace/UASM:directiv.asm:34 | ; 336 : }
; 337 :
; 338 : /* make sure <alias_name> isn't defined elsewhere */
; 339 : sym = SymSearch( tokenarray[i].string_ptr );
mov rcx, QWORD PTR [rbx+rbp+8]
mov QWORD PTR [rsp+72], rdi
call SymFind
; 340 : if ( sym == NULL || sym->state == SYM_UNDEFINED ) {
test rax, rax
mov rdi, rax
... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 1,321 | 1,380 |
Terraspace/UASM:directiv.asm:35 | ; 369 : #if COFF_SUPPORT || ELF_SUPPORT
; 370 : /* for COFF+ELF, make sure <actual_name> is "global" (EXTERNAL or
; 371 : * public INTERNAL). For OMF, there's no check at all. */
; 372 : if ( Parse_Pass != PASS_1 ) {
cmp DWORD PTR Parse_Pass, edx
je SHORT $LN2@AliasDirec
; 373 : if ( Optio... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 1,361 | 1,420 |
Terraspace/UASM:directiv.asm:36 | cmp eax, 1
jne SHORT $LN1@AliasDirec
test BYTE PTR [r9+48], 128 ; 00000080H
jne SHORT $LN2@AliasDirec
$LN1@AliasDirec:
; 382 : return( EmitErr( MUST_BE_PUBLIC_OR_EXTERNAL, subst ) );
mov rdx, r12
mov ecx, 269 ; 0000010dH
call EmitErr
jmp $LN29@AliasDirec
$LN2@AliasDirec:
; 383 : ... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 1,401 | 1,460 |
Terraspace/UASM:directiv.asm:37 | ; 344 : if ( sym2 == NULL ) {
test rax, rax
mov rsi, rax
jne SHORT $LN14@AliasDirec
; 345 : sym2 = SymCreate( subst );
mov rcx, r12
call SymCreate
; 346 : sym2->state = SYM_UNDEFINED;
; 347 : sym_add_table( &SymTables[TAB_UNDEF], (struct dsym *)sym2 );
lea rcx,... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 1,441 | 1,500 |
Terraspace/UASM:directiv.asm:38 | ; 349 : sym2->state != SYM_INTERNAL &&
; 350 : sym2->state != SYM_EXTERNAL ) {
mov eax, DWORD PTR [rax+40]
test eax, eax
je SHORT $LN12@AliasDirec
cmp eax, 1
je SHORT $LN12@AliasDirec
cmp eax, 2
je SHORT $LN12@AliasDirec
; 351 : return( EmitErr( MUST_BE_PUBL... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 1,481 | 1,540 |
Terraspace/UASM:directiv.asm:39 | mov DWORD PTR [rdi+40], 8
; 359 : sym->substitute = sym2;
mov QWORD PTR [rdi+16], rsi
; 360 : /* v2.10: copy language type of alias */
; 361 : sym->langtype = sym2->langtype;
mov eax, DWORD PTR [rsi+84]
; 362 : sym_add_table( &SymTables[TAB_ALIAS], (struct dsym *)sym ); /* add... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 1,521 | 1,580 |
Terraspace/UASM:directiv.asm:40 | mov ecx, 144 ; 00000090H
mov rbp, QWORD PTR [rsp+56]
mov rbx, QWORD PTR [rsp+48]
; 388 : }
add rsp, 40 ; 00000028H
jmp EmitError
AliasDirective ENDP
_TEXT ENDS
EXTRN CurrStruct:QWORD
; Function compile flags: /Ogtpy
_TEXT SEGMENT
i$ = 8
tokenarray$ = 16
NameDirective PROC NEAR
; 395 : if( Parse_Pass... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 1,561 | 1,620 |
Terraspace/UASM:directiv.asm:41 | ; 407 : - no 'name' struct fields!
; 408 : - no 'name' segments!
; 409 : - no 'name:' label!
; 410 : */
; 411 : if ( CurrStruct != NULL ||
; 412 : ( tokenarray[i].token == T_DIRECTIVE &&
; 413 : ( tokenarray[i].tokval == T_SEGMENT ||
; 414 : tokenarray[i].tokva... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 1,601 | 1,660 |
Terraspace/UASM:directiv.asm:42 | ; 422 :
; 423 : /* don't touch Option fields! if anything at all, ModuleInfo.name may be modified.
; 424 : * However, since the directive is ignored by Masm, nothing is done.
; 425 : */
; 426 : // strncpy( ModuleInfo.name, tokenarray[i].string_ptr, sizeof( ModuleInfo.name ) );
; 427 : // ModuleInf... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 1,641 | 1,700 |
Terraspace/UASM:directiv.asm:43 | $chain$1$RadixDirective DD 040f21H
DD 019740fH
DD 0183404H
DD @imagerel($LN9#)
DD @imagerel($LN9#+10)
DD @imagerel($unwind$RadixDirective#)
xdata ENDS
pdata SEGMENT
$pdata$1$RadixDirective DD @imagerel($LN9#+10)
DD @imagerel($LN9#+119)
DD @imagerel($chain$1$RadixDirective#)
pdata ENDS
xdata SEGMENT
$chain$2$Radi... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 1,681 | 1,740 |
Terraspace/UASM:directiv.asm:44 | ; 440 :
; 441 : /* to get the .radix parameter, enforce radix 10 and retokenize! */
; 442 : oldradix = ModuleInfo.radix;
movzx ebx, BYTE PTR ModuleInfo+396
mov QWORD PTR [rax+32], rdi
mov rdi, rdx
; 443 : ModuleInfo.radix = 10;
; 444 : i++; /* skip directive token */
lea edx, DWORD PTR [rcx+... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 1,721 | 1,780 |
Terraspace/UASM:directiv.asm:45 | ; 466 : }
add rsp, 168 ; 000000a8H
ret 0
$LN5@RadixDirec:
; 449 : return( ERROR );
; 450 : }
; 451 :
; 452 : if ( opndx.kind != EXPR_CONST ) {
cmp DWORD PTR opndx$[rsp+60], 0
je SHORT $LN4@RadixDirec
; 453 : return( EmitError( CONSTANT_EXPECTED ) );
mov ecx, 65 ; 00000041H... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 1,761 | 1,820 |
Terraspace/UASM:directiv.asm:46 | ; 457 : }
; 458 : if ( opndx.value > 16 || opndx.value < 2 || opndx.hvalue != 0 ) {
mov ecx, DWORD PTR opndx$[rsp]
lea eax, DWORD PTR [rcx-2]
cmp eax, 14
ja SHORT $LN1@RadixDirec
cmp DWORD PTR opndx$[rsp+4], 0
jne SHORT $LN1@RadixDirec
; 460 : }
; 461 :
; 462 : ModuleInfo.radix = opndx.valu... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 1,801 | 1,860 |
Terraspace/UASM:directiv.asm:47 | ret 0
RadixDirective ENDP
_TEXT ENDS
EXTRN _strupr:NEAR
EXTRN SpecialTable:BYTE
xdata SEGMENT
$unwind$SegOrderDirective DD 010401H
DD 04204H
xdata ENDS
pdata SEGMENT
$pdata$SegOrderDirective DD @imagerel($LN8#)
DD @imagerel($LN8#+157)
DD @imagerel($unwind$SegOrderDirective#)
; Function compile flags: /Ogtpy
pdata EN... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 1,841 | 1,900 |
Terraspace/UASM:directiv.asm:48 | add rsp, 40 ; 00000028H
jmp EmitErr
$LN5@SegOrderDi:
; 475 : }
; 476 : #if COFF_SUPPORT || ELF_SUPPORT || PE_SUPPORT
; 477 : if ( Options.output_format == OFORMAT_COFF
; 478 : #if ELF_SUPPORT
; 479 : || Options.output_format == OFORMAT_ELF
; 480 : #endif
; 481 : #if PE_SUPPORT
; 482 : ... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 1,881 | 1,940 |
Terraspace/UASM:directiv.asm:49 | xor eax, eax
; 492 : }
add rsp, 40 ; 00000028H
ret 0
$LN3@SegOrderDi:
; 485 : if ( Parse_Pass == PASS_1 )
cmp DWORD PTR Parse_Pass, 0
jne SHORT $LN2@SegOrderDi
; 486 : EmitWarn( 2, NOT_SUPPORTED_WITH_CURR_FORMAT, _strupr( tokenarray[i].string_ptr ) );
shl rcx, 5
mov rcx, QWORD PTR... | arm64 | masm-like | handwritten | Terraspace/UASM | directiv.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/directiv.asm | 1,921 | 1,957 |
Terraspace/UASM:end.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 14.00.40310.41
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
_BSS SEGMENT
$SG5745 DB 01H DUP (?)
_BSS ENDS
_DATA SEGMENT
COMM decoflags:BYTE
COMM MODULEARCH:BYTE
COMM broadflags:BYTE
COMM ZEROLOCALS:BYTE
COMM evex:BYTE
$SG5653 DB 'mov %r,DG... | arm64 | masm-like | handwritten | Terraspace/UASM | end.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/end.asm | 1 | 60 |
Terraspace/UASM:end.asm:2 | StartupDosNear0 DQ FLAT:$SG5653
DW 0bH
DW 00H
ORG $+4
DQ FLAT:$SG5654
DW 01cH
DW 0bH
ORG $+4
DQ FLAT:$SG5655
DW 0cH
DW 01bH
ORG $+4
DQ FLAT:$SG5656
DW 0cH
DW 0bH
ORG $+4
DQ FLAT:$SG5657
DW 0cH
DW 00H
ORG $+4
DQ FLAT:$SG5658
DW 0cH
DW 00H
ORG $+4
DQ FLAT:$SG5659
DW 0cH
DW 00H
ORG $+4
DQ FLAT:... | arm64 | masm-like | handwritten | Terraspace/UASM | end.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/end.asm | 41 | 100 |
Terraspace/UASM:end.asm:3 | DQ FLAT:$SG5663
DW 0dH
DW 0cH
ORG $+4
DQ FLAT:$SG5664
DW 00H
DW 00H
ORG $+4
CONST ENDS
_DATA SEGMENT
$SG5666 DB 'mov %r,DGROUP', 00H
ORG $+2
$SG5667 DB 'mov %r,%r', 00H
ORG $+6
$SG5668 DB 'mov %r,%r', 00H
ORG $+6
$SG5669 DB 'sub %r,%r', 00H
ORG $+6
$SG5670 DB 'shl %r,4', 00H
ORG $+7
$SG5671 DB 'mov %r,%r', ... | arm64 | masm-like | handwritten | Terraspace/UASM | end.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/end.asm | 81 | 140 |
Terraspace/UASM:end.asm:4 | ORG $+4
DQ FLAT:$SG5670
DW 0cH
DW 00H
ORG $+4
DQ FLAT:$SG5671
DW 01bH
DW 09H
ORG $+4
DQ FLAT:$SG5672
DW 0dH
DW 0cH
ORG $+4
CONST ENDS
_DATA SEGMENT
ORG $+6
$SG5674 DB 'mov %r,DGROUP', 00H
ORG $+2
$SG5675 DB 'mov %r,%r', 00H
_DATA ENDS
CONST SEGMENT
StartupDosFar DQ FLAT:$SG5674
DW 0bH
DW 00H
ORG $+4
D... | arm64 | masm-like | handwritten | Terraspace/UASM | end.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/end.asm | 121 | 180 |
Terraspace/UASM:end.asm:5 | ExitOS2 DQ FLAT:$SG5677
DW 05H
DW 00H
ORG $+4
DQ FLAT:$SG5678
DW 00H
DW 00H
ORG $+4
DQ FLAT:$SG5679
DW 09H
DW 00H
ORG $+4
DQ FLAT:$SG5680
DW 00H
DW 00H
ORG $+4
CONST ENDS
_DATA SEGMENT
ORG $+3
$SG5682 DB 'mov %r,4ch', 00H
ORG $+5
$SG5683 DB 'int 21h', 00H
_DATA ENDS
CONST SEGMENT
ExitDos DQ FLAT:$SG568... | arm64 | masm-like | handwritten | Terraspace/UASM | end.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/end.asm | 161 | 220 |
Terraspace/UASM:end.asm:6 | ORG $+6
$SG5726 DB 'mov %r,4C00h + %u', 00H
ORG $+6
$SG5728 DB 'mov %r,%s', 00H
ORG $+6
$SG5729 DB 'mov %r,4Ch', 00H
_DATA ENDS
PUBLIC StartupExitDirective
EXTRN RunLineQueue:NEAR
EXTRN EvalOperand:NEAR
EXTRN AddLineQueueX:NEAR
EXTRN AddLineQueue:NEAR
EXTRN EmitErr:NEAR
EXTRN EmitError:NEAR
EXTRN ModuleInfo:BYTE
EXTR... | arm64 | masm-like | handwritten | Terraspace/UASM | end.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/end.asm | 201 | 260 |
Terraspace/UASM:end.asm:7 | pdata ENDS
xdata SEGMENT
$chain$5$StartupExitDirective DD 021H
DD @imagerel($LN50#)
DD @imagerel($LN50#+101)
DD @imagerel($unwind$StartupExitDirective#)
xdata ENDS
pdata SEGMENT
$pdata$5$StartupExitDirective DD @imagerel($LN50#+706)
DD @imagerel($LN50#+730)
DD @imagerel($chain$5$StartupExitDirective#)
; Function c... | arm64 | masm-like | handwritten | Terraspace/UASM | end.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/end.asm | 241 | 300 |
Terraspace/UASM:end.asm:8 | call LstWriteSrcLine
; 104 :
; 105 : if( ModuleInfo.model == MODEL_NONE ) {
mov r11d, DWORD PTR ModuleInfo+360
test r11d, r11d
jne SHORT $LN29@StartupExi
; 106 : return( EmitError( MODEL_IS_NOT_DECLARED ) );
lea ecx, QWORD PTR [r12+96]
call EmitError
jmp $LN30@StartupExi
$LN29@StartupExi:
; 10... | arm64 | masm-like | handwritten | Terraspace/UASM | end.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/end.asm | 281 | 340 |
Terraspace/UASM:end.asm:9 | mov rax, rsi
mov QWORD PTR [rsp+168], rdi
shl rax, 5
mov ecx, DWORD PTR [rax+rbp+16]
sub ecx, 345 ; 00000159H
je $LN13@StartupExi
dec ecx
jne $LN2@StartupExi
; 113 : case T_DOT_STARTUP:
; 114 : count = 0;
; 115 : /* for tiny model, set current PC to 100h. */
; 116 : if ( Modul... | arm64 | masm-like | handwritten | Terraspace/UASM | end.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/end.asm | 321 | 380 |
Terraspace/UASM:end.asm:10 | ; 122 : else {
; 123 : if( ModuleInfo.distance == STACK_NEAR ) {
cmp DWORD PTR ModuleInfo+356, r12d
jne SHORT $LN20@StartupExi
; 124 : if ( ( ModuleInfo.cpu & M_CPUMSK ) <= M_8086 ) {
movzx eax, BYTE PTR ModuleInfo+388
and al, 127 ; 0000007fH
cmp al, 1
jg ... | arm64 | masm-like | handwritten | Terraspace/UASM | end.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/end.asm | 361 | 420 |
Terraspace/UASM:end.asm:11 | ; 132 : p = StartupDosFar;
lea rdi, OFFSET FLAT:StartupDosFar
; 133 : count = sizeof( StartupDosFar ) / sizeof( StartupDosFar[0] );
mov ebx, 2
npad 7
$LL43@StartupExi:
; 134 : }
; 135 : for ( ; count ; count--, p++ )
; 136 : ... | arm64 | masm-like | handwritten | Terraspace/UASM | end.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/end.asm | 401 | 460 |
Terraspace/UASM:end.asm:12 | mov eax, DWORD PTR ModuleInfo+368
test eax, eax
jne SHORT $LN12@StartupExi
; 144 : p = ExitDos;
lea rdi, OFFSET FLAT:ExitDos
; 145 : count = sizeof( ExitDos ) / sizeof( ExitDos[0] );
lea ebx, QWORD PTR [rax+2]
; 146 : } else {
jmp SHORT $LN11@StartupExi
$LN12@StartupExi:
;... | arm64 | masm-like | handwritten | Terraspace/UASM | end.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/end.asm | 441 | 500 |
Terraspace/UASM:end.asm:13 | ; 152 : if( ModuleInfo.ostype == OPSYS_OS2 ) {
cmp eax, 1
jne SHORT $LN9@StartupExi
; 153 : AddLineQueueX( "mov %r,%s", T_AX, tokenarray[i].tokpos );
mov r8, QWORD PTR [r8+rbp+24]
lea edx, QWORD PTR [rax+8]
lea rcx, OFFSET FLAT:$SG5722
call AddLineQueueX
; 154 : ... | arm64 | masm-like | handwritten | Terraspace/UASM | end.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/end.asm | 481 | 540 |
Terraspace/UASM:end.asm:14 | cmp DWORD PTR opndx$[rsp+60], r12d
jne SHORT $LN6@StartupExi
mov r8d, DWORD PTR opndx$[rsp]
cmp r8d, 256 ; 00000100H
jge SHORT $LN6@StartupExi
; 160 : AddLineQueueX( "mov %r,4C00h + %u", T_AX, opndx.value );
lea rcx, OFFSET FLAT:$SG5726
mov edx, 9
call AddLineQueueX
; 161 : ... | arm64 | masm-like | handwritten | Terraspace/UASM | end.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/end.asm | 521 | 580 |
Terraspace/UASM:end.asm:15 | add rdi, 16
; 167 : count--;
dec ebx
$LN10@StartupExi:
; 168 : }
; 169 :
; 170 : for( ; count ; count--, p++ ) {
test ebx, ebx
je SHORT $LN2@StartupExi
npad 10
$LL4@StartupExi:
; 171 : AddLineQueueX( (char *)p->src, p->r1, p->r2 );
movsx r8d, WORD PTR [rdi+10]
mo... | arm64 | masm-like | handwritten | Terraspace/UASM | end.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/end.asm | 561 | 620 |
Terraspace/UASM:end.asm:16 | shl rdx, 5
cmp BYTE PTR [rdx+rbp], r12b
je SHORT $LN1@StartupExi
; 177 : EmitErr( SYNTAX_ERROR_EX, tokenarray[i].tokpos );
mov rdx, QWORD PTR [rdx+rbp+24]
mov ecx, 209 ; 000000d1H
call EmitErr
; 178 : rc = ERROR;
mov r12d, -1
$LN1@StartupExi:
; 179 : }
; 180 :
; 181 : RunLineQ... | arm64 | masm-like | handwritten | Terraspace/UASM | end.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/end.asm | 601 | 660 |
Terraspace/UASM:end.asm:17 | EXTRN AddPublicData:NEAR
EXTRN SegmentModuleExit:NEAR
EXTRN idata_fixup:NEAR
EXTRN InstrTable:BYTE
EXTRN optable_idx:BYTE
EXTRN Options:BYTE
EXTRN ProcCheckOpen:NEAR
EXTRN CurrStruct:QWORD
EXTRN EmitWarn:NEAR
EXTRN Parse_Pass:DWORD
xdata SEGMENT
$unwind$EndDirective DD 030901H
DD 0260109H
DD 03002H
xdata ENDS
pdata S... | arm64 | masm-like | handwritten | Terraspace/UASM | end.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/end.asm | 641 | 700 |
Terraspace/UASM:end.asm:18 | inc ecx
mov rbx, rdx
mov DWORD PTR i$[rsp], ecx
; 196 :
; 197 : /* v2.08: END may generate code, so write listing first */
; 198 : LstWriteSrcLine();
call LstWriteSrcLine
; 199 :
; 200 : /* v2.05: first parse the arguments. this allows
; 201 : * SegmentModuleExit() later to run generated co... | arm64 | masm-like | handwritten | Terraspace/UASM | end.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/end.asm | 681 | 740 |
Terraspace/UASM:end.asm:19 | mov DWORD PTR i$[rsp], eax
; 209 : tokenarray[i].token = T_ID;
movsxd rcx, eax
shl rcx, 5
mov BYTE PTR [rcx+rbx], 8
; 210 : tokenarray[i].string_ptr = (char *)szStartAddr;
movsxd rax, DWORD PTR i$[rsp]
lea rcx, OFFSET FLAT:szStartAddr
shl rax, 5
mov QWORD PTR [rax+rbx+8], rcx
; 211 : ... | arm64 | masm-like | handwritten | Terraspace/UASM | end.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/end.asm | 721 | 780 |
Terraspace/UASM:end.asm:20 | ; 215 : /* v2.11: flag EXPF_NOUNDEF added - will return ERROR if start label isn't defined */
; 216 : if( EvalOperand( &i, tokenarray, Token_Count, &opndx, EXPF_NOUNDEF ) == ERROR ) {
lea r9, QWORD PTR opndx$[rsp]
lea rcx, QWORD PTR i$[rsp]
mov rdx, rbx
mov BYTE PTR [rsp+32], 2
call EvalOperand
cmp eax... | arm64 | masm-like | handwritten | Terraspace/UASM | end.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/end.asm | 761 | 820 |
Terraspace/UASM:end.asm:21 | ; 221 : }
; 222 :
; 223 : if ( CurrStruct ) {
mov rdx, QWORD PTR CurrStruct
test rdx, rdx
je SHORT $LN12@EndDirecti
; 224 : while ( CurrStruct->next )
mov rax, QWORD PTR [rdx+112]
test rax, rax
je SHORT $LN10@EndDirecti
npad 3
$LL11@EndDirecti:
; 225 : CurrStruct = CurrStruct... | arm64 | masm-like | handwritten | Terraspace/UASM | end.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/end.asm | 801 | 860 |
Terraspace/UASM:end.asm:22 | ; 232 : if ( opndx.kind == EXPR_ADDR && opndx.indirect == FALSE &&
; 233 : ( opndx.mem_type == MT_NEAR || opndx.mem_type == MT_FAR || ( opndx.mem_type == MT_EMPTY && opndx.instr == T_OFFSET ) ) &&
; 234 : opndx.sym && ( opndx.sym->state == SYM_INTERNAL || opndx.sym->state == SYM_EXTERNAL ) ) {
... | arm64 | masm-like | handwritten | Terraspace/UASM | end.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/end.asm | 841 | 900 |
Terraspace/UASM:end.asm:23 | ; 242 : //CodeInfo.pinstr = &InstrTable[IndexFromToken( T_NULL )];
; 243 : CodeInfo.opnd[0].InsFixup = NULL;
; 244 : CodeInfo.token = T_NOP;
; 245 : CodeInfo.pinstr = &InstrTable[IndexFromToken( T_NOP )];
movzx eax, WORD PTR optable_idx+376
lea rcx, OFFSET FLAT:Ins... | arm64 | masm-like | handwritten | Terraspace/UASM | end.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/end.asm | 881 | 940 |
Terraspace/UASM:end.asm:24 | ; 280 : /* close open segments */
; 281 : SegmentModuleExit();
call SegmentModuleExit
; 282 :
; 283 : if ( ModuleInfo.g.EndDirHook )
mov r11, QWORD PTR ModuleInfo+296
test r11, r11
je SHORT $LN1@EndDirecti
; 284 : ModuleInfo.g.EndDirHook( &ModuleInfo );
lea rcx, OFFSET FLAT:ModuleInfo... | arm64 | masm-like | handwritten | Terraspace/UASM | end.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/end.asm | 921 | 980 |
Terraspace/UASM:end.asm:25 | ; 259 : if ( opndx.sym->state != SYM_EXTERNAL && opndx.sym->ispublic == FALSE ) {
cmp ecx, 2
je SHORT $LN4@EndDirecti
test BYTE PTR [rax+48], 128 ; 00000080H
jne SHORT $LN4@EndDirecti
; 260 : opndx.sym->ispublic = TRUE;
or BYTE PTR [rax+48], 128 ; 00000080H
; 261 : ... | arm64 | masm-like | handwritten | Terraspace/UASM | end.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/end.asm | 961 | 1,018 |
Terraspace/UASM:end.asm:26 | ; 272 : DebugMsg(("EndDirective: start address invalid, sym->state=%X\n", opndx.sym->state ));
; 273 : } else {
; 274 : DebugMsg(("EndDirective: start address not a code label, mem_type=%Xh\n", opndx.mem_type ));
; 275 : }
; 276 : #endif
; 277 : return( EmitError( O... | arm64 | masm-like | handwritten | Terraspace/UASM | end.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/end.asm | 1,001 | 1,018 |
Terraspace/UASM:equate.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 14.00.40310.41
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
PUBLIC minintvalues
PUBLIC maxintvalues
_DATA SEGMENT
COMM decoflags:BYTE
COMM MODULEARCH:BYTE
COMM broadflags:BYTE
COMM ZEROLOCALS:BYTE
COMM evex:BYTE
_DATA ENDS
CONST SEGMENT
ma... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 1 | 60 |
Terraspace/UASM:equate.asm:2 | opndx$ = 56
SetValue PROC NEAR
; 58 : {
sub rsp, 40 ; 00000028H
; 59 :
; 60 : sym->isequate = TRUE;
; 61 : sym->state = SYM_INTERNAL;
; 62 : sym->isdefined = TRUE;
or BYTE PTR [rcx+48], 18
mov r9d, 1
mov r8, rcx
mov DWORD PTR [rcx+40], r9d
; 63 : if ( opndx->kind == EXPR_CONST ... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 41 | 100 |
Terraspace/UASM:equate.asm:3 | and BYTE PTR [rcx+49], 247 ; 000000f7H
mov DWORD PTR [rcx+64], eax
mov QWORD PTR [rcx+32], 0
; 116 : }
; 117 : #endif
; 118 : }
; 119 : return;
; 120 : }
add rsp, 40 ; 00000028H
ret 0
$LN8@SetValue:
; 71 : } else {
; 72 : sym->isproc = opndx->sym->isproc;
mov rax, QWO... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 81 | 140 |
Terraspace/UASM:equate.asm:4 | mov eax, DWORD PTR [rdx+64]
mov DWORD PTR [r8+44], eax
; 79 : /* v2.01: allow equates of variables with arbitrary type.
; 80 : * Currently the expression evaluator sets opndx.mem_type
; 81 : * to the mem_type of the type (i.e. QWORD for a struct with size 8),
; 82 : * which ... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 121 | 180 |
Terraspace/UASM:equate.asm:5 | test BYTE PTR [r8+48], 64 ; 00000040H
mov DWORD PTR [r8+64], 0
mov rax, QWORD PTR [rdx+80]
mov rcx, QWORD PTR [rax+32]
mov QWORD PTR [r8+32], rcx
je SHORT $LN4@SetValue
; 98 : sym->offset = opndx->sym->offset + opndx->value;
mov rax, QWORD PTR [rdx+80]
mov ecx, DWORD PTR [rax+16]
add ecx, DWOR... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 161 | 220 |
Terraspace/UASM:equate.asm:6 | ; 105 : }
; 106 : } else {
; 107 : if( Parse_Pass != PASS_1 && sym->offset != ( opndx->sym->offset + opndx->value ) ) {
cmp DWORD PTR Parse_Pass, 0
je SHORT $LN1@SetValue
mov rax, QWORD PTR [rdx+80]
mov ecx, DWORD PTR [rax+16]
movzx eax, BYTE PTR ModuleInfo+422
add ecx, DWORD P... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 201 | 260 |
Terraspace/UASM:equate.asm:7 | add rsp, 40 ; 00000028H
ret 0
SetValue ENDP
_TEXT ENDS
EXTRN sym_remove_table:NEAR
EXTRN SymTables:BYTE
EXTRN SymCreate:NEAR
EXTRN SaveVariableState:NEAR
EXTRN sym_ext2int:NEAR
EXTRN SymFind:NEAR
EXTRN __ImageBase:BYTE
EXTRN EmitConstError:NEAR
EXTRN EmitError:NEAR
EXTRN StoreLine:NEAR
EXTRN StoreState:BYTE
EXTRN ... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 241 | 300 |
Terraspace/UASM:equate.asm:8 | ; 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 : /* v2.08: for plain numbers ... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 281 | 340 |
Terraspace/UASM: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
mov rdx, rcx
lea r9, QWORD PTR opnd$[rsp]
lea rcx, QWORD PTR i$[rsp]
mov BYTE PTR [rsp+32], 0
call ... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 321 | 380 |
Terraspace/UASM:equate.asm:10 | ; 168 : * This is caused by MakeConst() in expreval.c. Brackets changed so
; 169 : * opnd.sym is also checked for opnd.kind == EXPR_CONST.
; 170 : */
; 171 : if( opnd.kind != EXPR_CONST &&
; 172 : ( opnd.kind != EXPR_ADDR || opnd.indirect == TRUE ) ||
; 173 : ... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 361 | 420 |
Terraspace/UASM:equate.asm:11 | cmp BYTE PTR StoreState, 0
jne SHORT $LN16@CreateAsse
cmp DWORD PTR Parse_Pass, 0
jne SHORT $LN16@CreateAsse
mov rcx, QWORD PTR ModuleInfo+464
xor r8d, r8d
xor edx, edx
call StoreLine
; 185 : return( NULL );
xor eax, eax
jmp $LN30@CreateAsse
$LN20@CreateAsse:
; 182 : #endif
; 183 : ... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 401 | 460 |
Terraspace/UASM:equate.asm:12 | lea rcx, QWORD PTR opnd$[rsp]
call EmitConstError
; 191 : return( NULL );
xor eax, eax
jmp $LN30@CreateAsse
$LN15@CreateAsse:
; 192 : }
; 193 : /* for quoted strings, the same restrictions as for plain numbers apply */
; 194 : if ( opnd.quoted_string )
cmp QWORD PTR opnd$... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 441 | 500 |
Terraspace/UASM:equate.asm:13 | jg SHORT $LN27@CreateAsse
$LN14@CreateAsse:
; 195 : goto check_number;
; 196 : }
; 197 :
; 198 : sym = SymSearch( name );
mov rcx, rdi
call SymFind
; 199 : if( sym == NULL || sym->state == SYM_UNDEFINED ) {
test rax, rax
mov rbx, rax
je $LN32@CreateAsse
mov eax, DWORD PTR [rax+40]... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 481 | 540 |
Terraspace/UASM:equate.asm:14 | movzx eax, BYTE PTR StoreState
shl al, 4
xor al, BYTE PTR [rbx+49]
and al, 16
xor BYTE PTR [rbx+49], al
; 216 : #endif
; 217 : } else {
jmp SHORT $LN3@CreateAsse
$LN8@CreateAsse:
; 218 : if ( sym->state != SYM_INTERNAL ||
; 219 : ( sym->variable == FALSE &&
; 220 : ( op... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 521 | 580 |
Terraspace/UASM:equate.asm:15 | test BYTE PTR [rbx+49], 16
jne SHORT $LN3@CreateAsse
; 232 : SaveVariableState( sym );
mov rcx, rbx
call SaveVariableState
jmp SHORT $LN3@CreateAsse
$LN4@CreateAsse:
; 221 : EmitErr( SYMBOL_REDEFINITION, sym->name );
mov rdx, QWORD PTR [rbx+8]
mov ecx, 143 ; 0000008fH
call EmitEr... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 561 | 620 |
Terraspace/UASM:equate.asm:16 | ; 204 : sym->fwdref = TRUE;
or BYTE PTR [rbx+49], 32 ; 00000020H
$LN10@CreateAsse:
; 205 : }
; 206 : //sym->variable = TRUE;
; 207 : #if FASTPASS
; 208 : sym->issaved = StoreState; /* v2.10: added */
movzx eax, BYTE PTR StoreState
shl al, 4
xor al, BYTE PTR [rbx+49]
a... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 601 | 660 |
Terraspace/UASM:equate.asm:17 | je SHORT $LN2@CreateAsse
; 247 : sym->sfunc_ptr( sym, &opnd );
lea rdx, QWORD PTR opnd$[rsp]
mov rcx, rbx
call rax
; 248 : else
jmp SHORT $LN1@CreateAsse
$LN2@CreateAsse:
; 249 : SetValue( sym, &opnd );
lea rdx, QWORD PTR opnd$[rsp]
mov rcx, rbx
call SetValue
$LN1@CreateAsse:
; 250 ... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 641 | 700 |
Terraspace/UASM:equate.asm:18 | pdata SEGMENT
$pdata$EqualSgnDirective DD @imagerel($LN6#)
DD @imagerel($LN6#+80)
DD @imagerel($unwind$EqualSgnDirective#)
; Function compile flags: /Ogtpy
pdata ENDS
_TEXT SEGMENT
i$ = 48
tokenarray$ = 56
EqualSgnDirective PROC NEAR
; 258 : {
$LN6:
sub rsp, 40 ; 00000028H
; 259 : struct asym *sym;
; 26... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 681 | 740 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.