Daily update on 20230803 by nitload youmu, problem of parameter displacement solved, rewriting other linear math
This commit is contained in:
@@ -6,19 +6,19 @@ INCLUDELIB MSVCRT
|
||||
INCLUDELIB OLDNAMES
|
||||
|
||||
_DATA SEGMENT
|
||||
COMM m128ptr:BYTE:048H
|
||||
COMM sseFunc:BYTE:018H
|
||||
COMM pack:BYTE:038H
|
||||
_DATA ENDS
|
||||
msvcjmc SEGMENT
|
||||
__018B5678_khrplatform@h DB 01H
|
||||
__79FC18F0_glad@h DB 01H
|
||||
__E7EC9AD1_concurrencysal@h DB 01H
|
||||
__ADCB3D40_sal@h DB 01H
|
||||
__63527AC6_vadefs@h DB 01H
|
||||
__979672E1_vcruntime@h DB 01H
|
||||
__1B5F14A0_stdint@h DB 01H
|
||||
__018B5678_khrplatform@h DB 01H
|
||||
__79FC18F0_glad@h DB 01H
|
||||
__B193B045_corecrt@h DB 01H
|
||||
__887B5571_stddef@h DB 01H
|
||||
__1B5F14A0_stdint@h DB 01H
|
||||
__986CAB3E_glfw3@h DB 01H
|
||||
__47F55FD8_winpackagefamily@h DB 01H
|
||||
__43D6A374_winapifamily@h DB 01H
|
||||
@@ -112,18 +112,17 @@ __0F1BF9AE_imm@h DB 01H
|
||||
__0B5A2696_windows@h DB 01H
|
||||
__F7492337_framework@h DB 01H
|
||||
__C508448F_StgSharpGraphic@h DB 01H
|
||||
__203A43BB_SSGinternal@h DB 01H
|
||||
__B45635C8_mmintrin@h DB 01H
|
||||
__FF268430_corecrt_malloc@h DB 01H
|
||||
__61F92E22_malloc@h DB 01H
|
||||
__17431EB5_xmmintrin@h DB 01H
|
||||
__203A43BB_SSGinternal@h DB 01H
|
||||
__52DA9D07_StgSharpGraphic@c DB 01H
|
||||
msvcjmc ENDS
|
||||
PUBLIC loadGLApi
|
||||
PUBLIC initGL
|
||||
PUBLIC initGLAD
|
||||
PUBLIC __JustMyCode_Default
|
||||
PUBLIC ??_C@_05NIBAEAOK@Stg?$CD?$CB@ ; `string'
|
||||
EXTRN gladLoadGLLoader:PROC
|
||||
EXTRN glfwInit:PROC
|
||||
EXTRN glfwWindowHint:PROC
|
||||
@@ -134,60 +133,40 @@ EXTRN glfwMakeContextCurrent:PROC
|
||||
EXTRN glfwSwapBuffers:PROC
|
||||
EXTRN glfwSwapInterval:PROC
|
||||
EXTRN glfwGetProcAddress:PROC
|
||||
EXTRN _RTC_InitBase:PROC
|
||||
EXTRN _RTC_Shutdown:PROC
|
||||
EXTRN __CheckForDebuggerJustMyCode:PROC
|
||||
EXTRN glad_glClearColor:QWORD
|
||||
; COMDAT pdata
|
||||
pdata SEGMENT
|
||||
$pdata$loadGLApi DD imagerel $LN3
|
||||
DD imagerel $LN3+206
|
||||
$pdata$loadGLApi DD imagerel $LN4
|
||||
DD imagerel $LN4+173
|
||||
DD imagerel $unwind$loadGLApi
|
||||
pdata ENDS
|
||||
; COMDAT pdata
|
||||
pdata SEGMENT
|
||||
$pdata$initGL DD imagerel $LN3
|
||||
DD imagerel $LN3+87
|
||||
$pdata$initGL DD imagerel $LN4
|
||||
DD imagerel $LN4+70
|
||||
DD imagerel $unwind$initGL
|
||||
pdata ENDS
|
||||
; COMDAT pdata
|
||||
pdata SEGMENT
|
||||
$pdata$initGLAD DD imagerel $LN3
|
||||
DD imagerel $LN3+49
|
||||
$pdata$initGLAD DD imagerel $LN4
|
||||
DD imagerel $LN4+32
|
||||
DD imagerel $unwind$initGLAD
|
||||
pdata ENDS
|
||||
; COMDAT rtc$TMZ
|
||||
rtc$TMZ SEGMENT
|
||||
_RTC_Shutdown.rtc$TMZ DQ FLAT:_RTC_Shutdown
|
||||
rtc$TMZ ENDS
|
||||
; COMDAT rtc$IMZ
|
||||
rtc$IMZ SEGMENT
|
||||
_RTC_InitBase.rtc$IMZ DQ FLAT:_RTC_InitBase
|
||||
rtc$IMZ ENDS
|
||||
; COMDAT ??_C@_05NIBAEAOK@Stg?$CD?$CB@
|
||||
CONST SEGMENT
|
||||
??_C@_05NIBAEAOK@Stg?$CD?$CB@ DB 'Stg#!', 00H ; `string'
|
||||
CONST ENDS
|
||||
; COMDAT xdata
|
||||
xdata SEGMENT
|
||||
$unwind$initGLAD DD 025050f01H
|
||||
DD 010a230fH
|
||||
DD 07003001dH
|
||||
DD 05002H
|
||||
$unwind$initGLAD DD 010401H
|
||||
DD 04204H
|
||||
xdata ENDS
|
||||
; COMDAT xdata
|
||||
xdata SEGMENT
|
||||
$unwind$initGL DD 025050f01H
|
||||
DD 010a230fH
|
||||
DD 07003001dH
|
||||
DD 05002H
|
||||
$unwind$initGL DD 010401H
|
||||
DD 04204H
|
||||
xdata ENDS
|
||||
; COMDAT xdata
|
||||
xdata SEGMENT
|
||||
$unwind$loadGLApi DD 035061401H
|
||||
DD 010f3314H
|
||||
DD 07008001eH
|
||||
DD 050066007H
|
||||
$unwind$loadGLApi DD 020601H
|
||||
DD 030023206H
|
||||
xdata ENDS
|
||||
; Function compile flags: /Odt
|
||||
; COMDAT __JustMyCode_Default
|
||||
@@ -196,200 +175,142 @@ __JustMyCode_Default PROC ; COMDAT
|
||||
00000 c2 00 00 ret 0
|
||||
__JustMyCode_Default ENDP
|
||||
_TEXT ENDS
|
||||
; Function compile flags: /Odtp /RTCsu /ZI
|
||||
; Function compile flags: /Ogtpy
|
||||
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgShqrpGraphic\StgSharpGraphic.c
|
||||
; COMDAT initGLAD
|
||||
_TEXT SEGMENT
|
||||
initGLAD PROC ; COMDAT
|
||||
|
||||
; 46 : {
|
||||
; 45 : {
|
||||
|
||||
$LN3:
|
||||
00000 40 55 push rbp
|
||||
00002 57 push rdi
|
||||
00003 48 81 ec e8 00
|
||||
00 00 sub rsp, 232 ; 000000e8H
|
||||
0000a 48 8d 6c 24 20 lea rbp, QWORD PTR [rsp+32]
|
||||
0000f 48 8d 0d 00 00
|
||||
$LN4:
|
||||
00000 48 83 ec 28 sub rsp, 40 ; 00000028H
|
||||
00004 48 8d 0d 00 00
|
||||
00 00 lea rcx, OFFSET FLAT:__52DA9D07_StgSharpGraphic@c
|
||||
00016 e8 00 00 00 00 call __CheckForDebuggerJustMyCode
|
||||
|
||||
; 47 : return gladLoadGLLoader((GLADloadproc)glfwGetProcAddress);
|
||||
|
||||
0001b 48 8d 0d 00 00
|
||||
0000b e8 00 00 00 00 call __CheckForDebuggerJustMyCode
|
||||
00010 48 8d 0d 00 00
|
||||
00 00 lea rcx, OFFSET FLAT:glfwGetProcAddress
|
||||
00022 e8 00 00 00 00 call gladLoadGLLoader
|
||||
|
||||
; 48 :
|
||||
; 49 : }
|
||||
; 46 : return gladLoadGLLoader((GLADloadproc)glfwGetProcAddress);
|
||||
; 47 : }
|
||||
|
||||
00027 48 8d a5 c8 00
|
||||
00 00 lea rsp, QWORD PTR [rbp+200]
|
||||
0002e 5f pop rdi
|
||||
0002f 5d pop rbp
|
||||
00030 c3 ret 0
|
||||
00017 48 83 c4 28 add rsp, 40 ; 00000028H
|
||||
0001b e9 00 00 00 00 jmp gladLoadGLLoader
|
||||
initGLAD ENDP
|
||||
_TEXT ENDS
|
||||
; Function compile flags: /Odtp /RTCsu /ZI
|
||||
; Function compile flags: /Ogtpy
|
||||
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgShqrpGraphic\StgSharpGraphic.c
|
||||
; COMDAT initGL
|
||||
_TEXT SEGMENT
|
||||
initGL PROC ; COMDAT
|
||||
|
||||
; 33 : {
|
||||
; 32 : {
|
||||
|
||||
$LN3:
|
||||
00000 40 55 push rbp
|
||||
00002 57 push rdi
|
||||
00003 48 81 ec e8 00
|
||||
00 00 sub rsp, 232 ; 000000e8H
|
||||
0000a 48 8d 6c 24 20 lea rbp, QWORD PTR [rsp+32]
|
||||
0000f 48 8d 0d 00 00
|
||||
$LN4:
|
||||
00000 48 83 ec 28 sub rsp, 40 ; 00000028H
|
||||
00004 48 8d 0d 00 00
|
||||
00 00 lea rcx, OFFSET FLAT:__52DA9D07_StgSharpGraphic@c
|
||||
00016 e8 00 00 00 00 call __CheckForDebuggerJustMyCode
|
||||
0000b e8 00 00 00 00 call __CheckForDebuggerJustMyCode
|
||||
00010 e8 00 00 00 00 call glfwInit
|
||||
00015 ba 03 00 00 00 mov edx, 3
|
||||
0001a b9 02 20 02 00 mov ecx, 139266 ; 00022002H
|
||||
0001f e8 00 00 00 00 call glfwWindowHint
|
||||
00024 ba 03 00 00 00 mov edx, 3
|
||||
00029 b9 03 20 02 00 mov ecx, 139267 ; 00022003H
|
||||
0002e e8 00 00 00 00 call glfwWindowHint
|
||||
00033 ba 01 20 03 00 mov edx, 204801 ; 00032001H
|
||||
00038 b9 08 20 02 00 mov ecx, 139272 ; 00022008H
|
||||
|
||||
; 34 : glfwInit();
|
||||
; 33 : glfwInit();
|
||||
; 34 : glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
|
||||
; 35 : glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
|
||||
; 36 : glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
|
||||
; 37 :
|
||||
; 38 : #ifdef __APPLE__
|
||||
; 39 : glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
|
||||
; 40 : #endif // __APPLE__
|
||||
; 41 : }
|
||||
|
||||
0001b e8 00 00 00 00 call glfwInit
|
||||
|
||||
; 35 : glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
|
||||
|
||||
00020 ba 03 00 00 00 mov edx, 3
|
||||
00025 b9 02 20 02 00 mov ecx, 139266 ; 00022002H
|
||||
0002a e8 00 00 00 00 call glfwWindowHint
|
||||
|
||||
; 36 : glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
|
||||
|
||||
0002f ba 03 00 00 00 mov edx, 3
|
||||
00034 b9 03 20 02 00 mov ecx, 139267 ; 00022003H
|
||||
00039 e8 00 00 00 00 call glfwWindowHint
|
||||
|
||||
; 37 : glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
|
||||
|
||||
0003e ba 01 20 03 00 mov edx, 204801 ; 00032001H
|
||||
00043 b9 08 20 02 00 mov ecx, 139272 ; 00022008H
|
||||
00048 e8 00 00 00 00 call glfwWindowHint
|
||||
|
||||
; 38 :
|
||||
; 39 : #ifdef __APPLE__
|
||||
; 40 : glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
|
||||
; 41 : #endif // __APPLE__
|
||||
; 42 : }
|
||||
|
||||
0004d 48 8d a5 c8 00
|
||||
00 00 lea rsp, QWORD PTR [rbp+200]
|
||||
00054 5f pop rdi
|
||||
00055 5d pop rbp
|
||||
00056 c3 ret 0
|
||||
0003d 48 83 c4 28 add rsp, 40 ; 00000028H
|
||||
00041 e9 00 00 00 00 jmp glfwWindowHint
|
||||
initGL ENDP
|
||||
_TEXT ENDS
|
||||
; Function compile flags: /Odtp /RTCsu /ZI
|
||||
; Function compile flags: /Ogtpy
|
||||
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgShqrpGraphic\StgSharpGraphic.c
|
||||
; COMDAT loadGLApi
|
||||
_TEXT SEGMENT
|
||||
__$ReturnAddress$ = 224
|
||||
__$ReturnAddress$ = 48
|
||||
loadGLApi PROC ; COMDAT
|
||||
|
||||
; 14 : {
|
||||
; 15 : {
|
||||
|
||||
$LN3:
|
||||
00000 48 89 4c 24 08 mov QWORD PTR [rsp+8], rcx
|
||||
00005 55 push rbp
|
||||
00006 56 push rsi
|
||||
00007 57 push rdi
|
||||
00008 48 81 ec f0 00
|
||||
00 00 sub rsp, 240 ; 000000f0H
|
||||
0000f 48 8d 6c 24 30 lea rbp, QWORD PTR [rsp+48]
|
||||
00014 48 8d 0d 00 00
|
||||
$LN4:
|
||||
00000 40 53 push rbx
|
||||
00002 48 83 ec 20 sub rsp, 32 ; 00000020H
|
||||
00006 48 8b d9 mov rbx, rcx
|
||||
00009 48 8d 0d 00 00
|
||||
00 00 lea rcx, OFFSET FLAT:__52DA9D07_StgSharpGraphic@c
|
||||
0001b e8 00 00 00 00 call __CheckForDebuggerJustMyCode
|
||||
|
||||
; 15 :
|
||||
; 16 : pack.createWindow = glfwCreateWindow;
|
||||
|
||||
00020 48 8d 05 00 00
|
||||
00010 e8 00 00 00 00 call __CheckForDebuggerJustMyCode
|
||||
00015 48 8d 05 00 00
|
||||
00 00 lea rax, OFFSET FLAT:glfwCreateWindow
|
||||
00027 48 89 05 00 00
|
||||
0001c 48 89 05 00 00
|
||||
00 00 mov QWORD PTR pack, rax
|
||||
|
||||
; 17 : pack.makeContextCurrent = glfwMakeContextCurrent;
|
||||
|
||||
0002e 48 8d 05 00 00
|
||||
00023 48 8d 05 00 00
|
||||
00 00 lea rax, OFFSET FLAT:glfwMakeContextCurrent
|
||||
00035 48 89 05 08 00
|
||||
0002a 48 89 05 08 00
|
||||
00 00 mov QWORD PTR pack+8, rax
|
||||
|
||||
; 18 : pack.swapInterval = glfwSwapInterval;
|
||||
|
||||
0003c 48 8d 05 00 00
|
||||
00031 48 8d 05 00 00
|
||||
00 00 lea rax, OFFSET FLAT:glfwSwapInterval
|
||||
00043 48 89 05 10 00
|
||||
00038 0f 10 05 00 00
|
||||
00 00 movups xmm0, XMMWORD PTR pack
|
||||
0003f 48 89 05 10 00
|
||||
00 00 mov QWORD PTR pack+16, rax
|
||||
|
||||
; 19 : pack.clearColor = glClearColor;
|
||||
|
||||
0004a 48 8b 05 00 00
|
||||
00046 48 8b 05 00 00
|
||||
00 00 mov rax, QWORD PTR glad_glClearColor
|
||||
00051 48 89 05 18 00
|
||||
0004d 48 89 05 18 00
|
||||
00 00 mov QWORD PTR pack+24, rax
|
||||
|
||||
; 20 : pack.windowShouldClose = glfwWindowShouldClose;
|
||||
|
||||
00058 48 8d 05 00 00
|
||||
00054 48 8d 05 00 00
|
||||
00 00 lea rax, OFFSET FLAT:glfwWindowShouldClose
|
||||
0005f 48 89 05 20 00
|
||||
0005b 0f 10 0d 10 00
|
||||
00 00 movups xmm1, XMMWORD PTR pack+16
|
||||
00062 48 89 05 20 00
|
||||
00 00 mov QWORD PTR pack+32, rax
|
||||
|
||||
; 21 : pack.swapBuffer = glfwSwapBuffers;
|
||||
|
||||
00066 48 8d 05 00 00
|
||||
00069 48 8d 05 00 00
|
||||
00 00 lea rax, OFFSET FLAT:glfwSwapBuffers
|
||||
0006d 48 89 05 28 00
|
||||
00070 0f 11 03 movups XMMWORD PTR [rbx], xmm0
|
||||
00073 48 89 05 28 00
|
||||
00 00 mov QWORD PTR pack+40, rax
|
||||
|
||||
; 22 :
|
||||
; 23 : //these are for callback
|
||||
; 24 : pack.SetFramebufferSizeCallback = glfwSetFramebufferSizeCallback;
|
||||
|
||||
00074 48 8d 05 00 00
|
||||
0007a 48 8d 05 00 00
|
||||
00 00 lea rax, OFFSET FLAT:glfwSetFramebufferSizeCallback
|
||||
0007b 48 89 05 30 00
|
||||
00081 0f 10 05 20 00
|
||||
00 00 movups xmm0, XMMWORD PTR pack+32
|
||||
00088 48 89 05 30 00
|
||||
00 00 mov QWORD PTR pack+48, rax
|
||||
0008f 48 8b c3 mov rax, rbx
|
||||
00092 0f 11 4b 10 movups XMMWORD PTR [rbx+16], xmm1
|
||||
00096 f2 0f 10 0d 30
|
||||
00 00 00 movsd xmm1, QWORD PTR pack+48
|
||||
0009e 0f 11 43 20 movups XMMWORD PTR [rbx+32], xmm0
|
||||
000a2 f2 0f 11 4b 30 movsd QWORD PTR [rbx+48], xmm1
|
||||
|
||||
; 25 :
|
||||
; 26 : glfwCreateWindow(800,600,"Stg#!", NULL,NULL);
|
||||
|
||||
00082 48 c7 44 24 20
|
||||
00 00 00 00 mov QWORD PTR [rsp+32], 0
|
||||
0008b 45 33 c9 xor r9d, r9d
|
||||
0008e 4c 8d 05 00 00
|
||||
00 00 lea r8, OFFSET FLAT:??_C@_05NIBAEAOK@Stg?$CD?$CB@
|
||||
00095 ba 58 02 00 00 mov edx, 600 ; 00000258H
|
||||
0009a b9 20 03 00 00 mov ecx, 800 ; 00000320H
|
||||
0009f e8 00 00 00 00 call glfwCreateWindow
|
||||
|
||||
; 16 :
|
||||
; 17 : pack.createWindow = glfwCreateWindow;
|
||||
; 18 : pack.makeContextCurrent = glfwMakeContextCurrent;
|
||||
; 19 : pack.swapInterval = glfwSwapInterval;
|
||||
; 20 : pack.clearColor = glClearColor;
|
||||
; 21 : pack.windowShouldClose = glfwWindowShouldClose;
|
||||
; 22 : pack.swapBuffer = glfwSwapBuffers;
|
||||
; 23 :
|
||||
; 24 : //these are for callback
|
||||
; 25 : pack.SetFramebufferSizeCallback = glfwSetFramebufferSizeCallback;
|
||||
; 26 :
|
||||
; 27 :
|
||||
; 28 :
|
||||
; 29 : return pack;
|
||||
; 28 : return pack;
|
||||
; 29 : }
|
||||
|
||||
000a4 48 8d 05 00 00
|
||||
00 00 lea rax, OFFSET FLAT:pack
|
||||
000ab 48 8b bd e0 00
|
||||
00 00 mov rdi, QWORD PTR __$ReturnAddress$[rbp]
|
||||
000b2 48 8b f0 mov rsi, rax
|
||||
000b5 b9 38 00 00 00 mov ecx, 56 ; 00000038H
|
||||
000ba f3 a4 rep movsb
|
||||
000bc 48 8b 85 e0 00
|
||||
00 00 mov rax, QWORD PTR __$ReturnAddress$[rbp]
|
||||
|
||||
; 30 : }
|
||||
|
||||
000c3 48 8d a5 c0 00
|
||||
00 00 lea rsp, QWORD PTR [rbp+192]
|
||||
000ca 5f pop rdi
|
||||
000cb 5e pop rsi
|
||||
000cc 5d pop rbp
|
||||
000cd c3 ret 0
|
||||
000a7 48 83 c4 20 add rsp, 32 ; 00000020H
|
||||
000ab 5b pop rbx
|
||||
000ac c3 ret 0
|
||||
loadGLApi ENDP
|
||||
_TEXT ENDS
|
||||
END
|
||||
|
||||
Reference in New Issue
Block a user