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:equate.asm:19 | je SHORT $LN2@EqualSgnDi
; 265 : if ( ModuleInfo.list == TRUE ) {
bt DWORD PTR ModuleInfo+408, 12
jae SHORT $LN1@EqualSgnDi
; 266 : LstWrite( LSTTYPE_EQUATE, 0, sym );
xor edx, edx
mov r8, rax
lea ecx, QWORD PTR [rdx+2]
call LstWrite
$LN1@EqualSgnDi:
; 267 : }
; 268 : ... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 721 | 780 |
Terraspace/UASM:equate.asm:20 | DD 097413H
DD 08640eH
DD 073409H
DD 04204H
xdata ENDS
pdata SEGMENT
$pdata$CreateVariable DD @imagerel($LN9#)
DD @imagerel($LN9#+237)
DD @imagerel($unwind$CreateVariable#)
; Function compile flags: /Ogtpy
pdata ENDS
_TEXT SEGMENT
name$ = 48
value$ = 56
CreateVariable PROC NEAR
; 280 : {
$LN9:
sub rsp, 40 ;... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 761 | 820 |
Terraspace/UASM:equate.asm:21 | ; 287 : sym = SymCreate(name);
mov rcx, rdi
call SymCreate
mov rbx, rax
; 288 : #if FASTPASS
; 289 : //sym->issaved = FALSE;
; 290 : sym->issaved = StoreState; /* v2.10 */
movzx eax, BYTE PTR StoreState
shl al, 4
xor al, BYTE PTR [rbx+49]
and al, 16
xor BYTE PTR [rbx+49], al
jmp $LN1@CreateVari
$L... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 801 | 860 |
Terraspace/UASM:equate.asm:22 | movzx ecx, BYTE PTR StoreState
shl cl, 4
xor cl, al
and cl, 16
xor cl, al
mov BYTE PTR [rbx+49], cl
; 299 : #endif
; 300 : }
; 301 : else {
jmp SHORT $LN1@CreateVari
$LN4@CreateVari:
; 302 : sym->value3264 = 0; //fixed by HSE on qWord indication
; 303 : if (sym->isequate == FALSE) {
test BYTE PTR... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 841 | 900 |
Terraspace/UASM:equate.asm:23 | ; 306 : }
; 307 : #if FASTPASS
; 308 : /*
; 309 : * v2.09: don't save variable when it is defined the first time
; 310 : * v2.10: store state only when variable is changed and has been
; 311 : * defined BEFORE SaveState() has been called.
; 312 : */
; 313 : //if ( StoreState && sym->issaved == FAL... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 881 | 940 |
Terraspace/UASM:equate.asm:24 | mov rax, rbx
mov rbx, QWORD PTR [rsp+56]
; 326 : }
add rsp, 40 ; 00000028H
ret 0
CreateVariable ENDP
_TEXT ENDS
PUBLIC CreateConstant
EXTRN ExpandLineItems:NEAR
EXTRN SetTextMacro:NEAR
xdata SEGMENT
$unwind$CreateConstant DD 0a2101H
DD 096c421H
DD 09b741aH
DD 09a6412H
DD 098340eH
DD 097010aH
xdata ENDS
p... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 921 | 980 |
Terraspace/UASM:equate.asm:25 | DD @imagerel($LN44#+208)
DD @imagerel($unwind$CreateConstant#)
xdata ENDS
pdata SEGMENT
$pdata$5$CreateConstant DD @imagerel($LN44#+613)
DD @imagerel($LN44#+653)
DD @imagerel($chain$5$CreateConstant#)
pdata ENDS
xdata SEGMENT
$chain$6$CreateConstant DD 020021H
DD 0995400H
DD @imagerel($LN44#)
DD @imagerel($LN44#+... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 961 | 1,020 |
Terraspace/UASM:equate.asm:26 | mov QWORD PTR [rax+32], rdi
mov rdi, rcx
mov QWORD PTR [rax-8], r12
; 347 : int i = 2;
; 348 : ret_code rc;
; 349 : char *p;
; 350 : bool cmpvalue = FALSE;
; 351 : struct expr opnd;
; 352 : char argbuffer[MA... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 1,001 | 1,060 |
Terraspace/UASM:equate.asm:27 | ; 361 :
; 362 : if( sym == NULL ||
; 363 : sym->state == SYM_UNDEFINED ||
; 364 : ( sym->state == SYM_EXTERNAL && sym->weak == TRUE && sym->isproc == FALSE ) ) {
test rax, rax
mov edx, 1
je SHORT $LN32@CreateCons
mov eax, DWORD PTR [rax+40]
test eax, eax
je SHORT $LN32@CreateCons
cmp eax, ... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 1,041 | 1,100 |
Terraspace/UASM:equate.asm:28 | test BYTE PTR [rbx+48], 16
jne SHORT $LN28@CreateCons
; 373 :
; 374 : DebugMsg1(( "CreateConstant(%s) state=%u, mem_type=%Xh, value=%" I32_SPEC "X, symbol redefinition\n", name, sym->state, sym->mem_type, sym->value));
; 375 : EmitErr( SYMBOL_REDEFINITION, name );
mov rdx, rsi
mov ecx, 143 ; ... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 1,081 | 1,140 |
Terraspace/UASM:equate.asm:29 | mov r8d, DWORD PTR ModuleInfo+496
mov QWORD PTR [rsp+1224], rbp
jne SHORT $LN25@CreateCons
cmp r8d, 3
jne SHORT $LN25@CreateCons
; 387 :
; 388 : p = tokenarray[2].string_ptr;
mov rbp, QWORD PTR [rdi+72]
jmp SHORT $do_single_number$5776
$LN25@CreateCons:
; 409 : p = tokenarray[2].tokpos;
; 41... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 1,121 | 1,180 |
Terraspace/UASM:equate.asm:30 | ; 419 : if ( ExpandLineItems( p, 2, tokenarray, FALSE, TRUE ) )
xor r9d, r9d
mov DWORD PTR [rsp+32], edx
mov r8, rdi
lea edx, QWORD PTR [r9+2]
mov rcx, rbp
call ExpandLineItems
lea rcx, QWORD PTR argbuffer$[rsp]
test eax, eax
cmove rcx, rbp
; 420 : /* v2.08: if expansion result ... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 1,161 | 1,220 |
Terraspace/UASM:equate.asm:31 | mov r8d, DWORD PTR ModuleInfo+496
$LN19@CreateCons:
; 425 : goto do_single_number;
; 426 : }
; 427 : DebugMsg1(("CreateConstant(%s): after ExpandLineItems: >%s<\n", name, p ));
; 428 : }
; 429 : rc = EvalOperand( &i, tokenarray, Token_Count, &opnd, E... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 1,201 | 1,260 |
Terraspace/UASM:equate.asm:32 | mov DWORD PTR opnd$[rsp+64], 192 ; 000000c0H
mov BYTE PTR opnd$[rsp+72], cl
jne SHORT $LN24@CreateCons
movzx eax, BYTE PTR ModuleInfo+404
mov rdx, QWORD PTR opnd$[rsp]
lea r10, OFFSET FLAT:__ImageBase
cmp rdx, QWORD PTR minintvalues[r10+rax*8]
jl SHORT $LN24@CreateCons
; 394 : check_single_number:
; 395 ... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 1,241 | 1,300 |
Terraspace/UASM:equate.asm:33 | ; 437 : goto check_single_number;
; 438 : }
; 439 :
; 440 : /* check here if last token has been reached? */
; 441 : }
; 442 : /* what is an acceptable 'number' for EQU?
; 443 : * 1. a numeric value - if magnitude is <= 64 (or 32, if it's a plain number)
; 444 : * ... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 1,281 | 1,340 |
Terraspace/UASM:equate.asm:34 | ; 499 : }
; 500 : DebugMsg1(("CreateConstant(%s): calling SetTextMacro() [MI.Ofssize=%u]\n", name, ModuleInfo.Ofssize ));
; 501 : return ( SetTextMacro( tokenarray, sym, name, argbuffer ) );
lea r9, QWORD PTR argbuffer$[rsp]
$LN43@CreateCons:
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call SetTextMacro
... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 1,321 | 1,380 |
Terraspace/UASM:equate.asm:35 | ; 453 : ( opnd.kind == EXPR_ADDR && opnd.indirect == FALSE &&
; 454 : opnd.sym != NULL &&
; 455 : //opnd.sym->state != SYM_EXTERNAL ) ) && /* SYM_SEG, SYM_GROUP are also not ok */
; 456 : opnd.sym->state == SYM_INTERNAL ) ) &&
; 457 : ( opnd.instr == EMPTY ) ) {
cmp... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 1,361 | 1,420 |
Terraspace/UASM:equate.asm:36 | ; 486 : * memtype must not be checked!
; 487 : */
; 488 : //if ( opnd.kind == EXPR_CONST ) {
; 489 : // if ( sym->mem_type != MT_ABS && sym->mem_type != MT_EMPTY ) {
; 490 : // EmitErr( SYMBOL_REDEFINITION, name );
; 491 : // return( NULL );
; 492... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 1,401 | 1,460 |
Terraspace/UASM:equate.asm:37 | or BYTE PTR [rbx+49], 32 ; 00000020H
jmp SHORT $LN2@CreateCons
$LN12@CreateCons:
; 465 : } else if ( sym->state == SYM_EXTERNAL ) {
cmp eax, 2
jne SHORT $LN10@CreateCons
; 466 : sym_ext2int( sym );
mov rcx, rbx
call sym_ext2int
jmp SHORT $LN2@CreateCons
$LN10@CreateCons:
; 467 : ... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 1,441 | 1,500 |
Terraspace/UASM:equate.asm:38 | ; 473 : DebugMsg(("CreateConstant(%s), CONST value changed: old=%X, new=%X\n", name, sym->offset, opnd.value ));
; 474 : EmitErr( SYMBOL_REDEFINITION, name );
mov rdx, rsi
mov ecx, 143 ; 0000008fH
call EmitErr
; 475 : return( NULL );
xor eax, eax
... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 1,481 | 1,540 |
Terraspace/UASM:equate.asm:39 | xdata ENDS
pdata SEGMENT
$pdata$EquDirective DD @imagerel($LN6#)
DD @imagerel($LN6#+80)
DD @imagerel($unwind$EquDirective#)
; Function compile flags: /Ogtpy
pdata ENDS
_TEXT SEGMENT
i$ = 48
tokenarray$ = 56
EquDirective PROC NEAR
; 513 : {
$LN6:
sub rsp, 40 ; 00000028H
; 514 : struct asym *sym;
; 515 :... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 1,521 | 1,580 |
Terraspace/UASM:equate.asm:40 | call CreateConstant
test rax, rax
je SHORT $LN2@EquDirecti
; 521 : /**/myassert( sym->state == SYM_INTERNAL ); /* must not be a text macro */
; 522 : if ( ModuleInfo.list == TRUE ) {
bt DWORD PTR ModuleInfo+408, 12
jae SHORT $LN1@EquDirecti
; 523 : LstWrite( LSTTYPE_EQUATE, 0, sym ... | arm64 | masm-like | handwritten | Terraspace/UASM | equate.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/equate.asm | 1,561 | 1,601 |
Terraspace/UASM:errmsg.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 14.00.40310.41
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
PUBLIC banner_printed
_BSS SEGMENT
banner_printed DB 01H DUP (?)
_BSS ENDS
_DATA SEGMENT
COMM decoflags:BYTE
COMM MODULEARCH:BYTE
COMM broadflags:BYTE
COMM ZEROLOCALS:BYTE
COMM ev... | arm64 | masm-like | handwritten | Terraspace/UASM | errmsg.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/errmsg.asm | 1 | 60 |
Terraspace/UASM:errmsg.asm:2 | DB 'ating-point instructions (.NO87)', 00H, '-fp<n>', 00H, 'Set F'
DB 'PU, <n> is: 0=8087 (default), 2=80287, 3=80387', 00H, '-G<c|d'
DB '|r|z>', 00H, 'Use Pascal, C, Fastcall or Stdcall calling conv'
DB 'ention', 00H, '-I<directory>', 00H, 'Add directory to list of'
DB ' include directories', 00H, '-m<t|s|c|m|l|h|... | arm64 | masm-like | handwritten | Terraspace/UASM | errmsg.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/errmsg.asm | 41 | 100 |
Terraspace/UASM:errmsg.asm:3 | DB '_var', 00H, 'Environment variable or file containing further '
DB 'commands', 00H, 'output formats:', 00H, 00H, '-bin', 00H, 'pl'
DB 'ain binary file', 00H, '-coff', 00H, 'COFF object file', 00H, '-'
DB 'elf', 00H, '32-bit ELF object file', 00H, '-elf64', 00H, '64-'
DB 'bit ELF object file', 00H, '-mz', 00H, 'D... | arm64 | masm-like | handwritten | Terraspace/UASM | errmsg.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/errmsg.asm | 81 | 140 |
Terraspace/UASM:errmsg.asm:4 | ; 139 : {
$LN4:
push rbx
sub rsp, 32 ; 00000020H
; 140 : if( banner_printed == FALSE ) {
cmp BYTE PTR banner_printed, 0
jne SHORT $LN1@write_logo
; 141 : banner_printed = TRUE;
; 142 : printf( "%s, %s\n", MsgGetEx( MSG_HJWASM ), MsgGetEx( MSG_HJWASM2 ) );
mov ecx, 3
mov BYTE PTR b... | arm64 | masm-like | handwritten | Terraspace/UASM | errmsg.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/errmsg.asm | 121 | 180 |
Terraspace/UASM:errmsg.asm:5 | ; 146 : }
add rsp, 32 ; 00000020H
pop rbx
ret 0
write_logo ENDP
_TEXT ENDS
PUBLIC PrintUsage
xdata SEGMENT
$unwind$PrintUsage DD 054e01H
DD 08344eH
DD 097410H
DD 04204H
xdata ENDS
pdata SEGMENT
$pdata$PrintUsage DD @imagerel($LN10#)
DD @imagerel($LN10#+157)
DD @imagerel($unwind$PrintUsage#)
; Function com... | arm64 | masm-like | handwritten | Terraspace/UASM | errmsg.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/errmsg.asm | 161 | 220 |
Terraspace/UASM:errmsg.asm:6 | call MsgGetEx
lea rcx, OFFSET FLAT:$SG5561
mov rdx, rax
mov r8, rdi
call printf
$LN5@PrintUsage:
; 153 : for ( p = usage; *p != '\n'; ) {
lea rdx, OFFSET FLAT:usage
mov QWORD PTR [rsp+64], rbx
npad 2
$LL2@PrintUsage:
; 154 : const char *p2 = p + strlen( p ) + 1;
xor eax, eax
mov rdi, rdx
mov... | arm64 | masm-like | handwritten | Terraspace/UASM | errmsg.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/errmsg.asm | 201 | 260 |
Terraspace/UASM:errmsg.asm:7 | mov rbx, QWORD PTR [rsp+64]
; 157 : }
; 158 : }
add rsp, 40 ; 00000028H
ret 0
PrintUsage ENDP
_TEXT ENDS
EXTRN LstNL:NEAR
EXTRN LstPrintf:NEAR
EXTRN LstWrite:NEAR
EXTRN GetCurrOffset:NEAR
EXTRN Parse_Pass:DWORD
EXTRN ModuleInfo:BYTE
EXTRN vsprintf:NEAR
EXTRN sprintf:NEAR
EXTRN fwrite:NEAR
EXTRN GetCurrSrc... | arm64 | masm-like | handwritten | Terraspace/UASM | errmsg.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/errmsg.asm | 241 | 300 |
Terraspace/UASM:errmsg.asm:8 | $pdata$4$PutMsg DD @imagerel(PutMsg#+87)
DD @imagerel(PutMsg#+285)
DD @imagerel($chain$4$PutMsg#)
pdata ENDS
xdata SEGMENT
$chain$5$PutMsg DD 021H
DD @imagerel(PutMsg#)
DD @imagerel(PutMsg#+87)
DD @imagerel($unwind$PutMsg#)
xdata ENDS
pdata SEGMENT
$pdata$5$PutMsg DD @imagerel(PutMsg#+285)
DD @imagerel(PutMsg#+38... | arm64 | masm-like | handwritten | Terraspace/UASM | errmsg.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/errmsg.asm | 281 | 340 |
Terraspace/UASM:errmsg.asm:9 | mov QWORD PTR [rax+32], rdi
mov QWORD PTR [rax-8], r12
mov esi, r8d
mov r12, r9
mov ebx, edx
mov rdi, rcx
je $LN1@PutMsg
; 169 :
; 170 : if ( severity && ( j = GetCurrSrcPos( buffer ) ) ) {
test edx, edx
je SHORT $LN9@PutMsg
lea rcx, QWORD PTR buffer$[rsp]
call GetCurrSrcPos
test eax, eax
je SHO... | arm64 | masm-like | handwritten | Terraspace/UASM | errmsg.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/errmsg.asm | 321 | 380 |
Terraspace/UASM:errmsg.asm:10 | dec edx
je SHORT $LN5@PutMsg
cmp edx, 2
je SHORT $LN4@PutMsg
; 178 : default: type = NULL; i = 0; break;
xor esi, esi
jmp SHORT $LN2@PutMsg
$LN4@PutMsg:
; 177 : case 4: type = MsgGetEx( MSG_WARNING_PREFIX ); break;
mov ecx, 5
call MsgGetEx
jmp SHORT $LN7@PutMsg
$LN5@PutMsg:
; 176 : ... | arm64 | masm-like | handwritten | Terraspace/UASM | errmsg.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/errmsg.asm | 361 | 420 |
Terraspace/UASM:errmsg.asm:11 | lea rdx, OFFSET FLAT:$SG5598
lea rcx, QWORD PTR buffer$[rsp]
mov r8, rax
imul r9d, 1000 ; 000003e8H
add r9d, esi
call sprintf
mov esi, eax
jmp SHORT $LN2@PutMsg
$LN13@PutMsg:
mov esi, DWORD PTR i$[rsp]
$LN2@PutMsg:
; 182 : i += vsprintf( buffer+i, pMsg, args );
movsxd rax, esi
mov r8, r12
mov r... | arm64 | masm-like | handwritten | Terraspace/UASM | errmsg.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/errmsg.asm | 401 | 460 |
Terraspace/UASM:errmsg.asm:12 | ; 188 : /* if in Pass 1, add the error msg to the listing */
; 189 : if ( CurrFile[LST] &&
; 190 : severity &&
; 191 : Parse_Pass == PASS_1 &&
; 192 : fp == CurrFile[ERR] ) {
cmp QWORD PTR ModuleInfo+112, 0
mov rbp, QWORD PTR [rsp+1224]
je SHORT $LN1@PutMs... | arm64 | masm-like | handwritten | Terraspace/UASM | errmsg.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/errmsg.asm | 441 | 500 |
Terraspace/UASM:errmsg.asm:13 | ; 197 : }
; 198 : }
; 199 : }
add rsp, 1208 ; 000004b8H
ret 0
PutMsg ENDP
_TEXT ENDS
PUBLIC Fatal
PUBLIC EmitErr
EXTRN Options:BYTE
EXTRN print_source_nesting_structure:NEAR
EXTRN write_to_file:BYTE
xdata SEGMENT
$unwind$EmitErr DD 011701H
DD 04217H
xdata ENDS
pdata SEGMENT
$pdata$EmitErr DD @imag... | arm64 | masm-like | handwritten | Terraspace/UASM | errmsg.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/errmsg.asm | 481 | 540 |
Terraspace/UASM:errmsg.asm:14 | ; 253 : #endif
; 254 : va_start( args1, msgnum );
; 255 : va_start( args2, msgnum );
; 256 : PrtMsg( 2, msgnum, args1, args2 );
mov edx, ecx
lea r8, QWORD PTR msgnum$[rsp+8]
lea r9, QWORD PTR msgnum$[rsp+8]
mov ecx, 2
call PrtMsg
; 257 : va_end( args1 );
; 258 : va_end( args2 );
; 259 ... | arm64 | masm-like | handwritten | Terraspace/UASM | errmsg.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/errmsg.asm | 521 | 580 |
Terraspace/UASM:errmsg.asm:15 | ; 264 : return( ERROR );
mov eax, -1
; 265 : }
add rsp, 40 ; 00000028H
ret 0
EmitErr ENDP
_TEXT ENDS
PUBLIC EmitError
; Function compile flags: /Ogtpy
_TEXT SEGMENT
msgnum$ = 8
EmitError PROC NEAR
; 270 : return( EmitErr( msgnum ) );
; 271 : }
jmp EmitErr
EmitError ENDP
_TEXT ENDS
PUBLIC ErrnoS... | arm64 | masm-like | handwritten | Terraspace/UASM | errmsg.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/errmsg.asm | 561 | 620 |
Terraspace/UASM:errmsg.asm:16 | _TEXT SEGMENT
ErrnoStr PROC NEAR
; 299 : {
$LN5:
sub rsp, 56 ; 00000038H
; 300 : static char buffer[32];
; 301 : return( ( errno == ENOENT ) ? "ENOENT" : myltoa( errno, buffer, 10, FALSE, FALSE ) );
call _errno
cmp DWORD PTR [rax], 2
jne SHORT $LN3@ErrnoStr
lea rax, OFFSET FLAT:$SG5656
; 302 :... | arm64 | masm-like | handwritten | Terraspace/UASM | errmsg.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/errmsg.asm | 601 | 660 |
Terraspace/UASM:errmsg.asm:17 | EXTRN _iob:BYTE
EXTRN fopen:NEAR
xdata SEGMENT
$unwind$PrtMsg DD 010401H
DD 06204H
xdata ENDS
pdata SEGMENT
$pdata$PrtMsg DD @imagerel(PrtMsg#)
DD @imagerel(PrtMsg#+11)
DD @imagerel($unwind$PrtMsg#)
pdata ENDS
xdata SEGMENT
$chain$4$PrtMsg DD 0a1921H
DD 06c419H
DD 0b7414H
DD 0a640fH
DD 09540aH
DD 083405H
DD @i... | arm64 | masm-like | handwritten | Terraspace/UASM | errmsg.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/errmsg.asm | 641 | 700 |
Terraspace/UASM:errmsg.asm:18 | DD @imagerel($chain$5$PrtMsg#)
pdata ENDS
xdata SEGMENT
$chain$6$PrtMsg DD 060021H
DD 0b7400H
DD 0a6400H
DD 095400H
DD @imagerel(PrtMsg#)
DD @imagerel(PrtMsg#+11)
DD @imagerel($unwind$PrtMsg#)
xdata ENDS
pdata SEGMENT
$pdata$6$PrtMsg DD @imagerel(PrtMsg#+304)
DD @imagerel(PrtMsg#+340)
DD @imagerel($chain$6$PrtM... | arm64 | masm-like | handwritten | Terraspace/UASM | errmsg.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/errmsg.asm | 681 | 740 |
Terraspace/UASM:errmsg.asm:19 | mov esi, ecx
jne SHORT $LN7@PrtMsg
mov ecx, 3
mov BYTE PTR banner_printed, 1
call MsgGetEx
mov ecx, 2
mov rbx, rax
call MsgGetEx
lea rcx, OFFSET FLAT:$SG5561
mov rdx, rax
mov r8, rbx
call printf
$LN7@PrtMsg:
; 206 : #endif
; 207 : /* open .err file if not already open and a name is given */
; 208 : ... | arm64 | masm-like | handwritten | Terraspace/UASM | errmsg.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/errmsg.asm | 721 | 780 |
Terraspace/UASM:errmsg.asm:20 | ; 213 : CurrFName[ERR] = NULL; /* set to NULL before EmitErr()! */
; 214 : Options.no_error_disp = FALSE; /* disable -eq! */
mov BYTE PTR Options+12, al
mov QWORD PTR ModuleInfo+152, rax
; 215 : EmitErr( CANNOT_OPEN_FILE, p, ErrnoStr() );
call _errno
cmp DWORD PTR [rax], 2
... | arm64 | masm-like | handwritten | Terraspace/UASM | errmsg.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/errmsg.asm | 761 | 820 |
Terraspace/UASM:errmsg.asm:21 | ; 222 : PutMsg( errout, severity, msgnum, args1 );
lea rcx, OFFSET FLAT:_iob+48
mov r9, r12
mov r8d, edi
mov edx, esi
call PutMsg
; 223 : fflush( errout ); /* 27-feb-90 */
lea rcx, OFFSET FLAT:_iob+48
call fflush
mov rax, QWORD PTR ModuleInfo+120
$LN2@PrtMsg:
; 224 :... | arm64 | masm-like | handwritten | Terraspace/UASM | errmsg.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/errmsg.asm | 801 | 860 |
Terraspace/UASM:errmsg.asm:22 | ret 0
PrtMsg ENDP
_TEXT ENDS
PUBLIC PrintNote
xdata SEGMENT
$unwind$PrintNote DD 011701H
DD 04217H
xdata ENDS
pdata SEGMENT
$pdata$PrintNote DD @imagerel($LN3#)
DD @imagerel($LN3#+47)
DD @imagerel($unwind$PrintNote#)
; Function compile flags: /Ogtpy
pdata ENDS
_TEXT SEGMENT
msgnum$ = 48
PrintNote PROC NEAR
; 235 :... | arm64 | masm-like | handwritten | Terraspace/UASM | errmsg.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/errmsg.asm | 841 | 900 |
Terraspace/UASM:errmsg.asm:23 | ; 242 : va_end( args1 );
; 243 : va_end( args2 );
; 244 : }
add rsp, 40 ; 00000028H
ret 0
PrintNote ENDP
_TEXT ENDS
PUBLIC EmitWarn
xdata SEGMENT
$unwind$EmitWarn DD 011201H
DD 04212H
xdata ENDS
pdata SEGMENT
$pdata$EmitWarn DD @imagerel($LN6#)
DD @imagerel($LN6#+100)
DD @imagerel($unwind$EmitWarn#... | arm64 | masm-like | handwritten | Terraspace/UASM | errmsg.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/errmsg.asm | 881 | 940 |
Terraspace/UASM:errmsg.asm:24 | ; 279 : #ifdef DEBUG_OUT
; 280 : printf( "%s\n", ModuleInfo.tokenarray ? ModuleInfo.tokenarray[0].tokpos : "" );
; 281 : #endif
; 282 : va_start( args1, msgnum );
; 283 : va_start( args2, msgnum );
; 284 : if( !Options.warning_error ) {
cmp BYTE PTR Options+14, 0
lea r8, QWORD P... | arm64 | masm-like | handwritten | Terraspace/UASM | errmsg.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/errmsg.asm | 921 | 980 |
Terraspace/UASM:errmsg.asm:25 | ; 289 : ModuleInfo.g.error_count++;
inc DWORD PTR ModuleInfo
; 290 : }
; 291 : va_end( args1 );
; 292 : va_end( args2 );
; 293 : print_source_nesting_structure();
call print_source_nesting_structure
$LN3@EmitWarn:
; 294 : }
; 295 : }
add rsp, 40 ; 00000... | arm64 | masm-like | handwritten | Terraspace/UASM | errmsg.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/errmsg.asm | 961 | 1,020 |
Terraspace/UASM:errmsg.asm:26 | mov DWORD PTR [rsp+8], ecx
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+24], r8
mov QWORD PTR [rsp+32], r9
sub rsp, 40 ; 00000028H
; 311 : va_list args1, args2;
; 312 :
; 313 : /* v2.11: call PrtMsg() instead of PutMsg().
; 314 : * Makes the fatal error appear in the .ERR and .LST files
... | arm64 | masm-like | handwritten | Terraspace/UASM | errmsg.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/errmsg.asm | 1,001 | 1,060 |
Terraspace/UASM:errmsg.asm:27 | lea rcx, OFFSET FLAT:jmpenv
mov edx, 2
call longjmp
int 3
$LN1@Fatal:
; 331 :
; 332 : exit(1);
mov ecx, 1
call exit
int 3
$LN4@Fatal:
Fatal ENDP
_TEXT ENDS
PUBLIC WriteError
xdata SEGMENT
$unwind$WriteError DD 010401H
DD 04204H
xdata ENDS
pdata SEGMENT
$pdata$WriteError DD @imagerel($LN4#)
DD @imagerel(... | arm64 | masm-like | handwritten | Terraspace/UASM | errmsg.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/errmsg.asm | 1,041 | 1,088 |
Terraspace/UASM:fastpass.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 14.00.40310.41
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM decoflags:BYTE
COMM UseSavedState:BYTE
COMM StoreState:BYTE
COMM MODULEARCH:BYTE
COMM broadflags:BYTE
COMM LineStoreCurr:QWORD
COMM ZEROLOCALS:BYTE
COMM evex:BY... | arm64 | masm-like | handwritten | Terraspace/UASM | fastpass.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fastpass.asm | 1 | 60 |
Terraspace/UASM:fastpass.asm:2 | ; 51 : {
sub rsp, 40 ; 00000028H
; 52 : DebugMsg1(("SaveState enter\n" ));
; 53 : StoreState = TRUE;
; 54 : UseSavedState = TRUE;
; 55 : modstate.init = TRUE;
; 56 : modstate.Equ.head = modstate.Equ.tail = NULL;
xor eax, eax
; 57 :
; 58 : memcpy( &modstate.modinfo, (uin... | arm64 | masm-like | handwritten | Terraspace/UASM | fastpass.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fastpass.asm | 41 | 100 |
Terraspace/UASM:fastpass.asm:3 | jmp ContextSaveState
SaveState ENDP
_TEXT ENDS
PUBLIC StoreLine
EXTRN isalnum:NEAR
EXTRN _memicmp:NEAR
EXTRN isspace:NEAR
EXTRN list_pos:DWORD
EXTRN get_curr_srcfile:NEAR
EXTRN MacroLevel:BYTE
EXTRN GetLineNumber:NEAR
EXTRN LclAlloc:NEAR
_BSS SEGMENT
LineStore DB 010H DUP (?)
_BSS ENDS
xdata SEGMENT
$unwind$StoreLine D... | arm64 | masm-like | handwritten | Terraspace/UASM | fastpass.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fastpass.asm | 81 | 140 |
Terraspace/UASM:fastpass.asm:4 | $chain$4$StoreLine DD 020521H
DD 04c405H
DD @imagerel($LN26#+132)
DD @imagerel($LN26#+149)
DD @imagerel($chain$3$StoreLine#)
xdata ENDS
pdata SEGMENT
$pdata$4$StoreLine DD @imagerel($LN26#+149)
DD @imagerel($LN26#+440)
DD @imagerel($chain$4$StoreLine#)
pdata ENDS
xdata SEGMENT
$chain$5$StoreLine DD 021H
DD @imag... | arm64 | masm-like | handwritten | Terraspace/UASM | fastpass.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fastpass.asm | 121 | 180 |
Terraspace/UASM:fastpass.asm:5 | ; 69 : {
$LN26:
sub rsp, 40 ; 00000028H
; 70 : int i,j;
; 71 : char *p;
; 72 :
; 73 : #ifdef DEBUG_OUT
; 74 : if ( Options.nofastpass )
; 75 : return;
; 76 : #endif
; 77 : if ( ModuleInfo.GeneratedCode ) /* don't store generated lines! */
cmp DWORD PTR ModuleInfo+456, ... | arm64 | masm-like | handwritten | Terraspace/UASM | fastpass.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fastpass.asm | 161 | 220 |
Terraspace/UASM:fastpass.asm:6 | call SegmentSaveState
call AssumeSaveState
call ContextSaveState
$LN19@StoreLine:
mov QWORD PTR [rsp+72], rdi
; 81 :
; 82 : i = strlen( srcline );
xor eax, eax
mov rcx, -1
mov rdi, rsi
mov QWORD PTR [rsp+32], r12
repne scasb
; 83 : j = ( ( ( flags & 1 ) && ModuleInfo.CurrComment ) ? strlen( Mod... | arm64 | masm-like | handwritten | Terraspace/UASM | fastpass.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fastpass.asm | 201 | 260 |
Terraspace/UASM:fastpass.asm:7 | ; 85 : LineStoreCurr->next = NULL;
mov QWORD PTR [rax], 0
; 86 : LineStoreCurr->lineno = GetLineNumber();
call GetLineNumber
mov rdx, QWORD PTR LineStoreCurr
mov ecx, DWORD PTR [rdx+8]
xor ecx, eax
and ecx, 1048575 ; 000fffffH
xor DWORD PTR [rdx+8], ecx
; 87 : if ( MacroLevel ) {
cmp B... | arm64 | masm-like | handwritten | Terraspace/UASM | fastpass.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fastpass.asm | 241 | 300 |
Terraspace/UASM:fastpass.asm:8 | ; 91 : }
; 92 : LineStoreCurr->list_pos = ( lst_position ? lst_position : list_pos );
mov ecx, DWORD PTR list_pos
mov rax, QWORD PTR LineStoreCurr
test ebp, ebp
cmovne ecx, ebp
; 93 : if ( j ) {
test ebx, ebx
mov DWORD PTR [rax+12], ecx
je SHORT $LN10@StoreLine
; 94 : memcpy( Line... | arm64 | masm-like | handwritten | Terraspace/UASM | fastpass.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fastpass.asm | 281 | 340 |
Terraspace/UASM:fastpass.asm:9 | lea eax, DWORD PTR [r12+1]
mov rdx, rsi
add rcx, 16
movsxd r8, eax
call memcpy
$LN9@StoreLine:
; 98 :
; 99 : DebugMsg1(("StoreLine(>%s<, lst_position=%u): cur=%X\n", LineStoreCurr->line, lst_position, LineStoreCurr ));
; 100 :
; 101 : /* v2.08: don't store % operator at pos 0 */
; 102 : for ( p ... | arm64 | masm-like | handwritten | Terraspace/UASM | fastpass.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fastpass.asm | 321 | 380 |
Terraspace/UASM:fastpass.asm:10 | test eax, eax
jne SHORT $LN3@StoreLine
movzx eax, BYTE PTR [rdi+4]
cmp al, 95 ; 0000005fH
je SHORT $LN3@StoreLine
cmp al, 64 ; 00000040H
je SHORT $LN3@StoreLine
cmp al, 36 ; 00000024H
je SHORT $LN3@StoreLine
cmp al, 63 ; 0000003fH
jne SHORT $LN24@StoreLine
$LN3@StoreLine:
; 104 : *p ... | arm64 | masm-like | handwritten | Terraspace/UASM | fastpass.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fastpass.asm | 361 | 420 |
Terraspace/UASM:fastpass.asm:11 | ; 113 : LineStore.head = LineStoreCurr;
mov rax, QWORD PTR LineStoreCurr
mov QWORD PTR LineStore, rax
$LN1@StoreLine:
; 114 : LineStore.tail = LineStoreCurr;
mov rax, QWORD PTR LineStoreCurr
mov QWORD PTR LineStore+8, rax
$LN15@StoreLine:
mov rsi, QWORD PTR [rsp+64]
mov rbp, QWORD PTR [rsp+56]
m... | arm64 | masm-like | handwritten | Terraspace/UASM | fastpass.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fastpass.asm | 401 | 460 |
Terraspace/UASM:fastpass.asm:12 | xdata ENDS
pdata SEGMENT
$pdata$SaveVariableState DD @imagerel($LN6#)
DD @imagerel($LN6#+112)
DD @imagerel($unwind$SaveVariableState#)
; Function compile flags: /Ogtpy
pdata ENDS
_TEXT SEGMENT
sym$ = 48
SaveVariableState PROC NEAR
; 141 : {
$LN6:
push rbx
sub rsp, 32 ; 00000020H
; 142 : struct equ_item... | arm64 | masm-like | handwritten | Terraspace/UASM | fastpass.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fastpass.asm | 441 | 500 |
Terraspace/UASM:fastpass.asm:13 | mov edx, DWORD PTR [rbx+16]
mov DWORD PTR [rax+16], edx
; 150 : p->hvalue = sym->value3264; /* v2.05: added */
mov edx, DWORD PTR [rbx+64]
mov DWORD PTR [rax+20], edx
; 151 : p->mem_type = sym->mem_type; /* v2.07: added */
mov edx, DWORD PTR [rbx+44]
mov DWORD PTR [rax+24], edx
; 152 : p->... | arm64 | masm-like | handwritten | Terraspace/UASM | fastpass.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fastpass.asm | 481 | 540 |
Terraspace/UASM:fastpass.asm:14 | add rsp, 32 ; 00000020H
pop rbx
ret 0
$LN2@SaveVariab:
; 155 : modstate.Equ.tail = p;
; 156 : } else {
; 157 : modstate.Equ.head = modstate.Equ.tail = p;
mov QWORD PTR modstate+8, rax
mov QWORD PTR modstate+16, rax
; 158 : }
; 159 : // printf("state of symbol >%s< saved, value... | arm64 | masm-like | handwritten | Terraspace/UASM | fastpass.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fastpass.asm | 521 | 580 |
Terraspace/UASM:fastpass.asm:15 | sub rsp, 40 ; 00000028H
; 165 : DebugMsg1(("RestoreState enter\n"));
; 166 : if ( modstate.init ) {
cmp BYTE PTR modstate, 0
je SHORT $LN9@RestoreSta
; 167 : struct equ_item *curr;
; 168 : /* restore values of assembly time variables */
; 169 : for ( curr = modstate.Equ.hea... | arm64 | masm-like | handwritten | Terraspace/UASM | fastpass.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fastpass.asm | 561 | 620 |
Terraspace/UASM:fastpass.asm:16 | movzx eax, BYTE PTR [rdx+28]
mov rcx, QWORD PTR [rdx+8]
add al, al
xor al, BYTE PTR [rcx+48]
and al, 2
xor BYTE PTR [rcx+48], al
mov rdx, QWORD PTR [rdx]
test rdx, rdx
jne SHORT $LL3@RestoreSta
$LN1@RestoreSta:
; 177 : //}
; 178 : }
; 179 : /* fields in module_vars are not to be ... | arm64 | masm-like | handwritten | Terraspace/UASM | fastpass.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fastpass.asm | 601 | 660 |
Terraspace/UASM:fastpass.asm:17 | ; 192 : endl->next = NULL;
; 193 : endl->srcfile = 0;
; 194 : endl->lineno = GetLineNumber();
; 195 : endl->list_pos = 0;
; 196 : strcpy( endl->line, "END");
; 197 : LineStore.head = endl;
; 198 : DebugMsg(("RestoreState: LineStore.head was NULL !!!\n" ));
... | arm64 | masm-like | handwritten | Terraspace/UASM | fastpass.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fastpass.asm | 641 | 687 |
Terraspace/UASM:fixup.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 14.00.40310.41
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM decoflags:BYTE
COMM Frame_Datum:WORD
COMM MODULEARCH:BYTE
COMM broadflags:BYTE
COMM ZEROLOCALS:BYTE
COMM Frame_Type:BYTE
COMM evex:BYTE
_DATA ENDS
PUBLIC Create... | arm64 | masm-like | handwritten | Terraspace/UASM | fixup.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fixup.asm | 1 | 60 |
Terraspace/UASM:fixup.asm:2 | CreateFixup PROC NEAR
; 61 : {
$LN6:
sub rsp, 40 ; 00000028H
mov QWORD PTR [rsp+48], rbx
mov QWORD PTR [rsp+56], rbp
mov QWORD PTR [rsp+64], rsi
mov QWORD PTR [rsp+72], rdi
mov rdi, rcx
; 62 : #ifdef DEBUG_OUT
; 63 : static uint_32 cnt = 0;
; 64 : #endif
; 65 : struct fixup *fixup;
; ... | arm64 | masm-like | handwritten | Terraspace/UASM | fixup.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fixup.asm | 41 | 100 |
Terraspace/UASM:fixup.asm:3 | ; 79 : #endif
; 80 : if ( sym ) { /* changed v1.96 */
test rdi, rdi
je SHORT $LN2@CreateFixu
; 81 : fixup->nextbp = sym->bp_fixup;
mov r9, QWORD PTR [rdi+96]
mov QWORD PTR [rax], r9
; 82 : sym->bp_fixup = fixup;
mov QWORD PTR [rdi+96], rax
$LN2@CreateFixu:
; 83 : ... | arm64 | masm-like | handwritten | Terraspace/UASM | fixup.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fixup.asm | 81 | 140 |
Terraspace/UASM:fixup.asm:4 | mov rcx, QWORD PTR [rax+104]
mov QWORD PTR [rcx+40], rbx
$LN1@CreateFixu:
; 95 : }
; 96 : }
; 97 : /* initialize locofs member with current offset.
; 98 : * It's unlikely to be the final location, but sufficiently exact for backpatching.
; 99 : */
; 100 : fixup->locofs = GetCu... | arm64 | masm-like | handwritten | Terraspace/UASM | fixup.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fixup.asm | 121 | 180 |
Terraspace/UASM:fixup.asm:5 | ; 107 : fixup->def_seg = CurrSeg; /* may be NULL (END directive) */
mov rax, QWORD PTR ModuleInfo+432
; 108 : fixup->sym = sym;
mov QWORD PTR [rbx+56], rdi
mov rdi, QWORD PTR [rsp+72]
mov QWORD PTR [rbx+48], rax
; 109 :
; 110 : DebugMsg1(("CreateFixup(sym=%s type=%u, opt=%u) cnt=%" I32... | arm64 | masm-like | handwritten | Terraspace/UASM | fixup.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fixup.asm | 161 | 220 |
Terraspace/UASM:fixup.asm:6 | mov rax, QWORD PTR [rcx+48]
; 125 : if ( dir ) {
test rax, rax
je SHORT $LN2@FreeFixup
; 126 : if ( fixup == dir->e.seginfo->FixupList.head ) {
mov r8, QWORD PTR [rax+104]
mov rdx, QWORD PTR [r8+40]
cmp rcx, rdx
jne SHORT $LN6@FreeFixup
; 127 : dir->e.seginfo->FixupList... | arm64 | masm-like | handwritten | Terraspace/UASM | fixup.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fixup.asm | 201 | 260 |
Terraspace/UASM:fixup.asm:7 | mov rax, QWORD PTR [rdx+8]
cmp rax, rcx
je SHORT $LN12@FreeFixup
test rax, rax
mov rdx, rax
jne SHORT $LL4@FreeFixup
; 132 : break;
; 133 : }
; 134 : }
; 135 : }
; 136 : }
; 137 : }
; 138 : LclFree( fixup );
; 139 : }
... | arm64 | masm-like | handwritten | Terraspace/UASM | fixup.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fixup.asm | 241 | 300 |
Terraspace/UASM:fixup.asm:8 | EXTRN GetGroup:NEAR
xdata SEGMENT
$unwind$SetFixupFrame DD 020e01H
DD 0300a320eH
xdata ENDS
pdata SEGMENT
$pdata$SetFixupFrame DD @imagerel($LN14#)
DD @imagerel($LN14#+164)
DD @imagerel($unwind$SetFixupFrame#)
; Function compile flags: /Ogtpy
pdata ENDS
_TEXT SEGMENT
sym$ = 48
ign_grp$ = 56
SetFixupFrame PROC NEAR
... | arm64 | masm-like | handwritten | Terraspace/UASM | fixup.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fixup.asm | 281 | 340 |
Terraspace/UASM:fixup.asm:9 | jne SHORT $LN3@SetFixupFr
; 171 : case SYM_GRP:
; 172 : Frame_Type = FRAME_GRP;
mov BYTE PTR Frame_Type, 1
; 173 : Frame_Datum = ((struct dsym *)sym)->e.grpinfo->grp_idx;
mov rax, QWORD PTR [rcx+104]
movzx ecx, WORD PTR [rax+8]
mov WORD PTR Frame_Datum, cx
; 174 : ... | arm64 | masm-like | handwritten | Terraspace/UASM | fixup.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fixup.asm | 321 | 380 |
Terraspace/UASM:fixup.asm:10 | ; 169 : Frame_Datum = GetSegIdx( sym->segment );
mov rcx, QWORD PTR [rcx+32]
; 170 : break;
jmp SHORT $LN13@SetFixupFr
$LN6@SetFixupFr:
; 155 : case SYM_INTERNAL:
; 156 : case SYM_EXTERNAL:
; 157 : if( sym->segment != NULL ) {
cmp QWORD PTR [rcx+32], 0
j... | arm64 | masm-like | handwritten | Terraspace/UASM | fixup.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fixup.asm | 361 | 420 |
Terraspace/UASM:fixup.asm:11 | ; 180 : DebugMsg(("SetFixupFrame(%s): unexpected state=%u\n", sym->name, sym->state ));
; 181 : /**/myassert( 0 );
; 182 : break;
; 183 : #endif
; 184 : }
; 185 : }
; 186 : }
add rsp, 32 ; 00000020H
pop rbx
ret 0
$LN4@SetFixupFr:
; 161 : }... | arm64 | masm-like | handwritten | Terraspace/UASM | fixup.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fixup.asm | 401 | 460 |
Terraspace/UASM:fixup.asm:12 | add rsp, 32 ; 00000020H
pop rbx
$LN12@SetFixupFr:
ret 0
SetFixupFrame ENDP
_TEXT ENDS
PUBLIC store_fixup
EXTRN Options:BYTE
; Function compile flags: /Ogtpy
_TEXT SEGMENT
fixup$ = 8
seg$ = 16
pdata$ = 24
store_fixup PROC NEAR
; 197 : //struct fixup *fixup;
; 198 :
; 199 : //fixup = CodeInfo->InsFi... | arm64 | masm-like | handwritten | Terraspace/UASM | fixup.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fixup.asm | 441 | 500 |
Terraspace/UASM:fixup.asm:13 | ; 215 : #if 0
; 216 : /* v2.07: no error checks here! store_fixup() is called only if pass > 1
; 217 : * and as long as write_to_file is true! This check is now done in
; 218 : * codegen() and data_item().
; 219 : */
; 220 : if ( ( 1 << fixup->type ) & ModuleInfo.fmtopt->invalid_fixup_type ... | arm64 | masm-like | handwritten | Terraspace/UASM | fixup.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fixup.asm | 481 | 540 |
Terraspace/UASM:fixup.asm:14 | ; 235 :
; 236 : #if ELF_SUPPORT
; 237 : if ( Options.output_format == OFORMAT_ELF ) {
cmp eax, 3
jne SHORT $LN4@store_fixu
; 238 : /* v2.07: inline addend for ELF32 only.
; 239 : * Also, in 64-bit, pdata may be a int_64 pointer (FIX_OFF64)!
; 240 : */
; 241 : #if... | arm64 | masm-like | handwritten | Terraspace/UASM | fixup.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fixup.asm | 521 | 580 |
Terraspace/UASM:fixup.asm:15 | ; 256 : #if GNURELOCS /* v2.04: added */
; 257 : else if ( fixup->type == FIX_RELOFF16 )
cmp eax, 2
jne SHORT $LN6@store_fixu
; 258 : *pdata = -2;
mov DWORD PTR [r8], -2
jmp SHORT $LN4@store_fixu
$LN6@store_fixu:
; 259 : else if ( fixup->type == FIX_RELOFF8 )
cmp ea... | arm64 | masm-like | handwritten | Terraspace/UASM | fixup.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fixup.asm | 561 | 620 |
Terraspace/UASM:fixup.asm:16 | ; 279 : if ( fixup->sym && fixup->sym->variable ) {
mov rax, QWORD PTR [rcx+56]
test rax, rax
je SHORT $LN3@store_fixu
test BYTE PTR [rax+48], 64 ; 00000040H
je SHORT $LN3@store_fixu
; 280 : /* add symbol's offset to the fixup location and fixup's offset */
; 281 : *pdata += ... | arm64 | masm-like | handwritten | Terraspace/UASM | fixup.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fixup.asm | 601 | 660 |
Terraspace/UASM:fixup.asm:17 | ; 294 : seg->e.seginfo->FixupList.tail = seg->e.seginfo->FixupList.head = fixup;
mov QWORD PTR [rax+40], r9
; 297 : seg->e.seginfo->FixupList.tail = fixup;
mov rax, QWORD PTR [rdx+104]
mov QWORD PTR [rax+48], r9
; 298 : }
; 299 : return;
; 300 : }
ret 0
$LN2@store_fixu:
; 295 : ... | arm64 | masm-like | handwritten | Terraspace/UASM | fixup.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fixup.asm | 641 | 676 |
Terraspace/UASM:forum.asm:1 | Hi everyone
I have here my version of JWasm212pre
what is the difference?
1. built in .for - .endfor hll
2. sophisticated RSP stack base for 64 bit
3. more compact stack usage
4. first variable is always aligned to 16 byte
5. if there is no invoke it will not allocate shadow space
6. if there are no locals... | x86_64 | masm-like | handwritten | Terraspace/UASM | forum.asm | Apache-2.0 | 97cf3643159debd0afec659fa2f5dacfee2e9a6f | github | assembler | https://github.com/Terraspace/UASM/blob/97cf3643159debd0afec659fa2f5dacfee2e9a6f/forum.asm | 1 | 60 |
Terraspace/UASM:forum.asm:2 | test1 PROC FRAME param : QWORD ;this function has no locals but uses rcx instead of param
.if (rcx && rax == rcx) ;no need to save rcx in the shadow space
000000013FBC1060 48 23 C9 and rcx,rcx
000000013FBC1063 74 0E je test1+13h (013FBC1073h)
000000013FBC10... | x86_64 | masm-like | handwritten | Terraspace/UASM | forum.asm | Apache-2.0 | 97cf3643159debd0afec659fa2f5dacfee2e9a6f | github | assembler | https://github.com/Terraspace/UASM/blob/97cf3643159debd0afec659fa2f5dacfee2e9a6f/forum.asm | 41 | 100 |
Terraspace/UASM:forum.asm:3 | 000000013FD81154 0F 29 4C 24 20 movaps xmmword ptr [var],xmm1
movaps var1, xmm2
000000013FD81159 0F 29 54 24 30 movaps xmmword ptr [var1],xmm2
mov other1, -1
000000013FD8115E 48 C7 44 24 44 FF FF FF FF mov qword ptr [other1],0FFFFFFFFFFFFFFFFh
mov other2, -2
000000013FD81167 48... | x86_64 | masm-like | handwritten | Terraspace/UASM | forum.asm | Apache-2.0 | 97cf3643159debd0afec659fa2f5dacfee2e9a6f | github | assembler | https://github.com/Terraspace/UASM/blob/97cf3643159debd0afec659fa2f5dacfee2e9a6f/forum.asm | 81 | 140 |
Terraspace/UASM:forum.asm:4 | and the version without invoke
test PROC FRAME USES rbx rbp rdi a : QWORD
000000013F4C1128 48 89 4C 24 08 mov qword ptr [rsp+8],rcx
000000013F4C112D 48 89 5C 24 10 mov qword ptr [var1],rbx
000000013F4C1132 48 89 6C 24 18 mov qword ptr [rsp+18h],rbp
000000013F4C1137 57 ... | x86_64 | masm-like | handwritten | Terraspace/UASM | forum.asm | Apache-2.0 | 97cf3643159debd0afec659fa2f5dacfee2e9a6f | github | assembler | https://github.com/Terraspace/UASM/blob/97cf3643159debd0afec659fa2f5dacfee2e9a6f/forum.asm | 121 | 180 |
Terraspace/UASM:forum.asm:5 | shl rax, 1
000000013F4C117F 48 D1 E0 shl rax,1
.for (rax=rcx¦r8¦rcx++, r8--)
000000013F4C1182 48 8B C1 mov rax,rcx
000000013F4C1185 4D 23 C0 and r8,r8
000000013F4C1188 74 0A je test+6Ch (013F4C1194h)
mov[rcx], dl
000000013F4C1... | x86_64 | masm-like | handwritten | Terraspace/UASM | forum.asm | Apache-2.0 | 97cf3643159debd0afec659fa2f5dacfee2e9a6f | github | assembler | https://github.com/Terraspace/UASM/blob/97cf3643159debd0afec659fa2f5dacfee2e9a6f/forum.asm | 161 | 181 |
Terraspace/UASM:fpfixup.asm:1 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 14.00.40310.41
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM decoflags:BYTE
COMM MODULEARCH:BYTE
COMM broadflags:BYTE
COMM ZEROLOCALS:BYTE
COMM evex:BYTE
_DATA ENDS
CONST SEGMENT
patchmask DW 0f8ffH
ORG $+6
patchchr2 DB ... | arm64 | masm-like | handwritten | Terraspace/UASM | fpfixup.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fpfixup.asm | 1 | 60 |
Terraspace/UASM:fpfixup.asm:2 | $unwind$AddFloatingPointEmulationFixup DD 051301H
DD 0cc413H
DD 0e340eH
DD 0c204H
xdata ENDS
pdata SEGMENT
$pdata$AddFloatingPointEmulationFixup DD @imagerel($LN23#)
DD @imagerel($LN23#+19)
DD @imagerel($unwind$AddFloatingPointEmulationFixup#)
pdata ENDS
xdata SEGMENT
$chain$5$AddFloatingPointEmulationFixup DD 086... | arm64 | masm-like | handwritten | Terraspace/UASM | fpfixup.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fpfixup.asm | 41 | 100 |
Terraspace/UASM:fpfixup.asm:3 | name$ = 56
sym$ = 64
CodeInfo$ = 112
AddFloatingPointEmulationFixup PROC NEAR
; 68 : {
$LN23:
sub rsp, 104 ; 00000068H
; 69 : int i;
; 70 : enum fp_patches patch;
; 71 : struct asym *sym[2];
; 72 : struct fixup *fixup;
; 73 : int_32 data;
; 74 : char name[8] = "F__RQQ";
le... | arm64 | masm-like | handwritten | Terraspace/UASM | fpfixup.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fpfixup.asm | 81 | 140 |
Terraspace/UASM:fpfixup.asm:4 | ; 79 : patch = FPP_WAIT;
mov ebx, r12d
jmp SHORT $LN13@AddFloatin
$LN16@AddFloatin:
; 80 : } else if ( CodeInfo->prefix.RegOverride == EMPTY ) {
mov ebx, DWORD PTR [rcx+4]
cmp ebx, -2
jne SHORT $LN14@AddFloatin
; 81 : patch = FPP_NORMAL;
mov ebx, 1
; 82 : } else {
jmp SHORT... | arm64 | masm-like | handwritten | Terraspace/UASM | fpfixup.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fpfixup.asm | 121 | 180 |
Terraspace/UASM:fpfixup.asm:5 | ; 88 : sym[i] = NULL;
; 89 : if ( patchmask & ( 1 << ( i*8+patch ) ) ) {
mov ecx, ebx
mov eax, 1
mov QWORD PTR [rdi], r12
shl eax, cl
test eax, 63743 ; 0000f8ffH
je SHORT $LN11@AddFloatin
; 90 : name[1] = 'I' + i;
lea eax, DWORD PTR [rsi+73]
; 91 : name[2] =... | arm64 | masm-like | handwritten | Terraspace/UASM | fpfixup.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fpfixup.asm | 161 | 220 |
Terraspace/UASM:fpfixup.asm:6 | mov QWORD PTR [rdi], rax
; 95 : sym[i]->langtype = LANG_NONE;
mov DWORD PTR [rax+84], r12d
$LN11@AddFloatin:
inc esi
add ebx, 8
add rdi, 8
cmp esi, 2
jl SHORT $LL12@AddFloatin
; 96 : }
; 97 : }
; 98 : }
; 99 :
; 100 : /* no need for fixups if no object fil... | arm64 | masm-like | handwritten | Terraspace/UASM | fpfixup.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fpfixup.asm | 201 | 260 |
Terraspace/UASM:fpfixup.asm:7 | sub eax, DWORD PTR [rcx+8]
add eax, 3
cmp eax, 1014 ; 000003f6H
jbe SHORT $LN5@AddFloatin
; 110 : omf_FlushCurrSeg();
call omf_FlushCurrSeg
$LN5@AddFloatin:
; 111 :
; 112 : for ( i = 0; i < 2 ; i++ ) {
mov ebx, r12d
npad 3
$LL4@AddFloatin:
; 113 : if ( sym[i] ) {
movsxd rax, ebx
... | arm64 | masm-like | handwritten | Terraspace/UASM | fpfixup.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fpfixup.asm | 241 | 300 |
Terraspace/UASM:fpfixup.asm:8 | mov rdx, QWORD PTR ModuleInfo+432
mov rcx, rax
mov DWORD PTR data$[rsp], r12d
call store_fixup
$LN3@AddFloatin:
inc ebx
cmp ebx, 2
jl SHORT $LL4@AddFloatin
$LN2@AddFloatin:
mov r12, QWORD PTR [rsp+96]
mov rbx, QWORD PTR [rsp+112]
; 121 : }
; 122 : }
; 123 : return;
; 124 : }
add rsp, 104 ... | arm64 | masm-like | handwritten | Terraspace/UASM | fpfixup.asm | Apache-2.0 | ef0d1165fa5195c40b50d6a499ec27d72353f8ab | github | assembler | https://github.com/Terraspace/UASM/blob/ef0d1165fa5195c40b50d6a499ec27d72353f8ab/fpfixup.asm | 281 | 302 |
Terraspace/UASM:gccmod.inc:1 | proj_obj = \
$(OUTD)/apiemu.o \
$(OUTD)/orgfixup.o \
$(OUTD)/assemble.o \
$(OUTD)/assume.o \
$(OUTD)/atofloat.o \
$(OUTD)/backptch.o \
$(OUTD)/bin.o \
$(OUTD)/branch.o \
$(OUTD)/cmdline.o \
$(OUTD)/codegen.o \
$(OUTD)/codegenv2.o \
$(OUTD)/coff.o \
$(OUTD)/condasm.o \
$(OUTD)/context.o \
$(OUTD)/cpu... | arm64 | gas-like | handwritten | Terraspace/UASM | gccmod.inc | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/gccmod.inc | 1 | 60 |
Terraspace/UASM:gccmod.inc:2 | $(OUTD)/macrolib.o \
$(OUTD)/mangle.o \
$(OUTD)/memalloc.o \
$(OUTD)/msgtext.o \
$(OUTD)/omf.o \
$(OUTD)/omffixup.o \
$(OUTD)/omfint.o \
$(OUTD)/option.o \
$(OUTD)/parser.o \
$(OUTD)/posndir.o \
$(OUTD)/preproc.o \
$(OUTD)/proc.o \
$(OUTD)/queue.o \
$(OUTD)/reswords.o \
$(OUTD)/safeseh.o \
$(OUT... | arm64 | gas-like | handwritten | Terraspace/UASM | gccmod.inc | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/gccmod.inc | 41 | 64 |
Terraspace/UASM:gccmod.inc:2 | $(OUTD)/macrolib.o \
$(OUTD)/mangle.o \
$(OUTD)/memalloc.o \
$(OUTD)/msgtext.o \
$(OUTD)/omf.o \
$(OUTD)/omffixup.o \
$(OUTD)/omfint.o \
$(OUTD)/option.o \
$(OUTD)/parser.o \
$(OUTD)/posndir.o \
$(OUTD)/preproc.o \
$(OUTD)/proc.o \
$(OUTD)/queue.o \
$(OUTD)/reswords.o \
$(OUTD)/safeseh.o \
$(OUT... | arm64 | gas-like | handwritten | Terraspace/UASM | gccmod.inc | Apache-2.0 | 4afd5240788a01c95f038cab15a7c9b35d0d2897 | github | assembler | https://github.com/Terraspace/UASM/blob/4afd5240788a01c95f038cab15a7c9b35d0d2897/gccmod.inc | 41 | 63 |
Terraspace/UASM:gccmod.inc:1 | proj_obj = \
$(OUTD)/apiemu.o \
$(OUTD)/orgfixup.o \
$(OUTD)/assemble.o \
$(OUTD)/assume.o \
$(OUTD)/atofloat.o \
$(OUTD)/backptch.o \
$(OUTD)/bin.o \
$(OUTD)/branch.o \
$(OUTD)/cmdline.o \
$(OUTD)/codegen.o \
$(OUTD)/coff.o \
$(OUTD)/condasm.o \
$(OUTD)/context.o \
$(OUTD)/cpumodel.o \
$(OUTD)/data.... | arm64 | gas-like | handwritten | Terraspace/UASM | gccmod.inc | Apache-2.0 | 43fbaa68be08ecc7caa33b483baa64a8c62d07de | github | assembler | https://github.com/Terraspace/UASM/blob/43fbaa68be08ecc7caa33b483baa64a8c62d07de/gccmod.inc | 1 | 60 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.