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/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 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/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 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/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 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/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 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Debug/linnum.asm | 961 | 1,020 |
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 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/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+96]
movzx eax, BYTE PTR [rax+107]
or al, 64 ; 00000040H
mov rcx, QWORD PTR ModuleInfo+432
mov rcx, QWORD PTR [rcx+96]
mov BYTE PTR [rcx+107], al
; 204 : if ( TypeFromClassName( CurrSe... | 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 | 1,081 | 1,140 |
Terraspace/UASM:x64/Debug/linnum.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23026.0
include listing.inc
INCLUDELIB MSVCRTD
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM decoflags:BYTE
COMM broadflags:BYTE
COMM evex:BYTE
COMM ZEROLOCALS:BYTE
_DATA ENDS
_DATA SEGMENT
$SG11402 DB 'linnum.c', 00H
ORG $+7
$SG11403 DB '$$$%05u', 00H... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 1 | 60 |
Terraspace/UASM:x64/Debug/linnum.asm:2 | $SG11422 DB 'linnum.c', 00H
ORG $+7
$SG11428 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 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 41 | 100 |
Terraspace/UASM:x64/Debug/linnum.asm:3 | _DATA SEGMENT
COMM ?_OptionsStorage@?1??__local_stdio_printf_options@@9@9:QWORD ; `__local_stdio_printf_options'::`2'::_OptionsStorage
_DATA ENDS
_BSS SEGMENT
dmyproc DQ 01H DUP (?)
lastLineNumber DD 01H DUP (?)
_BSS ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$__local_stdio_printf_options DD imagerel $LN3
DD imager... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 81 | 140 |
Terraspace/UASM:x64/Debug/linnum.asm:4 | DD imagerel $unwind$LinnumFini
$pdata$QueueDeleteLinnum DD imagerel $LN7
DD imagerel $LN7+90
DD imagerel $unwind$QueueDeleteLinnum
$pdata$AddLinnumData DD imagerel AddLinnumData
DD imagerel AddLinnumData+217
DD imagerel $unwind$AddLinnumData
pdata ENDS
; COMDAT rtc$TMZ
rtc$TMZ SEGMENT
_RTC_Shutdown.rtc$TMZ DQ FLAT:... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 121 | 180 |
Terraspace/UASM:x64/Debug/linnum.asm:5 | DB 00H
ORG $+7
AddLinnumDataRef$rtcVarDesc DD 048H
DD 0cH
DQ FLAT:AddLinnumDataRef$rtcName$0
ORG $+48
AddLinnumDataRef$rtcFrameData DD 01H
DD 00H
DQ FLAT:AddLinnumDataRef$rtcVarDesc
CONST ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$sprintf DD 022d01H
DD 070159219H
xdata ENDS
; COMDAT CONST
CONST SEGMENT
sprintf$rt... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 161 | 220 |
Terraspace/UASM:x64/Debug/linnum.asm:6 | ; 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.13.1s\linnum.c
_TEXT SEGMENT
q$ = 32
data$ = 64
AddLinnu... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 201 | 260 |
Terraspace/UASM:x64/Debug/linnum.asm:7 | mov QWORD PTR q$[rsp], rax
; 45 : if ( q == NULL ) {
cmp QWORD PTR q$[rsp], 0
jne SHORT $LN4@AddLinnumD
; 46 : q = LclAlloc( sizeof( struct qdesc ) );
mov ecx, 16
call LclAlloc
mov QWORD PTR q$[rsp], rax
; 47 : CurrSeg->e.seginfo->LinnumQueue = q;
mov rax, QWORD PTR Mod... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 241 | 300 |
Terraspace/UASM:x64/Debug/linnum.asm:8 | ; 54 : data->next = NULL;
mov rax, QWORD PTR data$[rsp]
mov QWORD PTR [rax], 0
; 55 : if ( q->head == NULL)
mov rax, QWORD PTR q$[rsp]
cmp QWORD PTR [rax], 0
jne SHORT $LN5@AddLinnumD
; 56 : q->head = q->tail = data;
mov rax, QWORD PTR q$[rsp]
mov rcx, QWORD PTR data$[rsp]
mov QWORD P... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 281 | 340 |
Terraspace/UASM:x64/Debug/linnum.asm:9 | add rsp, 48 ; 00000030H
pop rdi
ret 0
AddLinnumData ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\linnum.c
_TEXT SEGMENT
curr$ = 0
next$ = 8
queue$ = 32
QueueDeleteLinnum PROC
; 202 : {
$LN7:
mov QWORD PTR [rsp+8], rcx
push rdi
sub rsp, 16
mov rdi, rsp
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 321 | 380 |
Terraspace/UASM:x64/Debug/linnum.asm:10 | mov rax, QWORD PTR queue$[rsp]
mov rax, QWORD PTR [rax]
mov QWORD PTR curr$[rsp], rax
; 209 : for( ; curr ; curr = next ) {
jmp SHORT $LN4@QueueDelet
$LN2@QueueDelet:
mov rax, QWORD PTR next$[rsp]
mov QWORD PTR curr$[rsp], rax
$LN4@QueueDelet:
cmp QWORD PTR curr$[rsp], 0
je SHORT $LN3@QueueDelet
; 210 :... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 361 | 420 |
Terraspace/UASM:x64/Debug/linnum.asm:11 | ; 221 : {
$LN4:
push rdi
sub rsp, 32 ; 00000020H
mov rdi, rsp
mov ecx, 8
mov eax, -858993460 ; ccccccccH
rep stosd
; 222 : #if COFF_SUPPORT
; 223 : if ( dmyproc ) {
cmp QWORD PTR dmyproc, 0
je SHORT $LN2@LinnumFini
; 224 : dmyproc->total_size =
mov rax, QWORD PTR dmyproc
mov rax, Q... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 401 | 460 |
Terraspace/UASM:x64/Debug/linnum.asm:12 | add rsp, 32 ; 00000020H
pop rdi
ret 0
LinnumFini ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\linnum.c
_TEXT SEGMENT
LinnumInit PROC
; 234 : {
$LN3:
push rdi
; 235 : lastLineNumber = 0;
mov DWORD PTR lastLineNumber, 0
; 236 : #if COFF_SUPPORT
; ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 441 | 500 |
Terraspace/UASM:x64/Debug/linnum.asm:13 | tv223 = 144
tv226 = 152
tv243 = 156
tv310 = 160
__$ArrayPad$ = 168
srcfile$ = 192
line_num$ = 200
AddLinnumDataRef PROC
; 71 : {
$LN33:
mov DWORD PTR [rsp+16], edx
mov DWORD PTR [rsp+8], ecx
push rdi
sub rsp, 176 ; 000000b0H
mov rdi, rsp
mov ecx, 44 ; 0000002cH
mov eax, -858993460 ; ccccccccH
rep ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 481 | 540 |
Terraspace/UASM:x64/Debug/linnum.asm:14 | cmp QWORD PTR CurrProc, 0
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... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 521 | 580 |
Terraspace/UASM:x64/Debug/linnum.asm:15 | mov rax, QWORD PTR dmyproc
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:
; 91 : ((struct dsym *)dmyproc->segment)->... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 561 | 620 |
Terraspace/UASM:x64/Debug/linnum.asm:16 | ; 96 : dmyproc = SymSearch( procname );
lea rcx, QWORD PTR procname$4[rsp]
call SymFind
mov QWORD PTR dmyproc, rax
; 97 :
; 98 : /* in pass 1, create the proc */
; 99 : if ( dmyproc == NULL ) {
cmp QWORD PTR dmyproc, 0
jne SHORT $LN5@AddLinnumD
; 100 : dmyproc = Cre... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 601 | 660 |
Terraspace/UASM:x64/Debug/linnum.asm:17 | or al, 64 ; 00000040H
mov rcx, QWORD PTR dmyproc
mov BYTE PTR [rcx+41], al
; 104 : AddPublicData( dmyproc );
mov rcx, QWORD PTR dmyproc
call AddPublicData
; 105 : } else
jmp SHORT $LN6@AddLinnumD
$LN5@AddLinnumD:
; 106 : procidx++; /* for passes > 1, adjust procidx */
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/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
; 113 : dmyproc->langtype = ModuleInfo.langtype;
mov rax, QWORD PTR dmyproc
mov ecx, DWORD PTR ModuleInfo+364
mov DWORD PTR [rax+76], ecx
; 114 : if ( write_to_file == TRUE ) {
movzx eax, BYTE PTR... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 681 | 740 |
Terraspace/UASM:x64/Debug/linnum.asm:19 | mov rcx, QWORD PTR curr$[rsp]
mov DWORD PTR [rcx+12], eax
; 118 : 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... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 721 | 780 |
Terraspace/UASM:x64/Debug/linnum.asm:20 | mov rcx, QWORD PTR curr$[rsp]
call AddLinnumData
$LN8@AddLinnumD:
$LN7@AddLinnumD:
$LN2@AddLinnumD:
; 122 : }
; 123 : }
; 124 : }
; 125 : #endif
; 126 :
; 127 : if( line_num && ( write_to_file == FALSE || lastLineNumber == line_num )) {
cmp DWORD PTR line_num$[rsp], 0
je SHORT $L... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 761 | 820 |
Terraspace/UASM:x64/Debug/linnum.asm:21 | ; 132 : return;
jmp $LN1@AddLinnumD
$LN9@AddLinnumD:
; 133 : }
; 134 : 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 SH... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 801 | 860 |
Terraspace/UASM:x64/Debug/linnum.asm:22 | mov DWORD PTR [rax+8], ecx
; 138 : #if COFF_SUPPORT
; 139 : if ( line_num == 0 ) { /* happens for COFF only */
cmp DWORD PTR line_num$[rsp], 0
jne $LN12@AddLinnumD
; 140 : /* changed v2.03 (CurrProc might have been NULL) */
; 141 : /* if ( Options.output_format == OFORMAT_COFF && CurrProc->... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 841 | 900 |
Terraspace/UASM:x64/Debug/linnum.asm:23 | call AddPublicData
$LN14@AddLinnumD:
; 148 : }
; 149 : /* changed v2.03 */
; 150 : /* curr->sym = (struct asym *)CurrProc; */
; 151 : curr->sym = ( CurrProc ? (struct asym *)CurrProc : dmyproc );
cmp QWORD PTR CurrProc, 0
je SHORT $LN27@AddLinnumD
mov rax, QWORD PTR CurrProc
mo... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 881 | 940 |
Terraspace/UASM:x64/Debug/linnum.asm:24 | 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 [rcx+12], eax
; 154 : /* set the function's size! */
; 155 : if ( dmyproc ) {
cmp QWORD PTR dmyproc, 0
je SHORT $LN15@AddLinnumD
; 1... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 921 | 980 |
Terraspace/UASM:x64/Debug/linnum.asm:25 | ; 158 : ((struct dsym *)dmyproc->segment)->e.seginfo->current_loc -
; 159 : dmyproc->offset;
; 160 : dmyproc = NULL;
mov QWORD PTR dmyproc, 0
$LN15@AddLinnumD:
; 161 : }
; 162 : /* v2.11: write a 0x7fff line item if prologue exists */
; 163 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 961 | 1,020 |
Terraspace/UASM:x64/Debug/linnum.asm:26 | ; 166 : curr = LclAlloc( sizeof( struct line_num_info ) );
mov ecx, 24
call LclAlloc
mov QWORD PTR curr$[rsp], rax
; 167 : curr->number = GetLineNumber();
call GetLineNumber
mov rcx, QWORD PTR curr$[rsp]
mov DWORD PTR [rcx+8], eax
; 168 : curr->offset = GetCurrOffset();
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 1,001 | 1,060 |
Terraspace/UASM:x64/Debug/linnum.asm:27 | mov rax, QWORD PTR curr$[rsp]
mov ecx, DWORD PTR srcfile$[rsp]
mov DWORD PTR [rax+16], ecx
$LN13@AddLinnumD:
; 175 : #if COFF_SUPPORT
; 176 : }
; 177 : #endif
; 178 : lastLineNumber = line_num;
mov eax, DWORD PTR line_num$[rsp]
mov DWORD PTR lastLineNumber, eax
; 179 :
; 180 : /* v2.11: added, ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 1,041 | 1,100 |
Terraspace/UASM:x64/Debug/linnum.asm:28 | jne SHORT $LN18@AddLinnumD
; 189 : CurrSeg->e.seginfo->linnum_init = TRUE;
mov rax, QWORD PTR ModuleInfo+432
mov rax, QWORD PTR [rax+96]
movzx eax, BYTE PTR [rax+107]
or al, 64 ; 00000040H
mov rcx, QWORD PTR ModuleInfo+432
mov rcx, QWORD PTR [rcx+96]
mov BYTE PTR [rcx+107], al
; 190 : if... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 1,081 | 1,140 |
Terraspace/UASM:x64/Debug/linnum.asm:29 | mov eax, DWORD PTR [rax+12]
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]
mo... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 1,121 | 1,180 |
Terraspace/UASM:x64/Debug/linnum.asm:30 | ; File c:\program files (x86)\windows kits\10\include\10.0.10150.0\ucrt\stdio.h
; COMDAT sprintf
_TEXT SEGMENT
_Result$ = 32
_ArgList$ = 56
_Buffer$ = 96
_Format$ = 104
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+... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 1,161 | 1,220 |
Terraspace/UASM:x64/Debug/linnum.asm:31 | call _vsprintf_l
mov DWORD PTR _Result$[rsp], eax
; 1784 : #pragma warning(pop)
; 1785 :
; 1786 : __crt_va_end(_ArgList);
mov QWORD PTR _ArgList$[rsp], 0
; 1787 : return _Result;
mov eax, DWORD PTR _Result$[rsp]
; 1788 : }
mov edi, eax
mov rcx, rsp
lea rdx, OFFSET FLAT:sprintf$rtcFrameData
call... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 1,201 | 1,260 |
Terraspace/UASM:x64/Debug/linnum.asm:32 | mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
push rdi
sub rsp, 48 ; 00000030H
mov rdi, rsp
mov ecx, 12
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+64]
; 1456 : #pragma warning(push)
; 1457 : #pragma warning(disable: 4996) // Deprecation
; 1458 : return _vsnpri... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 1,241 | 1,300 |
Terraspace/UASM:x64/Debug/linnum.asm:33 | _ArgList$ = 112
_vsnprintf_l PROC ; COMDAT
; 1385 : {
$LN5:
mov QWORD PTR [rsp+32], r9
mov QWORD PTR [rsp+24], r8
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
push rdi
sub rsp, 64 ; 00000040H
mov rdi, rsp
mov ecx, 16
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+80]... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 1,281 | 1,340 |
Terraspace/UASM:x64/Debug/linnum.asm:34 | jge SHORT $LN3@vsnprintf_
mov DWORD PTR tv74[rsp], -1
jmp SHORT $LN4@vsnprintf_
$LN3@vsnprintf_:
mov eax, DWORD PTR _Result$[rsp]
mov DWORD PTR tv74[rsp], eax
$LN4@vsnprintf_:
mov eax, DWORD PTR tv74[rsp]
; 1391 : }
add rsp, 64 ; 00000040H
pop rdi
ret 0
_vsnprintf_l ENDP
_TEXT ENDS
; Function compile flag... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/linnum.asm | 1,321 | 1,359 |
Terraspace/UASM:x64/Debug/linnum.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23026.0
include listing.inc
INCLUDELIB MSVCRTD
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM decoflags:BYTE
COMM broadflags:BYTE
COMM evex:BYTE
_DATA ENDS
_DATA SEGMENT
$SG11403 DB 'linnum.c', 00H
ORG $+7
$SG11404 DB '$$$%05u', 00H
$SG11405 DB 'NULL', ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/linnum.asm | 1 | 60 |
Terraspace/UASM:x64/Debug/linnum.asm:2 | ORG $+7
$SG11429 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 __imp___stdio_common_vsprintf:P... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/linnum.asm | 41 | 100 |
Terraspace/UASM:x64/Debug/linnum.asm:3 | COMM ?_OptionsStorage@?1??__local_stdio_printf_options@@9@9:QWORD ; `__local_stdio_printf_options'::`2'::_OptionsStorage
_DATA ENDS
_BSS SEGMENT
dmyproc DQ 01H DUP (?)
lastLineNumber DD 01H DUP (?)
_BSS ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$__local_stdio_printf_options DD imagerel $LN3
DD imagerel $LN3+11
DD... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/linnum.asm | 81 | 140 |
Terraspace/UASM:x64/Debug/linnum.asm:4 | $pdata$QueueDeleteLinnum DD imagerel $LN7
DD imagerel $LN7+90
DD imagerel $unwind$QueueDeleteLinnum
$pdata$AddLinnumData DD imagerel AddLinnumData
DD imagerel AddLinnumData+217
DD imagerel $unwind$AddLinnumData
pdata ENDS
; COMDAT rtc$TMZ
rtc$TMZ SEGMENT
_RTC_Shutdown.rtc$TMZ DQ FLAT:_RTC_Shutdown
rtc$TMZ ENDS
; CO... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/linnum.asm | 121 | 180 |
Terraspace/UASM:x64/Debug/linnum.asm:5 | ORG $+7
AddLinnumDataRef$rtcVarDesc DD 048H
DD 0cH
DQ FLAT:AddLinnumDataRef$rtcName$0
ORG $+48
AddLinnumDataRef$rtcFrameData DD 01H
DD 00H
DQ FLAT:AddLinnumDataRef$rtcVarDesc
CONST ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$sprintf DD 022d01H
DD 070159219H
xdata ENDS
; COMDAT CONST
CONST SEGMENT
sprintf$rtcName$0 ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/linnum.asm | 161 | 220 |
Terraspace/UASM:x64/Debug/linnum.asm:6 | 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.13.1s\linnum.c
_TEXT SEGMENT
q$ = 32
data$ = 64
AddLinnumData PROC
; 4... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/linnum.asm | 201 | 260 |
Terraspace/UASM:x64/Debug/linnum.asm:7 | ; 45 : if ( q == NULL ) {
cmp QWORD PTR q$[rsp], 0
jne SHORT $LN4@AddLinnumD
; 46 : q = LclAlloc( sizeof( struct qdesc ) );
mov ecx, 16
call LclAlloc
mov QWORD PTR q$[rsp], rax
; 47 : CurrSeg->e.seginfo->LinnumQueue = q;
mov rax, QWORD PTR ModuleInfo+432
mov rax, QWORD ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/linnum.asm | 241 | 300 |
Terraspace/UASM:x64/Debug/linnum.asm:8 | mov rax, QWORD PTR data$[rsp]
mov QWORD PTR [rax], 0
; 55 : if ( q->head == NULL)
mov rax, QWORD PTR q$[rsp]
cmp QWORD PTR [rax], 0
jne SHORT $LN5@AddLinnumD
; 56 : q->head = q->tail = data;
mov rax, QWORD PTR q$[rsp]
mov rcx, QWORD PTR data$[rsp]
mov QWORD PTR [rax+8], rcx
mov rax, QWORD PT... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/linnum.asm | 281 | 340 |
Terraspace/UASM:x64/Debug/linnum.asm:9 | pop rdi
ret 0
AddLinnumData ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\linnum.c
_TEXT SEGMENT
curr$ = 0
next$ = 8
queue$ = 32
QueueDeleteLinnum PROC
; 202 : {
$LN7:
mov QWORD PTR [rsp+8], rcx
push rdi
sub rsp, 16
mov rdi, rsp
mov ecx, 4
mov eax, -858993... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/linnum.asm | 321 | 380 |
Terraspace/UASM:x64/Debug/linnum.asm:10 | mov rax, QWORD PTR [rax]
mov QWORD PTR curr$[rsp], rax
; 209 : for( ; curr ; curr = next ) {
jmp SHORT $LN4@QueueDelet
$LN2@QueueDelet:
mov rax, QWORD PTR next$[rsp]
mov QWORD PTR curr$[rsp], rax
$LN4@QueueDelet:
cmp QWORD PTR curr$[rsp], 0
je SHORT $LN3@QueueDelet
; 210 : next = curr->next;
mo... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/linnum.asm | 361 | 420 |
Terraspace/UASM:x64/Debug/linnum.asm:11 | $LN4:
push rdi
sub rsp, 32 ; 00000020H
mov rdi, rsp
mov ecx, 8
mov eax, -858993460 ; ccccccccH
rep stosd
; 222 : #if COFF_SUPPORT
; 223 : if ( dmyproc ) {
cmp QWORD PTR dmyproc, 0
je SHORT $LN2@LinnumFini
; 224 : dmyproc->total_size =
mov rax, QWORD PTR dmyproc
mov rax, QWORD PTR [ra... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/linnum.asm | 401 | 460 |
Terraspace/UASM:x64/Debug/linnum.asm:12 | pop rdi
ret 0
LinnumFini ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\linnum.c
_TEXT SEGMENT
LinnumInit PROC
; 234 : {
$LN3:
push rdi
; 235 : lastLineNumber = 0;
mov DWORD PTR lastLineNumber, 0
; 236 : #if COFF_SUPPORT
; 237 : dmyproc = NULL;
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/linnum.asm | 441 | 500 |
Terraspace/UASM:x64/Debug/linnum.asm:13 | tv226 = 152
tv243 = 156
tv310 = 160
__$ArrayPad$ = 168
srcfile$ = 192
line_num$ = 200
AddLinnumDataRef PROC
; 71 : {
$LN33:
mov DWORD PTR [rsp+16], edx
mov DWORD PTR [rsp+8], ecx
push rdi
sub rsp, 176 ; 000000b0H
mov rdi, rsp
mov ecx, 44 ; 0000002cH
mov eax, -858993460 ; ccccccccH
rep stosd
mov e... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/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 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/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:
; 91 : ((struct dsym *)dmyproc->segment)->e.seginfo->current_loc -
; 9... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/linnum.asm | 561 | 620 |
Terraspace/UASM:x64/Debug/linnum.asm:16 | ; 96 : dmyproc = SymSearch( procname );
lea rcx, QWORD PTR procname$4[rsp]
call SymFind
mov QWORD PTR dmyproc, rax
; 97 :
; 98 : /* in pass 1, create the proc */
; 99 : if ( dmyproc == NULL ) {
cmp QWORD PTR dmyproc, 0
jne SHORT $LN5@AddLinnumD
; 100 : dmyproc = Cre... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/linnum.asm | 601 | 660 |
Terraspace/UASM:x64/Debug/linnum.asm:17 | mov rcx, QWORD PTR dmyproc
mov BYTE PTR [rcx+41], al
; 104 : AddPublicData( dmyproc );
mov rcx, QWORD PTR dmyproc
call AddPublicData
; 105 : } else
jmp SHORT $LN6@AddLinnumD
$LN5@AddLinnumD:
; 106 : 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 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/linnum.asm | 641 | 700 |
Terraspace/UASM:x64/Debug/linnum.asm:19 | mov DWORD PTR [rcx+12], eax
; 118 : 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 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/linnum.asm | 721 | 780 |
Terraspace/UASM:x64/Debug/linnum.asm:20 | call AddLinnumData
$LN8@AddLinnumD:
$LN7@AddLinnumD:
$LN2@AddLinnumD:
; 122 : }
; 123 : }
; 124 : }
; 125 : #endif
; 126 :
; 127 : 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 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/linnum.asm | 761 | 820 |
Terraspace/UASM:x64/Debug/linnum.asm:21 | jmp $LN1@AddLinnumD
$LN9@AddLinnumD:
; 133 : }
; 134 : 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 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/linnum.asm | 801 | 860 |
Terraspace/UASM:x64/Debug/linnum.asm:22 | ; 138 : #if COFF_SUPPORT
; 139 : if ( line_num == 0 ) { /* happens for COFF only */
cmp DWORD PTR line_num$[rsp], 0
jne $LN12@AddLinnumD
; 140 : /* changed v2.03 (CurrProc might have been NULL) */
; 141 : /* if ( Options.output_format == OFORMAT_COFF && CurrProc->sym.public == FALSE ) { */
;... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/linnum.asm | 841 | 900 |
Terraspace/UASM:x64/Debug/linnum.asm:23 | $LN14@AddLinnumD:
; 148 : }
; 149 : /* changed v2.03 */
; 150 : /* curr->sym = (struct asym *)CurrProc; */
; 151 : 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 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/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
; 154 : /* set the function's size! */
; 155 : if ( dmyproc ) {
cmp QWORD PTR dmyproc, 0
je SHORT $LN15@AddLinnumD
; 156 : /**/myassert(... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/linnum.asm | 921 | 980 |
Terraspace/UASM:x64/Debug/linnum.asm:25 | ; 159 : dmyproc->offset;
; 160 : dmyproc = NULL;
mov QWORD PTR dmyproc, 0
$LN15@AddLinnumD:
; 161 : }
; 162 : /* v2.11: write a 0x7fff line item if prologue exists */
; 163 : 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 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/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
; 167 : curr->number = GetLineNumber();
call GetLineNumber
mov rcx, QWORD PTR curr$[rsp]
mov DWORD PTR [rcx+8], eax
; 168 : 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 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/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:
; 175 : #if COFF_SUPPORT
; 176 : }
; 177 : #endif
; 178 : lastLineNumber = line_num;
mov eax, DWORD PTR line_num$[rsp]
mov DWORD PTR lastLineNumber, eax
; 179 :
; 180 : /* v2.11: added, improved multi source support f... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/linnum.asm | 1,041 | 1,100 |
Terraspace/UASM:x64/Debug/linnum.asm:28 | ; 189 : CurrSeg->e.seginfo->linnum_init = TRUE;
mov rax, QWORD PTR ModuleInfo+432
mov rax, QWORD PTR [rax+96]
movzx eax, BYTE PTR [rax+107]
or al, 64 ; 00000040H
mov rcx, QWORD PTR ModuleInfo+432
mov rcx, QWORD PTR [rcx+96]
mov BYTE PTR [rcx+107], al
; 190 : if ( TypeFromClassName( CurrSe... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/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 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/linnum.asm | 1,121 | 1,180 |
Terraspace/UASM:x64/Debug/linnum.asm:30 | ; COMDAT sprintf
_TEXT SEGMENT
_Result$ = 32
_ArgList$ = 56
_Buffer$ = 96
_Format$ = 104
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
push rdi
sub rsp, 80 ; 00000050H
mov rdi, rsp
mov ecx, 20
mov e... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/linnum.asm | 1,161 | 1,220 |
Terraspace/UASM:x64/Debug/linnum.asm:31 | mov DWORD PTR _Result$[rsp], eax
; 1784 : #pragma warning(pop)
; 1785 :
; 1786 : __crt_va_end(_ArgList);
mov QWORD PTR _ArgList$[rsp], 0
; 1787 : return _Result;
mov eax, DWORD PTR _Result$[rsp]
; 1788 : }
mov edi, eax
mov rcx, rsp
lea rdx, OFFSET FLAT:sprintf$rtcFrameData
call _RTC_CheckStackVa... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/linnum.asm | 1,201 | 1,260 |
Terraspace/UASM:x64/Debug/linnum.asm:32 | mov QWORD PTR [rsp+8], rcx
push rdi
sub rsp, 48 ; 00000030H
mov rdi, rsp
mov ecx, 12
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+64]
; 1456 : #pragma warning(push)
; 1457 : #pragma warning(disable: 4996) // Deprecation
; 1458 : return _vsnprintf_l(_Buffer, (size_t)-1, _F... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/linnum.asm | 1,241 | 1,300 |
Terraspace/UASM:x64/Debug/linnum.asm:33 | _vsnprintf_l PROC ; COMDAT
; 1385 : {
$LN5:
mov QWORD PTR [rsp+32], r9
mov QWORD PTR [rsp+24], r8
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
push rdi
sub rsp, 64 ; 00000040H
mov rdi, rsp
mov ecx, 16
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+80]
; 1386 : i... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/linnum.asm | 1,281 | 1,340 |
Terraspace/UASM:x64/Debug/linnum.asm:34 | mov DWORD PTR tv74[rsp], -1
jmp SHORT $LN4@vsnprintf_
$LN3@vsnprintf_:
mov eax, DWORD PTR _Result$[rsp]
mov DWORD PTR tv74[rsp], eax
$LN4@vsnprintf_:
mov eax, DWORD PTR tv74[rsp]
; 1391 : }
add rsp, 64 ; 00000040H
pop rdi
ret 0
_vsnprintf_l ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File c:\p... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/linnum.asm | 1,321 | 1,358 |
Terraspace/UASM:x64/Debug/linnum.asm:28 | ; 189 : CurrSeg->e.seginfo->linnum_init = TRUE;
mov rax, QWORD PTR ModuleInfo+432
mov rax, QWORD PTR [rax+96]
movzx eax, BYTE PTR [rax+107]
or al, 64 ; 00000040H
mov rcx, QWORD PTR ModuleInfo+432
mov rcx, QWORD PTR [rcx+96]
mov BYTE PTR [rcx+107], al
; 190 : if ( TypeFromClassName( CurrSe... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/linnum.asm | 1,081 | 1,140 |
Terraspace/UASM:x64/Debug/linnum.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
$SG11401 DB 'linnum.c', 00H
ORG $+7
$SG11402 DB '$$$%05u', 00H
$SG11403 DB 'NULL', 00H
ORG $+3
$S... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/linnum.asm | 1 | 60 |
Terraspace/UASM:x64/Debug/linnum.asm:2 | $SG11427 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 __imp___stdio_common_vsprintf:PROC
EXTR... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/linnum.asm | 41 | 100 |
Terraspace/UASM:x64/Debug/linnum.asm:3 | _DATA ENDS
_BSS SEGMENT
dmyproc DQ 01H DUP (?)
lastLineNumber DD 01H DUP (?)
_BSS ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$__local_stdio_printf_options DD imagerel $LN3
DD imagerel $LN3+11
DD imagerel $unwind$__local_stdio_printf_options
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$_vsnprintf_l DD imagerel $LN5
DD... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/linnum.asm | 81 | 140 |
Terraspace/UASM:x64/Debug/linnum.asm:4 | DD imagerel $LN7+90
DD imagerel $unwind$QueueDeleteLinnum
$pdata$AddLinnumData DD imagerel AddLinnumData
DD imagerel AddLinnumData+217
DD imagerel $unwind$AddLinnumData
pdata ENDS
; COMDAT rtc$TMZ
rtc$TMZ SEGMENT
_RTC_Shutdown.rtc$TMZ DQ FLAT:_RTC_Shutdown
rtc$TMZ ENDS
; COMDAT rtc$IMZ
rtc$IMZ SEGMENT
_RTC_InitBase.... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/linnum.asm | 121 | 180 |
Terraspace/UASM:x64/Debug/linnum.asm:5 | AddLinnumDataRef$rtcVarDesc DD 048H
DD 0cH
DQ FLAT:AddLinnumDataRef$rtcName$0
ORG $+48
AddLinnumDataRef$rtcFrameData DD 01H
DD 00H
DQ FLAT:AddLinnumDataRef$rtcVarDesc
CONST ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$sprintf DD 022d01H
DD 070159219H
xdata ENDS
; COMDAT CONST
CONST SEGMENT
sprintf$rtcName$0 DB 05fH
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/linnum.asm | 161 | 220 |
Terraspace/UASM:x64/Debug/linnum.asm:6 | $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.13.1s\linnum.c
_TEXT SEGMENT
q$ = 32
data$ = 64
AddLinnumData PROC
; 40 : {
mov ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/linnum.asm | 201 | 260 |
Terraspace/UASM:x64/Debug/linnum.asm:8 | mov rax, QWORD PTR data$[rsp]
mov QWORD PTR [rax], 0
; 55 : if ( q->head == NULL)
mov rax, QWORD PTR q$[rsp]
cmp QWORD PTR [rax], 0
jne SHORT $LN5@AddLinnumD
; 56 : q->head = q->tail = data;
mov rax, QWORD PTR q$[rsp]
mov rcx, QWORD PTR data$[rsp]
mov QWORD PTR [rax+8], rcx
mov rax, QWORD PT... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/linnum.asm | 281 | 340 |
Terraspace/UASM:x64/Debug/linnum.asm:9 | ret 0
AddLinnumData ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\linnum.c
_TEXT SEGMENT
curr$ = 0
next$ = 8
queue$ = 32
QueueDeleteLinnum PROC
; 202 : {
$LN7:
mov QWORD PTR [rsp+8], rcx
push rdi
sub rsp, 16
mov rdi, rsp
mov ecx, 4
mov eax, -858993460 ; ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/linnum.asm | 321 | 380 |
Terraspace/UASM:x64/Debug/linnum.asm:10 | mov QWORD PTR curr$[rsp], rax
; 209 : for( ; curr ; curr = next ) {
jmp SHORT $LN4@QueueDelet
$LN2@QueueDelet:
mov rax, QWORD PTR next$[rsp]
mov QWORD PTR curr$[rsp], rax
$LN4@QueueDelet:
cmp QWORD PTR curr$[rsp], 0
je SHORT $LN3@QueueDelet
; 210 : next = curr->next;
mov rax, QWORD PTR curr$[rsp... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/linnum.asm | 361 | 420 |
Terraspace/UASM:x64/Debug/linnum.asm:11 | $LN4:
push rdi
sub rsp, 32 ; 00000020H
mov rdi, rsp
mov ecx, 8
mov eax, -858993460 ; ccccccccH
rep stosd
; 222 : #if COFF_SUPPORT
; 223 : if ( dmyproc ) {
cmp QWORD PTR dmyproc, 0
je SHORT $LN2@LinnumFini
; 224 : dmyproc->total_size =
mov rax, QWORD PTR dmyproc
mov rax, QWORD PTR [ra... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/linnum.asm | 401 | 460 |
Terraspace/UASM:x64/Debug/linnum.asm:12 | ret 0
LinnumFini ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\linnum.c
_TEXT SEGMENT
LinnumInit PROC
; 234 : {
$LN3:
push rdi
; 235 : lastLineNumber = 0;
mov DWORD PTR lastLineNumber, 0
; 236 : #if COFF_SUPPORT
; 237 : dmyproc = NULL;
mov QWORD... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/linnum.asm | 441 | 500 |
Terraspace/UASM:x64/Debug/linnum.asm:13 | tv243 = 156
tv310 = 160
__$ArrayPad$ = 168
srcfile$ = 192
line_num$ = 200
AddLinnumDataRef PROC
; 71 : {
$LN33:
mov DWORD PTR [rsp+16], edx
mov DWORD PTR [rsp+8], ecx
push rdi
sub rsp, 176 ; 000000b0H
mov rdi, rsp
mov ecx, 44 ; 0000002cH
mov eax, -858993460 ; ccccccccH
rep stosd
mov ecx, DWORD PT... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/linnum.asm | 481 | 540 |
Terraspace/UASM:x64/Debug/linnum.asm:14 | 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@AddLinnumD
$LN3@AddL... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/linnum.asm | 521 | 580 |
Terraspace/UASM:x64/Debug/linnum.asm:15 | 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:
; 91 : ((struct dsym *)dmyproc->segment)->e.seginfo->current_loc -
; 92 : dmyproc... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/linnum.asm | 561 | 620 |
Terraspace/UASM:x64/Debug/linnum.asm:16 | lea rcx, QWORD PTR procname$4[rsp]
call SymFind
mov QWORD PTR dmyproc, rax
; 97 :
; 98 : /* in pass 1, create the proc */
; 99 : if ( dmyproc == NULL ) {
cmp QWORD PTR dmyproc, 0
jne SHORT $LN5@AddLinnumD
; 100 : dmyproc = CreateProc( NULL, procname, SYM_INTERNAL );
mov r8d, ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/linnum.asm | 601 | 660 |
Terraspace/UASM:x64/Debug/linnum.asm:17 | mov BYTE PTR [rcx+41], al
; 104 : AddPublicData( dmyproc );
mov rcx, QWORD PTR dmyproc
call AddPublicData
; 105 : } else
jmp SHORT $LN6@AddLinnumD
$LN5@AddLinnumD:
; 106 : procidx++; /* for passes > 1, adjust procidx */
mov eax, DWORD PTR procidx
inc eax
mov DWORD PTR proc... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/linnum.asm | 641 | 700 |
Terraspace/UASM:x64/Debug/linnum.asm:18 | movzx ecx, BYTE PTR ModuleInfo+404
mov BYTE PTR [rax+44], cl
; 113 : dmyproc->langtype = ModuleInfo.langtype;
mov rax, QWORD PTR dmyproc
mov ecx, DWORD PTR ModuleInfo+364
mov DWORD PTR [rax+76], ecx
; 114 : if ( write_to_file == TRUE ) {
movzx eax, BYTE PTR write_to_file
cmp eax, 1
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/linnum.asm | 681 | 740 |
Terraspace/UASM:x64/Debug/linnum.asm:19 | ; 118 : 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 [rcx+12], eax
; 119 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/linnum.asm | 721 | 780 |
Terraspace/UASM:x64/Debug/linnum.asm:20 | $LN8@AddLinnumD:
$LN7@AddLinnumD:
$LN2@AddLinnumD:
; 122 : }
; 123 : }
; 124 : }
; 125 : #endif
; 126 :
; 127 : if( line_num && ( write_to_file == FALSE || lastLineNumber == line_num )) {
cmp DWORD PTR line_num$[rsp], 0
je SHORT $LN9@AddLinnumD
movzx eax, BYTE PTR write_to_file
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/linnum.asm | 761 | 820 |
Terraspace/UASM:x64/Debug/linnum.asm:21 | jmp $LN1@AddLinnumD
$LN9@AddLinnumD:
; 133 : }
; 134 : 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 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/linnum.asm | 801 | 860 |
Terraspace/UASM:x64/Debug/linnum.asm:22 | ; 138 : #if COFF_SUPPORT
; 139 : if ( line_num == 0 ) { /* happens for COFF only */
cmp DWORD PTR line_num$[rsp], 0
jne $LN12@AddLinnumD
; 140 : /* changed v2.03 (CurrProc might have been NULL) */
; 141 : /* if ( Options.output_format == OFORMAT_COFF && CurrProc->sym.public == FALSE ) { */
;... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/linnum.asm | 841 | 900 |
Terraspace/UASM:x64/Debug/linnum.asm:23 | ; 148 : }
; 149 : /* changed v2.03 */
; 150 : /* curr->sym = (struct asym *)CurrProc; */
; 151 : 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[rsp], rax
jmp SHORT... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/linnum.asm | 881 | 940 |
Terraspace/UASM:x64/Debug/linnum.asm:24 | and ecx, 1048575 ; 000fffffH
or ecx, eax
mov eax, ecx
mov rcx, QWORD PTR curr$[rsp]
mov DWORD PTR [rcx+12], eax
; 154 : /* set the function's size! */
; 155 : if ( dmyproc ) {
cmp QWORD PTR dmyproc, 0
je SHORT $LN15@AddLinnumD
; 156 : /**/myassert( dmyproc->segment );
mov ra... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/linnum.asm | 921 | 980 |
Terraspace/UASM:x64/Debug/linnum.asm:25 | ; 160 : dmyproc = NULL;
mov QWORD PTR dmyproc, 0
$LN15@AddLinnumD:
; 161 : }
; 162 : /* v2.11: write a 0x7fff line item if prologue exists */
; 163 : if ( CurrProc && CurrProc->e.procinfo->size_prolog ) {
cmp QWORD PTR CurrProc, 0
je $LN16@AddLinnumD
mov rax, QWORD PTR Cur... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/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
; 167 : curr->number = GetLineNumber();
call GetLineNumber
mov rcx, QWORD PTR curr$[rsp]
mov DWORD PTR [rcx+8], eax
; 168 : 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 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/linnum.asm | 1,001 | 1,060 |
Terraspace/UASM:x64/Debug/linnum.asm:27 | mov DWORD PTR [rax+16], ecx
$LN13@AddLinnumD:
; 175 : #if COFF_SUPPORT
; 176 : }
; 177 : #endif
; 178 : lastLineNumber = line_num;
mov eax, DWORD PTR line_num$[rsp]
mov DWORD PTR lastLineNumber, eax
; 179 :
; 180 : /* v2.11: added, improved multi source support for CV.
; 181 : * Also, the s... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/linnum.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/linnum.asm | 1,041 | 1,100 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.