id stringlengths 22 129 | text stringlengths 60 19.5k | arch stringclasses 9
values | syntax stringclasses 5
values | kind stringclasses 4
values | repo stringclasses 32
values | path stringlengths 7 108 | license stringclasses 10
values | commit stringlengths 40 40 | source_host stringclasses 1
value | category stringclasses 15
values | source_url stringlengths 85 192 | line_start int64 1 5.48k | line_end int64 4 5.5k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Terraspace/UASM:x64/Debug/label.asm:9 | mov rax, QWORD PTR ti$[rsp+8]
mov rax, QWORD PTR [rax+8]
mov QWORD PTR tv80[rsp], rax
jmp SHORT $LN20@LabelDirec
$LN19@LabelDirec:
lea rax, OFFSET FLAT:$SG10706
mov QWORD PTR tv80[rsp], rax
$LN20@LabelDirec:
movzx eax, BYTE PTR ti$[rsp+22]
movzx ecx, BYTE PTR ti$[rsp+20]
movzx edx, BYTE PTR ti$[rsp+21]
mov r8d... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/label.asm | 321 | 380 |
Terraspace/UASM:x64/Debug/label.asm:10 | cmp eax, 128 ; 00000080H
jne SHORT $LN4@LabelDirec
; 240 : /* dont allow near16/far16/near32/far32 if size won't match */
; 241 : if ( ti.Ofssize != USE_EMPTY && ModuleInfo.Ofssize != ti.Ofssize ) {
movzx eax, BYTE PTR ti$[rsp+22]
cmp eax, 254 ; 000000feH
je SHORT $LN6@LabelDirec
movzx ea... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/label.asm | 361 | 420 |
Terraspace/UASM:x64/Debug/label.asm:11 | mov rcx, QWORD PTR tokenarray$[rsp]
movzx eax, BYTE PTR [rcx+rax]
test eax, eax
je $LN7@LabelDirec
movzx eax, BYTE PTR Options+143
test eax, eax
jne $LN7@LabelDirec
; 247 : struct expr opnd;
; 248 : i++;
mov eax, DWORD PTR i$[rsp]
inc eax
mov DWORD PTR i$[rsp], eax
; 249 : if ( Ev... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/label.asm | 401 | 460 |
Terraspace/UASM:x64/Debug/label.asm:12 | je SHORT $LN10@LabelDirec
mov rax, QWORD PTR opnd$5[rsp+80]
cmp DWORD PTR [rax+32], 0
jne SHORT $LN10@LabelDirec
; 253 : opnd.value = 1;
mov DWORD PTR opnd$5[rsp], 1
jmp SHORT $LN11@LabelDirec
$LN10@LabelDirec:
; 254 : else {
; 255 : return( EmitError( CONSTANT_EXP... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/label.asm | 441 | 500 |
Terraspace/UASM:x64/Debug/label.asm:13 | ; 263 : return( EmitErr( SYNTAX_ERROR_EX, tokenarray[i].tokpos ) ); /* v2.10: display tokpos */
movsxd rax, DWORD PTR i$[rsp]
imul rax, rax, 32 ; 00000020H
mov rcx, QWORD PTR tokenarray$[rsp]
mov rdx, QWORD PTR [rcx+rax+24]
mov ecx, 210 ; 000000d2H
call EmitErr
jmp $LN1@LabelDirec
$LN12@LabelDire... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/label.asm | 481 | 540 |
Terraspace/UASM:x64/Debug/label.asm:17 | ; 77 : {
$LN30:
mov BYTE PTR [rsp+32], r9b
mov QWORD PTR [rsp+24], r8
mov DWORD PTR [rsp+16], edx
mov QWORD PTR [rsp+8], rcx
push rdi
sub rsp, 128 ; 00000080H
mov rdi, rsp
mov ecx, 32 ; 00000020H
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+144]
mov rax, QWORD PTR __securit... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/label.asm | 641 | 700 |
Terraspace/UASM:x64/Debug/label.asm:18 | mov ecx, 83 ; 00000053H
call EmitError
; 86 : return( NULL );
xor eax, eax
jmp $LN1@CreateLabe
$LN2@CreateLabe:
; 87 : }
; 88 : /* v2.06: don't allow a code label (NEAR, FAR, PROC) if CS is
; 89 : * assumed ERROR. This was previously checked for labels with
; 90 : * trailin... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/label.asm | 681 | 740 |
Terraspace/UASM:x64/Debug/label.asm:21 | cmp DWORD PTR [rax+32], 2
jne $LN8@CreateLabe
mov rax, QWORD PTR sym$[rsp]
movzx eax, BYTE PTR [rax+47]
shr al, 3
and al, 1
movzx eax, al
cmp eax, 1
jne $LN8@CreateLabe
; 113 : /* don't accept EXTERNDEF for a local label! */
; 114 : /* v2.04: also never accept PROTOs for extern to int... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/label.asm | 801 | 860 |
Terraspace/UASM:x64/Debug/label.asm:22 | call EmitErr
; 119 : return( NULL );
xor eax, eax
jmp $LN1@CreateLabe
$LN10@CreateLabe:
; 120 : }
; 121 : /* ensure that type of symbol is compatible! */
; 122 : if ( sym->mem_type != MT_EMPTY &&
mov rax, QWORD PTR sym$[rsp]
cmp DWORD PTR [rax+36], 192 ;... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/label.asm | 841 | 900 |
Terraspace/UASM:x64/Debug/label.asm:23 | mov rcx, QWORD PTR sym$[rsp]
call sym_ext2int
jmp $LN9@CreateLabe
$LN8@CreateLabe:
; 128 : } else if( sym->state == SYM_UNDEFINED ) {
mov rax, QWORD PTR sym$[rsp]
cmp DWORD PTR [rax+32], 0
jne SHORT $LN13@CreateLabe
; 129 : sym_remove_table( &SymTables[TAB_UNDEF], (struct dsym *)sym );
m... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/label.asm | 881 | 940 |
Terraspace/UASM:x64/Debug/label.asm:24 | mov ecx, DWORD PTR mem_type$[rsp]
cmp DWORD PTR [rax+36], ecx
jne SHORT $LN15@CreateLabe
; 134 : /* fixme: if label has exactly the same value ( segment+offset ),
; 135 : * it's ok.
; 136 : */
; 137 : EmitErr( SYMBOL_ALREADY_DEFINED, name );
mov... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/label.asm | 921 | 980 |
Terraspace/UASM:x64/Debug/label.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23026.0
include listing.inc
INCLUDELIB MSVCRTD
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM decoflags:BYTE
COMM broadflags:BYTE
_DATA ENDS
_DATA SEGMENT
$SG10632 DB 'L&_%04u', 00H
$SG10657 DB 'CreateLabel(%s, memtype=%Xh, %Xh, %u) enter', 0aH, 00H
ORG... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 1 | 60 |
Terraspace/UASM:x64/Debug/label.asm:2 | PUBLIC _vsprintf_l
PUBLIC sprintf
PUBLIC LabelInit
PUBLIC GetAnonymousLabel
PUBLIC CreateLabel
PUBLIC LabelDirective
EXTRN __imp___stdio_common_vsprintf:PROC
EXTRN DoDebugMsg:PROC
EXTRN DoDebugMsg1:PROC
EXTRN EmitError:PROC
EXTRN EmitErr:PROC
EXTRN SymLookup:PROC
EXTRN SymLookupLocal:PROC
EXTRN sym_remove_table:PROC
EX... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 41 | 100 |
Terraspace/UASM:x64/Debug/label.asm:3 | DD imagerel $LN3+11
DD imagerel $unwind$__local_stdio_printf_options
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$_vsnprintf_l DD imagerel $LN5
DD imagerel $LN5+140
DD imagerel $unwind$_vsnprintf_l
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$_vsprintf_l DD imagerel $LN3
DD imagerel $LN3+88
DD imagerel $unwind... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 81 | 140 |
Terraspace/UASM:x64/Debug/label.asm:4 | rtc$IMZ SEGMENT
_RTC_InitBase.rtc$IMZ DQ FLAT:_RTC_InitBase
rtc$IMZ ENDS
CONST SEGMENT
CreateLabel$rtcName$0 DB 062H
DB 075H
DB 066H
DB 066H
DB 065H
DB 072H
DB 00H
ORG $+9
CreateLabel$rtcVarDesc DD 048H
DD 014H
DQ FLAT:CreateLabel$rtcName$0
ORG $+48
CreateLabel$rtcFrameData DD 01H
DD 00H
DQ FLAT:CreateLabel... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 121 | 180 |
Terraspace/UASM:x64/Debug/label.asm:5 | xdata SEGMENT
$unwind$LabelInit DD 010201H
DD 07002H
$unwind$GetAnonymousLabel DD 022201H
DD 0700a320eH
$unwind$CreateLabel DD 024119H
DD 07014f21bH
DD imagerel __GSHandlerCheck
DD 078H
$unwind$LabelDirective DD 032701H
DD 0260111H
DD 0700aH
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$sprintf DD 022d01H
DD ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 161 | 220 |
Terraspace/UASM:x64/Debug/label.asm:6 | $unwind$_vsprintf_l DD 022d01H
DD 070155219H
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$_vsnprintf_l DD 022d01H
DD 070157219H
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$__local_stdio_printf_options DD 010201H
DD 07002H
xdata ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 201 | 260 |
Terraspace/UASM:x64/Debug/label.asm:7 | ; 210 : struct asym *sym;
; 211 : #if LABELARRAY
; 212 : uint_32 length;
; 213 : #endif
; 214 :
; 215 : if( i != 1 ) { /* LABEL must be preceded by an ID */
cmp DWORD PTR i$[rsp], 1
je SHORT $LN2@LabelDirec
; 216 : return( EmitErr( SYNTAX_ERROR_EX, tokenarray[i].string_ptr ) );
movsxd ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 241 | 300 |
Terraspace/UASM:x64/Debug/label.asm:8 | mov BYTE PTR ti$[rsp+21], 0
; 224 : ti.mem_type = MT_EMPTY;
mov DWORD PTR ti$[rsp+16], 192 ; 000000c0H
; 225 : ti.ptr_memtype = MT_EMPTY;
mov DWORD PTR ti$[rsp+24], 192 ; 000000c0H
; 226 : ti.symtype = NULL;
mov QWORD PTR ti$[rsp+8], 0
; 227 : ti.Ofssize = ModuleInfo.Ofssize;
movzx eax... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 281 | 340 |
Terraspace/UASM:x64/Debug/label.asm:9 | mov rax, QWORD PTR [rax+8]
mov QWORD PTR tv80[rsp], rax
jmp SHORT $LN20@LabelDirec
$LN19@LabelDirec:
lea rax, OFFSET FLAT:$SG10704
mov QWORD PTR tv80[rsp], rax
$LN20@LabelDirec:
movzx eax, BYTE PTR ti$[rsp+22]
movzx ecx, BYTE PTR ti$[rsp+20]
movzx edx, BYTE PTR ti$[rsp+21]
mov r8d, 32 ; 00000020H
imul r8, ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 321 | 380 |
Terraspace/UASM:x64/Debug/label.asm:10 | jne SHORT $LN4@LabelDirec
; 240 : /* dont allow near16/far16/near32/far32 if size won't match */
; 241 : if ( ti.Ofssize != USE_EMPTY && ModuleInfo.Ofssize != ti.Ofssize ) {
movzx eax, BYTE PTR ti$[rsp+22]
cmp eax, 254 ; 000000feH
je SHORT $LN6@LabelDirec
movzx eax, BYTE PTR ModuleInfo+404
m... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 361 | 420 |
Terraspace/UASM:x64/Debug/label.asm:11 | movzx eax, BYTE PTR [rcx+rax]
test eax, eax
je $LN7@LabelDirec
movzx eax, BYTE PTR Options+143
test eax, eax
jne $LN7@LabelDirec
; 247 : struct expr opnd;
; 248 : i++;
mov eax, DWORD PTR i$[rsp]
inc eax
mov DWORD PTR i$[rsp], eax
; 249 : if ( EvalOperand( &i, tokenarray, Token_Coun... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 401 | 460 |
Terraspace/UASM:x64/Debug/label.asm:12 | mov rax, QWORD PTR opnd$5[rsp+80]
cmp DWORD PTR [rax+32], 0
jne SHORT $LN10@LabelDirec
; 253 : opnd.value = 1;
mov DWORD PTR opnd$5[rsp], 1
jmp SHORT $LN11@LabelDirec
$LN10@LabelDirec:
; 254 : else {
; 255 : return( EmitError( CONSTANT_EXPECTED ) );
mov ecx, 65 ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 441 | 500 |
Terraspace/UASM:x64/Debug/label.asm:13 | ; 263 : return( EmitErr( SYNTAX_ERROR_EX, tokenarray[i].tokpos ) ); /* v2.10: display tokpos */
movsxd rax, DWORD PTR i$[rsp]
imul rax, rax, 32 ; 00000020H
mov rcx, QWORD PTR tokenarray$[rsp]
mov rdx, QWORD PTR [rcx+rax+24]
mov ecx, 209 ; 000000d1H
call EmitErr
jmp $LN1@LabelDirec
$LN12@LabelDire... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 481 | 540 |
Terraspace/UASM:x64/Debug/label.asm:14 | call CreateLabel
mov QWORD PTR sym$[rsp], rax
cmp QWORD PTR sym$[rsp], 0
je $LN14@LabelDirec
; 271 : DebugMsg1(("LabelDirective(%s): label created, memtype=%Xh size=%u\n", sym->name, sym->mem_type, ti.size ));
mov r9d, DWORD PTR ti$[rsp]
mov rax, QWORD PTR sym$[rsp]
mov r8d, DWORD PTR [rax+36]
mov rax... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 521 | 580 |
Terraspace/UASM:x64/Debug/label.asm:15 | ; 279 : sym->total_size = ti.size * length;
mov eax, DWORD PTR ti$[rsp]
imul eax, DWORD PTR length$[rsp]
mov rcx, QWORD PTR sym$[rsp]
mov DWORD PTR [rcx+56], eax
; 280 : sym->total_length = length;
mov rax, QWORD PTR sym$[rsp]
mov ecx, DWORD PTR length$[rsp]
mov DWORD PTR [ra... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 561 | 620 |
Terraspace/UASM:x64/Debug/label.asm:16 | ; 287 : }
; 288 : return( NOT_ERROR );
xor eax, eax
jmp SHORT $LN1@LabelDirec
$LN14@LabelDirec:
; 289 : }
; 290 : return( ERROR );
mov eax, -1
$LN1@LabelDirec:
; 291 : }
mov rdi, rax
mov rcx, rsp
lea rdx, OFFSET FLAT:LabelDirective$rtcFrameData
call _RTC_CheckStackVars
mov ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 601 | 660 |
Terraspace/UASM:x64/Debug/label.asm:17 | ; 77 : {
$LN30:
mov BYTE PTR [rsp+32], r9b
mov QWORD PTR [rsp+24], r8
mov DWORD PTR [rsp+16], edx
mov QWORD PTR [rsp+8], rcx
push rdi
sub rsp, 128 ; 00000080H
mov rdi, rsp
mov ecx, 32 ; 00000020H
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+144]
mov rax, QWORD PTR __securit... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 641 | 700 |
Terraspace/UASM:x64/Debug/label.asm:18 | mov ecx, 82 ; 00000052H
call EmitError
; 86 : return( NULL );
xor eax, eax
jmp $LN1@CreateLabe
$LN2@CreateLabe:
; 87 : }
; 88 : /* v2.06: don't allow a code label (NEAR, FAR, PROC) if CS is
; 89 : * assumed ERROR. This was previously checked for labels with
; 90 : * trailin... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 681 | 740 |
Terraspace/UASM:x64/Debug/label.asm:19 | ; 96 : return( NULL );
xor eax, eax
jmp $LN1@CreateLabe
$LN4@CreateLabe:
$LN3@CreateLabe:
; 97 : }
; 98 : }
; 99 :
; 100 : //if( strcmp( name, "@@" ) == 0 ) {
; 101 : if( name[0] == '@' && name[1] == '@' && name[2] == NULLC ) {
mov eax, 1
imul rax, rax, 0
mov rcx, QWORD... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 721 | 780 |
Terraspace/UASM:x64/Debug/label.asm:20 | call sprintf
; 103 : name = buffer;
lea rax, QWORD PTR buffer$[rsp]
mov QWORD PTR name$[rsp], rax
$LN5@CreateLabe:
; 104 : }
; 105 :
; 106 : sym = ( bLocal ? SymLookupLocal( name ) : SymLookup( name ) );
movzx eax, BYTE PTR bLocal$[rsp]
test eax, eax
je SHORT $LN28@CreateLabe
mov rcx, QWOR... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 761 | 820 |
Terraspace/UASM:x64/Debug/label.asm:21 | jne $LN8@CreateLabe
mov rax, QWORD PTR sym$[rsp]
movzx eax, BYTE PTR [rax+47]
shr al, 3
and al, 1
movzx eax, al
cmp eax, 1
jne $LN8@CreateLabe
; 113 : /* don't accept EXTERNDEF for a local label! */
; 114 : /* v2.04: also never accept PROTOs for extern to intern conversion */
; 115 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 801 | 860 |
Terraspace/UASM:x64/Debug/label.asm:22 | ; 119 : return( NULL );
xor eax, eax
jmp $LN1@CreateLabe
$LN10@CreateLabe:
; 120 : }
; 121 : /* ensure that type of symbol is compatible! */
; 122 : if ( sym->mem_type != MT_EMPTY &&
mov rax, QWORD PTR sym$[rsp]
cmp DWORD PTR [rax+36], 192 ; 000000c0H
je... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 841 | 900 |
Terraspace/UASM:x64/Debug/label.asm:23 | mov rcx, QWORD PTR sym$[rsp]
call sym_ext2int
jmp $LN9@CreateLabe
$LN8@CreateLabe:
; 128 : } else if( sym->state == SYM_UNDEFINED ) {
mov rax, QWORD PTR sym$[rsp]
cmp DWORD PTR [rax+32], 0
jne SHORT $LN13@CreateLabe
; 129 : sym_remove_table( &SymTables[TAB_UNDEF], (struct dsym *)sym );
m... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 881 | 940 |
Terraspace/UASM:x64/Debug/label.asm:24 | cmp DWORD PTR [rax+36], ecx
jne SHORT $LN15@CreateLabe
; 134 : /* fixme: if label has exactly the same value ( segment+offset ),
; 135 : * it's ok.
; 136 : */
; 137 : EmitErr( SYMBOL_ALREADY_DEFINED, name );
mov rdx, QWORD PTR name$[rsp]
mov ecx... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 921 | 980 |
Terraspace/UASM:x64/Debug/label.asm:25 | ; 145 : CurrSeg->e.seginfo->label_list = sym;
mov rax, QWORD PTR ModuleInfo+432
mov rax, QWORD PTR [rax+96]
mov rcx, QWORD PTR sym$[rsp]
mov QWORD PTR [rax+32], rcx
; 146 :
; 147 : /* a possible language type set by EXTERNDEF must be kept! */
; 148 : if ( sym->langtype == LANG_NONE )
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 961 | 1,020 |
Terraspace/UASM:x64/Debug/label.asm:26 | call DoDebugMsg1
; 154 : if ( sym->isproc == FALSE ) {
mov rax, QWORD PTR sym$[rsp]
movzx eax, BYTE PTR [rax+41]
shr al, 3
and al, 1
movzx eax, al
test eax, eax
jne SHORT $LN19@CreateLabe
; 155 : CreateProc( sym, NULL, SYM_INTERNAL );
mov r8d, 1
xor edx, edx
mov rcx, QWORD PT... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 1,001 | 1,060 |
Terraspace/UASM:x64/Debug/label.asm:27 | ; 160 : }
; 161 :
; 162 : sym->mem_type = mem_type;
mov rax, QWORD PTR sym$[rsp]
mov ecx, DWORD PTR mem_type$[rsp]
mov DWORD PTR [rax+36], ecx
; 163 : if ( ti ) {
cmp QWORD PTR ti$[rsp], 0
je $LN20@CreateLabe
; 164 : if ( mem_type == MT_TYPE )
cmp DWORD PTR mem_type$[... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 1,041 | 1,100 |
Terraspace/UASM:x64/Debug/label.asm:28 | movzx ecx, BYTE PTR [rcx+20]
mov BYTE PTR [rax+45], cl
; 169 : sym->isfar = ti->is_far;
mov rax, QWORD PTR ti$[rsp]
movzx eax, BYTE PTR [rax+21]
and al, 1
shl al, 4
mov rcx, QWORD PTR sym$[rsp]
movzx ecx, BYTE PTR [rcx+47]
and cl, 239 ; 000000efH
or cl, al
movzx eax, cl
mov rcx, QWORD ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 1,081 | 1,140 |
Terraspace/UASM:x64/Debug/label.asm:29 | ; 175 : /* save old offset */
; 176 : addr = sym->offset;
mov rax, QWORD PTR sym$[rsp]
mov eax, DWORD PTR [rax+16]
mov DWORD PTR addr$[rsp], eax
$LN7@CreateLabe:
; 177 : }
; 178 :
; 179 : sym->isdefined = TRUE;
mov rax, QWORD PTR sym$[rsp]
movzx eax, BYTE PTR [rax+40]
or al, 2
mov... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 1,121 | 1,180 |
Terraspace/UASM:x64/Debug/label.asm:30 | mov rcx, QWORD PTR sym$[rsp]
call SetSymSegOfs
; 187 : // DebugMsg(("CreateLabel(%s): ofs=%X\n", sym->name, sym->offset));
; 188 :
; 189 : if( Parse_Pass != PASS_1 && sym->offset != addr ) {
cmp DWORD PTR Parse_Pass, 0
je $LN24@CreateLabe
mov rax, QWORD PTR sym$[rsp]
mov ecx, DWORD PTR addr$[rsp]
cmp DW... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 1,161 | 1,220 |
Terraspace/UASM:x64/Debug/label.asm:31 | mov eax, DWORD PTR Parse_Pass
inc eax
mov ecx, DWORD PTR addr$[rsp]
mov DWORD PTR [rsp+32], ecx
mov rcx, QWORD PTR sym$[rsp]
mov r9d, DWORD PTR [rcx+16]
mov rcx, QWORD PTR sym$[rsp]
mov r8, QWORD PTR [rcx+8]
mov edx, eax
lea rcx, OFFSET FLAT:$SG10689
call DoDebugMsg
$LN26@CreateLabe:
; 195 : #endif
; 196 :... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 1,201 | 1,260 |
Terraspace/UASM:x64/Debug/label.asm:32 | call __security_check_cookie
add rsp, 128 ; 00000080H
pop rdi
ret 0
CreateLabel ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\label.c
_TEXT SEGMENT
buffer$ = 48
value$ = 56
GetAnonymousLabel PROC
; 63 : {
$LN3:
mov DWORD PTR [rsp+16], edx
mov QWORD PTR [... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 1,241 | 1,300 |
Terraspace/UASM:x64/Debug/label.asm:33 | ; 66 : }
add rsp, 32 ; 00000020H
pop rdi
ret 0
GetAnonymousLabel ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\label.c
_TEXT SEGMENT
LabelInit PROC
; 57 : {
$LN3:
push rdi
; 58 : ModuleInfo.g.anonymous_label = 0;
mov DWORD PTR ModuleInfo+268,... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/label.asm | 1,281 | 1,340 |
Terraspace/UASM:x64/Debug/label.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23026.0
include listing.inc
INCLUDELIB MSVCRTD
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM decoflags:BYTE
COMM broadflags:BYTE
_DATA ENDS
_DATA SEGMENT
$SG10627 DB 'L&_%04u', 00H
$SG10652 DB 'CreateLabel(%s, memtype=%Xh, %Xh, %u) enter', 0aH, 00H
ORG... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/label.asm | 1 | 60 |
Terraspace/UASM:x64/Debug/label.asm:8 | mov BYTE PTR ti$[rsp+21], 0
; 224 : ti.mem_type = MT_EMPTY;
mov DWORD PTR ti$[rsp+16], 192 ; 000000c0H
; 225 : ti.ptr_memtype = MT_EMPTY;
mov DWORD PTR ti$[rsp+24], 192 ; 000000c0H
; 226 : ti.symtype = NULL;
mov QWORD PTR ti$[rsp+8], 0
; 227 : ti.Ofssize = ModuleInfo.Ofssize;
movzx eax... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/label.asm | 281 | 340 |
Terraspace/UASM:x64/Debug/label.asm:9 | mov rax, QWORD PTR [rax+8]
mov QWORD PTR tv80[rsp], rax
jmp SHORT $LN20@LabelDirec
$LN19@LabelDirec:
lea rax, OFFSET FLAT:$SG10699
mov QWORD PTR tv80[rsp], rax
$LN20@LabelDirec:
movzx eax, BYTE PTR ti$[rsp+22]
movzx ecx, BYTE PTR ti$[rsp+20]
movzx edx, BYTE PTR ti$[rsp+21]
mov r8d, 32 ; 00000020H
imul r8, ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/label.asm | 321 | 380 |
Terraspace/UASM:x64/Debug/label.asm:13 | ; 263 : return( EmitErr( SYNTAX_ERROR_EX, tokenarray[i].tokpos ) ); /* v2.10: display tokpos */
movsxd rax, DWORD PTR i$[rsp]
imul rax, rax, 32 ; 00000020H
mov rcx, QWORD PTR tokenarray$[rsp]
mov rdx, QWORD PTR [rcx+rax+24]
mov ecx, 209 ; 000000d1H
call EmitErr
jmp $LN1@LabelDirec
$LN12@LabelDire... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/label.asm | 481 | 540 |
Terraspace/UASM:x64/Debug/label.asm:14 | call CreateLabel
mov QWORD PTR sym$[rsp], rax
cmp QWORD PTR sym$[rsp], 0
je $LN14@LabelDirec
; 271 : DebugMsg1(("LabelDirective(%s): label created, memtype=%Xh size=%u\n", sym->name, sym->mem_type, ti.size ));
mov r9d, DWORD PTR ti$[rsp]
mov rax, QWORD PTR sym$[rsp]
mov r8d, DWORD PTR [rax+36]
mov rax... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/label.asm | 521 | 580 |
Terraspace/UASM:x64/Debug/label.asm:17 | ; 77 : {
$LN30:
mov BYTE PTR [rsp+32], r9b
mov QWORD PTR [rsp+24], r8
mov DWORD PTR [rsp+16], edx
mov QWORD PTR [rsp+8], rcx
push rdi
sub rsp, 128 ; 00000080H
mov rdi, rsp
mov ecx, 32 ; 00000020H
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+144]
mov rax, QWORD PTR __securit... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/label.asm | 641 | 700 |
Terraspace/UASM:x64/Debug/label.asm:18 | mov ecx, 82 ; 00000052H
call EmitError
; 86 : return( NULL );
xor eax, eax
jmp $LN1@CreateLabe
$LN2@CreateLabe:
; 87 : }
; 88 : /* v2.06: don't allow a code label (NEAR, FAR, PROC) if CS is
; 89 : * assumed ERROR. This was previously checked for labels with
; 90 : * trailin... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/label.asm | 681 | 740 |
Terraspace/UASM:x64/Debug/label.asm:19 | ; 96 : return( NULL );
xor eax, eax
jmp $LN1@CreateLabe
$LN4@CreateLabe:
$LN3@CreateLabe:
; 97 : }
; 98 : }
; 99 :
; 100 : //if( strcmp( name, "@@" ) == 0 ) {
; 101 : if( name[0] == '@' && name[1] == '@' && name[2] == NULLC ) {
mov eax, 1
imul rax, rax, 0
mov rcx, QWORD... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/label.asm | 721 | 780 |
Terraspace/UASM:x64/Debug/label.asm:21 | jne $LN8@CreateLabe
mov rax, QWORD PTR sym$[rsp]
movzx eax, BYTE PTR [rax+47]
shr al, 3
and al, 1
movzx eax, al
cmp eax, 1
jne $LN8@CreateLabe
; 113 : /* don't accept EXTERNDEF for a local label! */
; 114 : /* v2.04: also never accept PROTOs for extern to intern conversion */
; 115 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/label.asm | 801 | 860 |
Terraspace/UASM:x64/Debug/label.asm:22 | ; 119 : return( NULL );
xor eax, eax
jmp $LN1@CreateLabe
$LN10@CreateLabe:
; 120 : }
; 121 : /* ensure that type of symbol is compatible! */
; 122 : if ( sym->mem_type != MT_EMPTY &&
mov rax, QWORD PTR sym$[rsp]
cmp DWORD PTR [rax+36], 192 ; 000000c0H
je... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/label.asm | 841 | 900 |
Terraspace/UASM:x64/Debug/label.asm:25 | ; 145 : CurrSeg->e.seginfo->label_list = sym;
mov rax, QWORD PTR ModuleInfo+432
mov rax, QWORD PTR [rax+96]
mov rcx, QWORD PTR sym$[rsp]
mov QWORD PTR [rax+32], rcx
; 146 :
; 147 : /* a possible language type set by EXTERNDEF must be kept! */
; 148 : if ( sym->langtype == LANG_NONE )
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/label.asm | 961 | 1,020 |
Terraspace/UASM:x64/Debug/label.asm:30 | mov rcx, QWORD PTR sym$[rsp]
call SetSymSegOfs
; 187 : // DebugMsg(("CreateLabel(%s): ofs=%X\n", sym->name, sym->offset));
; 188 :
; 189 : if( Parse_Pass != PASS_1 && sym->offset != addr ) {
cmp DWORD PTR Parse_Pass, 0
je $LN24@CreateLabe
mov rax, QWORD PTR sym$[rsp]
mov ecx, DWORD PTR addr$[rsp]
cmp DW... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/label.asm | 1,161 | 1,220 |
Terraspace/UASM:x64/Debug/label.asm:31 | mov eax, DWORD PTR Parse_Pass
inc eax
mov ecx, DWORD PTR addr$[rsp]
mov DWORD PTR [rsp+32], ecx
mov rcx, QWORD PTR sym$[rsp]
mov r9d, DWORD PTR [rcx+16]
mov rcx, QWORD PTR sym$[rsp]
mov r8, QWORD PTR [rcx+8]
mov edx, eax
lea rcx, OFFSET FLAT:$SG10684
call DoDebugMsg
$LN26@CreateLabe:
; 195 : #endif
; 196 :... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/label.asm | 1,201 | 1,260 |
Terraspace/UASM:x64/Debug/label.asm:32 | call __security_check_cookie
add rsp, 128 ; 00000080H
pop rdi
ret 0
CreateLabel ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\label.c
_TEXT SEGMENT
buffer$ = 48
value$ = 56
GetAnonymousLabel PROC
; 63 : {
$LN3:
mov DWORD PTR [rsp+16], edx
mov QWORD PTR [... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/label.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/label.asm | 1,241 | 1,300 |
Terraspace/UASM:x64/Debug/linnum.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23026.0
include listing.inc
INCLUDELIB LIBCMTD
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM decoflags:BYTE
COMM broadflags:BYTE
COMM evex:BYTE
COMM ZEROLOCALS:BYTE
_DATA ENDS
_DATA SEGMENT
$SG11447 DB 'linnum.c', 00H
ORG $+7
$SG11448 DB '$$$%05u', 00H... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 1 | 60 |
Terraspace/UASM:x64/Debug/linnum.asm:2 | $SG11467 DB 'linnum.c', 00H
ORG $+7
$SG11473 DB 'AddLinnumDataRef: calling AddLinnumData(src=%u.%u ofs=%X'
DB ')', 0aH, 00H
_DATA ENDS
PUBLIC __local_stdio_printf_options
PUBLIC _vsnprintf_l
PUBLIC _vsprintf_l
PUBLIC sprintf
PUBLIC AddLinnumDataRef
PUBLIC LinnumInit
PUBLIC LinnumFini
PUBLIC QueueDeleteLinnum
EXTRN __... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 41 | 100 |
Terraspace/UASM:x64/Debug/linnum.asm:3 | _BSS SEGMENT
dmyproc DQ 01H DUP (?)
lastLineNumber DD 01H DUP (?)
_BSS ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$_vsnprintf_l DD imagerel $LN5
DD imagerel $LN5+117
DD imagerel $unwind$_vsnprintf_l
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$_vsprintf_l DD imagerel $LN3
DD imagerel $LN3+66
DD imagerel $unwind$_vsp... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 81 | 140 |
Terraspace/UASM:x64/Debug/linnum.asm:4 | DD 078H
$unwind$LinnumFini DD 010401H
DD 04204H
$unwind$QueueDeleteLinnum DD 010901H
DD 02209H
$unwind$AddLinnumData DD 010901H
DD 06209H
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$sprintf DD 011801H
DD 06218H
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$_vsprintf_l DD 011801H
DD 06218H
xdata ENDS
; COMDAT... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 121 | 180 |
Terraspace/UASM:x64/Debug/linnum.asm:5 | cmp DWORD PTR Options+160, 2
jne SHORT $LN2@AddLinnumD
; 45 : q = (struct qdesc *)CurrSeg->e.seginfo->LinnumQueue;
mov rax, QWORD PTR ModuleInfo+432
mov rax, QWORD PTR [rax+104]
mov rax, QWORD PTR [rax+56]
mov QWORD PTR q$[rsp], rax
; 46 : if ( q == NULL ) {
cmp QWORD PTR q$[rsp], 0
jne S... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 161 | 220 |
Terraspace/UASM:x64/Debug/linnum.asm:6 | ; 52 : else
; 53 : #endif
; 54 : q = &LinnumQueue;
lea rax, OFFSET FLAT:LinnumQueue
mov QWORD PTR q$[rsp], rax
$LN3@AddLinnumD:
; 55 :
; 56 : data->next = NULL;
mov rax, QWORD PTR data$[rsp]
mov QWORD PTR [rax], 0
; 57 : if ( q->head == NULL)
mov rax, QWORD PTR q$[rsp]
cmp QWO... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 201 | 260 |
Terraspace/UASM:x64/Debug/linnum.asm:7 | mov rax, QWORD PTR q$[rsp]
cmp QWORD PTR [rax+8], 0
je SHORT $LN9@AddLinnumD
mov rax, QWORD PTR q$[rsp]
cmp DWORD PTR [rax+8], 16777215 ; 00ffffffH
jae SHORT $LN9@AddLinnumD
; 62 : ((struct line_num_info *)q->tail)->next = data;
mov rax, QWORD PTR q$[rsp]
mov rax, QWORD PTR [rax+8]
mov rcx, QWORD... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 241 | 300 |
Terraspace/UASM:x64/Debug/linnum.asm:8 | mov rax, QWORD PTR q$[rsp]
mov rax, QWORD PTR [rax+8]
mov rcx, QWORD PTR data$[rsp]
mov QWORD PTR [rax], rcx
; 70 : q->tail = data;
mov rax, QWORD PTR q$[rsp]
mov rcx, QWORD PTR data$[rsp]
mov QWORD PTR [rax+8], rcx
$LN10@AddLinnumD:
$LN8@AddLinnumD:
$LN6@AddLinnumD:
; 71 : }
; 72 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 281 | 340 |
Terraspace/UASM:x64/Debug/linnum.asm:9 | ; 218 : struct line_num_info *next;
; 219 :
; 220 : if ( queue == NULL )
cmp QWORD PTR queue$[rsp], 0
jne SHORT $LN5@QueueDelet
; 221 : return;
jmp SHORT $LN1@QueueDelet
$LN5@QueueDelet:
; 222 : curr = queue->head;
mov rax, QWORD PTR queue$[rsp]
mov rax, QWORD PTR [rax]
mov QWORD ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 321 | 380 |
Terraspace/UASM:x64/Debug/linnum.asm:10 | $LN9@QueueDelet:
; 226 : break;
jmp SHORT $LN3@QueueDelet
$LN8@QueueDelet:
; 227 : }
jmp SHORT $LN7@QueueDelet
$LN6@QueueDelet:
; 228 : #if AMD64_SUPPORT
; 229 : else {
; 230 : if (((uint_64)curr > 0x00007FFFFFFFFFFF)|| ((uint_64)curr < 0x00007FFFFFFFF))
mov rax, 1407374883... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 361 | 420 |
Terraspace/UASM:x64/Debug/linnum.asm:11 | jmp SHORT $LN2@QueueDelet
$LN3@QueueDelet:
$LN1@QueueDelet:
; 237 : return;
; 238 : }
add rsp, 24
ret 0
QueueDeleteLinnum ENDP
_TEXT ENDS
; Function compile flags: /Odtp
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\linnum.c
_TEXT SEGMENT
LinnumFini PROC
; 245 : {
$LN4:
sub rsp, 40 ; 00000028H
; 246 ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 401 | 460 |
Terraspace/UASM:x64/Debug/linnum.asm:12 | ; 249 : ((struct dsym *)dmyproc->segment)->e.seginfo->current_loc -
; 250 : dmyproc->offset;
; 251 : DebugMsg(("LinnumFini: last dummy proc size=%Xh\n"));
lea rcx, OFFSET FLAT:$SG11498
call DoDebugMsg
$LN2@LinnumFini:
; 252 : }
; 253 : #endif
; 254 : }
add rsp, 40 ; 0... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 441 | 500 |
Terraspace/UASM:x64/Debug/linnum.asm:13 | tv310 = 56
tv79 = 60
tv161 = 64
tv226 = 68
tv243 = 72
tv92 = 80
tv198 = 88
tv223 = 96
procname$1 = 104
__$ArrayPad$ = 120
srcfile$ = 144
line_num$ = 152
AddLinnumDataRef PROC
; 85 : {
$LN33:
mov DWORD PTR [rsp+16], edx
mov DWORD PTR [rsp+8], ecx
sub rsp, 136 ; 00000088H
mov rax, QWORD PTR __security_cookie
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 481 | 540 |
Terraspace/UASM:x64/Debug/linnum.asm:14 | jne $LN2@AddLinnumD
cmp QWORD PTR dmyproc, 0
je SHORT $LN3@AddLinnumD
mov rax, QWORD PTR dmyproc
mov rax, QWORD PTR [rax+72]
movzx eax, WORD PTR [rax+14]
cmp eax, DWORD PTR srcfile$[rsp]
jne SHORT $LN3@AddLinnumD
mov rax, QWORD PTR dmyproc
mov rcx, QWORD PTR ModuleInfo+432
cmp QWORD PTR [rax+32], rcx
je $LN2... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 521 | 580 |
Terraspace/UASM:x64/Debug/linnum.asm:15 | mov rax, QWORD PTR [rax+32]
mov rax, QWORD PTR [rax+104]
mov rcx, QWORD PTR dmyproc
mov ecx, DWORD PTR [rcx+16]
mov eax, DWORD PTR [rax+12]
sub eax, ecx
mov rcx, QWORD PTR dmyproc
mov DWORD PTR [rcx+64], eax
$LN4@AddLinnumD:
; 105 : ((struct dsym *)dmyproc->segment)->e.seginfo->current_loc -
; ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 561 | 620 |
Terraspace/UASM:x64/Debug/linnum.asm:16 | ; 110 : dmyproc = SymSearch( procname );
lea rcx, QWORD PTR procname$1[rsp]
call SymFind
mov QWORD PTR dmyproc, rax
; 111 :
; 112 : /* in pass 1, create the proc */
; 113 : if ( dmyproc == NULL ) {
cmp QWORD PTR dmyproc, 0
jne SHORT $LN5@AddLinnumD
; 114 : dmyproc = Cre... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 601 | 660 |
Terraspace/UASM:x64/Debug/linnum.asm:17 | mov rcx, QWORD PTR dmyproc
mov BYTE PTR [rcx+49], al
; 118 : AddPublicData( dmyproc );
mov rcx, QWORD PTR dmyproc
call AddPublicData
; 119 : } else
jmp SHORT $LN6@AddLinnumD
$LN5@AddLinnumD:
; 120 : procidx++; /* for passes > 1, adjust procidx */
mov eax, DWORD PTR procidx
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 641 | 700 |
Terraspace/UASM:x64/Debug/linnum.asm:18 | mov rax, QWORD PTR dmyproc
movzx ecx, BYTE PTR ModuleInfo+404
mov BYTE PTR [rax+52], cl
; 127 : dmyproc->langtype = ModuleInfo.langtype;
mov rax, QWORD PTR dmyproc
mov ecx, DWORD PTR ModuleInfo+364
mov DWORD PTR [rax+84], ecx
; 128 : if ( write_to_file == TRUE ) {
movzx eax, BYTE PTR... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 681 | 740 |
Terraspace/UASM:x64/Debug/linnum.asm:19 | mov DWORD PTR [rcx+12], eax
; 132 : curr->file = srcfile;
mov eax, DWORD PTR srcfile$[rsp]
and eax, 4095 ; 00000fffH
shl eax, 20
mov rcx, QWORD PTR curr$[rsp]
mov ecx, DWORD PTR [rcx+12]
and ecx, 1048575 ; 000fffffH
or ecx, eax
mov eax, ecx
mov rcx, QWORD PTR curr$[rsp]
mov DWORD PTR ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 721 | 780 |
Terraspace/UASM:x64/Debug/linnum.asm:20 | call AddLinnumData
$LN8@AddLinnumD:
$LN7@AddLinnumD:
$LN2@AddLinnumD:
; 136 : }
; 137 : }
; 138 : }
; 139 : #endif
; 140 :
; 141 : if( line_num && ( write_to_file == FALSE || lastLineNumber == line_num )) {
cmp DWORD PTR line_num$[rsp], 0
je SHORT $LN9@AddLinnumD
movzx eax, BYTE ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 761 | 820 |
Terraspace/UASM:x64/Debug/linnum.asm:21 | jmp $LN1@AddLinnumD
$LN9@AddLinnumD:
; 147 : }
; 148 : DebugMsg1(("AddLinnumDataRef(src=%u.%u): currofs=%Xh, CurrProc=%s, GeneratedCode=%u\n", srcfile, line_num, GetCurrOffset(), CurrProc ? CurrProc->sym.name : "NULL", ModuleInfo.GeneratedCode ));
cmp QWORD PTR CurrProc, 0
je SHORT $LN25@AddLinnumD
mov r... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 801 | 860 |
Terraspace/UASM:x64/Debug/linnum.asm:22 | ; 152 : #if COFF_SUPPORT
; 153 : if ( line_num == 0 ) { /* happens for COFF only */
cmp DWORD PTR line_num$[rsp], 0
jne $LN12@AddLinnumD
; 154 : /* changed v2.03 (CurrProc might have been NULL) */
; 155 : /* if ( Options.output_format == OFORMAT_COFF && CurrProc->sym.public == FALSE ) { */
;... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 841 | 900 |
Terraspace/UASM:x64/Debug/linnum.asm:23 | $LN14@AddLinnumD:
; 162 : }
; 163 : /* changed v2.03 */
; 164 : /* curr->sym = (struct asym *)CurrProc; */
; 165 : curr->sym = ( CurrProc ? (struct asym *)CurrProc : dmyproc );
cmp QWORD PTR CurrProc, 0
je SHORT $LN27@AddLinnumD
mov rax, QWORD PTR CurrProc
mov QWORD PTR tv223[r... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 881 | 940 |
Terraspace/UASM:x64/Debug/linnum.asm:24 | mov ecx, DWORD PTR [rcx+12]
and ecx, 1048575 ; 000fffffH
or ecx, eax
mov eax, ecx
mov rcx, QWORD PTR curr$[rsp]
mov DWORD PTR [rcx+12], eax
; 168 : /* set the function's size! */
; 169 : if ( dmyproc ) {
cmp QWORD PTR dmyproc, 0
je SHORT $LN15@AddLinnumD
; 170 : /**/myassert(... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 921 | 980 |
Terraspace/UASM:x64/Debug/linnum.asm:25 | ; 173 : dmyproc->offset;
; 174 : dmyproc = NULL;
mov QWORD PTR dmyproc, 0
$LN15@AddLinnumD:
; 175 : }
; 176 : /* v2.11: write a 0x7fff line item if prologue exists */
; 177 : if ( CurrProc && CurrProc->e.procinfo->size_prolog ) {
cmp QWORD PTR CurrProc, 0
j... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 961 | 1,020 |
Terraspace/UASM:x64/Debug/linnum.asm:26 | mov ecx, 24
call LclAlloc
mov QWORD PTR curr$[rsp], rax
; 181 : curr->number = GetLineNumber();
call GetLineNumber
mov rcx, QWORD PTR curr$[rsp]
mov DWORD PTR [rcx+8], eax
; 182 : curr->offset = GetCurrOffset();
call GetCurrOffset
mov rcx, QWORD PTR curr$[rsp]
mov DWORD PTR [rcx+12... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 1,001 | 1,060 |
Terraspace/UASM:x64/Debug/linnum.asm:27 | mov ecx, DWORD PTR srcfile$[rsp]
mov DWORD PTR [rax+16], ecx
$LN13@AddLinnumD:
; 189 : #if COFF_SUPPORT
; 190 : }
; 191 : #endif
; 192 : lastLineNumber = line_num;
mov eax, DWORD PTR line_num$[rsp]
mov DWORD PTR lastLineNumber, eax
; 193 :
; 194 : /* v2.11: added, improved multi source support f... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 1,041 | 1,100 |
Terraspace/UASM:x64/Debug/linnum.asm:28 | ; 203 : CurrSeg->e.seginfo->linnum_init = TRUE;
mov rax, QWORD PTR ModuleInfo+432
mov rax, QWORD PTR [rax+104]
movzx eax, BYTE PTR [rax+107]
or al, 64 ; 00000040H
mov rcx, QWORD PTR ModuleInfo+432
mov rcx, QWORD PTR [rcx+104]
mov BYTE PTR [rcx+107], al
; 204 : if ( TypeFromClassName( Curr... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 1,081 | 1,140 |
Terraspace/UASM:x64/Debug/linnum.asm:29 | shr eax, 20
and eax, 4095 ; 00000fffH
mov DWORD PTR tv310[rsp], eax
jmp SHORT $LN32@AddLinnumD
$LN31@AddLinnumD:
mov rax, QWORD PTR curr$[rsp]
mov eax, DWORD PTR [rax+16]
mov DWORD PTR tv310[rsp], eax
$LN32@AddLinnumD:
mov rax, QWORD PTR curr$[rsp]
mov r9d, DWORD PTR [rax+12]
mov rax, QWORD PTR curr$[rsp]
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 1,121 | 1,180 |
Terraspace/UASM:x64/Debug/linnum.asm:30 | _Buffer$ = 64
_Format$ = 72
sprintf PROC ; COMDAT
; 1776 : {
$LN3:
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
mov QWORD PTR [rsp+24], r8
mov QWORD PTR [rsp+32], r9
sub rsp, 56 ; 00000038H
; 1777 : int _Result;
; 1778 : va_list _ArgList;
; 1779 : __crt_va_start(_ArgList, _Format)... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 1,161 | 1,220 |
Terraspace/UASM:x64/Debug/linnum.asm:31 | mov eax, DWORD PTR _Result$[rsp]
; 1788 : }
add rsp, 56 ; 00000038H
ret 0
sprintf ENDP
_TEXT ENDS
; Function compile flags: /Odtp
; File c:\program files (x86)\windows kits\10\include\10.0.10150.0\ucrt\stdio.h
; COMDAT _vsprintf_l
_TEXT SEGMENT
_Buffer$ = 64
_Format$ = 72
_Locale$ = 80
_ArgList$ = 88
_vsprintf_... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 1,201 | 1,260 |
Terraspace/UASM:x64/Debug/linnum.asm:32 | ; 1460 : }
add rsp, 56 ; 00000038H
ret 0
_vsprintf_l ENDP
_TEXT ENDS
; Function compile flags: /Odtp
; File c:\program files (x86)\windows kits\10\include\10.0.10150.0\ucrt\stdio.h
; COMDAT _vsnprintf_l
_TEXT SEGMENT
_Result$ = 48
tv74 = 52
_Buffer$ = 80
_BufferCount$ = 88
_Format$ = 96
_Locale$ = 104
_ArgList$ ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 1,241 | 1,300 |
Terraspace/UASM:x64/Debug/linnum.asm:33 | mov rcx, rax
call __stdio_common_vsprintf
mov DWORD PTR _Result$[rsp], eax
; 1387 : _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS | _CRT_INTERNAL_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION,
; 1388 : _Buffer, _BufferCount, _Format, _Locale, _ArgList);
; 1389 :
; 1390 : return _Result < 0 ? -1 : _Result;
cmp D... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | d7506aacc85bc7c53cec33951ed5e681ad4e86a0 | github | assembler | https://github.com/Terraspace/UASM/blob/d7506aacc85bc7c53cec33951ed5e681ad4e86a0/x64/Debug/linnum.asm | 1,281 | 1,322 |
Terraspace/UASM:x64/Debug/linnum.asm:4 | DD 078H
$unwind$LinnumFini DD 010401H
DD 04204H
$unwind$QueueDeleteLinnum DD 010901H
DD 02209H
$unwind$AddLinnumData DD 010901H
DD 06209H
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$sprintf DD 011801H
DD 06218H
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$_vsprintf_l DD 011801H
DD 06218H
xdata ENDS
; COMDAT... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Debug/linnum.asm | 121 | 180 |
Terraspace/UASM:x64/Debug/linnum.asm:5 | cmp DWORD PTR Options+160, 2
jne SHORT $LN2@AddLinnumD
; 45 : q = (struct qdesc *)CurrSeg->e.seginfo->LinnumQueue;
mov rax, QWORD PTR ModuleInfo+432
mov rax, QWORD PTR [rax+96]
mov rax, QWORD PTR [rax+56]
mov QWORD PTR q$[rsp], rax
; 46 : if ( q == NULL ) {
cmp QWORD PTR q$[rsp], 0
jne SH... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Debug/linnum.asm | 161 | 220 |
Terraspace/UASM:x64/Debug/linnum.asm:11 | jmp SHORT $LN2@QueueDelet
$LN3@QueueDelet:
$LN1@QueueDelet:
; 237 : return;
; 238 : }
add rsp, 24
ret 0
QueueDeleteLinnum ENDP
_TEXT ENDS
; Function compile flags: /Odtp
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\linnum.c
_TEXT SEGMENT
LinnumFini PROC
; 245 : {
$LN4:
sub rsp, 40 ; 00000028H
; 246 ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Debug/linnum.asm | 401 | 460 |
Terraspace/UASM:x64/Debug/linnum.asm:13 | tv310 = 56
tv79 = 60
tv161 = 64
tv226 = 68
tv243 = 72
tv92 = 80
tv198 = 88
tv223 = 96
procname$1 = 104
__$ArrayPad$ = 120
srcfile$ = 144
line_num$ = 152
AddLinnumDataRef PROC
; 85 : {
$LN33:
mov DWORD PTR [rsp+16], edx
mov DWORD PTR [rsp+8], ecx
sub rsp, 136 ; 00000088H
mov rax, QWORD PTR __security_cookie
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Debug/linnum.asm | 481 | 540 |
Terraspace/UASM:x64/Debug/linnum.asm:14 | jne $LN2@AddLinnumD
cmp QWORD PTR dmyproc, 0
je SHORT $LN3@AddLinnumD
mov rax, QWORD PTR dmyproc
mov rax, QWORD PTR [rax+64]
movzx eax, WORD PTR [rax+14]
cmp eax, DWORD PTR srcfile$[rsp]
jne SHORT $LN3@AddLinnumD
mov rax, QWORD PTR dmyproc
mov rcx, QWORD PTR ModuleInfo+432
cmp QWORD PTR [rax+24], rcx
je $LN2... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Debug/linnum.asm | 521 | 580 |
Terraspace/UASM:x64/Debug/linnum.asm:15 | mov rax, QWORD PTR [rax+24]
mov rax, QWORD PTR [rax+96]
mov rcx, QWORD PTR dmyproc
mov ecx, DWORD PTR [rcx+16]
mov eax, DWORD PTR [rax+12]
sub eax, ecx
mov rcx, QWORD PTR dmyproc
mov DWORD PTR [rcx+56], eax
$LN4@AddLinnumD:
; 105 : ((struct dsym *)dmyproc->segment)->e.seginfo->current_loc -
; 1... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Debug/linnum.asm | 561 | 620 |
Terraspace/UASM:x64/Debug/linnum.asm:16 | ; 110 : dmyproc = SymSearch( procname );
lea rcx, QWORD PTR procname$1[rsp]
call SymFind
mov QWORD PTR dmyproc, rax
; 111 :
; 112 : /* in pass 1, create the proc */
; 113 : if ( dmyproc == NULL ) {
cmp QWORD PTR dmyproc, 0
jne SHORT $LN5@AddLinnumD
; 114 : dmyproc = Cre... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Debug/linnum.asm | 601 | 660 |
Terraspace/UASM:x64/Debug/linnum.asm:17 | mov rcx, QWORD PTR dmyproc
mov BYTE PTR [rcx+41], al
; 118 : AddPublicData( dmyproc );
mov rcx, QWORD PTR dmyproc
call AddPublicData
; 119 : } else
jmp SHORT $LN6@AddLinnumD
$LN5@AddLinnumD:
; 120 : procidx++; /* for passes > 1, adjust procidx */
mov eax, DWORD PTR procidx
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Debug/linnum.asm | 641 | 700 |
Terraspace/UASM:x64/Debug/linnum.asm:18 | mov rax, QWORD PTR dmyproc
movzx ecx, BYTE PTR ModuleInfo+404
mov BYTE PTR [rax+44], cl
; 127 : dmyproc->langtype = ModuleInfo.langtype;
mov rax, QWORD PTR dmyproc
mov ecx, DWORD PTR ModuleInfo+364
mov DWORD PTR [rax+76], ecx
; 128 : if ( write_to_file == TRUE ) {
movzx eax, BYTE PTR... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Debug/linnum.asm | 681 | 740 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.