[Wisp-cvs] wisp/users/dig ia32.tran,1.4,1.5
Status: Alpha
Brought to you by:
digg
From: <di...@us...> - 2003-05-15 21:11:59
|
Update of /cvsroot/wisp/wisp/users/dig In directory sc8-pr-cvs1:/tmp/cvs-serv24187 Modified Files: ia32.tran Log Message: introduced the $o16, $o32, $a16, and $a32 prefix instructions Index: ia32.tran =================================================================== RCS file: /cvsroot/wisp/wisp/users/dig/ia32.tran,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- ia32.tran 22 Apr 2003 17:34:08 -0000 1.4 +++ ia32.tran 15 May 2003 21:11:56 -0000 1.5 @@ -6,12 +6,21 @@ \ \\\\ @(#) $Id$ +\ These are prefixes for 32-bit mode +:macro $o16 #x66 b, ; +:macro $o32 ; +:macro $a16 #x67 b, ; +:macro $a32 ; + \ registers :regs reg32 %eax %ecx %edx %ebx %esp %ebp %esi %edi ; :regs reg16 %ax %cx %dx %bx %sp %bp %si %di ; :regs reg8 %al %cl %dl %bl %ah %ch %dh %bh ; // lit :macro $int #xCD b, b, ; -// reg32 lit :macro $mov swap minor #o270 + b, t, ; -// lit :macro $push #x68 b, t, ; +// reg32 lit :macro $mov $o32 swap minor #o270 + b, t, ; // reg32 :macro $push minor #o120 + b, ; + +\ These instructions are not completely register width portable: + +// lit :macro $push #x68 b, t, ; |