Fixed MOVSX,MOVZX, and passed initial paging test
This commit is contained in:
parent
df838b8f86
commit
f3646d206f
10 changed files with 403 additions and 128 deletions
17
tests/pc/inc/misc.inc
Normal file
17
tests/pc/inc/misc.inc
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
CR equ 0x0d
|
||||
LF equ 0x0a
|
||||
|
||||
;
|
||||
; The "set" macro initializes a register to the specified value (eg, "set eax,0")
|
||||
;
|
||||
%macro set 2
|
||||
%ifnum %2
|
||||
%if %2 = 0
|
||||
xor %1,%1
|
||||
%else
|
||||
mov %1,%2
|
||||
%endif
|
||||
%else
|
||||
mov %1,%2
|
||||
%endif
|
||||
%endmacro
|
||||
Loading…
Reference in a new issue