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/mangle.asm:7 | ; 92 : {
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
push rdi
sub rsp, 32 ; 00000020H
mov rdi, rsp
mov ecx, 8
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+48]
; 93 : buffer[0] = '_';
mov eax, 1
imul rax, rax, 0
mov rcx, QWORD PTR buffer$[rsp]
mov BYTE PTR [... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/mangle.asm | 241 | 300 |
Terraspace/UASM:x64/Debug/mangle.asm:9 | ; 85 : return( sym->name_size );
mov rax, QWORD PTR sym$[rsp]
movzx eax, BYTE PTR [rax+72]
; 86 : }
add rsp, 32 ; 00000020H
pop rdi
ret 0
UCaseMangler ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\mangle.c
_TEXT SEGMENT
sym$ = 48
buffer$ = 56
Voi... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/mangle.asm | 321 | 380 |
Terraspace/UASM:x64/Debug/mangle.asm:10 | mov rdx, QWORD PTR [rax+8]
mov rcx, QWORD PTR buffer$[rsp]
call memcpy
; 75 : return( sym->name_size );
mov rax, QWORD PTR sym$[rsp]
movzx eax, BYTE PTR [rax+72]
; 76 : }
add rsp, 32 ; 00000020H
pop rdi
ret 0
VoidMangler ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwa... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/mangle.asm | 361 | 420 |
Terraspace/UASM:x64/Debug/mangle.asm:11 | cdqe
mov r8, rax
mov rax, QWORD PTR sym$[rsp]
mov rdx, QWORD PTR [rax+8]
mov rcx, QWORD PTR buffer$[rsp]
call memcpy
; 177 : return( sym->name_size );
mov rax, QWORD PTR sym$[rsp]
movzx eax, BYTE PTR [rax+72]
; 178 : }
add rsp, 32 ; 00000020H
pop rdi
ret 0
ms64_decorate ENDP
_TEXT ENDS
; Functio... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/mangle.asm | 401 | 460 |
Terraspace/UASM:x64/Debug/mangle.asm:12 | ; 138 : char *name;
; 139 : enum changes changes = NORMAL;
mov DWORD PTR changes$[rsp], 0
; 140 :
; 141 : if( sym->isproc ) {
mov rax, QWORD PTR sym$[rsp]
movzx eax, BYTE PTR [rax+41]
shr al, 3
and al, 1
movzx eax, al
test eax, eax
je SHORT $LN4@ow_decorat
; 142 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/mangle.asm | 441 | 500 |
Terraspace/UASM:x64/Debug/mangle.asm:13 | $LN6@ow_decorat:
; 145 : case MT_NEAR:
; 146 : case MT_FAR:
; 147 : case MT_EMPTY:
; 148 : changes |= USCORE_BACK;
mov eax, DWORD PTR changes$[rsp]
or eax, 2
mov DWORD PTR changes$[rsp], eax
; 149 : break;
jmp SHORT $LN2@ow_decorat
$LN7@ow_decorat:
; 150 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/mangle.asm | 481 | 540 |
Terraspace/UASM:x64/Debug/mangle.asm:14 | ; 158 : *name++ = '_';
mov rax, QWORD PTR name$[rsp]
mov BYTE PTR [rax], 95 ; 0000005fH
mov rax, QWORD PTR name$[rsp]
inc rax
mov QWORD PTR name$[rsp], rax
$LN8@ow_decorat:
; 159 : memcpy( name, sym->name, sym->name_size + 1 );
mov rax, QWORD PTR sym$[rsp]
movzx eax, BYTE PTR [rax+72]
inc eax... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/mangle.asm | 521 | 580 |
Terraspace/UASM:x64/Debug/mangle.asm:15 | mov rax, QWORD PTR name$[rsp]
mov BYTE PTR [rax], 95 ; 0000005fH
mov rax, QWORD PTR name$[rsp]
inc rax
mov QWORD PTR name$[rsp], rax
; 163 : *name = NULLC;
mov rax, QWORD PTR name$[rsp]
mov BYTE PTR [rax], 0
$LN9@ow_decorat:
; 164 : }
; 165 : return( name - buffer );
mov rax, QWORD PTR b... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/mangle.asm | 561 | 620 |
Terraspace/UASM:x64/Debug/mangle.asm:16 | mov rdi, rsp
mov ecx, 8
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+48]
; 118 : return ( sprintf( buffer, "@%s@%u", sym->name, ((struct dsym *)sym)->e.procinfo->parasize ) );
mov rax, QWORD PTR sym$[rsp]
mov rax, QWORD PTR [rax+96]
mov r9d, DWORD PTR [rax+32]
mov rax, QWORD PTR s... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/mangle.asm | 601 | 660 |
Terraspace/UASM:x64/Debug/mangle.asm:17 | ; 256 : #if MANGLERSUPP
; 257 : mangle_func mangler;
; 258 : #endif
; 259 :
; 260 : if( langtype != LANG_NONE )
cmp DWORD PTR langtype$[rsp], 0
je SHORT $LN2@SetMangler
; 261 : sym->langtype = langtype;
mov rax, QWORD PTR sym$[rsp]
mov ecx, DWORD PTR langtype$[rsp]
mov DWORD PTR [rax+76], ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/mangle.asm | 641 | 700 |
Terraspace/UASM:x64/Debug/mangle.asm:18 | sym$ = 80
buffer$ = 88
Mangle PROC
; 212 : {
$LN16:
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]
; 213 : mangle_func mangler;
; 214 :
; 215 : switch( s... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/mangle.asm | 681 | 740 |
Terraspace/UASM:x64/Debug/mangle.asm:20 | mov QWORD PTR tv71[rsp], rax
$LN14@Mangle:
mov rax, QWORD PTR tv71[rsp]
mov QWORD PTR mangler$[rsp], rax
; 225 : break;
jmp SHORT $LN2@Mangle
$LN7@Mangle:
; 226 : case LANG_PASCAL:
; 227 : case LANG_FORTRAN:
; 228 : case LANG_BASIC:
; 229 : mangler = UCaseMangler;
lea rax, OFFSE... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/mangle.asm | 761 | 820 |
Terraspace/UASM:x64/Debug/mangle.asm:21 | ; 238 : mangler = GetMangler( Options.default_name_mangler );
; 239 : if( mangler == NULL )
; 240 : #endif
; 241 : mangler = VoidMangler;
lea rax, OFFSET FLAT:VoidMangler
mov QWORD PTR mangler$[rsp], rax
$LN2@Mangle:
; 242 : break;
; 243 : }
; 244 : #if MANGLERSUPP... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/mangle.asm | 801 | 860 |
Terraspace/UASM:x64/Debug/mangle.asm:22 | _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 eax, -858993460 ; ccccccccH
rep stosd
mov... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/mangle.asm | 841 | 900 |
Terraspace/UASM:x64/Debug/mangle.asm:23 | ; 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_CheckStackVars
mov eax, edi
add rsp, 80 ; 00000050H
pop rdi
ret 0
sprint... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/mangle.asm | 881 | 940 |
Terraspace/UASM:x64/Debug/mangle.asm:24 | 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, _Format, _Locale, _ArgList);
mov rax, QWORD PTR _ArgList$[rsp]
mov... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/mangle.asm | 921 | 980 |
Terraspace/UASM:x64/Debug/mangle.asm:25 | $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 : int const _Result = __stdio_common_vsprintf(
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/mangle.asm | 961 | 1,020 |
Terraspace/UASM:x64/Debug/mangle.asm:26 | 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:\program files (x86)\windows kits\10\include\10.0.10150.0\ucrt\corecrt_stdi... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/mangle.asm | 1,001 | 1,035 |
Terraspace/UASM:x64/Debug/mangle.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
$SG10647 DB '_%s@%d', 00H
ORG $+1
$SG10654 DB '@%s@%u', 00H
_DATA ENDS
CONST SEGMENT
fcmanglers DQ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/mangle.asm | 1 | 60 |
Terraspace/UASM:x64/Debug/mangle.asm:2 | 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 imagerel $LN5+140
DD imagerel $unwind$_vsnprintf_l
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$_v... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/mangle.asm | 41 | 100 |
Terraspace/UASM:x64/Debug/mangle.asm:3 | DD imagerel VoidMangler+85
DD imagerel $unwind$VoidMangler
$pdata$UCaseMangler DD imagerel UCaseMangler
DD imagerel UCaseMangler+96
DD imagerel $unwind$UCaseMangler
$pdata$UScoreMangler DD imagerel UScoreMangler
DD imagerel UScoreMangler+108
DD imagerel $unwind$UScoreMangler
$pdata$StdcallMangler DD imagerel Stdca... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/mangle.asm | 81 | 140 |
Terraspace/UASM:x64/Debug/mangle.asm:4 | ; COMDAT xdata
xdata SEGMENT
$unwind$sprintf DD 022d01H
DD 070159219H
xdata ENDS
; COMDAT CONST
CONST SEGMENT
sprintf$rtcName$0 DB 05fH
DB 041H
DB 072H
DB 067H
DB 04cH
DB 069H
DB 073H
DB 074H
DB 00H
ORG $+7
sprintf$rtcVarDesc DD 038H
DD 08H
DQ FLAT:sprintf$rtcName$0
ORG $+48
sprintf$rtcFrameData DD 01H
DD... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/mangle.asm | 121 | 180 |
Terraspace/UASM:x64/Debug/mangle.asm:5 | ; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\mangle.c
_TEXT SEGMENT
dir$ = 32
sym$ = 64
buffer$ = 72
StdcallMangler PROC
; 103 : {
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 ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/mangle.asm | 161 | 220 |
Terraspace/UASM:x64/Debug/mangle.asm:6 | mov rax, QWORD PTR dir$[rsp]
mov rax, QWORD PTR [rax+96]
mov r9d, DWORD PTR [rax+32]
mov rax, QWORD PTR sym$[rsp]
mov r8, QWORD PTR [rax+8]
lea rdx, OFFSET FLAT:$SG10647
mov rcx, QWORD PTR buffer$[rsp]
call sprintf
jmp SHORT $LN1@StdcallMan
; 108 : } else {
jmp SHORT $LN3@StdcallMan
$LN2@StdcallMan:
; ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/mangle.asm | 201 | 260 |
Terraspace/UASM:x64/Debug/mangle.asm:7 | mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
push rdi
sub rsp, 32 ; 00000020H
mov rdi, rsp
mov ecx, 8
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+48]
; 93 : buffer[0] = '_';
mov eax, 1
imul rax, rax, 0
mov rcx, QWORD PTR buffer$[rsp]
mov BYTE PTR [rcx+rax], 95 ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/mangle.asm | 241 | 300 |
Terraspace/UASM:x64/Debug/mangle.asm:8 | pop rdi
ret 0
UScoreMangler ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\mangle.c
_TEXT SEGMENT
sym$ = 48
buffer$ = 56
UCaseMangler PROC
; 82 : {
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
push rdi
sub rsp, 32 ; 00000020H
mov rdi, rsp
mov... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/mangle.asm | 281 | 340 |
Terraspace/UASM:x64/Debug/mangle.asm:9 | ; 85 : return( sym->name_size );
mov rax, QWORD PTR sym$[rsp]
movzx eax, BYTE PTR [rax+72]
; 86 : }
add rsp, 32 ; 00000020H
pop rdi
ret 0
UCaseMangler ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\mangle.c
_TEXT SEGMENT
sym$ = 48
buffer$ = 56
Voi... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/mangle.asm | 321 | 380 |
Terraspace/UASM:x64/Debug/mangle.asm:10 | mov rcx, QWORD PTR buffer$[rsp]
call memcpy
; 75 : return( sym->name_size );
mov rax, QWORD PTR sym$[rsp]
movzx eax, BYTE PTR [rax+72]
; 76 : }
add rsp, 32 ; 00000020H
pop rdi
ret 0
VoidMangler ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\mang... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/mangle.asm | 361 | 420 |
Terraspace/UASM:x64/Debug/mangle.asm:11 | mov r8, rax
mov rax, QWORD PTR sym$[rsp]
mov rdx, QWORD PTR [rax+8]
mov rcx, QWORD PTR buffer$[rsp]
call memcpy
; 177 : return( sym->name_size );
mov rax, QWORD PTR sym$[rsp]
movzx eax, BYTE PTR [rax+72]
; 178 : }
add rsp, 32 ; 00000020H
pop rdi
ret 0
ms64_decorate ENDP
_TEXT ENDS
; Function comp... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/mangle.asm | 401 | 460 |
Terraspace/UASM:x64/Debug/mangle.asm:12 | ; 138 : char *name;
; 139 : enum changes changes = NORMAL;
mov DWORD PTR changes$[rsp], 0
; 140 :
; 141 : if( sym->isproc ) {
mov rax, QWORD PTR sym$[rsp]
movzx eax, BYTE PTR [rax+41]
shr al, 3
and al, 1
movzx eax, al
test eax, eax
je SHORT $LN4@ow_decorat
; 142 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/mangle.asm | 441 | 500 |
Terraspace/UASM:x64/Debug/mangle.asm:13 | ; 145 : case MT_NEAR:
; 146 : case MT_FAR:
; 147 : case MT_EMPTY:
; 148 : changes |= USCORE_BACK;
mov eax, DWORD PTR changes$[rsp]
or eax, 2
mov DWORD PTR changes$[rsp], eax
; 149 : break;
jmp SHORT $LN2@ow_decorat
$LN7@ow_decorat:
; 150 : default:
;... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/mangle.asm | 481 | 540 |
Terraspace/UASM:x64/Debug/mangle.asm:14 | ; 158 : *name++ = '_';
mov rax, QWORD PTR name$[rsp]
mov BYTE PTR [rax], 95 ; 0000005fH
mov rax, QWORD PTR name$[rsp]
inc rax
mov QWORD PTR name$[rsp], rax
$LN8@ow_decorat:
; 159 : memcpy( name, sym->name, sym->name_size + 1 );
mov rax, QWORD PTR sym$[rsp]
movzx eax, BYTE PTR [rax+72]
inc eax... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/mangle.asm | 521 | 580 |
Terraspace/UASM:x64/Debug/mangle.asm:15 | mov BYTE PTR [rax], 95 ; 0000005fH
mov rax, QWORD PTR name$[rsp]
inc rax
mov QWORD PTR name$[rsp], rax
; 163 : *name = NULLC;
mov rax, QWORD PTR name$[rsp]
mov BYTE PTR [rax], 0
$LN9@ow_decorat:
; 164 : }
; 165 : return( name - buffer );
mov rax, QWORD PTR buffer$[rsp]
mov rcx, QWORD PTR... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/mangle.asm | 561 | 620 |
Terraspace/UASM:x64/Debug/mangle.asm:16 | mov ecx, 8
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+48]
; 118 : return ( sprintf( buffer, "@%s@%u", sym->name, ((struct dsym *)sym)->e.procinfo->parasize ) );
mov rax, QWORD PTR sym$[rsp]
mov rax, QWORD PTR [rax+96]
mov r9d, DWORD PTR [rax+32]
mov rax, QWORD PTR sym$[rsp]
mov ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/mangle.asm | 601 | 660 |
Terraspace/UASM:x64/Debug/mangle.asm:17 | ; 257 : mangle_func mangler;
; 258 : #endif
; 259 :
; 260 : if( langtype != LANG_NONE )
cmp DWORD PTR langtype$[rsp], 0
je SHORT $LN2@SetMangler
; 261 : sym->langtype = langtype;
mov rax, QWORD PTR sym$[rsp]
mov ecx, DWORD PTR langtype$[rsp]
mov DWORD PTR [rax+76], ecx
$LN2@SetMangler:
; 2... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/mangle.asm | 641 | 700 |
Terraspace/UASM:x64/Debug/mangle.asm:18 | buffer$ = 88
Mangle PROC
; 212 : {
$LN16:
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]
; 213 : mangle_func mangler;
; 214 :
; 215 : switch( sym->langty... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/mangle.asm | 681 | 740 |
Terraspace/UASM:x64/Debug/mangle.asm:19 | test eax, eax
je SHORT $LN11@Mangle
lea rax, OFFSET FLAT:VoidMangler
mov QWORD PTR tv68[rsp], rax
jmp SHORT $LN12@Mangle
$LN11@Mangle:
lea rax, OFFSET FLAT:UScoreMangler
mov QWORD PTR tv68[rsp], rax
$LN12@Mangle:
mov rax, QWORD PTR tv68[rsp]
mov QWORD PTR mangler$[rsp], rax
; 219 : break;
jmp SHORT ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/mangle.asm | 721 | 780 |
Terraspace/UASM:x64/Debug/mangle.asm:20 | $LN14@Mangle:
mov rax, QWORD PTR tv71[rsp]
mov QWORD PTR mangler$[rsp], rax
; 225 : break;
jmp SHORT $LN2@Mangle
$LN7@Mangle:
; 226 : case LANG_PASCAL:
; 227 : case LANG_FORTRAN:
; 228 : case LANG_BASIC:
; 229 : mangler = UCaseMangler;
lea rax, OFFSET FLAT:UCaseMangler
mov QWOR... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/mangle.asm | 761 | 820 |
Terraspace/UASM:x64/Debug/mangle.asm:21 | ; 239 : if( mangler == NULL )
; 240 : #endif
; 241 : mangler = VoidMangler;
lea rax, OFFSET FLAT:VoidMangler
mov QWORD PTR mangler$[rsp], rax
$LN2@Mangle:
; 242 : break;
; 243 : }
; 244 : #if MANGLERSUPP
; 245 : sym->mangler = mangler;
; 246 : #endif
; 247 : return( ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/mangle.asm | 801 | 860 |
Terraspace/UASM:x64/Debug/mangle.asm:22 | _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 eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/mangle.asm | 841 | 900 |
Terraspace/UASM:x64/Debug/mangle.asm:23 | ; 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_CheckStackVars
mov eax, edi
add rsp, 80 ; 00000050H
pop rdi
ret 0
sprintf ENDP
_T... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/mangle.asm | 881 | 940 |
Terraspace/UASM:x64/Debug/mangle.asm:24 | 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, _Format, _Locale, _ArgList);
mov rax, QWORD PTR _ArgList$[rsp]
mov QWORD PTR [rs... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/mangle.asm | 921 | 980 |
Terraspace/UASM:x64/Debug/mangle.asm:25 | $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 : int const _Result = __stdio_common_vsprintf(
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/mangle.asm | 961 | 1,020 |
Terraspace/UASM:x64/Debug/mangle.asm:26 | 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:\program files (x86)\windows kits\10\include\10.0.10150.0\ucrt\corecrt_stdio_config.h
; COMDAT __local_stdio_... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/mangle.asm | 1,001 | 1,034 |
Terraspace/UASM:x64/Debug/mangle.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
$SG10642 DB '_%s@%d', 00H
ORG $+1
$SG10649 DB '@%s@%u', 00H
_DATA ENDS
CONST SEGMENT
fcmanglers DQ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/mangle.asm | 1 | 60 |
Terraspace/UASM:x64/Debug/mangle.asm:5 | ; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\mangle.c
_TEXT SEGMENT
dir$ = 32
sym$ = 64
buffer$ = 72
StdcallMangler PROC
; 103 : {
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 ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/mangle.asm | 161 | 220 |
Terraspace/UASM:x64/Debug/mangle.asm:6 | mov rax, QWORD PTR dir$[rsp]
mov rax, QWORD PTR [rax+96]
mov r9d, DWORD PTR [rax+32]
mov rax, QWORD PTR sym$[rsp]
mov r8, QWORD PTR [rax+8]
lea rdx, OFFSET FLAT:$SG10642
mov rcx, QWORD PTR buffer$[rsp]
call sprintf
jmp SHORT $LN1@StdcallMan
; 108 : } else {
jmp SHORT $LN3@StdcallMan
$LN2@StdcallMan:
; ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/mangle.asm | 201 | 260 |
Terraspace/UASM:x64/Debug/mangle.asm:15 | mov BYTE PTR [rax], 95 ; 0000005fH
mov rax, QWORD PTR name$[rsp]
inc rax
mov QWORD PTR name$[rsp], rax
; 163 : *name = NULLC;
mov rax, QWORD PTR name$[rsp]
mov BYTE PTR [rax], 0
$LN9@ow_decorat:
; 164 : }
; 165 : return( name - buffer );
mov rax, QWORD PTR buffer$[rsp]
mov rcx, QWORD PTR... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/mangle.asm | 561 | 620 |
Terraspace/UASM:x64/Debug/mangle.asm:16 | mov ecx, 8
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+48]
; 118 : return ( sprintf( buffer, "@%s@%u", sym->name, ((struct dsym *)sym)->e.procinfo->parasize ) );
mov rax, QWORD PTR sym$[rsp]
mov rax, QWORD PTR [rax+96]
mov r9d, DWORD PTR [rax+32]
mov rax, QWORD PTR sym$[rsp]
mov ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/mangle.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/mangle.asm | 601 | 660 |
Terraspace/UASM:x64/Debug/memalloc.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
_BSS SEGMENT
memcalls DD 01H DUP (?)
_BSS ENDS
_DATA SEGMENT
$SG7490 DB 'memo... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Debug/memalloc.asm | 1 | 60 |
Terraspace/UASM:x64/Debug/memalloc.asm:2 | EXTRN DoDebugMsg:PROC
EXTRN DoDebugMsg1:PROC
EXTRN Fatal:PROC
EXTRN __imp_VirtualAlloc:PROC
EXTRN __imp_VirtualFree:PROC
EXTRN Options:BYTE
_DATA SEGMENT
COMM ?_OptionsStorage@?1??__local_stdio_printf_options@@9@9:QWORD ; `__local_stdio_printf_options'::`2'::_OptionsStorage
_DATA ENDS
_BSS SEGMENT
ALIGN 8
pBase... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Debug/memalloc.asm | 41 | 100 |
Terraspace/UASM:x64/Debug/memalloc.asm:3 | $pdata$LclAlloc DD imagerel $LN7
DD imagerel $LN7+307
DD imagerel $unwind$LclAlloc
pdata ENDS
xdata SEGMENT
$unwind$MemFini DD 010401H
DD 06204H
$unwind$MemAlloc DD 010901H
DD 06209H
$unwind$MemFree DD 010901H
DD 04209H
$unwind$LclAlloc DD 010901H
DD 06209H
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$printf D... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Debug/memalloc.asm | 81 | 140 |
Terraspace/UASM:x64/Debug/memalloc.asm:4 | ; 186 : #if FASTMEM
; 187 : size = (size + sizeof(void *)-1) & ~(sizeof(void *)-1);
mov rax, QWORD PTR size$[rsp]
add rax, 7
and rax, -8
mov QWORD PTR size$[rsp], rax
; 188 : if ( currfree < size ) {
mov eax, DWORD PTR currfree
cmp rax, QWORD PTR size$[rsp]
jae $LN2@LclAlloc
; 189 : Debug... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Debug/memalloc.asm | 121 | 180 |
Terraspace/UASM:x64/Debug/memalloc.asm:5 | mov rdx, rax
xor ecx, ecx
call QWORD PTR __imp_VirtualAlloc
mov QWORD PTR pCurr, rax
; 192 : if ( !pCurr ) {
cmp QWORD PTR pCurr, 0
jne SHORT $LN3@LclAlloc
; 193 : currfree = 0;
mov DWORD PTR currfree, 0
; 194 : Fatal( OUT_OF_MEMORY );
mov ecx, 105 ; 00000069H
call Fa... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Debug/memalloc.asm | 161 | 220 |
Terraspace/UASM:x64/Debug/memalloc.asm:6 | mov eax, DWORD PTR blocks
inc eax
mov DWORD PTR blocks, eax
$LN2@LclAlloc:
; 200 : }
; 201 : ptr = pCurr;
mov rax, QWORD PTR pCurr
mov QWORD PTR ptr$[rsp], rax
; 202 : pCurr += size;
mov rax, QWORD PTR size$[rsp]
mov rcx, QWORD PTR pCurr
add rcx, rax
mov rax, rcx
mov QWORD PTR pCurr, rax
; ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Debug/memalloc.asm | 201 | 260 |
Terraspace/UASM:x64/Debug/memalloc.asm:7 | ; 216 : }
add rsp, 56 ; 00000038H
ret 0
LclAlloc ENDP
_TEXT ENDS
; Function compile flags: /Odtp
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\memalloc.c
_TEXT SEGMENT
ptr$ = 48
MemFree PROC
; 246 : {
$LN3:
mov QWORD PTR [rsp+8], rcx
sub rsp, 40 ; 00000028H
; 247 : DebugMsg1(("MemFree(0x%p) cnt=%"... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Debug/memalloc.asm | 241 | 300 |
Terraspace/UASM:x64/Debug/memalloc.asm:8 | ; Function compile flags: /Odtp
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\memalloc.c
_TEXT SEGMENT
ptr$ = 32
size$ = 64
MemAlloc PROC
; 233 : {
$LN4:
mov QWORD PTR [rsp+8], rcx
sub rsp, 56 ; 00000038H
; 234 : void *ptr;
; 235 : ptr = malloc( size );
mov rcx, QWORD PTR size$[rsp]
call ma... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Debug/memalloc.asm | 281 | 340 |
Terraspace/UASM:x64/Debug/memalloc.asm:9 | $LN2@MemAlloc:
; 239 : }
; 240 : //memset( ptr, 0xff, size );
; 241 : return( ptr );
mov rax, QWORD PTR ptr$[rsp]
; 242 : }
add rsp, 56 ; 00000038H
ret 0
MemAlloc ENDP
_TEXT ENDS
; Function compile flags: /Odtp
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\memalloc.c
_TEXT SEGMENT
pNext$1 = 32... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Debug/memalloc.asm | 321 | 380 |
Terraspace/UASM:x64/Debug/memalloc.asm:10 | div ecx
mov edx, eax
lea rcx, OFFSET FLAT:$SG7490
call printf
$LN4@MemFini:
$LN2@MemFini:
; 168 : #endif
; 169 : while ( pBase ) {
cmp QWORD PTR pBase, 0
je SHORT $LN3@MemFini
; 170 : struct linked_list *pNext = pBase->next;
mov rax, QWORD PTR pBase
mov rax, QWORD PTR [rax]
mov QWORD PTR pNex... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Debug/memalloc.asm | 361 | 420 |
Terraspace/UASM:x64/Debug/memalloc.asm:11 | mov eax, DWORD PTR memstart
cmp DWORD PTR memcalls, eax
je SHORT $LN5@MemFini
; 177 : printf("still allocated memory blocks : %u\n", memcalls - memstart );
mov eax, DWORD PTR memstart
mov ecx, DWORD PTR memcalls
sub ecx, eax
mov eax, ecx
mov edx, eax
lea rcx, OFFSET FLAT:$SG7492
call printf
$LN5@Mem... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Debug/memalloc.asm | 401 | 460 |
Terraspace/UASM:x64/Debug/memalloc.asm:12 | ; 156 : #endif
; 157 : DebugCmd( memstart = memcalls );
mov eax, DWORD PTR memcalls
mov DWORD PTR memstart, eax
; 158 : }
ret 0
MemInit ENDP
_TEXT ENDS
; Function compile flags: /Odtp
; File c:\program files (x86)\windows kits\10\include\10.0.10150.0\ucrt\stdio.h
; COMDAT printf
_TEXT SEGMENT
_Result$ = 32... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Debug/memalloc.asm | 441 | 500 |
Terraspace/UASM:x64/Debug/memalloc.asm:13 | mov r9, QWORD PTR _ArgList$[rsp]
xor r8d, r8d
mov rdx, QWORD PTR _Format$[rsp]
mov rcx, rax
call _vfprintf_l
mov DWORD PTR _Result$[rsp], eax
; 955 : __crt_va_end(_ArgList);
mov QWORD PTR _ArgList$[rsp], 0
; 956 : return _Result;
mov eax, DWORD PTR _Result$[rsp]
; 957 : }
add rsp, 56 ; 0000... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Debug/memalloc.asm | 481 | 540 |
Terraspace/UASM:x64/Debug/memalloc.asm:14 | ; 639 : return __stdio_common_vfprintf(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Stream, _Format, _Locale, _ArgList);
call __local_stdio_printf_options
mov rcx, QWORD PTR _ArgList$[rsp]
mov QWORD PTR [rsp+32], rcx
mov r9, QWORD PTR _Locale$[rsp]
mov r8, QWORD PTR _Format$[rsp]
mov rdx, QWORD PTR _Stream$[rsp]
m... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08 | github | assembler | https://github.com/Terraspace/UASM/blob/ed162d24d173bddd6e80d42bfc3b4f6a3bcd9a08/x64/Debug/memalloc.asm | 521 | 554 |
Terraspace/UASM:x64/Debug/memalloc.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23026.0
include listing.inc
INCLUDELIB MSVCRTD
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM decoflags:BYTE
COMM broadflags:BYTE
COMM evex:BYTE
COMM ZEROLOCALS:BYTE
_DATA ENDS
_BSS SEGMENT
memcalls DD 01H DUP (?)
_BSS ENDS
_DATA SEGMENT
$SG7476 DB 'memo... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/memalloc.asm | 1 | 60 |
Terraspace/UASM:x64/Debug/memalloc.asm:2 | EXTRN DoDebugMsg:PROC
EXTRN DoDebugMsg1:PROC
EXTRN Fatal:PROC
EXTRN __imp_VirtualAlloc:PROC
EXTRN __imp_VirtualFree:PROC
EXTRN _RTC_CheckStackVars:PROC
EXTRN _RTC_InitBase:PROC
EXTRN _RTC_Shutdown:PROC
EXTRN Options:BYTE
_DATA SEGMENT
COMM ?_OptionsStorage@?1??__local_stdio_printf_options@@9@9:QWORD ; `__local_st... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/memalloc.asm | 41 | 100 |
Terraspace/UASM:x64/Debug/memalloc.asm:3 | $pdata$MemInit DD imagerel $LN3
DD imagerel $LN3+47
DD imagerel $unwind$MemInit
$pdata$MemFini DD imagerel $LN7
DD imagerel $LN7+181
DD imagerel $unwind$MemFini
$pdata$MemAlloc DD imagerel $LN4
DD imagerel $LN4+118
DD imagerel $unwind$MemAlloc
$pdata$MemFree DD imagerel $LN3
DD imagerel $LN3+85
DD imagerel $unw... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/memalloc.asm | 81 | 140 |
Terraspace/UASM:x64/Debug/memalloc.asm:4 | xdata ENDS
; COMDAT CONST
CONST SEGMENT
printf$rtcName$0 DB 05fH
DB 041H
DB 072H
DB 067H
DB 04cH
DB 069H
DB 073H
DB 074H
DB 00H
ORG $+7
printf$rtcVarDesc DD 038H
DD 08H
DQ FLAT:printf$rtcName$0
ORG $+48
printf$rtcFrameData DD 01H
DD 00H
DQ FLAT:printf$rtcVarDesc
CONST ENDS
; COMDAT xdata
xdata SEGMENT
$un... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/memalloc.asm | 121 | 180 |
Terraspace/UASM:x64/Debug/memalloc.asm:5 | $LN7:
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]
; 184 : void *ptr;
; 185 :
; 186 : #if FASTMEM
; 187 : size = (size + sizeof(void *)-1) & ~(sizeof(void *)-1);
mov rax, QW... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/memalloc.asm | 161 | 220 |
Terraspace/UASM:x64/Debug/memalloc.asm:6 | $LN5@LclAlloc:
mov rax, QWORD PTR size$[rsp]
mov QWORD PTR tv73[rsp], rax
$LN6@LclAlloc:
mov eax, DWORD PTR tv73[rsp]
mov DWORD PTR currfree, eax
; 191 : BLKALLOC( pCurr, currfree + sizeof( struct linked_list ) );
mov eax, DWORD PTR currfree
add rax, 8
mov r9d, 4
mov r8d, 4096 ; 00001000H
mov rdx... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/memalloc.asm | 201 | 260 |
Terraspace/UASM:x64/Debug/memalloc.asm:7 | ; 197 : pBase = (struct linked_list *)pCurr;
mov rax, QWORD PTR pCurr
mov QWORD PTR pBase, rax
; 198 : pCurr += sizeof( struct linked_list );
mov rax, QWORD PTR pCurr
add rax, 8
mov QWORD PTR pCurr, rax
; 199 : DebugCmd( blocks++ );
mov eax, DWORD PTR blocks
inc eax
mov DWORD PTR... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/memalloc.asm | 241 | 300 |
Terraspace/UASM:x64/Debug/memalloc.asm:8 | ; 206 :
; 207 : ptr = malloc( size );
; 208 : #ifdef TRMEM
; 209 : DebugMsg1(("LclAlloc(0x%X)=%p cnt=%" I32_SPEC "u\n", size, ptr, ++memcalls ));
; 210 : #endif
; 211 : if( ptr == NULL ) {
; 212 : Fatal( OUT_OF_MEMORY );
; 213 : }
; 214 : #endif
; 215 : return( ptr );
mov rax, QW... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/memalloc.asm | 281 | 340 |
Terraspace/UASM:x64/Debug/memalloc.asm:9 | mov eax, DWORD PTR memcalls
dec eax
mov DWORD PTR memcalls, eax
mov r8d, DWORD PTR memcalls
mov rdx, QWORD PTR ptr$[rsp]
lea rcx, OFFSET FLAT:$SG7506
call DoDebugMsg1
; 248 : free( ptr );
mov rcx, QWORD PTR ptr$[rsp]
call QWORD PTR __imp_free
; 249 : return;
; 250 : }
add rsp, 32 ; 00000020H... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/memalloc.asm | 321 | 380 |
Terraspace/UASM:x64/Debug/memalloc.asm:10 | ; 234 : void *ptr;
; 235 : ptr = malloc( size );
mov rcx, QWORD PTR size$[rsp]
call QWORD PTR __imp_malloc
mov QWORD PTR ptr$[rsp], rax
; 236 : DebugMsg1(("MemAlloc(0x%X)=%p cnt=%" I32_SPEC "u\n", size, ptr, ++memcalls ));
mov eax, DWORD PTR memcalls
inc eax
mov DWORD PTR memcalls, eax
m... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/memalloc.asm | 361 | 420 |
Terraspace/UASM:x64/Debug/memalloc.asm:11 | MemAlloc ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\memalloc.c
_TEXT SEGMENT
pNext$1 = 32
MemFini PROC
; 162 : {
$LN7:
push rdi
sub rsp, 48 ; 00000030H
mov rdi, rsp
mov ecx, 12
mov eax, -858993460 ; ccccccccH
rep stosd
; 163 :
; 164 : #if FASTM... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/memalloc.asm | 401 | 460 |
Terraspace/UASM:x64/Debug/memalloc.asm:12 | ; 168 : #endif
; 169 : while ( pBase ) {
cmp QWORD PTR pBase, 0
je SHORT $LN3@MemFini
; 170 : struct linked_list *pNext = pBase->next;
mov rax, QWORD PTR pBase
mov rax, QWORD PTR [rax]
mov QWORD PTR pNext$1[rsp], rax
; 171 : BLKFREE( pBase );
mov r8d, 32768 ; 00008000H
xor edx, ed... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/memalloc.asm | 441 | 500 |
Terraspace/UASM:x64/Debug/memalloc.asm:13 | mov ecx, DWORD PTR memcalls
sub ecx, eax
mov eax, ecx
mov edx, eax
lea rcx, OFFSET FLAT:$SG7478
call printf
$LN5@MemFini:
; 178 : #endif
; 179 : }
add rsp, 48 ; 00000030H
pop rdi
ret 0
MemFini ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\memalloc.c
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/memalloc.asm | 481 | 540 |
Terraspace/UASM:x64/Debug/memalloc.asm:14 | ; 157 : DebugCmd( memstart = memcalls );
mov eax, DWORD PTR memcalls
mov DWORD PTR memstart, eax
; 158 : }
pop rdi
ret 0
MemInit ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File c:\program files (x86)\windows kits\10\include\10.0.10150.0\ucrt\stdio.h
; COMDAT printf
_TEXT SEGMENT
_Result$ = 32... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/memalloc.asm | 521 | 580 |
Terraspace/UASM:x64/Debug/memalloc.asm:15 | mov QWORD PTR _ArgList$[rsp], rax
; 954 : _Result = _vfprintf_l(stdout, _Format, NULL, _ArgList);
mov ecx, 1
call QWORD PTR __imp___acrt_iob_func
mov r9, QWORD PTR _ArgList$[rsp]
xor r8d, r8d
mov rdx, QWORD PTR _Format$[rsp]
mov rcx, rax
call _vfprintf_l
mov DWORD PTR _Result$[rsp], eax
; 955 : __c... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/memalloc.asm | 561 | 620 |
Terraspace/UASM:x64/Debug/memalloc.asm:16 | _ArgList$ = 88
_vfprintf_l PROC ; COMDAT
; 638 : {
$LN3:
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, 48 ; 00000030H
mov rdi, rsp
mov ecx, 12
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+64]
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/memalloc.asm | 601 | 659 |
Terraspace/UASM:x64/Debug/memalloc.asm:17 | __local_stdio_printf_options PROC ; COMDAT
; 73 : {
$LN3:
push rdi
; 74 : static unsigned __int64 _OptionsStorage;
; 75 : return &_OptionsStorage;
lea rax, OFFSET FLAT:?_OptionsStorage@?1??__local_stdio_printf_options@@9@9 ; `__local_stdio_printf_options'::`2'::_OptionsStorage
; 76 : }
pop rd... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 6f3fbcf9cb046d547464d502cbd998dad78cd55d | github | assembler | https://github.com/Terraspace/UASM/blob/6f3fbcf9cb046d547464d502cbd998dad78cd55d/x64/Debug/memalloc.asm | 641 | 659 |
Terraspace/UASM:x64/Debug/memalloc.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23026.0
include listing.inc
INCLUDELIB MSVCRTD
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM decoflags:BYTE
COMM broadflags:BYTE
COMM evex:BYTE
_DATA ENDS
_BSS SEGMENT
memcalls DD 01H DUP (?)
_BSS ENDS
_DATA SEGMENT
$SG7475 DB 'memory used: %u kB', 0aH,... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/memalloc.asm | 1 | 60 |
Terraspace/UASM:x64/Debug/memalloc.asm:2 | EXTRN DoDebugMsg1:PROC
EXTRN Fatal:PROC
EXTRN __imp_VirtualAlloc:PROC
EXTRN __imp_VirtualFree:PROC
EXTRN _RTC_CheckStackVars:PROC
EXTRN _RTC_InitBase:PROC
EXTRN _RTC_Shutdown:PROC
EXTRN Options:BYTE
_DATA SEGMENT
COMM ?_OptionsStorage@?1??__local_stdio_printf_options@@9@9:QWORD ; `__local_stdio_printf_options'::`... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/memalloc.asm | 41 | 100 |
Terraspace/UASM:x64/Debug/memalloc.asm:3 | DD imagerel $LN3+47
DD imagerel $unwind$MemInit
$pdata$MemFini DD imagerel $LN7
DD imagerel $LN7+181
DD imagerel $unwind$MemFini
$pdata$MemAlloc DD imagerel $LN4
DD imagerel $LN4+118
DD imagerel $unwind$MemAlloc
$pdata$MemFree DD imagerel $LN3
DD imagerel $LN3+85
DD imagerel $unwind$MemFree
$pdata$LclAlloc DD im... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/memalloc.asm | 81 | 140 |
Terraspace/UASM:x64/Debug/memalloc.asm:4 | ; COMDAT CONST
CONST SEGMENT
printf$rtcName$0 DB 05fH
DB 041H
DB 072H
DB 067H
DB 04cH
DB 069H
DB 073H
DB 074H
DB 00H
ORG $+7
printf$rtcVarDesc DD 038H
DD 08H
DQ FLAT:printf$rtcName$0
ORG $+48
printf$rtcFrameData DD 01H
DD 00H
DQ FLAT:printf$rtcVarDesc
CONST ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$_vfpri... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/memalloc.asm | 121 | 180 |
Terraspace/UASM:x64/Debug/memalloc.asm:5 | $LN7:
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]
; 184 : void *ptr;
; 185 :
; 186 : #if FASTMEM
; 187 : size = (size + sizeof(void *)-1) & ~(sizeof(void *)-1);
mov rax, QW... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/memalloc.asm | 161 | 220 |
Terraspace/UASM:x64/Debug/memalloc.asm:6 | mov rax, QWORD PTR size$[rsp]
mov QWORD PTR tv73[rsp], rax
$LN6@LclAlloc:
mov eax, DWORD PTR tv73[rsp]
mov DWORD PTR currfree, eax
; 191 : BLKALLOC( pCurr, currfree + sizeof( struct linked_list ) );
mov eax, DWORD PTR currfree
add rax, 8
mov r9d, 4
mov r8d, 4096 ; 00001000H
mov rdx, rax
xor ecx, ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/memalloc.asm | 201 | 260 |
Terraspace/UASM:x64/Debug/memalloc.asm:7 | mov rax, QWORD PTR pCurr
mov QWORD PTR pBase, rax
; 198 : pCurr += sizeof( struct linked_list );
mov rax, QWORD PTR pCurr
add rax, 8
mov QWORD PTR pCurr, rax
; 199 : DebugCmd( blocks++ );
mov eax, DWORD PTR blocks
inc eax
mov DWORD PTR blocks, eax
$LN2@LclAlloc:
; 200 : }
; 201 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/memalloc.asm | 241 | 300 |
Terraspace/UASM:x64/Debug/memalloc.asm:8 | ; 207 : ptr = malloc( size );
; 208 : #ifdef TRMEM
; 209 : DebugMsg1(("LclAlloc(0x%X)=%p cnt=%" I32_SPEC "u\n", size, ptr, ++memcalls ));
; 210 : #endif
; 211 : if( ptr == NULL ) {
; 212 : Fatal( OUT_OF_MEMORY );
; 213 : }
; 214 : #endif
; 215 : return( ptr );
mov rax, QWORD PTR p... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/memalloc.asm | 281 | 340 |
Terraspace/UASM:x64/Debug/memalloc.asm:9 | dec eax
mov DWORD PTR memcalls, eax
mov r8d, DWORD PTR memcalls
mov rdx, QWORD PTR ptr$[rsp]
lea rcx, OFFSET FLAT:$SG7505
call DoDebugMsg1
; 248 : free( ptr );
mov rcx, QWORD PTR ptr$[rsp]
call QWORD PTR __imp_free
; 249 : return;
; 250 : }
add rsp, 32 ; 00000020H
pop rdi
ret 0
MemFree ENDP... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/memalloc.asm | 321 | 380 |
Terraspace/UASM:x64/Debug/memalloc.asm:10 | ; 235 : ptr = malloc( size );
mov rcx, QWORD PTR size$[rsp]
call QWORD PTR __imp_malloc
mov QWORD PTR ptr$[rsp], rax
; 236 : DebugMsg1(("MemAlloc(0x%X)=%p cnt=%" I32_SPEC "u\n", size, ptr, ++memcalls ));
mov eax, DWORD PTR memcalls
inc eax
mov DWORD PTR memcalls, eax
mov r9d, DWORD PTR memcalls
mov... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/memalloc.asm | 361 | 420 |
Terraspace/UASM:x64/Debug/memalloc.asm:11 | _TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\memalloc.c
_TEXT SEGMENT
pNext$1 = 32
MemFini PROC
; 162 : {
$LN7:
push rdi
sub rsp, 48 ; 00000030H
mov rdi, rsp
mov ecx, 12
mov eax, -858993460 ; ccccccccH
rep stosd
; 163 :
; 164 : #if FASTMEM
; 165 : #i... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/memalloc.asm | 401 | 460 |
Terraspace/UASM:x64/Debug/memalloc.asm:12 | ; 169 : while ( pBase ) {
cmp QWORD PTR pBase, 0
je SHORT $LN3@MemFini
; 170 : struct linked_list *pNext = pBase->next;
mov rax, QWORD PTR pBase
mov rax, QWORD PTR [rax]
mov QWORD PTR pNext$1[rsp], rax
; 171 : BLKFREE( pBase );
mov r8d, 32768 ; 00008000H
xor edx, edx
mov rcx, QWOR... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/memalloc.asm | 441 | 500 |
Terraspace/UASM:x64/Debug/memalloc.asm:13 | sub ecx, eax
mov eax, ecx
mov edx, eax
lea rcx, OFFSET FLAT:$SG7477
call printf
$LN5@MemFini:
; 178 : #endif
; 179 : }
add rsp, 48 ; 00000030H
pop rdi
ret 0
MemFini ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\memalloc.c
_TEXT SEGMENT
MemInit PROC
;... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/memalloc.asm | 481 | 540 |
Terraspace/UASM:x64/Debug/memalloc.asm:14 | mov eax, DWORD PTR memcalls
mov DWORD PTR memstart, eax
; 158 : }
pop rdi
ret 0
MemInit ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File c:\program files (x86)\windows kits\10\include\10.0.10150.0\ucrt\stdio.h
; COMDAT printf
_TEXT SEGMENT
_Result$ = 32
_ArgList$ = 56
_Format$ = 96
printf PROC ;... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/memalloc.asm | 521 | 580 |
Terraspace/UASM:x64/Debug/memalloc.asm:15 | ; 954 : _Result = _vfprintf_l(stdout, _Format, NULL, _ArgList);
mov ecx, 1
call QWORD PTR __imp___acrt_iob_func
mov r9, QWORD PTR _ArgList$[rsp]
xor r8d, r8d
mov rdx, QWORD PTR _Format$[rsp]
mov rcx, rax
call _vfprintf_l
mov DWORD PTR _Result$[rsp], eax
; 955 : __crt_va_end(_ArgList);
mov QWORD PT... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/memalloc.asm | 561 | 620 |
Terraspace/UASM:x64/Debug/memalloc.asm:16 | _vfprintf_l PROC ; COMDAT
; 638 : {
$LN3:
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, 48 ; 00000030H
mov rdi, rsp
mov ecx, 12
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+64]
; 639 : re... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/memalloc.asm | 601 | 658 |
Terraspace/UASM:x64/Debug/memalloc.asm:17 | ; 73 : {
$LN3:
push rdi
; 74 : static unsigned __int64 _OptionsStorage;
; 75 : return &_OptionsStorage;
lea rax, OFFSET FLAT:?_OptionsStorage@?1??__local_stdio_printf_options@@9@9 ; `__local_stdio_printf_options'::`2'::_OptionsStorage
; 76 : }
pop rdi
ret 0
__local_stdio_printf_options ENDP
_TE... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/memalloc.asm | 641 | 658 |
Terraspace/UASM:x64/Debug/memalloc.asm:6 | mov rax, QWORD PTR size$[rsp]
mov QWORD PTR tv73[rsp], rax
$LN6@LclAlloc:
mov eax, DWORD PTR tv73[rsp]
mov DWORD PTR currfree, eax
; 191 : BLKALLOC( pCurr, currfree + sizeof( struct linked_list ) );
mov eax, DWORD PTR currfree
add rax, 8
mov r9d, 4
mov r8d, 4096 ; 00001000H
mov rdx, rax
xor ecx, ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/memalloc.asm | 201 | 260 |
Terraspace/UASM:x64/Debug/memalloc.asm:10 | ; 235 : ptr = malloc( size );
mov rcx, QWORD PTR size$[rsp]
call QWORD PTR __imp_malloc
mov QWORD PTR ptr$[rsp], rax
; 236 : DebugMsg1(("MemAlloc(0x%X)=%p cnt=%" I32_SPEC "u\n", size, ptr, ++memcalls ));
mov eax, DWORD PTR memcalls
inc eax
mov DWORD PTR memcalls, eax
mov r9d, DWORD PTR memcalls
mov... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/memalloc.asm | 361 | 420 |
Terraspace/UASM:x64/Debug/memalloc.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
_BSS SEGMENT
memcalls DD 01H DUP (?)
_BSS ENDS
_DATA SEGMENT
$SG7473 DB 'memory used: %u kB', 0aH, 00H
ORG $+4
$... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/memalloc.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/memalloc.asm | 1 | 60 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.