Mercurial > repos > blastem
comparison z80inst.c @ 247:682e505f5757
Implement rotation and bit set/reset instructions (untested).
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 28 Apr 2013 22:41:30 -0700 |
parents | d9bf8e61c33c |
children | ce7ce2b9c2df |
comparison
equal
deleted
inserted
replaced
246:ed548c77b598 | 247:682e505f5757 |
---|---|
418 NOP2, | 418 NOP2, |
419 NOP2 | 419 NOP2 |
420 }; | 420 }; |
421 | 421 |
422 #define SHIFT_BLOCK(op) \ | 422 #define SHIFT_BLOCK(op) \ |
423 {op, Z80_B, Z80_UNUSED, Z80_UNUSED, 0},\ | 423 {op, Z80_B, Z80_UNUSED, Z80_UNUSED, 1},\ |
424 {op, Z80_C, Z80_UNUSED, Z80_UNUSED, 0},\ | 424 {op, Z80_C, Z80_UNUSED, Z80_UNUSED, 1},\ |
425 {op, Z80_D, Z80_UNUSED, Z80_UNUSED, 0},\ | 425 {op, Z80_D, Z80_UNUSED, Z80_UNUSED, 1},\ |
426 {op, Z80_E, Z80_UNUSED, Z80_UNUSED, 0},\ | 426 {op, Z80_E, Z80_UNUSED, Z80_UNUSED, 1},\ |
427 {op, Z80_H, Z80_UNUSED, Z80_UNUSED, 0},\ | 427 {op, Z80_H, Z80_UNUSED, Z80_UNUSED, 1},\ |
428 {op, Z80_L, Z80_UNUSED, Z80_UNUSED, 0},\ | 428 {op, Z80_L, Z80_UNUSED, Z80_UNUSED, 1},\ |
429 {op, Z80_UNUSED, Z80_REG_INDIRECT, Z80_HL, 0},\ | 429 {op, Z80_UNUSED, Z80_REG_INDIRECT, Z80_HL, 1},\ |
430 {op, Z80_A, Z80_UNUSED, Z80_UNUSED, 0} | 430 {op, Z80_A, Z80_UNUSED, Z80_UNUSED, 1} |
431 | 431 |
432 #define BIT_BLOCK(op, bit) \ | 432 #define BIT_BLOCK(op, bit) \ |
433 {op, Z80_USE_IMMED, Z80_REG, Z80_B, bit},\ | 433 {op, Z80_USE_IMMED, Z80_REG, Z80_B, bit},\ |
434 {op, Z80_USE_IMMED, Z80_REG, Z80_C, bit},\ | 434 {op, Z80_USE_IMMED, Z80_REG, Z80_C, bit},\ |
435 {op, Z80_USE_IMMED, Z80_REG, Z80_D, bit},\ | 435 {op, Z80_USE_IMMED, Z80_REG, Z80_D, bit},\ |