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/cpumodel.asm:13 | mov eax, DWORD PTR newcpu$[rsp]
and eax, 65280 ; 0000ff00H
test eax, eax
je SHORT $LN15@SetCPU
; 403 : ModuleInfo.curr_cpu &= ~P_EXT_MASK;
mov eax, DWORD PTR ModuleInfo+392
and eax, -65281 ; ffffffffffff00ffH
mov DWORD PTR ModuleInfo+392, eax
; 404 : ModuleInfo.curr_cpu |= (newcpu & P_E... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 481 | 540 |
Terraspace/UASM:x64/Debug/cpumodel.asm:14 | ja SHORT $LN22@SetCPU
movsxd rax, DWORD PTR tv130[rsp]
lea rcx, OFFSET FLAT:__ImageBase
movzx eax, BYTE PTR $LN33@SetCPU[rcx+rax]
mov eax, DWORD PTR $LN34@SetCPU[rcx+rax*4]
add rax, rcx
jmp rax
$LN16@SetCPU:
; 411 : case P_186: ModuleInfo.cpu = M_8086 | M_186; break;
mov eax, 3
mov WORD PTR ModuleInfo+38... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 521 | 580 |
Terraspace/UASM:x64/Debug/cpumodel.asm:15 | mov WORD PTR ModuleInfo+388, ax
jmp SHORT $LN2@SetCPU
$LN21@SetCPU:
; 416 : /* Masm's .686 directive doesn't set the Pentium flag! A bug? */
; 417 : //case P_686: ModuleInfo.cpu = M_8086 | M_186 | M_286 | M_386 | M_486 | M_586 | M_686; break;
; 418 : #if AMD64_SUPPORT
; 419 : case P_64:
; 420 : #endi... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 561 | 620 |
Terraspace/UASM:x64/Debug/cpumodel.asm:16 | mov eax, DWORD PTR ModuleInfo+392
and eax, 7
mov DWORD PTR temp$[rsp], eax
; 428 : switch (temp) {
mov eax, DWORD PTR temp$[rsp]
mov DWORD PTR tv139[rsp], eax
cmp DWORD PTR tv139[rsp], 2
je SHORT $LN24@SetCPU
cmp DWORD PTR tv139[rsp], 3
je SHORT $LN25@SetCPU
cmp DWORD PTR tv139[rsp], 4
je SHORT $LN26@S... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 601 | 660 |
Terraspace/UASM:x64/Debug/cpumodel.asm:17 | mov WORD PTR ModuleInfo+388, ax
$LN4@SetCPU:
; 432 : }
; 433 :
; 434 : DebugMsg1(("SetCPU: ModuleInfo.curr_cpu=%X, @Cpu=%X\n", ModuleInfo.curr_cpu, ModuleInfo.cpu ));
movsx eax, WORD PTR ModuleInfo+388
mov r8d, eax
mov edx, DWORD PTR ModuleInfo+392
lea rcx, OFFSET FLAT:$SG11296
call DoDebugMsg1
; 435... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 641 | 700 |
Terraspace/UASM:x64/Debug/cpumodel.asm:18 | mov eax, DWORD PTR ModuleInfo+392
and eax, 240 ; 000000f0H
cmp eax, 48 ; 00000030H
jl SHORT $LN31@SetCPU
mov DWORD PTR tv166[rsp], 1
jmp SHORT $LN32@SetCPU
$LN31@SetCPU:
mov DWORD PTR tv166[rsp], 0
$LN32@SetCPU:
mov ecx, DWORD PTR tv166[rsp]
call SetDefaultOfssize
$LN29@SetCPU:
$LN27@SetCPU:
; 444 :
; ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 681 | 740 |
Terraspace/UASM:x64/Debug/cpumodel.asm:19 | DD $LN18@SetCPU
DD $LN19@SetCPU
DD $LN20@SetCPU
DD $LN21@SetCPU
DD $LN22@SetCPU
$LN33@SetCPU:
DB 0
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 1
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 2
DB 6
DB 6
DB 6
DB 6
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 721 | 780 |
Terraspace/UASM:x64/Debug/cpumodel.asm:20 | DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 3
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 4
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 5
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 761 | 820 |
Terraspace/UASM:x64/Debug/cpumodel.asm:21 | DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 5
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 5
SetCPU ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\cpumodel.c
_TEXT SEGMENT
model$ = 32
language$ = 52
distance$ = 68
ostype$ =... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 801 | 860 |
Terraspace/UASM:x64/Debug/cpumodel.asm:22 | i$ = 112
tokenarray$ = 120
ModelDirective PROC
; 249 : {
$LN34:
mov QWORD PTR [rsp+16], rdx
mov DWORD PTR [rsp+8], ecx
push rdi
sub rsp, 96 ; 00000060H
mov rdi, rsp
mov ecx, 24
mov eax, -858993460 ; ccccccccH
rep stosd
mov ecx, DWORD PTR [rsp+112]
mov BYTE PTR $T7[rsp], 0
mov BYTE PTR $T8[rsp], 0
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 841 | 900 |
Terraspace/UASM:x64/Debug/cpumodel.asm:23 | cmp DWORD PTR Parse_Pass, 0
je SHORT $LN8@ModelDirec
cmp DWORD PTR ModuleInfo+360, 0
je SHORT $LN8@ModelDirec
; 266 : /* just set the model with SetModel() if pass is != 1.
; 267 : * This won't set the language ( which can be modified by
; 268 : * OPTION LANGUAGE directive ), but the la... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 881 | 940 |
Terraspace/UASM:x64/Debug/cpumodel.asm:24 | mov ecx, 246 ; 000000f6H
call EmitError
jmp $LN1@ModelDirec
$LN9@ModelDirec:
; 278 : }
; 279 : /* get the model argument */
; 280 : index = FindToken( tokenarray[i].string_ptr, ModelToken, sizeof( ModelToken )/sizeof( ModelToken[0] ) );
movsxd rax, DWORD PTR i$[rsp]
imul rax, rax, 32 ; 000000... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 921 | 980 |
Terraspace/UASM:x64/Debug/cpumodel.asm:25 | inc eax
mov DWORD PTR model$[rsp], eax
; 287 : i++;
mov eax, DWORD PTR i$[rsp]
inc eax
mov DWORD PTR i$[rsp], eax
; 288 : } else {
jmp SHORT $LN11@ModelDirec
$LN10@ModelDirec:
; 289 : return( EmitErr( SYNTAX_ERROR_EX, tokenarray[i].string_ptr ) );
movsxd rax, DWORD PTR i$[rsp]
imul r... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 961 | 1,020 |
Terraspace/UASM:x64/Debug/cpumodel.asm:26 | imul rax, rax, 32 ; 00000020H
mov rcx, QWORD PTR tokenarray$[rsp]
movzx eax, BYTE PTR [rcx+rax]
cmp eax, 44 ; 0000002cH
jne $LN3@ModelDirec
; 295 : i++;
mov eax, DWORD PTR i$[rsp]
inc eax
mov DWORD PTR i$[rsp], eax
; 296 : if ( tokenarray[i].token != T_COMMA ) {
movsxd rax, DWORD PT... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 1,001 | 1,060 |
Terraspace/UASM:x64/Debug/cpumodel.asm:27 | ; 300 : index = FindToken( tokenarray[i].string_ptr, ModelAttr, sizeof( ModelAttr )/sizeof( ModelAttr[0] ) );
movsxd rax, DWORD PTR i$[rsp]
imul rax, rax, 32 ; 00000020H
mov r8d, 4
lea rdx, OFFSET FLAT:ModelAttr
mov rcx, QWORD PTR tokenarray$[rsp]
mov rcx, QWORD PTR [rcx+rax+8]
call FindToke... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 1,041 | 1,100 |
Terraspace/UASM:x64/Debug/cpumodel.asm:28 | ; 306 : if ( model == MODEL_FLAT ) {
cmp DWORD PTR model$[rsp], 7
jne SHORT $LN18@ModelDirec
; 307 : return( EmitError( INVALID_MODEL_PARAM_FOR_FLAT ) );
mov ecx, 200 ; 000000c8H
call EmitError
jmp $LN1@ModelDirec
$LN18@ModelDirec:
; 308 : }... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 1,081 | 1,140 |
Terraspace/UASM:x64/Debug/cpumodel.asm:29 | mov eax, DWORD PTR i$[rsp]
inc eax
mov DWORD PTR i$[rsp], eax
$LN15@ModelDirec:
; 316 : }
; 317 : /* attribute set already? */
; 318 : if ( initv & init ) {
movzx eax, BYTE PTR initv$[rsp]
movzx ecx, BYTE PTR init$[rsp]
and eax, ecx
test eax, eax
je SHORT $LN20@ModelDirec... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 1,121 | 1,180 |
Terraspace/UASM:x64/Debug/cpumodel.asm:30 | $LN3@ModelDirec:
; 325 : /* everything parsed successfully? */
; 326 : if ( tokenarray[i].token != T_FINAL ) {
movsxd rax, DWORD PTR i$[rsp]
imul rax, rax, 32 ; 00000020H
mov rcx, QWORD PTR tokenarray$[rsp]
movzx eax, BYTE PTR [rcx+rax]
test eax, eax
je SHORT $LN21@ModelDirec
; 327 : retu... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 1,161 | 1,220 |
Terraspace/UASM:x64/Debug/cpumodel.asm:31 | call EmitError
jmp $LN1@ModelDirec
$LN23@ModelDirec:
; 333 : }
; 334 : #if AMD64_SUPPORT
; 335 : if ( ( ModuleInfo.curr_cpu & P_CPU_MASK ) >= P_64 ) /* cpu 64-bit? */
mov eax, DWORD PTR ModuleInfo+392
and eax, 240 ; 000000f0H
cmp eax, 112 ; 00000070H
jl SHORT $LN24@ModelDirec
; 336 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 1,201 | 1,260 |
Terraspace/UASM:x64/Debug/cpumodel.asm:32 | ; 340 : #endif
; 341 : /* v2.11: define FLAT symbol is to early here, because defOfssize isn't set yet */
; 342 : //DefineFlatGroup();
; 343 : }
; 344 :
; 345 : ModuleInfo.model = model;
mov eax, DWORD PTR model$[rsp]
mov DWORD PTR ModuleInfo+360, eax
; 346 : if ( init & INIT_LANG... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 1,241 | 1,300 |
Terraspace/UASM:x64/Debug/cpumodel.asm:33 | call _RTC_UninitUse
$LN32@ModelDirec:
mov eax, DWORD PTR distance$[rsp]
mov DWORD PTR ModuleInfo+356, eax
$LN28@ModelDirec:
; 350 : if ( init & INIT_OS )
movzx eax, BYTE PTR init$[rsp]
and eax, 4
test eax, eax
je SHORT $LN29@ModelDirec
; 351 : ModuleInfo.ostype = ostype;
cmp BYTE PTR $T8[rsp], ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 1,281 | 1,340 |
Terraspace/UASM:x64/Debug/cpumodel.asm:34 | mov rdi, rax
mov rcx, rsp
lea rdx, OFFSET FLAT:ModelDirective$rtcFrameData
call _RTC_CheckStackVars
mov rax, rdi
add rsp, 96 ; 00000060H
pop rdi
ret 0
ModelDirective ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\cpumodel.c
_TEXT SEGMENT
value$ = 32
textva... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 1,321 | 1,380 |
Terraspace/UASM:x64/Debug/cpumodel.asm:35 | ; 140 : /* if model is set, it disables OT_SEGMENT of -Zm switch */
; 141 : if ( ModuleInfo.model == MODEL_FLAT ) {
cmp DWORD PTR ModuleInfo+360, 7
jne SHORT $LN4@SetModel
; 142 : ModuleInfo.offsettype = OT_FLAT;
mov DWORD PTR ModuleInfo+384, 1
; 143 : #if AMD64_SUPPORT
; 144 : SetDe... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 1,361 | 1,420 |
Terraspace/UASM:x64/Debug/cpumodel.asm:36 | cmp DWORD PTR ModuleInfo+364, 7
jne SHORT $LN7@SetModel
; 152 : if ( Options.output_format != OFORMAT_ELF ) {
cmp DWORD PTR Options+160, 3
je SHORT $LN8@SetModel
; 153 : DebugMsg(("SetModel: FASTCALL type set to WIN64\n"));
lea rcx, OFFSET FLAT:$SG11201
call DoDebugMsg
; ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 1,401 | 1,460 |
Terraspace/UASM:x64/Debug/cpumodel.asm:37 | ; 164 :
; 165 : ModelSimSegmInit( ModuleInfo.model ); /* create segments in first pass */
mov ecx, DWORD PTR ModuleInfo+360
call ModelSimSegmInit
; 166 : ModelAssumeInit();
call ModelAssumeInit
; 167 :
; 168 : if ( ModuleInfo.list )
mov eax, DWORD PTR ModuleInfo+408
shr eax, 11
and eax, 1
t... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 1,441 | 1,500 |
Terraspace/UASM:x64/Debug/cpumodel.asm:38 | ; 175 :
; 176 : /* Set @CodeSize */
; 177 : if ( SIZE_CODEPTR & ( 1 << ModuleInfo.model ) ) {
mov eax, DWORD PTR ModuleInfo+360
mov ecx, 1
mov DWORD PTR tv196[rsp], ecx
movzx ecx, al
mov eax, DWORD PTR tv196[rsp]
shl eax, cl
and eax, 112 ; 00000070H
test eax, eax
je SHORT $LN11@SetModel
; 178 ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 1,481 | 1,540 |
Terraspace/UASM:x64/Debug/cpumodel.asm:39 | xor ecx, ecx
call SimGetSegName
mov rdx, rax
lea rcx, OFFSET FLAT:$SG11207
call AddPredefinedText
; 187 :
; 188 : /* Set @DataSize */
; 189 : switch( ModuleInfo.model ) {
mov eax, DWORD PTR ModuleInfo+360
mov DWORD PTR tv87[rsp], eax
cmp DWORD PTR tv87[rsp], 3
je SHORT $LN13@SetModel
cmp DWORD PTR... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 1,521 | 1,580 |
Terraspace/UASM:x64/Debug/cpumodel.asm:40 | jmp SHORT $LN2@SetModel
$LN15@SetModel:
; 197 : default:
; 198 : value = 0;
mov DWORD PTR value$[rsp], 0
$LN2@SetModel:
; 199 : break;
; 200 : }
; 201 : sym_DataSize = AddPredefinedConstant( "@DataSize", value );
mov edx, DWORD PTR value$[rsp]
lea rcx, OFFSET FLAT:$SG11211
call ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 1,561 | 1,620 |
Terraspace/UASM:x64/Debug/cpumodel.asm:41 | ; 206 : if ( ModuleInfo.distance == STACK_FAR )
cmp DWORD PTR ModuleInfo+356, 1
jne SHORT $LN16@SetModel
; 207 : textvalue = "STACK";
lea rax, OFFSET FLAT:$SG11215
mov QWORD PTR textvalue$[rsp], rax
$LN16@SetModel:
; 208 : AddPredefinedText( "@stack", textvalue );
mov rdx, QWORD PTR textval... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 1,601 | 1,660 |
Terraspace/UASM:x64/Debug/cpumodel.asm:42 | ; 220 : #if AMD64_SUPPORT
; 221 : if ( ModuleInfo.defOfssize == USE64 && ModuleInfo.fctype == FCT_WIN64 ) {
movzx eax, BYTE PTR ModuleInfo+405
cmp eax, 2
jne SHORT $LN17@SetModel
cmp DWORD PTR ModuleInfo+376, 2
jne SHORT $LN17@SetModel
; 222 : sym_ReservedStack = AddPredefinedConstant( "@ReservedS... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 1,641 | 1,700 |
Terraspace/UASM:x64/Debug/cpumodel.asm:43 | call DumpResWords
$LN19@SetModel:
$LN1@SetModel:
; 233 : #endif
; 234 :
; 235 : }
add rsp, 80 ; 00000050H
pop rdi
ret 0
SetModel ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\cpumodel.c
_TEXT SEGMENT
size$ = 48
SetDefaultOfssize PROC
; 109 : {
mov DW... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 1,681 | 1,740 |
Terraspace/UASM:x64/Debug/cpumodel.asm:44 | mov BYTE PTR ModuleInfo+405, al
$LN2@SetDefault:
; 113 : }
; 114 : return( SetOfssize() );
call SetOfssize
; 115 : }
add rsp, 32 ; 00000020H
pop rdi
ret 0
SetDefaultOfssize ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\cpumodel.c
_TEXT SEGMENT... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 1,721 | 1,780 |
Terraspace/UASM:x64/Debug/cpumodel.asm:45 | mov QWORD PTR sym$[rsp], rax
; 100 : if (sym)
cmp QWORD PTR sym$[rsp], 0
je SHORT $LN2@AddPredefi
; 101 : sym->predefined = TRUE;
mov rax, QWORD PTR sym$[rsp]
movzx eax, BYTE PTR [rax+40]
or al, 32 ; 00000020H
mov rcx, QWORD PTR sym$[rsp]
mov BYTE PTR [rcx+40], al
$LN2@AddPredefi:
; 102 :... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 1,761 | 1,820 |
Terraspace/UASM:x64/Debug/cpumodel.asm:46 | 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]
; 87 : int i;
; 88 : for( i = 0; i < size; i++, table++ ) {
mov DWORD PTR i$[rsp], 0
jmp SHORT $LN4@FindToken
$LN2@FindToken:
mov eax,... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 1,801 | 1,860 |
Terraspace/UASM:x64/Debug/cpumodel.asm:47 | ; 91 : }
; 92 : }
jmp SHORT $LN2@FindToken
$LN3@FindToken:
; 93 : return( -1 ); /* Not found */
mov eax, -1
$LN1@FindToken:
; 94 : }
add rsp, 48 ; 00000030H
pop rdi
ret 0
FindToken ENDP
_TEXT ENDS
END | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 44b156da77c15b4906319aecb4db33b45ed939cb | github | assembler | https://github.com/Terraspace/UASM/blob/44b156da77c15b4906319aecb4db33b45ed939cb/x64/Debug/cpumodel.asm | 1,841 | 1,860 |
Terraspace/UASM:x64/Debug/cpumodel.asm:7 | ; 463 : enum cpu_info newcpu;
; 464 :
; 465 : //newcpu = comp_opt( tokenarray[i].tokval );
; 466 : newcpu = GetSflagsSp( tokenarray[i].tokval );
movsxd rax, DWORD PTR i$[rsp]
imul rax, rax, 32 ; 00000020H
mov rcx, QWORD PTR tokenarray$[rsp]
mov eax, DWORD PTR [rcx+rax+16]
imul rax, rax, 12
lea... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/cpumodel.asm | 241 | 300 |
Terraspace/UASM:x64/Debug/cpumodel.asm:8 | ; 487 :
; 488 : if ( tokenarray[i].token != T_FINAL ) {
movsxd rax, DWORD PTR i$[rsp]
imul rax, rax, 32 ; 00000020H
mov rcx, QWORD PTR tokenarray$[rsp]
movzx eax, BYTE PTR [rcx+rax]
test eax, eax
je SHORT $LN2@CpuDirecti
; 489 : return( EmitErr( SYNTAX_ERROR_EX, tokenarray[i].tokpos ) );
mov... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/cpumodel.asm | 281 | 340 |
Terraspace/UASM:x64/Debug/cpumodel.asm:23 | cmp DWORD PTR Parse_Pass, 0
je SHORT $LN8@ModelDirec
cmp DWORD PTR ModuleInfo+360, 0
je SHORT $LN8@ModelDirec
; 266 : /* just set the model with SetModel() if pass is != 1.
; 267 : * This won't set the language ( which can be modified by
; 268 : * OPTION LANGUAGE directive ), but the la... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/cpumodel.asm | 881 | 940 |
Terraspace/UASM:x64/Debug/cpumodel.asm:24 | mov ecx, 247 ; 000000f7H
call EmitError
jmp $LN1@ModelDirec
$LN9@ModelDirec:
; 278 : }
; 279 : /* get the model argument */
; 280 : index = FindToken( tokenarray[i].string_ptr, ModelToken, sizeof( ModelToken )/sizeof( ModelToken[0] ) );
movsxd rax, DWORD PTR i$[rsp]
imul rax, rax, 32 ; 000000... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/cpumodel.asm | 921 | 980 |
Terraspace/UASM:x64/Debug/cpumodel.asm:25 | inc eax
mov DWORD PTR model$[rsp], eax
; 287 : i++;
mov eax, DWORD PTR i$[rsp]
inc eax
mov DWORD PTR i$[rsp], eax
; 288 : } else {
jmp SHORT $LN11@ModelDirec
$LN10@ModelDirec:
; 289 : return( EmitErr( SYNTAX_ERROR_EX, tokenarray[i].string_ptr ) );
movsxd rax, DWORD PTR i$[rsp]
imul r... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/cpumodel.asm | 961 | 1,020 |
Terraspace/UASM:x64/Debug/cpumodel.asm:27 | ; 300 : index = FindToken( tokenarray[i].string_ptr, ModelAttr, sizeof( ModelAttr )/sizeof( ModelAttr[0] ) );
movsxd rax, DWORD PTR i$[rsp]
imul rax, rax, 32 ; 00000020H
mov r8d, 4
lea rdx, OFFSET FLAT:ModelAttr
mov rcx, QWORD PTR tokenarray$[rsp]
mov rcx, QWORD PTR [rcx+rax+8]
call FindToke... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/cpumodel.asm | 1,041 | 1,100 |
Terraspace/UASM:x64/Debug/cpumodel.asm:28 | ; 306 : if ( model == MODEL_FLAT ) {
cmp DWORD PTR model$[rsp], 7
jne SHORT $LN18@ModelDirec
; 307 : return( EmitError( INVALID_MODEL_PARAM_FOR_FLAT ) );
mov ecx, 201 ; 000000c9H
call EmitError
jmp $LN1@ModelDirec
$LN18@ModelDirec:
; 308 : }... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/cpumodel.asm | 1,081 | 1,140 |
Terraspace/UASM:x64/Debug/cpumodel.asm:29 | mov eax, DWORD PTR i$[rsp]
inc eax
mov DWORD PTR i$[rsp], eax
$LN15@ModelDirec:
; 316 : }
; 317 : /* attribute set already? */
; 318 : if ( initv & init ) {
movzx eax, BYTE PTR initv$[rsp]
movzx ecx, BYTE PTR init$[rsp]
and eax, ecx
test eax, eax
je SHORT $LN20@ModelDirec... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/cpumodel.asm | 1,121 | 1,180 |
Terraspace/UASM:x64/Debug/cpumodel.asm:30 | $LN3@ModelDirec:
; 325 : /* everything parsed successfully? */
; 326 : if ( tokenarray[i].token != T_FINAL ) {
movsxd rax, DWORD PTR i$[rsp]
imul rax, rax, 32 ; 00000020H
mov rcx, QWORD PTR tokenarray$[rsp]
movzx eax, BYTE PTR [rcx+rax]
test eax, eax
je SHORT $LN21@ModelDirec
; 327 : retu... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 17413bab2400c29ab34e6d2fd2427efa2c6eb1d3 | github | assembler | https://github.com/Terraspace/UASM/blob/17413bab2400c29ab34e6d2fd2427efa2c6eb1d3/x64/Debug/cpumodel.asm | 1,161 | 1,220 |
Terraspace/UASM:x64/Debug/cpumodel.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23026.0
include listing.inc
INCLUDELIB MSVCRTD
INCLUDELIB OLDNAMES
PUBLIC ModelToken
PUBLIC coff64_fmtopt
PUBLIC elf64_fmtopt
_DATA SEGMENT
COMM decoflags:BYTE
COMM broadflags:BYTE
COMM sym_Interface:QWORD
COMM sym_Cpu:QWORD
_DATA ENDS
CONST SEGM... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 1 | 60 |
Terraspace/UASM:x64/Debug/cpumodel.asm:2 | DW 0f00H
DB 'ELF64', 00H
CONST ENDS
_DATA SEGMENT
$SG11272 DB 'SetCPU(%X) enter', 0aH, 00H
ORG $+6
$SG11294 DB 'SetCPU: ModuleInfo.curr_cpu=%X, @Cpu=%X', 0aH, 00H
ORG $+3
$SG11298 DB '@Cpu', 00H
ORG $+3
$SG11134 DB 'TINY', 00H
ORG $+3
$SG11135 DB 'SMALL', 00H
ORG $+6
$SG11136 DB 'COMPACT', 00H
$SG11137 DB 'MEDIUM... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 41 | 100 |
Terraspace/UASM:x64/Debug/cpumodel.asm:3 | ORG $+2
$SG11210 DB 'FLAT', 00H
ORG $+3
$SG11211 DB '@data', 00H
ORG $+2
$SG11213 DB 'STACK', 00H
ORG $+2
$SG11214 DB '@stack', 00H
ORG $+1
$SG11215 DB '@Model', 00H
ORG $+5
$SG11216 DB '@Interface', 00H
ORG $+5
$SG11218 DB '@ReservedStack', 00H
ORG $+1
$SG11240 DB 'ModelDirective enter', 0aH, 00H
_DATA ENDS
PUB... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 81 | 140 |
Terraspace/UASM:x64/Debug/cpumodel.asm:4 | EXTRN _RTC_InitBase:PROC
EXTRN _RTC_Shutdown:PROC
EXTRN _RTC_UninitUse:PROC
EXTRN Options:BYTE
EXTRN ModuleInfo:BYTE
EXTRN Parse_Pass:DWORD
EXTRN SpecialTable:BYTE
EXTRN sym_ReservedStack:QWORD
EXTRN szDgroup:BYTE
EXTRN __ImageBase:BYTE
_BSS SEGMENT
sym_CodeSize DQ 01H DUP (?)
sym_DataSize DQ 01H DUP (?)
sym_Model DQ 0... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 121 | 180 |
Terraspace/UASM:x64/Debug/cpumodel.asm:5 | _RTC_Shutdown.rtc$TMZ DQ FLAT:_RTC_Shutdown
rtc$TMZ ENDS
; COMDAT rtc$IMZ
rtc$IMZ SEGMENT
_RTC_InitBase.rtc$IMZ DQ FLAT:_RTC_InitBase
rtc$IMZ ENDS
CONST SEGMENT
ModelDirective$rtcName$0 DB 06cH
DB 061H
DB 06eH
DB 067H
DB 075H
DB 061H
DB 067H
DB 065H
DB 00H
ORG $+7
ModelDirective$rtcName$1 DB 064H
DB 069H
DB ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 161 | 220 |
Terraspace/UASM:x64/Debug/cpumodel.asm:6 | DD 04H
DQ FLAT:ModelDirective$rtcName$0
CONST ENDS
xdata SEGMENT
$unwind$FindToken DD 022801H
DD 070105214H
$unwind$AddPredefinedConstant DD 022201H
DD 0700a520eH
$unwind$SetDefaultOfssize DD 021c01H
DD 070053209H
$unwind$SetModel DD 021501H
DD 070029206H
$unwind$ModelDirective DD 022101H
DD 0700ab20eH
$unwind$Se... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 201 | 260 |
Terraspace/UASM:x64/Debug/cpumodel.asm:8 | ; 488 : if ( tokenarray[i].token != T_FINAL ) {
movsxd rax, DWORD PTR i$[rsp]
imul rax, rax, 32 ; 00000020H
mov rcx, QWORD PTR tokenarray$[rsp]
movzx eax, BYTE PTR [rcx+rax]
test eax, eax
je SHORT $LN2@CpuDirecti
; 489 : return( EmitErr( SYNTAX_ERROR_EX, tokenarray[i].tokpos ) );
movsxd rax, ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 281 | 340 |
Terraspace/UASM:x64/Debug/cpumodel.asm:9 | tv139 = 40
tv166 = 44
newcpu$ = 64
SetCPU PROC
; 369 : {
$LN35:
mov DWORD PTR [rsp+8], ecx
push rdi
sub rsp, 48 ; 00000030H
mov rdi, rsp
mov ecx, 12
mov eax, -858993460 ; ccccccccH
rep stosd
mov ecx, DWORD PTR [rsp+64]
; 370 : int temp;
; 371 :
; 372 : DebugMsg1(("SetCPU(%X) enter\n", newc... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 321 | 380 |
Terraspace/UASM:x64/Debug/cpumodel.asm:10 | mov DWORD PTR ModuleInfo+392, eax
; 376 :
; 377 : /* set CPU bits */
; 378 : ModuleInfo.curr_cpu |= newcpu & ( P_CPU_MASK | P_PM );
mov eax, DWORD PTR newcpu$[rsp]
and eax, 248 ; 000000f8H
mov ecx, DWORD PTR ModuleInfo+392
or ecx, eax
mov eax, ecx
mov DWORD PTR ModuleInfo+392, eax
; 379 ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 361 | 420 |
Terraspace/UASM:x64/Debug/cpumodel.asm:12 | and eax, 7
test eax, eax
je SHORT $LN13@SetCPU
; 394 : ModuleInfo.curr_cpu &= ~P_FPU_MASK;
mov eax, DWORD PTR ModuleInfo+392
and eax, -8
mov DWORD PTR ModuleInfo+392, eax
; 395 : ModuleInfo.curr_cpu |= (newcpu & P_FPU_MASK);
mov eax, DWORD PTR newcpu$[rsp]
and eax, 7
mov ecx, DWORD PTR Mod... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 441 | 500 |
Terraspace/UASM:x64/Debug/cpumodel.asm:13 | mov eax, DWORD PTR newcpu$[rsp]
and eax, 65280 ; 0000ff00H
test eax, eax
je SHORT $LN15@SetCPU
; 403 : ModuleInfo.curr_cpu &= ~P_EXT_MASK;
mov eax, DWORD PTR ModuleInfo+392
and eax, -65281 ; ffffffffffff00ffH
mov DWORD PTR ModuleInfo+392, eax
; 404 : ModuleInfo.curr_cpu |= (newcpu & P_E... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 481 | 540 |
Terraspace/UASM:x64/Debug/cpumodel.asm:14 | movsxd rax, DWORD PTR tv130[rsp]
lea rcx, OFFSET FLAT:__ImageBase
movzx eax, BYTE PTR $LN33@SetCPU[rcx+rax]
mov eax, DWORD PTR $LN34@SetCPU[rcx+rax*4]
add rax, rcx
jmp rax
$LN16@SetCPU:
; 411 : case P_186: ModuleInfo.cpu = M_8086 | M_186; break;
mov eax, 3
mov WORD PTR ModuleInfo+388, ax
jmp SHORT $LN2@S... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 521 | 580 |
Terraspace/UASM:x64/Debug/cpumodel.asm:15 | jmp SHORT $LN2@SetCPU
$LN21@SetCPU:
; 416 : /* Masm's .686 directive doesn't set the Pentium flag! A bug? */
; 417 : //case P_686: ModuleInfo.cpu = M_8086 | M_186 | M_286 | M_386 | M_486 | M_586 | M_686; break;
; 418 : #if AMD64_SUPPORT
; 419 : case P_64:
; 420 : #endif
; 421 : case P_686: Module... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 561 | 620 |
Terraspace/UASM:x64/Debug/cpumodel.asm:16 | and eax, 7
mov DWORD PTR temp$[rsp], eax
; 428 : switch (temp) {
mov eax, DWORD PTR temp$[rsp]
mov DWORD PTR tv139[rsp], eax
cmp DWORD PTR tv139[rsp], 2
je SHORT $LN24@SetCPU
cmp DWORD PTR tv139[rsp], 3
je SHORT $LN25@SetCPU
cmp DWORD PTR tv139[rsp], 4
je SHORT $LN26@SetCPU
jmp SHORT $LN4@SetCPU
$LN24@... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 601 | 660 |
Terraspace/UASM:x64/Debug/cpumodel.asm:17 | $LN4@SetCPU:
; 432 : }
; 433 :
; 434 : DebugMsg1(("SetCPU: ModuleInfo.curr_cpu=%X, @Cpu=%X\n", ModuleInfo.curr_cpu, ModuleInfo.cpu ));
movsx eax, WORD PTR ModuleInfo+388
mov r8d, eax
mov edx, DWORD PTR ModuleInfo+392
lea rcx, OFFSET FLAT:$SG11294
call DoDebugMsg1
; 435 :
; 436 : //MakeCPUConsta... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 641 | 700 |
Terraspace/UASM:x64/Debug/cpumodel.asm:18 | mov eax, DWORD PTR ModuleInfo+392
and eax, 240 ; 000000f0H
cmp eax, 48 ; 00000030H
jl SHORT $LN31@SetCPU
mov DWORD PTR tv166[rsp], 1
jmp SHORT $LN32@SetCPU
$LN31@SetCPU:
mov DWORD PTR tv166[rsp], 0
$LN32@SetCPU:
mov ecx, DWORD PTR tv166[rsp]
call SetDefaultOfssize
$LN29@SetCPU:
$LN27@SetCPU:
; 444 :
; ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 681 | 740 |
Terraspace/UASM:x64/Debug/cpumodel.asm:19 | DD $LN19@SetCPU
DD $LN20@SetCPU
DD $LN21@SetCPU
DD $LN22@SetCPU
$LN33@SetCPU:
DB 0
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 1
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 2
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 721 | 780 |
Terraspace/UASM:x64/Debug/cpumodel.asm:20 | DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 3
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 4
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 5
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 761 | 820 |
Terraspace/UASM:x64/Debug/cpumodel.asm:21 | DB 6
DB 6
DB 6
DB 6
DB 6
DB 5
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 6
DB 5
SetCPU ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\cpumodel.c
_TEXT SEGMENT
model$ = 32
language$ = 52
distance$ = 68
ostype$ = 72
in... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 801 | 860 |
Terraspace/UASM:x64/Debug/cpumodel.asm:22 | tokenarray$ = 120
ModelDirective PROC
; 249 : {
$LN34:
mov QWORD PTR [rsp+16], rdx
mov DWORD PTR [rsp+8], ecx
push rdi
sub rsp, 96 ; 00000060H
mov rdi, rsp
mov ecx, 24
mov eax, -858993460 ; ccccccccH
rep stosd
mov ecx, DWORD PTR [rsp+112]
mov BYTE PTR $T7[rsp], 0
mov BYTE PTR $T8[rsp], 0
mov BYTE ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 841 | 900 |
Terraspace/UASM:x64/Debug/cpumodel.asm:23 | cmp DWORD PTR Parse_Pass, 0
je SHORT $LN8@ModelDirec
cmp DWORD PTR ModuleInfo+360, 0
je SHORT $LN8@ModelDirec
; 266 : /* just set the model with SetModel() if pass is != 1.
; 267 : * This won't set the language ( which can be modified by
; 268 : * OPTION LANGUAGE directive ), but the la... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 881 | 940 |
Terraspace/UASM:x64/Debug/cpumodel.asm:24 | call EmitError
jmp $LN1@ModelDirec
$LN9@ModelDirec:
; 278 : }
; 279 : /* get the model argument */
; 280 : index = FindToken( tokenarray[i].string_ptr, ModelToken, sizeof( ModelToken )/sizeof( ModelToken[0] ) );
movsxd rax, DWORD PTR i$[rsp]
imul rax, rax, 32 ; 00000020H
mov r8d, 7
lea rdx, OFF... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 921 | 980 |
Terraspace/UASM:x64/Debug/cpumodel.asm:25 | mov DWORD PTR model$[rsp], eax
; 287 : i++;
mov eax, DWORD PTR i$[rsp]
inc eax
mov DWORD PTR i$[rsp], eax
; 288 : } else {
jmp SHORT $LN11@ModelDirec
$LN10@ModelDirec:
; 289 : return( EmitErr( SYNTAX_ERROR_EX, tokenarray[i].string_ptr ) );
movsxd rax, DWORD PTR i$[rsp]
imul rax, rax, ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 961 | 1,020 |
Terraspace/UASM:x64/Debug/cpumodel.asm:26 | mov rcx, QWORD PTR tokenarray$[rsp]
movzx eax, BYTE PTR [rcx+rax]
cmp eax, 44 ; 0000002cH
jne $LN3@ModelDirec
; 295 : i++;
mov eax, DWORD PTR i$[rsp]
inc eax
mov DWORD PTR i$[rsp], eax
; 296 : if ( tokenarray[i].token != T_COMMA ) {
movsxd rax, DWORD PTR i$[rsp]
imul rax, rax, 32 ; ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 1,001 | 1,060 |
Terraspace/UASM:x64/Debug/cpumodel.asm:27 | movsxd rax, DWORD PTR i$[rsp]
imul rax, rax, 32 ; 00000020H
mov r8d, 4
lea rdx, OFFSET FLAT:ModelAttr
mov rcx, QWORD PTR tokenarray$[rsp]
mov rcx, QWORD PTR [rcx+rax+8]
call FindToken
mov DWORD PTR index$[rsp], eax
; 301 : if ( index < 0 )
cmp DWORD PTR index$[rsp], 0
jge SHORT $LN16@Mode... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 1,041 | 1,100 |
Terraspace/UASM:x64/Debug/cpumodel.asm:28 | cmp DWORD PTR model$[rsp], 7
jne SHORT $LN18@ModelDirec
; 307 : return( EmitError( INVALID_MODEL_PARAM_FOR_FLAT ) );
mov ecx, 200 ; 000000c8H
call EmitError
jmp $LN1@ModelDirec
$LN18@ModelDirec:
; 308 : }
; 309 : distance = ModelAttrValue[inde... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 1,081 | 1,140 |
Terraspace/UASM:x64/Debug/cpumodel.asm:29 | inc eax
mov DWORD PTR i$[rsp], eax
$LN15@ModelDirec:
; 316 : }
; 317 : /* attribute set already? */
; 318 : if ( initv & init ) {
movzx eax, BYTE PTR initv$[rsp]
movzx ecx, BYTE PTR init$[rsp]
and eax, ecx
test eax, eax
je SHORT $LN20@ModelDirec
; 319 : i... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 1,121 | 1,180 |
Terraspace/UASM:x64/Debug/cpumodel.asm:30 | ; 325 : /* everything parsed successfully? */
; 326 : if ( tokenarray[i].token != T_FINAL ) {
movsxd rax, DWORD PTR i$[rsp]
imul rax, rax, 32 ; 00000020H
mov rcx, QWORD PTR tokenarray$[rsp]
movzx eax, BYTE PTR [rcx+rax]
test eax, eax
je SHORT $LN21@ModelDirec
; 327 : return( EmitErr( SYNTA... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 1,161 | 1,220 |
Terraspace/UASM:x64/Debug/cpumodel.asm:31 | jmp $LN1@ModelDirec
$LN23@ModelDirec:
; 333 : }
; 334 : #if AMD64_SUPPORT
; 335 : if ( ( ModuleInfo.curr_cpu & P_CPU_MASK ) >= P_64 ) /* cpu 64-bit? */
mov eax, DWORD PTR ModuleInfo+392
and eax, 240 ; 000000f0H
cmp eax, 112 ; 00000070H
jl SHORT $LN24@ModelDirec
; 336 : switc... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 1,201 | 1,260 |
Terraspace/UASM:x64/Debug/cpumodel.asm:32 | ; 341 : /* v2.11: define FLAT symbol is to early here, because defOfssize isn't set yet */
; 342 : //DefineFlatGroup();
; 343 : }
; 344 :
; 345 : ModuleInfo.model = model;
mov eax, DWORD PTR model$[rsp]
mov DWORD PTR ModuleInfo+360, eax
; 346 : if ( init & INIT_LANG )
movzx eax, ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 1,241 | 1,300 |
Terraspace/UASM:x64/Debug/cpumodel.asm:33 | $LN32@ModelDirec:
mov eax, DWORD PTR distance$[rsp]
mov DWORD PTR ModuleInfo+356, eax
$LN28@ModelDirec:
; 350 : if ( init & INIT_OS )
movzx eax, BYTE PTR init$[rsp]
and eax, 4
test eax, eax
je SHORT $LN29@ModelDirec
; 351 : ModuleInfo.ostype = ostype;
cmp BYTE PTR $T8[rsp], 0
jne SHORT $LN33@M... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 1,281 | 1,340 |
Terraspace/UASM:x64/Debug/cpumodel.asm:34 | mov rdi, rax
mov rcx, rsp
lea rdx, OFFSET FLAT:ModelDirective$rtcFrameData
call _RTC_CheckStackVars
mov rax, rdi
add rsp, 96 ; 00000060H
pop rdi
ret 0
ModelDirective ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\cpumodel.c
_TEXT SEGMENT
value$ = 32
textva... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 1,321 | 1,380 |
Terraspace/UASM:x64/Debug/cpumodel.asm:35 | ; 140 : /* if model is set, it disables OT_SEGMENT of -Zm switch */
; 141 : if ( ModuleInfo.model == MODEL_FLAT ) {
cmp DWORD PTR ModuleInfo+360, 7
jne SHORT $LN4@SetModel
; 142 : ModuleInfo.offsettype = OT_FLAT;
mov DWORD PTR ModuleInfo+384, 1
; 143 : #if AMD64_SUPPORT
; 144 : SetDe... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 1,361 | 1,420 |
Terraspace/UASM:x64/Debug/cpumodel.asm:36 | jne SHORT $LN7@SetModel
; 152 : if ( Options.output_format != OFORMAT_ELF ) {
cmp DWORD PTR Options+160, 3
je SHORT $LN8@SetModel
; 153 : DebugMsg(("SetModel: FASTCALL type set to WIN64\n"));
lea rcx, OFFSET FLAT:$SG11199
call DoDebugMsg
; 154 : Module... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 1,401 | 1,460 |
Terraspace/UASM:x64/Debug/cpumodel.asm:37 | ; 165 : ModelSimSegmInit( ModuleInfo.model ); /* create segments in first pass */
mov ecx, DWORD PTR ModuleInfo+360
call ModelSimSegmInit
; 166 : ModelAssumeInit();
call ModelAssumeInit
; 167 :
; 168 : if ( ModuleInfo.list )
mov eax, DWORD PTR ModuleInfo+408
shr eax, 11
and eax, 1
test eax, ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 1,441 | 1,500 |
Terraspace/UASM:x64/Debug/cpumodel.asm:38 | ; 176 : /* Set @CodeSize */
; 177 : if ( SIZE_CODEPTR & ( 1 << ModuleInfo.model ) ) {
mov eax, DWORD PTR ModuleInfo+360
mov ecx, 1
mov DWORD PTR tv196[rsp], ecx
movzx ecx, al
mov eax, DWORD PTR tv196[rsp]
shl eax, cl
and eax, 112 ; 00000070H
test eax, eax
je SHORT $LN11@SetModel
; 178 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 1,481 | 1,540 |
Terraspace/UASM:x64/Debug/cpumodel.asm:39 | xor ecx, ecx
call SimGetSegName
mov rdx, rax
lea rcx, OFFSET FLAT:$SG11205
call AddPredefinedText
; 187 :
; 188 : /* Set @DataSize */
; 189 : switch( ModuleInfo.model ) {
mov eax, DWORD PTR ModuleInfo+360
mov DWORD PTR tv87[rsp], eax
cmp DWORD PTR tv87[rsp], 3
je SHORT $LN13@SetModel
cmp DWORD PTR... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 1,521 | 1,580 |
Terraspace/UASM:x64/Debug/cpumodel.asm:40 | $LN15@SetModel:
; 197 : default:
; 198 : value = 0;
mov DWORD PTR value$[rsp], 0
$LN2@SetModel:
; 199 : break;
; 200 : }
; 201 : sym_DataSize = AddPredefinedConstant( "@DataSize", value );
mov edx, DWORD PTR value$[rsp]
lea rcx, OFFSET FLAT:$SG11209
call AddPredefinedConstant
m... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 1,561 | 1,620 |
Terraspace/UASM:x64/Debug/cpumodel.asm:41 | cmp DWORD PTR ModuleInfo+356, 1
jne SHORT $LN16@SetModel
; 207 : textvalue = "STACK";
lea rax, OFFSET FLAT:$SG11213
mov QWORD PTR textvalue$[rsp], rax
$LN16@SetModel:
; 208 : AddPredefinedText( "@stack", textvalue );
mov rdx, QWORD PTR textvalue$[rsp]
lea rcx, OFFSET FLAT:$SG11214
call AddPredef... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 1,601 | 1,660 |
Terraspace/UASM:x64/Debug/cpumodel.asm:42 | ; 221 : if ( ModuleInfo.defOfssize == USE64 && ModuleInfo.fctype == FCT_WIN64 ) {
movzx eax, BYTE PTR ModuleInfo+405
cmp eax, 2
jne SHORT $LN17@SetModel
cmp DWORD PTR ModuleInfo+376, 2
jne SHORT $LN17@SetModel
; 222 : sym_ReservedStack = AddPredefinedConstant( "@ReservedStack", 0 );
xor edx, edx
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 1,641 | 1,700 |
Terraspace/UASM:x64/Debug/cpumodel.asm:43 | call DumpResWords
$LN19@SetModel:
$LN1@SetModel:
; 233 : #endif
; 234 :
; 235 : }
add rsp, 80 ; 00000050H
pop rdi
ret 0
SetModel ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\cpumodel.c
_TEXT SEGMENT
size$ = 48
SetDefaultOfssize PROC
; 109 : {
mov DW... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 1,681 | 1,740 |
Terraspace/UASM:x64/Debug/cpumodel.asm:44 | $LN2@SetDefault:
; 113 : }
; 114 : return( SetOfssize() );
call SetOfssize
; 115 : }
add rsp, 32 ; 00000020H
pop rdi
ret 0
SetDefaultOfssize ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\cpumodel.c
_TEXT SEGMENT
sym$ = 32
name$ = 64
value$ = 7... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 1,721 | 1,780 |
Terraspace/UASM:x64/Debug/cpumodel.asm:45 | ; 100 : if (sym)
cmp QWORD PTR sym$[rsp], 0
je SHORT $LN2@AddPredefi
; 101 : sym->predefined = TRUE;
mov rax, QWORD PTR sym$[rsp]
movzx eax, BYTE PTR [rax+40]
or al, 32 ; 00000020H
mov rcx, QWORD PTR sym$[rsp]
mov BYTE PTR [rcx+40], al
$LN2@AddPredefi:
; 102 : return(sym);
mov rax, Q... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 1,761 | 1,820 |
Terraspace/UASM:x64/Debug/cpumodel.asm:46 | push rdi
sub rsp, 48 ; 00000030H
mov rdi, rsp
mov ecx, 12
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+64]
; 87 : int i;
; 88 : for( i = 0; i < size; i++, table++ ) {
mov DWORD PTR i$[rsp], 0
jmp SHORT $LN4@FindToken
$LN2@FindToken:
mov eax, DWORD PTR i$[rsp]
inc eax
... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 475976341f6684b892aa560a460b653239cfaf89 | github | assembler | https://github.com/Terraspace/UASM/blob/475976341f6684b892aa560a460b653239cfaf89/x64/Debug/cpumodel.asm | 1,801 | 1,859 |
Terraspace/UASM:x64/Debug/cpumodel.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23026.0
include listing.inc
INCLUDELIB MSVCRTD
INCLUDELIB OLDNAMES
PUBLIC ModelToken
PUBLIC coff64_fmtopt
PUBLIC elf64_fmtopt
_DATA SEGMENT
COMM decoflags:BYTE
COMM broadflags:BYTE
COMM sym_Interface:QWORD
COMM sym_Cpu:QWORD
_DATA ENDS
CONST SEGM... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/cpumodel.asm | 1 | 60 |
Terraspace/UASM:x64/Debug/cpumodel.asm:2 | DW 0f00H
DB 'ELF64', 00H
CONST ENDS
_DATA SEGMENT
$SG11267 DB 'SetCPU(%X) enter', 0aH, 00H
ORG $+6
$SG11289 DB 'SetCPU: ModuleInfo.curr_cpu=%X, @Cpu=%X', 0aH, 00H
ORG $+3
$SG11293 DB '@Cpu', 00H
ORG $+3
$SG11129 DB 'TINY', 00H
ORG $+3
$SG11130 DB 'SMALL', 00H
ORG $+6
$SG11131 DB 'COMPACT', 00H
$SG11132 DB 'MEDIUM... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/cpumodel.asm | 41 | 100 |
Terraspace/UASM:x64/Debug/cpumodel.asm:3 | ORG $+2
$SG11205 DB 'FLAT', 00H
ORG $+3
$SG11206 DB '@data', 00H
ORG $+2
$SG11208 DB 'STACK', 00H
ORG $+2
$SG11209 DB '@stack', 00H
ORG $+1
$SG11210 DB '@Model', 00H
ORG $+5
$SG11211 DB '@Interface', 00H
ORG $+5
$SG11213 DB '@ReservedStack', 00H
ORG $+1
$SG11235 DB 'ModelDirective enter', 0aH, 00H
_DATA ENDS
PUB... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/cpumodel.asm | 81 | 140 |
Terraspace/UASM:x64/Debug/cpumodel.asm:9 | tv139 = 40
tv166 = 44
newcpu$ = 64
SetCPU PROC
; 369 : {
$LN35:
mov DWORD PTR [rsp+8], ecx
push rdi
sub rsp, 48 ; 00000030H
mov rdi, rsp
mov ecx, 12
mov eax, -858993460 ; ccccccccH
rep stosd
mov ecx, DWORD PTR [rsp+64]
; 370 : int temp;
; 371 :
; 372 : DebugMsg1(("SetCPU(%X) enter\n", newc... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/cpumodel.asm | 321 | 380 |
Terraspace/UASM:x64/Debug/cpumodel.asm:16 | and eax, 7
mov DWORD PTR temp$[rsp], eax
; 428 : switch (temp) {
mov eax, DWORD PTR temp$[rsp]
mov DWORD PTR tv139[rsp], eax
cmp DWORD PTR tv139[rsp], 2
je SHORT $LN24@SetCPU
cmp DWORD PTR tv139[rsp], 3
je SHORT $LN25@SetCPU
cmp DWORD PTR tv139[rsp], 4
je SHORT $LN26@SetCPU
jmp SHORT $LN4@SetCPU
$LN24@... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/cpumodel.asm | 601 | 660 |
Terraspace/UASM:x64/Debug/cpumodel.asm:17 | $LN4@SetCPU:
; 432 : }
; 433 :
; 434 : DebugMsg1(("SetCPU: ModuleInfo.curr_cpu=%X, @Cpu=%X\n", ModuleInfo.curr_cpu, ModuleInfo.cpu ));
movsx eax, WORD PTR ModuleInfo+388
mov r8d, eax
mov edx, DWORD PTR ModuleInfo+392
lea rcx, OFFSET FLAT:$SG11289
call DoDebugMsg1
; 435 :
; 436 : //MakeCPUConsta... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/cpumodel.asm | 641 | 700 |
Terraspace/UASM:x64/Debug/cpumodel.asm:18 | mov eax, DWORD PTR ModuleInfo+392
and eax, 240 ; 000000f0H
cmp eax, 48 ; 00000030H
jl SHORT $LN31@SetCPU
mov DWORD PTR tv166[rsp], 1
jmp SHORT $LN32@SetCPU
$LN31@SetCPU:
mov DWORD PTR tv166[rsp], 0
$LN32@SetCPU:
mov ecx, DWORD PTR tv166[rsp]
call SetDefaultOfssize
$LN29@SetCPU:
$LN27@SetCPU:
; 444 :
; ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/cpumodel.asm | 681 | 740 |
Terraspace/UASM:x64/Debug/cpumodel.asm:22 | tokenarray$ = 120
ModelDirective PROC
; 249 : {
$LN34:
mov QWORD PTR [rsp+16], rdx
mov DWORD PTR [rsp+8], ecx
push rdi
sub rsp, 96 ; 00000060H
mov rdi, rsp
mov ecx, 24
mov eax, -858993460 ; ccccccccH
rep stosd
mov ecx, DWORD PTR [rsp+112]
mov BYTE PTR $T7[rsp], 0
mov BYTE PTR $T8[rsp], 0
mov BYTE ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/cpumodel.asm | 841 | 900 |
Terraspace/UASM:x64/Debug/cpumodel.asm:34 | mov rdi, rax
mov rcx, rsp
lea rdx, OFFSET FLAT:ModelDirective$rtcFrameData
call _RTC_CheckStackVars
mov rax, rdi
add rsp, 96 ; 00000060H
pop rdi
ret 0
ModelDirective ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu
; File d:\hjwasm\hjwasm2.13.1s\hjwasm2.13.1s\cpumodel.c
_TEXT SEGMENT
value$ = 32
textva... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/cpumodel.asm | 1,321 | 1,380 |
Terraspace/UASM:x64/Debug/cpumodel.asm:35 | ; 140 : /* if model is set, it disables OT_SEGMENT of -Zm switch */
; 141 : if ( ModuleInfo.model == MODEL_FLAT ) {
cmp DWORD PTR ModuleInfo+360, 7
jne SHORT $LN4@SetModel
; 142 : ModuleInfo.offsettype = OT_FLAT;
mov DWORD PTR ModuleInfo+384, 1
; 143 : #if AMD64_SUPPORT
; 144 : SetDe... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/cpumodel.asm | 1,361 | 1,420 |
Terraspace/UASM:x64/Debug/cpumodel.asm:36 | jne SHORT $LN7@SetModel
; 152 : if ( Options.output_format != OFORMAT_ELF ) {
cmp DWORD PTR Options+160, 3
je SHORT $LN8@SetModel
; 153 : DebugMsg(("SetModel: FASTCALL type set to WIN64\n"));
lea rcx, OFFSET FLAT:$SG11194
call DoDebugMsg
; 154 : Module... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/cpumodel.asm | 1,401 | 1,460 |
Terraspace/UASM:x64/Debug/cpumodel.asm:38 | ; 176 : /* Set @CodeSize */
; 177 : if ( SIZE_CODEPTR & ( 1 << ModuleInfo.model ) ) {
mov eax, DWORD PTR ModuleInfo+360
mov ecx, 1
mov DWORD PTR tv196[rsp], ecx
movzx ecx, al
mov eax, DWORD PTR tv196[rsp]
shl eax, cl
and eax, 112 ; 00000070H
test eax, eax
je SHORT $LN11@SetModel
; 178 : ... | x86_64 | masm-like | handwritten | Terraspace/UASM | x64/Debug/cpumodel.asm | Apache-2.0 | 6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc | github | assembler | https://github.com/Terraspace/UASM/blob/6d38b2c85f1c0a8c0371a51bcf797c2b40a7ddfc/x64/Debug/cpumodel.asm | 1,481 | 1,540 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.