946be8a420ed22d5ef07ea741f4c804ab7eb8324
[Chiptunes-pms150c.git] / fakeasm.h
1 #define MOV(dst, src) dst = src;
2 #define SL(dst) dst <<= 1;
3 #define SR(dst) dst >>= 1;
4 #define SWAP(dst) dst = (dst<<4 | dst>>4); //XXX: only for ACC!
5 #define AND(dst, src) dst &= src; //xxx: overloaded for acc/mem/imm
6 #define OR(dst, src) dst |= src;
7 #define CLEAR(dst) dst = 0;
8 #define ADD(dst, src) dst += src; //xxx: overloaded for acc/mem/imm
Imprint / Impressum