Fixed MOVSX,MOVZX, and passed initial paging test

This commit is contained in:
Jeff Parsons 2015-05-07 16:00:38 -07:00 • committed by jeffpar
commit f3646d206f
10 changed files with 403 additions and 128 deletions

17
tests/pc/inc/misc.inc Normal file
View 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