[FAST486]

Create a macro SWAP (swaps two variables) to shorten the code.
Implement the BSWAP instruction.


svn path=/branches/ntvdm/; revision=60717
This commit is contained in:
Aleksandar Andrejevic 2013-10-20 00:55:31 +00:00
parent a93095e678
commit 67b093f38c
4 changed files with 33 additions and 26 deletions

View file

@ -54,6 +54,7 @@
{\
x = !x;\
}
#define SWAP(x, y) { (x) ^= (y); (y) ^= (x); (x) ^= (y); }
#define PAGE_ALIGN(x) ((x) & 0xFFFFF000)
#define PAGE_OFFSET(x) ((x) & 0x00000FFF)