Re: Japanese ANIME quality up on streming
Posted: Sun Sep 15, 2024 10:04 am
I want to JOB with salary, but this CPU design problems don't finish my pain 20 years.
And my family said "We have voice-actor jobs many, but You are darkside worker BAN!".
I want to ride NEVER ENDING STORY savior DRAGON.
CPU cache have QWORD way Initialize process, this WORD way did'nt CLEAR NOISE DATA on Power-on.
This code run clear 512 bytes cpu cache area by WORD way. #FX_WORD_REVERSE with FXCLEAR_ALL
This code run clear 512 bytes cpu cache area by DWORD way. #FX_DWORD_REVERSE with FXCLEAR_ALL
This code run clear 512 bytes cpu cache area by QWORD way. #FX_QWORD_REVERSE with FXCLEAR_ALL
This process will over clock mode on static CPU clocks, then required FNOP two lines for clock down.
This "MajiorityLabyrinth 6" is super low-digital-noise process for intel CPU 13th 14th
CPU 13th 14th keep codes some rules.
1. Don't remove "NOP QWORD [Rip] x2 lines" CPU power management brake down
2. Don't remove "XCHG al, ah ... dh, dl , XCHG spl, spl after NOP" same reason
3. Don't remove "FNOP" ; ## Don't remove this lines ## 800MHz to 300MHz clock down
If you can try crush CPU, You should hear CPU fan motor noise. boom ? RESET!
This troubles is not depend 13th 14th only, others Skylake CometLake any crushed
but more quality for Anime Video Streaming is BEST solution.
I test Core i7-13700 (13th Rapter).
Filename "CPUcache_MacroSentence_MC222.pbi"
1. run
2. output "clipboard text"
3. paste New tab
4. cpu optimize MMX and CONSOLE set
5. remove message
6. run
And my family said "We have voice-actor jobs many, but You are darkside worker BAN!".
I want to ride NEVER ENDING STORY savior DRAGON.
CPU cache have QWORD way Initialize process, this WORD way did'nt CLEAR NOISE DATA on Power-on.
This code run clear 512 bytes cpu cache area by WORD way. #FX_WORD_REVERSE with FXCLEAR_ALL
This code run clear 512 bytes cpu cache area by DWORD way. #FX_DWORD_REVERSE with FXCLEAR_ALL
This code run clear 512 bytes cpu cache area by QWORD way. #FX_QWORD_REVERSE with FXCLEAR_ALL
This process will over clock mode on static CPU clocks, then required FNOP two lines for clock down.
This "MajiorityLabyrinth 6" is super low-digital-noise process for intel CPU 13th 14th
CPU 13th 14th keep codes some rules.
1. Don't remove "NOP QWORD [Rip] x2 lines" CPU power management brake down
2. Don't remove "XCHG al, ah ... dh, dl , XCHG spl, spl after NOP" same reason
3. Don't remove "FNOP" ; ## Don't remove this lines ## 800MHz to 300MHz clock down
If you can try crush CPU, You should hear CPU fan motor noise. boom ? RESET!
This troubles is not depend 13th 14th only, others Skylake CometLake any crushed
but more quality for Anime Video Streaming is BEST solution.
I test Core i7-13700 (13th Rapter).
Code: Select all
Debug "; MajiorityLabyrinth 6 (2024 09 14)"
Debug "; RDSEED CRC32 BLSRx64 BZHI CPU reg. Stabilizer from JAPAN"
Debug "; Copyright (c) 2020-2024 Hiroyuki Yokota (oryaaaaa) 444-3174"
Debug "; Design based by Military LAB-AI designed (Customized Hiroyuki Yokota)"
Debug ""
Debug "MessageRequester("+Chr(34)+"END"+Chr(34)+","+Chr(34)+"Compiler options Executable Format Console And CPU With MMX"+Chr(34)+") : End"
Debug ""
!extrn PB_RandomSeed
; ; ; ; ; ; ; ; Intel® 64 And IA-32 ArchitecturesSoftware Developer’s Manual
; ; ; ; ; ; ; ; Volume 2 (2A, 2B, 2C, & 2D):Instruction Set Reference, A-Z
; ; ; ; ; ; ; ; Opcode Column in the Instruction Summary Table (Instructions without VEX Prefix)
; ; ; ; ; ; ; ;
; ; ; ; ; ; ; ; ALNone0AXNone0EAXNone0RAXNone0
; ; ; ; ; ; ; ; DLNone2DXNone2EDXNone2RDXNone2
; ; ; ; ; ; ; ; SPLYes 4SPNone4ESPNone4RSPNone4
; ; ; ; ; ; ; ; SILYes6SINone6ESINone6RSINone6
; ; ; ; ; ; ; ; R8BYes0R8WYes0R8DYes0R8Yes0
; ; ; ; ; ; ; ; R10BYes2R10WYes2R10DYes2R10Yes2
; ; ; ; ; ; ; ; R12BYes4R12WYes4R12DYes4R12Yes4
; ; ; ; ; ; ; ; R14BYes6R14WYes6R14DYes6R14Yes6
; ; ; ; ; ; ; ;
; ; ; ; ; ; ; ; CLNone1CXNone1ECXNone1RCXNone1
; ; ; ; ; ; ; ; BLNone3BXNone3EBXNone3RBXNone3
; ; ; ; ; ; ; ; BPLYes5BPNone5EBPNone5RBPNone5
; ; ; ; ; ; ; ; DILYes7DINone7EDINone7RDINone7
; ; ; ; ; ; ; ; R9BYes1R9WYes1R9DYes1R9Yes1
; ; ; ; ; ; ; ; R11BYes3R11WYes3R11DYes3R11Yes3
; ; ; ; ; ; ; ; R13BYes5R13WYes5R13DYes5R13Yes5
; ; ; ; ; ; ; ; R15BYes7R15WYes7R15DYes7R15Yes7
Global NewList Reg64.s()
AddElement(Reg64()) : Reg64() ="Rax" : AddElement(Reg64()) : Reg64() ="Rbx"
AddElement(Reg64()) : Reg64() ="Rcx" : AddElement(Reg64()) : Reg64() ="Rdx"
AddElement(Reg64()) : Reg64() ="Rsp" : AddElement(Reg64()) : Reg64() ="Rsi"
AddElement(Reg64()) : Reg64() ="Rbp" : AddElement(Reg64()) : Reg64() ="Rdi"
AddElement(Reg64()) : Reg64() ="R8" : AddElement(Reg64()) : Reg64() ="R9"
AddElement(Reg64()) : Reg64() ="R10" : AddElement(Reg64()) : Reg64() ="R11"
AddElement(Reg64()) : Reg64() ="R12" : AddElement(Reg64()) : Reg64() ="R13"
AddElement(Reg64()) : Reg64() ="R14" : AddElement(Reg64()) : Reg64() ="R15"
Global NewList Reg64A.s()
AddElement(Reg64A()) : Reg64A() ="Rax" : AddElement(Reg64A()) : Reg64A() ="Rdx"
AddElement(Reg64A()) : Reg64A() ="Rsp" : AddElement(Reg64A()) : Reg64A() ="Rsi"
AddElement(Reg64A()) : Reg64A() ="R8" : AddElement(Reg64A()) : Reg64A() ="R10"
AddElement(Reg64A()) : Reg64A() ="R12" : AddElement(Reg64A()) : Reg64A() ="R14"
Global NewList Reg64B.s()
AddElement(Reg64B()) : Reg64B() ="Rbx" : AddElement(Reg64B()) : Reg64B() ="Rcx"
AddElement(Reg64B()) : Reg64B() ="Rbp" : AddElement(Reg64B()) : Reg64B() ="Rdi"
AddElement(Reg64B()) : Reg64B() ="R9" : AddElement(Reg64B()) : Reg64B() ="R11"
AddElement(Reg64B()) : Reg64B() ="R13" : AddElement(Reg64B()) : Reg64B() ="R15"
!RDRAND Rcx
!ROR Rcx, 1
!ROR Rcx, 1
!CALL QWORD PB_RandomSeed
RandomizeList(Reg64()) : RandomizeList(Reg64A()) : RandomizeList(Reg64B())
NewMap Reg16.s()
Reg16("Rax")="ax" : Reg16("Rbx")="bx" : Reg16("Rcx")="cx" : Reg16("Rdx")="dx"
Reg16("Rsp")="sp" : Reg16("Rsi")="si" : Reg16("Rbp")="bp" : Reg16("Rdi")="di"
Reg16("R8")="R8w" : Reg16("R9")="R9w" : Reg16("R10")="R10w" : Reg16("R11")="R11w"
Reg16("R12")="R12w" : Reg16("R13")="R13w" : Reg16("R14")="R14w" : Reg16("R15")="R15w"
NewMap Reg8.s()
Reg8("Rax")="al" : Reg8("Rbx")="bl" : Reg8("Rcx")="cl" : Reg8("Rdx")="dl"
Reg8("Rsp")="spl" : Reg8("Rsi")="sil" : Reg8("Rbp")="bpl" : Reg8("Rdi")="dil"
Reg8("R8")="R8b" : Reg8("R9")="R9b" : Reg8("R10")="R10b" : Reg8("R11")="R11b"
Reg8("R12")="R12b" : Reg8("R13")="R13b" : Reg8("R14")="R14b" : Reg8("R15")="R15b"
ForEach Reg64()
Debug "Macro BLSR_"+Reg64()+"_x64"
For Loop=1 To 64
Debug " !BLSR "+Reg64()+", "+Reg64()
Next
Debug " !BZHI "+Reg64()+", "+Reg64()+", "+Reg64()
Debug "EndMacro"
Debug ""
Next
ForEach Reg64()
Debug "Macro SHR_"+Reg64()+"_x64"
For Loop=1 To 64
Debug " !SHR "+Reg64()+", 1"
Next
Debug " !BZHI "+Reg64()+", "+Reg64()+", "+Reg64()
Debug "EndMacro"
Debug ""
Next
ForEach Reg64()
Debug "Macro MOV_"+Reg64()+"_Up_Down"
Debug " !MOV "+Reg8(Reg64())+", "+Reg8(Reg64())
If Len(Reg8(Reg64()))=2
Debug " !MOV "+ReplaceString(Reg8(Reg64()), "l", "h")+", "+ReplaceString(Reg8(Reg64()), "l", "h")
EndIf
Debug " !MOV "+Reg16(Reg64())+", "+Reg16(Reg64())
Debug " !MOV "+Reg64()+", "+Reg64()
Debug " !MOV "+Reg16(Reg64())+", "+Reg16(Reg64())
If Len(Reg8(Reg64()))=2
Debug " !MOV "+ReplaceString(Reg8(Reg64()), "l", "h")+", "+ReplaceString(Reg8(Reg64()), "l", "h")
EndIf
Debug " !MOV "+Reg8(Reg64())+", "+Reg8(Reg64())
Debug "EndMacro"
Debug ""
Next
Debug "Macro Set_CL1"
Debug " BLSR_Rcx_x64"
Debug " !INC cl"
Debug " ; cx = 1"
Debug "EndMacro"
Debug ""
Debug "Macro Set_CL8"
Debug " BLSR_Rcx_x64"
Debug " !INC cl"
Debug " !INC cl"
Debug " !SHL cl, cl"
Debug " ; cx = 8"
Debug "EndMacro"
Debug ""
Debug "Macro Set_CL64"
Debug " BLSR_Rcx_x64"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !SHL cl, cl"
Debug " ; cx = 64"
Debug "EndMacro"
Debug ""
Debug "Macro ALL_MMX_CLEAR_SHIFTWORD_INC_CL"
Debug " BLSR_Rcx_x64"
Debug " Set_CL1"
Debug " MOVZX_Rcx"
Debug " !MOVQ mm1, Rcx"
For Loop=1 To 16
Debug " !PSLLW mm0, mm1 ;"+Str(Loop)+" Left 1bit shift"
Next
Debug " !MOVQ mm0, mm1"
For Roop=1 To 7
For Loop=1 To 16
Debug " !PSLLW mm"+Str(Roop)+", mm0 ;"+Str(Loop)+" Left 1bit shift"
Next
Next
Debug "EndMacro"
Debug ""
Macro SIMPLE_MOVE_REGISTERS_Up_and_Down
RandomizeList(Reg64()) : RandomizeList(Reg64A()) : RandomizeList(Reg64B())
ForEach Reg64A() : Debug " MOV_"+Reg64A()+"_Up_Down" : Next
ForEach Reg64B() : Debug " MOV_"+Reg64B()+"_Up_Down" : Next
EndMacro
Debug "Macro MOVZX_Rcx"
Debug " !MOVZX cx, cl"
Debug " !MOVZX Rcx, cl"
Debug " !MOVZX cx, cl"
Debug "EndMacro"
Debug ""
Macro BeforeProcedureRegisters_1st
Debug " ALL_MMX_CLEAR_SHIFTWORD_INC_CL"
RandomizeList(Reg64()) : RandomizeList(Reg64A()) : RandomizeList(Reg64B())
ForEach Reg64A() : Debug " MOV_"+Reg64A()+"_Up_Down" : Next
Loop=0
ForEach Reg64A() : Debug " !MOVQ mm"+Str(Loop)+", "+Reg64A() : Loop + 1 : Next
Debug "!MOVQ mm0, mm0"
Debug "!MOVQ mm1, mm1"
Debug "!MOVQ mm2, mm2"
Debug "!MOVQ mm3, mm3"
Debug "!MOVQ mm4, mm4"
Debug "!MOVQ mm5, mm5"
Debug "!MOVQ mm6, mm6"
Debug "!MOVQ mm7, mm7"
EndMacro
Macro BeforeProcedureRegisters_2nd
Loop=0
Debug "!MOVQ mm0, mm0"
Debug "!MOVQ mm1, mm1"
Debug "!MOVQ mm2, mm2"
Debug "!MOVQ mm3, mm3"
Debug "!MOVQ mm4, mm4"
Debug "!MOVQ mm5, mm5"
Debug "!MOVQ mm6, mm6"
Debug "!MOVQ mm7, mm7"
ForEach Reg64A() : Debug " !MOVQ "+Reg64A()+", mm"+Str(Loop) : Loop + 1 : Next
RandomizeList(Reg64()) : RandomizeList(Reg64A()) : RandomizeList(Reg64B())
ForEach Reg64A() : Debug " MOV_"+Reg64A()+"_Up_Down" : Next
Debug " ;"
ForEach Reg64B() : Debug " MOV_"+Reg64B()+"_Up_Down" : Next
Loop=0
ForEach Reg64B() : Debug " !MOVQ mm"+Str(Loop)+", "+Reg64B() : Loop + 1 : Next
Debug "!MOVQ mm0, mm0"
Debug "!MOVQ mm1, mm1"
Debug "!MOVQ mm2, mm2"
Debug "!MOVQ mm3, mm3"
Debug "!MOVQ mm4, mm4"
Debug "!MOVQ mm5, mm5"
Debug "!MOVQ mm6, mm6"
Debug "!MOVQ mm7, mm7"
EndMacro
Macro BeforeProcedureRegisters_3rd
Loop=0
Debug "!MOVQ mm0, mm0"
Debug "!MOVQ mm1, mm1"
Debug "!MOVQ mm2, mm2"
Debug "!MOVQ mm3, mm3"
Debug "!MOVQ mm4, mm4"
Debug "!MOVQ mm5, mm5"
Debug "!MOVQ mm6, mm6"
Debug "!MOVQ mm7, mm7"
ForEach Reg64B() : Debug " !MOVQ "+Reg64B()+", mm"+Str(Loop) : Loop + 1 : Next
RandomizeList(Reg64()) : RandomizeList(Reg64A()) : RandomizeList(Reg64B())
ForEach Reg64B() : Debug " MOV_"+Reg64B()+"_Up_Down" : Next
Debug " !EMMS"
EndMacro
Macro BeforeProcedureRegisters_RDSEED_BLSR
BeforeProcedureRegisters_1st
ForEach Reg64A()
Debug " !NOP QWORD [Rip+16]"
Debug " !NOP QWORD [Rip]"
Debug " !NOP QWORD [Rip]"
Debug " !RDSEED "+Reg64A()
Debug " !NOP QWORD [Rip-36]"
Debug " BLSR_"+Reg64A()+"_x64"
Next
BeforeProcedureRegisters_2nd
ForEach Reg64B()
Debug " !NOP QWORD [Rip+16]"
Debug " !NOP QWORD [Rip]"
Debug " !NOP QWORD [Rip]"
Debug " !RDSEED "+Reg64B()
Debug " !NOP QWORD [Rip-36]"
Debug " BLSR_"+Reg64B()+"_x64"
Next
BeforeProcedureRegisters_3rd
EndMacro
Macro BeforeProcedureRegisters_CRC32_BLSR
BeforeProcedureRegisters_1st
ForEach Reg64A()
Debug " !NOP QWORD [Rip+16]"
Debug " !NOP QWORD [Rip]"
Debug " !NOP QWORD [Rip]"
Debug " !CRC32 "+Reg64A()+", QWORD [Rip]"
Debug " !NOP QWORD [Rip-36]"
Debug " BLSR_"+Reg64A()+"_x64"
Next
BeforeProcedureRegisters_2nd
ForEach Reg64B()
Debug " !NOP QWORD [Rip+16]"
Debug " !NOP QWORD [Rip]"
Debug " !NOP QWORD [Rip]"
Debug " !CRC32 "+Reg64B()+", QWORD [Rip]"
Debug " !NOP QWORD [Rip-36]"
Debug " BLSR_"+Reg64B()+"_x64"
Next
BeforeProcedureRegisters_3rd
EndMacro
Macro BeforeProcedureRegisters_MOVBE_BLSR
BeforeProcedureRegisters_1st
ForEach Reg64A()
Debug " !NOP QWORD [Rip+16]"
Debug " !NOP QWORD [Rip]"
Debug " !NOP QWORD [Rip]"
Debug " !MOVBE "+Reg64A()+", QWORD [Rip]"
Debug " !NOP QWORD [Rip-36]"
Debug " BLSR_"+Reg64A()+"_x64"
Next
BeforeProcedureRegisters_2nd
ForEach Reg64B()
Debug " !NOP QWORD [Rip+16]"
Debug " !NOP QWORD [Rip]"
Debug " !NOP QWORD [Rip]"
Debug " !MOVBE "+Reg64B()+", QWORD [Rip]"
Debug " !NOP QWORD [Rip-36]"
Debug " BLSR_"+Reg64B()+"_x64"
Next
BeforeProcedureRegisters_3rd
EndMacro
Macro BeforeProcedureRegisters_RDSEED_SHR
BeforeProcedureRegisters_1st
ForEach Reg64A()
Debug " !NOP QWORD [Rip+16]"
Debug " !NOP QWORD [Rip]"
Debug " !NOP QWORD [Rip]"
Debug " !RDSEED "+Reg64A()
Debug " !NOP QWORD [Rip-36]"
Debug " SHR_"+Reg64A()+"_x64"
Next
BeforeProcedureRegisters_2nd
ForEach Reg64B()
Debug " !NOP QWORD [Rip+16]"
Debug " !NOP QWORD [Rip]"
Debug " !NOP QWORD [Rip]"
Debug " !RDSEED "+Reg64B()
Debug " !NOP QWORD [Rip-36]"
Debug " SHR_"+Reg64B()+"_x64"
Next
BeforeProcedureRegisters_3rd
EndMacro
Macro BeforeProcedureRegisters_NOP_EAX_BLSR
For Loop=1 To 32
Debug " !BLSR Eax, Eax"
Next
Debug " !BZHI Eax, Eax, Eax"
For Loop=1 To 64
Debug " !NOP QWORD [Rip]"
Debug " !NOP QWORD [Rip]"
Debug " !NOP ax"
Debug " !NOP ax"
Next
For Loop=1 To 64
Debug " !NOP QWORD [Rip]"
Debug " !NOP QWORD [Rip]"
Debug " !NOP Eax"
Debug " !NOP Eax"
Next
For Loop=1 To 32
Debug " !BLSR Eax, Eax"
Next
Debug " !BZHI Eax, Eax, Eax"
EndMacro
Macro BeforeProcedureRegisters_NOP_ESP_BLSR
Debug " ALL_MMX_CLEAR_SHIFTWORD_INC_CL"
SIMPLE_MOVE_REGISTERS_Up_and_Down
; RandomizeList(Reg64()) : RandomizeList(Reg64A()) : RandomizeList(Reg64B())
; ForEach Reg64A() : Debug " MOV_"+Reg64A()+"_Up_Down" : Next
Debug "!MOVQ mm5, Rsp"
Debug "!MOVQ mm5, mm5"
For Loop=1 To 32
Debug " !BLSR Esp, Esp"
Next
Debug " !BZHI Esp, Esp, Esp"
For Loop=1 To 64
Debug " !NOP QWORD [Rip]"
Debug " !NOP QWORD [Rip]"
Debug " !NOP sp"
Debug " !NOP sp"
Next
Debug " !NOP QWORD [Rip]"
Debug " !NOP QWORD [Rip]"
Debug " !XCHG bl, bh"
Debug " !XCHG bh, bl"
Debug " !XCHG cl, ch"
Debug " !XCHG ch, cl"
Debug " !XCHG al, ah"
Debug " !XCHG ah, al"
Debug " !XCHG dl, dh"
Debug " !XCHG dh, dl"
Debug " !NOP QWORD [Rip]"
Debug " !NOP QWORD [Rip]"
Debug " !XCHG spl, spl"
Debug " !MOVQ mm1, mm5"
Debug " !MOVQ mm2, mm1"
Debug " !MOVQ mm3, mm2"
Debug " !MOVQ mm4, mm3"
Debug " !MOVQ mm6, mm4"
Debug " !MOVQ mm7, mm6"
Debug " !NOP QWORD [Rip]"
Debug " !NOP QWORD [Rip]"
Debug " !XCHG al, ah"
Debug " !XCHG ah, al"
Debug " !XCHG dl, dh"
Debug " !XCHG dh, dl"
Debug " !XCHG bl, bh"
Debug " !XCHG bh, bl"
Debug " !XCHG cl, ch"
Debug " !XCHG ch, cl"
For Loop=1 To 64
Debug " !NOP QWORD [Rip]"
Debug " !NOP QWORD [Rip]"
Debug " !NOP Esp"
Debug " !NOP Esp"
Next
For Loop=1 To 32
Debug " !BLSR Esp, Esp"
Next
Debug " !BZHI Esp, Esp, Esp"
SIMPLE_MOVE_REGISTERS_Up_and_Down
Debug " !MOVQ Rsp, mm7"
Debug " !EMMS"
EndMacro
Macro FXCACHE
For Loop=0 To 504 Step 8
Debug " !NOP QWORD [R8"+ReplaceString("+"+Str(Loop), "+-", "-")+"]"
Next
EndMacro
Macro FXSAVE
; Debug " !MOV R8, QWORD [p_FXSAVE]"
Debug " !NOP QWORD [Rip]"
Debug " !NOP QWORD [Rip]"
Debug " !FXSAVE64 [R8]"
EndMacro
Macro FXRSTOR
; Debug " !MOV R8, QWORD [p_FXSAVE] "
Debug " !NOP QWORD [Rip]"
Debug " !NOP QWORD [Rip]"
Debug " !FXRSTOR64 [R8]"
EndMacro
Macro FX_WORD_REVERSE
For Loop=0 To 510 Step 2
Debug " !NOT WORD [R8"+ReplaceString("+"+Str(Loop), "+-", "-")+"]"
Debug " !FNOP" ; ## Don't remove this lines ##
Debug " !FNOP" ; ## Don't remove this lines ##
Next
For Loop=0 To 510 Step 2
Debug " !NOP WORD [R8"+ReplaceString("+"+Str(Loop), "+-", "-")+"]"
Debug " !FNOP" ; ## Don't remove this lines ##
Debug " !FNOP" ; ## Don't remove this lines ##
Next
EndMacro
Macro FX_DWORD_REVERSE
For Loop=0 To 508 Step 4
Debug " !NOT DWORD [R8"+ReplaceString("+"+Str(Loop), "+-", "-")+"]"
Debug " !FNOP" ; ## Don't remove this lines ##
Debug " !FNOP" ; ## Don't remove this lines ##
Next
For Loop=0 To 508 Step 4
Debug " !NOP DWORD [R8"+ReplaceString("+"+Str(Loop), "+-", "-")+"]"
Debug " !FNOP" ; ## Don't remove this lines ##
Debug " !FNOP" ; ## Don't remove this lines ##
Next
EndMacro
Macro FX_QWORD_REVERSE
For Loop=0 To 504 Step 8
Debug " !NOT QWORD [R8"+ReplaceString("+"+Str(Loop), "+-", "-")+"]"
Debug " !FNOP" ; ## Don't remove this lines ##
Debug " !FNOP" ; ## Don't remove this lines ##
Next
For Loop=0 To 504 Step 8
Debug " !NOP QWORD [R8"+ReplaceString("+"+Str(Loop), "+-", "-")+"]"
Debug " !FNOP" ; ## Don't remove this lines ##
Debug " !FNOP" ; ## Don't remove this lines ##
Next
EndMacro
Macro FXCLEAR_ALL
Debug " ALL_MMX_CLEAR_SHIFTWORD_INC_CL"
; Debug " !MOV R8, QWORD [p_FXSAVE2]"
For Loop=-512 To -8 Step 8
Debug " !MOVNTQ QWORD [R8"+ReplaceString("+"+Str(Loop), "+-", "-")+"], mm5"
Next
For Loop=0 To 504 Step 8
Debug " !MOVNTQ QWORD [R8"+ReplaceString("+"+Str(Loop), "+-", "-")+"], mm5"
Next
For Loop=0 To 504 Step 8
Debug " !NOP QWORD [R8"+ReplaceString("+"+Str(Loop), "+-", "-")+"]"
Next
For Loop=512 To 1023 Step 8
Debug " !MOVNTQ QWORD [R8"+ReplaceString("+"+Str(Loop), "+-", "-")+"], mm5"
Next
Debug " !EMMS"
EndMacro
Macro FXCLEAR_512
Debug " ALL_MMX_CLEAR_SHIFTWORD_INC_CL"
; Debug " !MOV R8, QWORD [p_FXSAVE2]"
For Loop=0 To 504 Step 8
Debug " !MOVNTQ QWORD [R8"+ReplaceString("+"+Str(Loop), "+-", "-")+"], mm5"
Next
For Loop=0 To 504 Step 8
Debug " !NOP QWORD [R8"+ReplaceString("+"+Str(Loop), "+-", "-")+"]"
Next
Debug " !EMMS"
EndMacro
Debug " Set_CL64"
Debug " !NOP QWORD [Rip+16]"
Debug " !NOP QWORD [Rip]"
Debug " !NOP QWORD [Rip]"
Debug " !CALL QWORD Sleep"
Debug " !NOP QWORD [Rip-32]"
Debug " !NOP QWORD [Rip]"
Debug " !NOP QWORD [Rip]"
Debug " Global *FXSAVE, *FXSAVE2"
Debug " BLSR_Rcx_x64"
Debug " BLSR_Rdx_x64"
Debug " BLSR_R8_x64"
Debug " !INC R8b"
Debug " !INC R8b"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !MOV R8b, R8b"
Debug " !MOV R8w, R8w"
Debug " !MOV R8, R8"
Debug " !SHL R8, cl" ; 16,384
Debug " !XCHG Rcx, R8"
Debug " !INC dl"
Debug " !MOVZX Rdx, dl"
Debug " !CALL PB_AllocateMemory2"
Debug " BLSR_Rcx_x64"
Debug " BLSR_R8_x64"
Debug " !INC R8b"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !SHL R8, cl" ; 8,192
Debug " !MOV R8b, R8b"
Debug " !MOV R8w, R8w"
Debug " !MOV R8, R8"
Debug " !MOV al, al"
Debug " !MOV ah, ah"
Debug " !MOV ax, ax"
Debug " !MOV Rax, Rax"
Debug " !ADD Rax, R8"
Debug " !MOVNTI QWORD [p_FXSAVE], Rax"
Debug " !NOP QWORD [p_FXSAVE]"
; "*FXSAVE = AllocateMemory(16384,1) + 8192"
Debug " ALL_MMX_CLEAR_SHIFTWORD_INC_CL"
Debug " !MOV R8, QWORD [p_FXSAVE]"
FXCLEAR_ALL
FX_WORD_REVERSE
FXCLEAR_ALL
FX_DWORD_REVERSE
FXCLEAR_ALL
FX_QWORD_REVERSE
FXCLEAR_ALL
Debug " BLSR_Rcx_x64"
Debug " BLSR_Rdx_x64"
Debug " BLSR_R8_x64"
Debug " !INC R8b"
Debug " !INC R8b"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !MOV R8b, R8b"
Debug " !MOV R8w, R8w"
Debug " !MOV R8, R8"
Debug " !SHL R8, cl" ; 16,384
Debug " !XCHG Rcx, R8"
Debug " !INC dl"
Debug " !MOVZX Rdx, dl"
Debug " !CALL PB_AllocateMemory2"
Debug " BLSR_Rcx_x64"
Debug " BLSR_R8_x64"
Debug " !INC R8b"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !INC cl"
Debug " !SHL R8, cl" ; 8,192
Debug " !MOV R8b, R8b"
Debug " !MOV R8w, R8w"
Debug " !MOV R8, R8"
Debug " !MOV al, al"
Debug " !MOV ah, ah"
Debug " !MOV ax, ax"
Debug " !MOV Rax, Rax"
Debug " !ADD Rax, R8"
Debug " !MOVNTI QWORD [p_FXSAVE2], Rax"
Debug " !NOP QWORD [p_FXSAVE2]"
; "*FXSAVE = AllocateMemory(16384,1) + 8192"
Debug " ALL_MMX_CLEAR_SHIFTWORD_INC_CL"
Debug " !MOV R8, QWORD [p_FXSAVE2]"
FXCLEAR_ALL
FX_WORD_REVERSE
FXCLEAR_ALL
FX_DWORD_REVERSE
FXCLEAR_ALL
FX_QWORD_REVERSE
FXCLEAR_ALL
;- Start
Debug ";- PureBasicStart"
BeforeProcedureRegisters_RDSEED_SHR
Debug "If OpenConsole("+Chr(34)+"MajiorityLabyrinth 6 setup To General-purpose 64-bit registers."+Chr(34)+")"
Debug " Set_CL1"
Debug " !NOP QWORD [Rip+16]"
Debug " !NOP QWORD [Rip]"
Debug " !NOP QWORD [Rip]"
Debug " !CALL QWORD BlockInput"
Debug " !NOP QWORD [Rip-32]"
Debug " Set_CL64"
Debug " !NOP QWORD [Rip+16]"
Debug " !NOP QWORD [Rip]"
Debug " !NOP QWORD [Rip]"
Debug " !CALL QWORD Sleep"
Debug " !NOP QWORD [Rip-32]"
Debug " !NOP QWORD [Rip]"
Debug " !NOP QWORD [Rip]"
Debug " PrintN("+Chr(34)+"Copyright (c) 2020-2024 Hiroyuki Yokota (oryaaaaa) 444-3174"+Chr(34)+")"
Debug " PrintN("+Chr(34)+"-"+Chr(34)+")"
Debug " !NOP QWORD [Rip]"
Debug " !NOP QWORD [Rip]"
Debug " !StartStabilizer:"
Debug " !NOP QWORD [Rip]"
Debug " !NOP QWORD [Rip]"
Debug " PrintN("+Chr(34)+"Instruction CPU cache to TimeAPI ProfileAPI for multimedia timer."+Chr(34)+")"
Debug " PrintN("+Chr(34)+"Setup 1... NOP Reg32 BLSRx32 CPU reg. Expressions"+Chr(34)+")"
Debug " PrintN("+Chr(34)+"Setup 2... MOVBE BLSRx64 BZHI CPU reg. Stabilizer"+Chr(34)+")"
Debug " PrintN("+Chr(34)+"Setup 3... CRC32 BLSRx64 BZHI CPU reg. Stabilizer"+Chr(34)+")"
Debug " PrintN("+Chr(34)+"Setup 4... RDSEED BLSRx64 BZHI CPU reg. Stabilizer"+Chr(34)+")"
Debug " PrintN("+Chr(34)+"Setup 5... Logical to Physical CPU reg. Balancer"+Chr(34)+")"
Debug " PrintN("+Chr(34)+"[Loop 29 times] ... Setup + FXSAVE64 sleep_(sine wave) ...[End] FXRSTOR64"+Chr(34)+")"
SIMPLE_MOVE_REGISTERS_Up_and_Down
Global SineWave.i, SineBits.i, SineAngels.i, CountBits.i, CountChk.i
; totalWave = 19,356 ms
For SineAngels=1 To 178 Step 6
CountChk = 0
Debug " ; "+Str(SineAngels)+" Setup"
BeforeProcedureRegisters_NOP_EAX_BLSR
BeforeProcedureRegisters_NOP_ESP_BLSR
BeforeProcedureRegisters_MOVBE_BLSR
BeforeProcedureRegisters_CRC32_BLSR
BeforeProcedureRegisters_RDSEED_BLSR
SIMPLE_MOVE_REGISTERS_Up_and_Down
Debug " !MOV R8, QWORD [p_FXSAVE] "
FXCACHE
FXSAVE
FXCACHE
Debug " BLSR_Rcx_x64"
Debug " BLSR_R8_x64"
SineWave = Abs(Round(Sin(Radian(SineAngels))*1000, #PB_Round_Nearest))
!MOV Rax, [v_SineWave]
!MOV R8, Rax
!MOV [v_SineBits], R8
Debug "; "+Str(SineWave)
totalWave.i + SineWave
Debug " !INC cl"
For CountBits=63 To 1 Step -1
If SineBits&(2<<CountBits)
CountChk+1
Debug " !INC R8b"
Debug " !SHL R8, cl"
ElseIf CountChk
Debug " !SHL R8, cl"
EndIf
Next
If SineBits&2
Debug " !INC R8b"
Debug " !SHL R8, cl"
Else
Debug " !SHL R8, cl"
EndIf
If SineBits&1
Debug " !INC R8b"
EndIf
Debug " !MOV cl, R8b"
Debug " !MOV cx, R8w"
Debug " !MOV Rcx, R8"
Debug " !NOP QWORD [Rip+16]"
Debug " !NOP QWORD [Rip]"
Debug " !NOP QWORD [Rip]"
Debug " !CALL QWORD Sleep"
Debug " !NOP QWORD [Rip-32]"
Debug " !NOP QWORD [Rip]"
Debug " !NOP QWORD [Rip]"
!RDRAND Rcx
!ROL Rcx, 1
!ROL Rcx, 1
!CALL QWORD PB_RandomSeed
RandomizeList(Reg64()) : RandomizeList(Reg64A()) : RandomizeList(Reg64B())
Next
SortList(Reg64(), #PB_Sort_Ascending)
SortList(Reg64A(), #PB_Sort_Ascending)
SortList(Reg64B(), #PB_Sort_Ascending)
BeforeProcedureRegisters_NOP_EAX_BLSR
BeforeProcedureRegisters_NOP_ESP_BLSR
BeforeProcedureRegisters_MOVBE_BLSR
BeforeProcedureRegisters_CRC32_BLSR
BeforeProcedureRegisters_RDSEED_BLSR
SIMPLE_MOVE_REGISTERS_Up_and_Down
Debug " !MOV R8, QWORD [p_FXSAVE]"
FXCACHE
FXRSTOR
Debug " Swap *FXSAVE2, *FXSAVE"
Debug " ALL_MMX_CLEAR_SHIFTWORD_INC_CL"
Debug " !MOV R8, QWORD [p_FXSAVE]"
FXCLEAR_ALL
FX_WORD_REVERSE
FXCLEAR_ALL
FX_DWORD_REVERSE
FXCLEAR_ALL
FX_QWORD_REVERSE
FXCLEAR_ALL
FXCACHE
Debug " PrintN("+Chr(34)+"Finished"+Chr(34)+")"
SIMPLE_MOVE_REGISTERS_Up_and_Down
Debug " !NOP QWORD [Rip]"
Debug " !NOP QWORD [Rip]"
Debug " !JMP QWORD StartStabilizer"
Debug " CloseConsole()"
Debug "EndIf"
Debug "BlockInput_(0)"
Debug "Sleep_(0)"
Debug "AllocateMemory(0,0)"
Debug "IncludeFile "+Chr(34)+"CPUcache_MacroSentence_MC222.pbi"+Chr(34)
Debug "End"
CallDebugger
End
Code: Select all
Macro CPUcache_timeGetTime_Sentence
timeBeginPeriod_(0)
timeEndPeriod_(0)
timeGetTime_()
timeGetDevCaps_(0,0)
timeGetSystemTime_(0,0)
QueryPerformanceCounter_(0)
QueryPerformanceFrequency_(0)
EndMacro
CPUcache_timeGetTime_Sentence
Macro CPUcache_SmallSize_Sentence
FlushFileBuffers_(0)
GetFileSize_(0,0)
GetFileTime_(0,0,0,0)
GetFileType_(0)
ReadFile_(0,0,0,0,0)
ReadFileEx_(0,0,0,0,0)
SetFilePointer_(0,0,0,0)
SetFileTime_(0,0,0,0)
WriteFile_(0,0,0,0,0)
WriteFileEx_(0,0,0,0,0)
DisableThreadLibraryCalls_(0)
FreeLibrary_(0)
FreeLibraryAndExitThread_(0,0)
GetProcAddress_(0,0)
LoadResource_(0,0)
LockResource_(0)
FreeResource_(0)
CreateRemoteThread_(0,0,0,0,0,0,0)
CreateThread_(0,0,0,0,0,0)
ExitProcess_(0)
ExitThread_(0)
FlushInstructionCache_(0,0,0)
GetCurrentProcess_()
GetCurrentProcessId_()
GetCurrentThread_()
GetCurrentThreadId_()
GetExitCodeProcess_(0,0)
GetExitCodeThread_(0,0)
GetPriorityClass_(0)
GetProcessPriorityBoost_(0,0)
GetProcessShutdownParameters_(0,0)
GetProcessTimes_(0,0,0,0,0)
GetProcessVersion_(0)
GetThreadContext_(0,0)
GetThreadPriority_(0)
GetThreadPriorityBoost_(0,0)
GetThreadTimes_(0,0,0,0,0)
IsProcessorFeaturePresent_(0)
OpenProcess_(0,0,0)
OpenProcessToken_(0,0,0)
OpenThreadToken_(0,0,0,0)
ResumeThread_(0)
SetPriorityClass_(0,0)
SetProcessPriorityBoost_(0,0)
SetProcessShutdownParameters_(0,0)
SetThreadContext_(0,0)
SetThreadIdealProcessor_(0,0)
SetThreadPriority_(0,0)
SetThreadPriorityBoost_(0,0)
SetThreadToken_(0,0)
SuspendThread_(0)
SwitchToThread_()
TerminateProcess_(0,0)
TerminateThread_(0,0)
EndMacro
CPUcache_SmallSize_Sentence
Macro CPUcache_MC220_Sentence
FreeLibraryAndExitThread_(0, 0)
GetLastError_()
GetModuleHandle_(0)
FreeLibrary_(0)
GetProcAddress_(0, 0)
LoadLibrary_(0)
LoadLibraryEx_(0, 0, 0)
GetSysColor_(0)
WindowFromPoint_(0)
IsWindow_(0)
IsWindowEnabled_(0)
IsWindowUnicode_(0)
IsWindowVisible_(0)
GetWindowThreadProcessId_(0, 0)
GetProp_(0, 0)
GetParent_(0)
GetMessageExtraInfo_()
GetMessagePos_()
GetMessageTime_()
GetMessage_(0, 0, 0, 0)
EndMacro
CPUcache_MC220_Sentence
Macro CPUcache_COLOR_Sentence
AnimatePalette_(0,0,0,0)
CreateHalftonePalette_(0)
CreatePalette_(0)
GetColorAdjustment_(0,0)
GetEnhMetaFilePaletteEntries_(0,0,0)
GetNearestPaletteIndex_(0,0)
GetPaletteEntries_(0,0,0,0)
GetSystemPaletteEntries_(0,0,0,0)
GetSystemPaletteUse_(0)
RealizePalette_(0)
ResizePalette_(0,0)
SelectPalette_(0,0,0)
SetColorAdjustment_(0,0)
SetPaletteEntries_(0,0,0,0)
SetSystemPaletteUse_(0,0)
wglGetLayerPaletteEntries_(0,0,0,0,0)
wglRealizeLayerPalette_(0,0,0)
wglSetLayerPaletteEntries_(0,0,0,0,0)
UnrealizeObject_(0)
UpdateColors_(0)
EndMacro
CPUcache_COLOR_Sentence
2. output "clipboard text"
3. paste New tab
4. cpu optimize MMX and CONSOLE set
5. remove message
6. run