Skip to content

Commit 8e7821c

Browse files
committed
Fix
1 parent a13ed6b commit 8e7821c

File tree

8 files changed

+137
-6
lines changed

8 files changed

+137
-6
lines changed

asm/asm.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,11 @@ extern "C" void op_rcl(RECDATA *pRecData) XASM("op_rcl");
4848
extern "C" void op_rcr(RECDATA *pRecData) XASM("op_rcr");
4949
extern "C" void op_cpuid(RECDATA *pRecData) XASM("op_cpuid");
5050
extern "C" void op_bswap(RECDATA *pRecData) XASM("op_bswap");
51+
extern "C" void op_bt(RECDATA *pRecData) XASM("op_bt");
5152
extern "C" void op_bsf(RECDATA *pRecData) XASM("op_bsf");
53+
extern "C" void op_bsr(RECDATA *pRecData) XASM("op_bsr");
54+
extern "C" void op_bts(RECDATA *pRecData) XASM("op_bts");
55+
extern "C" void op_btr(RECDATA *pRecData) XASM("op_btr");
56+
extern "C" void op_btc(RECDATA *pRecData) XASM("op_btc");
57+
5258
#endif // ASM_H

asm/unix64_gcc.s

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,3 +256,45 @@ op_bsf:
256256
__ENTER
257257
bsf rax,rcx
258258
__LEAVE
259+
#################################
260+
# BSR
261+
#################################
262+
.globl op_bsr
263+
op_bsr:
264+
__ENTER
265+
bsr rax,rcx
266+
__LEAVE
267+
#################################
268+
# BT
269+
#################################
270+
.globl op_bt
271+
op_bt:
272+
__ENTER
273+
bt rax,rcx
274+
__LEAVE
275+
#################################
276+
# BTS
277+
#################################
278+
.globl op_bts
279+
op_bts:
280+
__ENTER
281+
bts rax,rcx
282+
__LEAVE
283+
#################################
284+
# BTR
285+
#################################
286+
.globl op_btr
287+
op_btr:
288+
__ENTER
289+
btr rax,rcx
290+
__LEAVE
291+
#################################
292+
# BTC
293+
#################################
294+
.globl op_btc
295+
op_btc:
296+
__ENTER
297+
btc rax,rcx
298+
__LEAVE
299+
;################################
300+
;################################

asm/win32_msvc.asm

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,4 +258,46 @@ op_bsf PROC
258258
bsf eax,ecx
259259
__LEAVE
260260
op_bsf ENDP
261+
;################################
262+
; BSR
263+
;################################
264+
op_bsr PROC
265+
__ENTER
266+
bsr eax,ecx
267+
__LEAVE
268+
op_bsr ENDP
269+
;################################
270+
; BT
271+
;################################
272+
op_bt PROC
273+
__ENTER
274+
bt eax,ecx
275+
__LEAVE
276+
op_bt ENDP
277+
;################################
278+
; BTS
279+
;################################
280+
op_bts PROC
281+
__ENTER
282+
bts eax,ecx
283+
__LEAVE
284+
op_bts ENDP
285+
;################################
286+
; BTR
287+
;################################
288+
op_btr PROC
289+
__ENTER
290+
btr eax,ecx
291+
__LEAVE
292+
op_btr ENDP
293+
;################################
294+
; BTC
295+
;################################
296+
op_btc PROC
297+
__ENTER
298+
btc eax,ecx
299+
__LEAVE
300+
op_btc ENDP
301+
;################################
302+
;################################
261303
END

asm/win64_msvc.asm

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,48 @@ op_bsf PROC
261261
bsf rax,rcx
262262
__LEAVE
263263
op_bsf ENDP
264-
264+
;################################
265+
; BSR
266+
;################################
267+
op_bsr PROC
268+
__ENTER
269+
bsr rax,rcx
270+
__LEAVE
271+
op_bsr ENDP
272+
;################################
273+
; BT
274+
;################################
275+
op_bt PROC
276+
__ENTER
277+
bt rax,rcx
278+
__LEAVE
279+
op_bt ENDP
280+
;################################
281+
; BTS
282+
;################################
283+
op_bts PROC
284+
__ENTER
285+
bts rax,rcx
286+
__LEAVE
287+
op_bts ENDP
288+
;################################
289+
; BTR
290+
;################################
291+
op_btr PROC
292+
__ENTER
293+
btr rax,rcx
294+
__LEAVE
295+
op_btr ENDP
296+
;################################
297+
; BTC
298+
;################################
299+
op_btc PROC
300+
__ENTER
301+
btc rax,rcx
302+
__LEAVE
303+
op_btc ENDP
304+
;################################
305+
;################################
265306
_TEXT ENDS
266307

267308
END

build_win32.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ cd ..
2929

3030
cd winloader_source
3131

32-
cl.exe /c winloader.cpp /D_USING_V110_SDK71_
32+
cl.exe /c winloader.cpp /D_USING_V110_SDK71_ /GS- /Oi-
3333
Rc.exe /v %RES_FILE%.rc
34-
link.exe winloader.obj %RES_FILE%.res user32.lib kernel32.lib shell32.lib /SUBSYSTEM:WINDOWS,5.01 /ENTRY:entry /OUT:%SOURCE_PATH%\build\loader\%GUIEXE%
34+
link.exe winloader.obj %RES_FILE%.res user32.lib kernel32.lib shell32.lib /NODEFAULTLIB /SAFESEH:NO /SUBSYSTEM:WINDOWS,5.01 /ENTRY:entry /OUT:%SOURCE_PATH%\build\loader\%GUIEXE%
3535
del /s winloader.obj
3636
del /s %RES_FILE%.res
3737

build_win64.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ cd ..
2929

3030
cd winloader_source
3131

32-
cl.exe /c winloader.cpp
32+
cl.exe /c winloader.cpp /D_USING_V110_SDK71_ /GS- /Oi-
3333
Rc.exe /v %RES_FILE%.rc
34-
link.exe winloader.obj %RES_FILE%.res user32.lib kernel32.lib shell32.lib /SUBSYSTEM:WINDOWS /ENTRY:entry /OUT:%SOURCE_PATH%\build\loader\%GUIEXE%
34+
link.exe winloader.obj %RES_FILE%.res user32.lib kernel32.lib shell32.lib /NODEFAULTLIB /SAFESEH:NO /SUBSYSTEM:WINDOWS,5.01 /ENTRY:entry /OUT:%SOURCE_PATH%\build\loader\%GUIEXE%
3535
del /s winloader.obj
3636
del /s %RES_FILE%.res
3737

gui_source/guimainwindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ GuiMainWindow::GuiMainWindow(QWidget *parent) :
3030
setWindowTitle(QString("%1 v%2").arg(X_APPLICATIONNAME).arg(X_APPLICATIONVERSION));
3131

3232
QFont font=ui->lineEditOpcode->font();
33-
font.setPointSizeF(font.pointSizeF()*2);
33+
font.setPointSizeF(font.pointSizeF()*1.5);
3434
font.setBold(true);
3535
ui->lineEditOpcode->setFont(font);
3636

screenshot_gui.jpg

5.29 KB
Loading

0 commit comments

Comments
 (0)