summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/m6805/6805ops.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/m6805/6805ops.hxx')
-rw-r--r--src/devices/cpu/m6805/6805ops.hxx222
1 files changed, 111 insertions, 111 deletions
diff --git a/src/devices/cpu/m6805/6805ops.hxx b/src/devices/cpu/m6805/6805ops.hxx
index c6761982c96..93244876243 100644
--- a/src/devices/cpu/m6805/6805ops.hxx
+++ b/src/devices/cpu/m6805/6805ops.hxx
@@ -17,7 +17,7 @@ HNZC
#define OP_HANDLER(_name) void m6805_base_device::_name()
#define DERIVED_OP_HANDLER(_arch,_name) void _arch##_device::_name()
-#define OP_HANDLER_BIT(_name) void m6805_base_device::_name(UINT8 bit)
+#define OP_HANDLER_BIT(_name) void m6805_base_device::_name(uint8_t bit)
OP_HANDLER( illegal )
{
@@ -27,7 +27,7 @@ OP_HANDLER( illegal )
/* $00/$02/$04/$06/$08/$0A/$0C/$0E BRSET direct,relative ---- */
OP_HANDLER_BIT( brset )
{
- UINT8 t,r;
+ uint8_t t,r;
DIRBYTE(r);
IMMBYTE(t);
@@ -42,7 +42,7 @@ OP_HANDLER_BIT( brset )
/* $01/$03/$05/$07/$09/$0B/$0D/$0F BRCLR direct,relative ---- */
OP_HANDLER_BIT( brclr )
{
- UINT8 t,r;
+ uint8_t t,r;
DIRBYTE(r);
IMMBYTE(t);
@@ -57,7 +57,7 @@ OP_HANDLER_BIT( brclr )
/* $10/$12/$14/$16/$18/$1A/$1C/$1E BSET direct ---- */
OP_HANDLER_BIT( bset )
{
- UINT8 t,r;
+ uint8_t t,r;
DIRBYTE(t); r=t|bit;
WM(EAD,r);
}
@@ -65,7 +65,7 @@ OP_HANDLER_BIT( bset )
/* $11/$13/$15/$17/$19/$1B/$1D/$1F BCLR direct ---- */
OP_HANDLER_BIT( bclr)
{
- UINT8 t,r;
+ uint8_t t,r;
DIRBYTE(t); r=t&(~bit);
WM(EAD,r);
}
@@ -73,7 +73,7 @@ OP_HANDLER_BIT( bclr)
/* $20 BRA relative ---- */
OP_HANDLER( bra )
{
- UINT8 t;
+ uint8_t t;
IMMBYTE(t);
PC+=SIGNED(t);
}
@@ -181,8 +181,8 @@ DERIVED_OP_HANDLER( hd63705, bih )
/* $30 NEG direct -*** */
OP_HANDLER( neg_di )
{
- UINT8 t;
- UINT16 r;
+ uint8_t t;
+ uint16_t r;
DIRBYTE(t);
r=-t;
CLR_NZC;
@@ -197,7 +197,7 @@ OP_HANDLER( neg_di )
/* $33 COM direct -**1 */
OP_HANDLER( com_di )
{
- UINT8 t;
+ uint8_t t;
DIRBYTE(t);
t = ~t;
CLR_NZ;
@@ -209,7 +209,7 @@ OP_HANDLER( com_di )
/* $34 LSR direct -0** */
OP_HANDLER( lsr_di )
{
- UINT8 t;
+ uint8_t t;
DIRBYTE(t);
CLR_NZC;
CC |= (t&0x01);
@@ -223,7 +223,7 @@ OP_HANDLER( lsr_di )
/* $36 ROR direct -*** */
OP_HANDLER( ror_di )
{
- UINT8 t,r;
+ uint8_t t,r;
DIRBYTE(t);
r = (CC & 0x01) << 7;
CLR_NZC;
@@ -236,7 +236,7 @@ OP_HANDLER( ror_di )
/* $37 ASR direct ?*** */
OP_HANDLER( asr_di )
{
- UINT8 t;
+ uint8_t t;
DIRBYTE(t);
CLR_NZC; CC|=(t&0x01);
t>>=1; t|=((t&0x40)<<1);
@@ -247,8 +247,8 @@ OP_HANDLER( asr_di )
/* $38 LSL direct ?*** */
OP_HANDLER( lsl_di )
{
- UINT8 t;
- UINT16 r;
+ uint8_t t;
+ uint16_t r;
DIRBYTE(t);
r = t << 1;
CLR_NZC;
@@ -259,7 +259,7 @@ OP_HANDLER( lsl_di )
/* $39 ROL direct -*** */
OP_HANDLER( rol_di )
{
- UINT16 t,r;
+ uint16_t t,r;
DIRBYTE(t);
r = CC & 0x01;
r |= t << 1;
@@ -271,7 +271,7 @@ OP_HANDLER( rol_di )
/* $3a DEC direct -**- */
OP_HANDLER( dec_di )
{
- UINT8 t;
+ uint8_t t;
DIRBYTE(t);
--t;
CLR_NZ; SET_FLAGS8D(t);
@@ -283,7 +283,7 @@ OP_HANDLER( dec_di )
/* $3c INC direct -**- */
OP_HANDLER( inc_di )
{
- UINT8 t;
+ uint8_t t;
DIRBYTE(t);
++t;
CLR_NZ; SET_FLAGS8I(t);
@@ -293,7 +293,7 @@ OP_HANDLER( inc_di )
/* $3d TST direct -**- */
OP_HANDLER( tst_di )
{
- UINT8 t;
+ uint8_t t;
DIRBYTE(t);
CLR_NZ; SET_NZ8(t);
}
@@ -311,7 +311,7 @@ OP_HANDLER( clr_di )
/* $40 NEGA inherent ?*** */
OP_HANDLER( nega )
{
- UINT16 r;
+ uint16_t r;
r = -A;
CLR_NZC; SET_FLAGS8(0,A,r);
A = r;
@@ -344,7 +344,7 @@ OP_HANDLER( lsra )
/* $46 RORA inherent -*** */
OP_HANDLER( rora )
{
- UINT8 r;
+ uint8_t r;
r = (CC & 0x01) << 7;
CLR_NZC;
CC |= (A & 0x01);
@@ -365,7 +365,7 @@ OP_HANDLER( asra )
/* $48 LSLA inherent ?*** */
OP_HANDLER( lsla )
{
- UINT16 r;
+ uint16_t r;
r = A << 1;
CLR_NZC;
SET_FLAGS8(A,A,r);
@@ -375,7 +375,7 @@ OP_HANDLER( lsla )
/* $49 ROLA inherent -*** */
OP_HANDLER( rola )
{
- UINT16 t,r;
+ uint16_t t,r;
t = A;
r = CC & 0x01;
r |= t << 1;
@@ -422,7 +422,7 @@ OP_HANDLER( clra )
/* $50 NEGX inherent ?*** */
OP_HANDLER( negx )
{
- UINT16 r;
+ uint16_t r;
r = -X;
CLR_NZC;
SET_FLAGS8(0,X,r);
@@ -456,7 +456,7 @@ OP_HANDLER( lsrx )
/* $56 RORX inherent -*** */
OP_HANDLER( rorx )
{
- UINT8 r;
+ uint8_t r;
r = (CC & 0x01) << 7;
CLR_NZC;
CC |= (X & 0x01);
@@ -477,7 +477,7 @@ OP_HANDLER( asrx )
/* $58 ASLX inherent ?*** */
OP_HANDLER( aslx )
{
- UINT16 r;
+ uint16_t r;
r = X << 1;
CLR_NZC;
SET_FLAGS8(X,X,r);
@@ -487,7 +487,7 @@ OP_HANDLER( aslx )
/* $59 ROLX inherent -*** */
OP_HANDLER( rolx )
{
- UINT16 t,r;
+ uint16_t t,r;
t = X;
r = CC & 0x01;
r |= t<<1;
@@ -534,8 +534,8 @@ OP_HANDLER( clrx )
/* $60 NEG indexed, 1 byte offset -*** */
OP_HANDLER( neg_ix1 )
{
- UINT8 t;
- UINT16 r;
+ uint8_t t;
+ uint16_t r;
IDX1BYTE(t); r=-t;
CLR_NZC; SET_FLAGS8(0,t,r);
WM(EAD,r);
@@ -548,7 +548,7 @@ OP_HANDLER( neg_ix1 )
/* $63 COM indexed, 1 byte offset -**1 */
OP_HANDLER( com_ix1 )
{
- UINT8 t;
+ uint8_t t;
IDX1BYTE(t); t = ~t;
CLR_NZ; SET_NZ8(t); SEC;
WM(EAD,t);
@@ -557,7 +557,7 @@ OP_HANDLER( com_ix1 )
/* $64 LSR indexed, 1 byte offset -0** */
OP_HANDLER( lsr_ix1 )
{
- UINT8 t;
+ uint8_t t;
IDX1BYTE(t);
CLR_NZC;
CC |= (t & 0x01);
@@ -571,7 +571,7 @@ OP_HANDLER( lsr_ix1 )
/* $66 ROR indexed, 1 byte offset -*** */
OP_HANDLER( ror_ix1 )
{
- UINT8 t,r;
+ uint8_t t,r;
IDX1BYTE(t);
r = (CC & 0x01) << 7;
CLR_NZC;
@@ -584,7 +584,7 @@ OP_HANDLER( ror_ix1 )
/* $67 ASR indexed, 1 byte offset ?*** */
OP_HANDLER( asr_ix1 )
{
- UINT8 t;
+ uint8_t t;
IDX1BYTE(t);
CLR_NZC; CC|=(t&0x01);
t>>=1; t|=((t&0x40)<<1);
@@ -595,8 +595,8 @@ OP_HANDLER( asr_ix1 )
/* $68 LSL indexed, 1 byte offset ?*** */
OP_HANDLER( lsl_ix1 )
{
- UINT8 t;
- UINT16 r;
+ uint8_t t;
+ uint16_t r;
IDX1BYTE(t);
r = t << 1;
CLR_NZC;
@@ -607,7 +607,7 @@ OP_HANDLER( lsl_ix1 )
/* $69 ROL indexed, 1 byte offset -*** */
OP_HANDLER( rol_ix1 )
{
- UINT16 t,r;
+ uint16_t t,r;
IDX1BYTE(t);
r = CC & 0x01;
r |= t << 1;
@@ -619,7 +619,7 @@ OP_HANDLER( rol_ix1 )
/* $6a DEC indexed, 1 byte offset -**- */
OP_HANDLER( dec_ix1 )
{
- UINT8 t;
+ uint8_t t;
IDX1BYTE(t);
--t;
CLR_NZ; SET_FLAGS8D(t);
@@ -631,7 +631,7 @@ OP_HANDLER( dec_ix1 )
/* $6c INC indexed, 1 byte offset -**- */
OP_HANDLER( inc_ix1 )
{
- UINT8 t;
+ uint8_t t;
IDX1BYTE(t);
++t;
CLR_NZ; SET_FLAGS8I(t);
@@ -641,7 +641,7 @@ OP_HANDLER( inc_ix1 )
/* $6d TST indexed, 1 byte offset -**- */
OP_HANDLER( tst_ix1 )
{
- UINT8 t;
+ uint8_t t;
IDX1BYTE(t);
CLR_NZ; SET_NZ8(t);
}
@@ -659,8 +659,8 @@ OP_HANDLER( clr_ix1 )
/* $70 NEG indexed -*** */
OP_HANDLER( neg_ix )
{
- UINT8 t;
- UINT16 r;
+ uint8_t t;
+ uint16_t r;
IDXBYTE(t); r=-t;
CLR_NZC; SET_FLAGS8(0,t,r);
WM(EAD,r);
@@ -673,7 +673,7 @@ OP_HANDLER( neg_ix )
/* $73 COM indexed -**1 */
OP_HANDLER( com_ix )
{
- UINT8 t;
+ uint8_t t;
IDXBYTE(t); t = ~t;
CLR_NZ; SET_NZ8(t); SEC;
WM(EAD,t);
@@ -682,7 +682,7 @@ OP_HANDLER( com_ix )
/* $74 LSR indexed -0** */
OP_HANDLER( lsr_ix )
{
- UINT8 t;
+ uint8_t t;
IDXBYTE(t);
CLR_NZC;
CC |= (t & 0x01);
@@ -696,7 +696,7 @@ OP_HANDLER( lsr_ix )
/* $76 ROR indexed -*** */
OP_HANDLER( ror_ix )
{
- UINT8 t,r;
+ uint8_t t,r;
IDXBYTE(t);
r = (CC & 0x01) << 7;
CLR_NZC;
@@ -709,7 +709,7 @@ OP_HANDLER( ror_ix )
/* $77 ASR indexed ?*** */
OP_HANDLER( asr_ix )
{
- UINT8 t;
+ uint8_t t;
IDXBYTE(t);
CLR_NZC;
CC |= (t & 0x01);
@@ -721,8 +721,8 @@ OP_HANDLER( asr_ix )
/* $78 LSL indexed ?*** */
OP_HANDLER( lsl_ix )
{
- UINT8 t;
- UINT16 r;
+ uint8_t t;
+ uint16_t r;
IDXBYTE(t); r=t<<1;
CLR_NZC; SET_FLAGS8(t,t,r);
WM(EAD,r);
@@ -731,7 +731,7 @@ OP_HANDLER( lsl_ix )
/* $79 ROL indexed -*** */
OP_HANDLER( rol_ix )
{
- UINT16 t,r;
+ uint16_t t,r;
IDXBYTE(t);
r = CC & 0x01;
r |= t << 1;
@@ -743,7 +743,7 @@ OP_HANDLER( rol_ix )
/* $7a DEC indexed -**- */
OP_HANDLER( dec_ix )
{
- UINT8 t;
+ uint8_t t;
IDXBYTE(t);
--t;
CLR_NZ; SET_FLAGS8D(t);
@@ -755,7 +755,7 @@ OP_HANDLER( dec_ix )
/* $7c INC indexed -**- */
OP_HANDLER( inc_ix )
{
- UINT8 t;
+ uint8_t t;
IDXBYTE(t);
++t;
CLR_NZ; SET_FLAGS8I(t);
@@ -765,7 +765,7 @@ OP_HANDLER( inc_ix )
/* $7d TST indexed -**- */
OP_HANDLER( tst_ix )
{
- UINT8 t;
+ uint8_t t;
IDXBYTE(t);
CLR_NZ; SET_NZ8(t);
}
@@ -897,7 +897,7 @@ OP_HANDLER( txa )
/* $a0 SUBA immediate ?*** */
OP_HANDLER( suba_im )
{
- UINT16 t,r;
+ uint16_t t,r;
IMMBYTE(t);
r = A - t;
CLR_NZC;
@@ -908,7 +908,7 @@ OP_HANDLER( suba_im )
/* $a1 CMPA immediate ?*** */
OP_HANDLER( cmpa_im )
{
- UINT16 t,r;
+ uint16_t t,r;
IMMBYTE(t);
r = A - t;
CLR_NZC;
@@ -918,7 +918,7 @@ OP_HANDLER( cmpa_im )
/* $a2 SBCA immediate ?*** */
OP_HANDLER( sbca_im )
{
- UINT16 t,r;
+ uint16_t t,r;
IMMBYTE(t);
r = A - t - (CC & 0x01);
CLR_NZC;
@@ -929,7 +929,7 @@ OP_HANDLER( sbca_im )
/* $a3 CPX immediate -*** */
OP_HANDLER( cpx_im )
{
- UINT16 t,r;
+ uint16_t t,r;
IMMBYTE(t);
r = X - t;
CLR_NZC;
@@ -939,7 +939,7 @@ OP_HANDLER( cpx_im )
/* $a4 ANDA immediate -**- */
OP_HANDLER( anda_im )
{
- UINT8 t;
+ uint8_t t;
IMMBYTE(t);
A &= t;
CLR_NZ;
@@ -949,7 +949,7 @@ OP_HANDLER( anda_im )
/* $a5 BITA immediate -**- */
OP_HANDLER( bita_im )
{
- UINT8 t,r;
+ uint8_t t,r;
IMMBYTE(t);
r = A & t;
CLR_NZ;
@@ -969,7 +969,7 @@ OP_HANDLER( lda_im )
/* $a8 EORA immediate -**- */
OP_HANDLER( eora_im )
{
- UINT8 t;
+ uint8_t t;
IMMBYTE(t);
A ^= t;
CLR_NZ;
@@ -979,7 +979,7 @@ OP_HANDLER( eora_im )
/* $a9 ADCA immediate **** */
OP_HANDLER( adca_im )
{
- UINT16 t,r;
+ uint16_t t,r;
IMMBYTE(t);
r = A + t + (CC & 0x01);
CLR_HNZC;
@@ -991,7 +991,7 @@ OP_HANDLER( adca_im )
/* $aa ORA immediate -**- */
OP_HANDLER( ora_im )
{
- UINT8 t;
+ uint8_t t;
IMMBYTE(t);
A |= t;
CLR_NZ;
@@ -1001,7 +1001,7 @@ OP_HANDLER( ora_im )
/* $ab ADDA immediate **** */
OP_HANDLER( adda_im )
{
- UINT16 t,r;
+ uint16_t t,r;
IMMBYTE(t);
r = A + t;
CLR_HNZC;
@@ -1015,7 +1015,7 @@ OP_HANDLER( adda_im )
/* $ad BSR ---- */
OP_HANDLER( bsr )
{
- UINT8 t;
+ uint8_t t;
IMMBYTE(t);
PUSHWORD(m_pc);
PC += SIGNED(t);
@@ -1034,7 +1034,7 @@ OP_HANDLER( ldx_im )
/* $b0 SUBA direct ?*** */
OP_HANDLER( suba_di )
{
- UINT16 t,r;
+ uint16_t t,r;
DIRBYTE(t);
r = A - t;
CLR_NZC;
@@ -1045,7 +1045,7 @@ OP_HANDLER( suba_di )
/* $b1 CMPA direct ?*** */
OP_HANDLER( cmpa_di )
{
- UINT16 t,r;
+ uint16_t t,r;
DIRBYTE(t);
r = A - t;
CLR_NZC;
@@ -1055,7 +1055,7 @@ OP_HANDLER( cmpa_di )
/* $b2 SBCA direct ?*** */
OP_HANDLER( sbca_di )
{
- UINT16 t,r;
+ uint16_t t,r;
DIRBYTE(t);
r = A - t - (CC & 0x01);
CLR_NZC;
@@ -1066,7 +1066,7 @@ OP_HANDLER( sbca_di )
/* $b3 CPX direct -*** */
OP_HANDLER( cpx_di )
{
- UINT16 t,r;
+ uint16_t t,r;
DIRBYTE(t);
r = X - t;
CLR_NZC;
@@ -1076,7 +1076,7 @@ OP_HANDLER( cpx_di )
/* $b4 ANDA direct -**- */
OP_HANDLER( anda_di )
{
- UINT8 t;
+ uint8_t t;
DIRBYTE(t);
A &= t;
CLR_NZ;
@@ -1086,7 +1086,7 @@ OP_HANDLER( anda_di )
/* $b5 BITA direct -**- */
OP_HANDLER( bita_di )
{
- UINT8 t,r;
+ uint8_t t,r;
DIRBYTE(t);
r = A & t;
CLR_NZ;
@@ -1113,7 +1113,7 @@ OP_HANDLER( sta_di )
/* $b8 EORA direct -**- */
OP_HANDLER( eora_di )
{
- UINT8 t;
+ uint8_t t;
DIRBYTE(t);
A ^= t;
CLR_NZ;
@@ -1123,7 +1123,7 @@ OP_HANDLER( eora_di )
/* $b9 ADCA direct **** */
OP_HANDLER( adca_di )
{
- UINT16 t,r;
+ uint16_t t,r;
DIRBYTE(t);
r = A + t + (CC & 0x01);
CLR_HNZC;
@@ -1135,7 +1135,7 @@ OP_HANDLER( adca_di )
/* $ba ORA direct -**- */
OP_HANDLER( ora_di )
{
- UINT8 t;
+ uint8_t t;
DIRBYTE(t);
A |= t;
CLR_NZ;
@@ -1145,7 +1145,7 @@ OP_HANDLER( ora_di )
/* $bb ADDA direct **** */
OP_HANDLER( adda_di )
{
- UINT16 t,r;
+ uint16_t t,r;
DIRBYTE(t);
r = A + t;
CLR_HNZC;
@@ -1189,7 +1189,7 @@ OP_HANDLER( stx_di )
/* $c0 SUBA extended ?*** */
OP_HANDLER( suba_ex )
{
- UINT16 t,r;
+ uint16_t t,r;
EXTBYTE(t);
r = A - t;
CLR_NZC;
@@ -1200,7 +1200,7 @@ OP_HANDLER( suba_ex )
/* $c1 CMPA extended ?*** */
OP_HANDLER( cmpa_ex )
{
- UINT16 t,r;
+ uint16_t t,r;
EXTBYTE(t);
r = A - t;
CLR_NZC;
@@ -1210,7 +1210,7 @@ OP_HANDLER( cmpa_ex )
/* $c2 SBCA extended ?*** */
OP_HANDLER( sbca_ex )
{
- UINT16 t,r;
+ uint16_t t,r;
EXTBYTE(t);
r = A - t - (CC & 0x01);
CLR_NZC;
@@ -1221,7 +1221,7 @@ OP_HANDLER( sbca_ex )
/* $c3 CPX extended -*** */
OP_HANDLER( cpx_ex )
{
- UINT16 t,r;
+ uint16_t t,r;
EXTBYTE(t);
r = X - t;
CLR_NZC;
@@ -1231,7 +1231,7 @@ OP_HANDLER( cpx_ex )
/* $c4 ANDA extended -**- */
OP_HANDLER( anda_ex )
{
- UINT8 t;
+ uint8_t t;
EXTBYTE(t);
A &= t;
CLR_NZ;
@@ -1241,7 +1241,7 @@ OP_HANDLER( anda_ex )
/* $c5 BITA extended -**- */
OP_HANDLER( bita_ex )
{
- UINT8 t,r;
+ uint8_t t,r;
EXTBYTE(t);
r = A & t;
CLR_NZ;
@@ -1268,7 +1268,7 @@ OP_HANDLER( sta_ex )
/* $c8 EORA extended -**- */
OP_HANDLER( eora_ex )
{
- UINT8 t;
+ uint8_t t;
EXTBYTE(t);
A ^= t;
CLR_NZ;
@@ -1278,7 +1278,7 @@ OP_HANDLER( eora_ex )
/* $c9 ADCA extended **** */
OP_HANDLER( adca_ex )
{
- UINT16 t,r;
+ uint16_t t,r;
EXTBYTE(t);
r = A + t + (CC & 0x01);
CLR_HNZC;
@@ -1290,7 +1290,7 @@ OP_HANDLER( adca_ex )
/* $ca ORA extended -**- */
OP_HANDLER( ora_ex )
{
- UINT8 t;
+ uint8_t t;
EXTBYTE(t);
A |= t;
CLR_NZ;
@@ -1300,7 +1300,7 @@ OP_HANDLER( ora_ex )
/* $cb ADDA extended **** */
OP_HANDLER( adda_ex )
{
- UINT16 t,r;
+ uint16_t t,r;
EXTBYTE(t);
r = A + t;
CLR_HNZC;
@@ -1344,7 +1344,7 @@ OP_HANDLER( stx_ex )
/* $d0 SUBA indexed, 2 byte offset ?*** */
OP_HANDLER( suba_ix2 )
{
- UINT16 t,r;
+ uint16_t t,r;
IDX2BYTE(t);
r = A - t;
CLR_NZC;
@@ -1355,7 +1355,7 @@ OP_HANDLER( suba_ix2 )
/* $d1 CMPA indexed, 2 byte offset ?*** */
OP_HANDLER( cmpa_ix2 )
{
- UINT16 t,r;
+ uint16_t t,r;
IDX2BYTE(t);
r = A - t;
CLR_NZC;
@@ -1365,7 +1365,7 @@ OP_HANDLER( cmpa_ix2 )
/* $d2 SBCA indexed, 2 byte offset ?*** */
OP_HANDLER( sbca_ix2 )
{
- UINT16 t,r;
+ uint16_t t,r;
IDX2BYTE(t);
r = A - t - (CC & 0x01);
CLR_NZC;
@@ -1376,7 +1376,7 @@ OP_HANDLER( sbca_ix2 )
/* $d3 CPX indexed, 2 byte offset -*** */
OP_HANDLER( cpx_ix2 )
{
- UINT16 t,r;
+ uint16_t t,r;
IDX2BYTE(t);
r = X - t;
CLR_NZC;
@@ -1386,7 +1386,7 @@ OP_HANDLER( cpx_ix2 )
/* $d4 ANDA indexed, 2 byte offset -**- */
OP_HANDLER( anda_ix2 )
{
- UINT8 t;
+ uint8_t t;
IDX2BYTE(t);
A &= t;
CLR_NZ;
@@ -1396,7 +1396,7 @@ OP_HANDLER( anda_ix2 )
/* $d5 BITA indexed, 2 byte offset -**- */
OP_HANDLER( bita_ix2 )
{
- UINT8 t,r;
+ uint8_t t,r;
IDX2BYTE(t);
r = A & t;
CLR_NZ;
@@ -1423,7 +1423,7 @@ OP_HANDLER( sta_ix2 )
/* $d8 EORA indexed, 2 byte offset -**- */
OP_HANDLER( eora_ix2 )
{
- UINT8 t;
+ uint8_t t;
IDX2BYTE(t);
A ^= t;
CLR_NZ;
@@ -1433,7 +1433,7 @@ OP_HANDLER( eora_ix2 )
/* $d9 ADCA indexed, 2 byte offset **** */
OP_HANDLER( adca_ix2 )
{
- UINT16 t,r;
+ uint16_t t,r;
IDX2BYTE(t);
r = A + t + (CC & 0x01);
CLR_HNZC;
@@ -1445,7 +1445,7 @@ OP_HANDLER( adca_ix2 )
/* $da ORA indexed, 2 byte offset -**- */
OP_HANDLER( ora_ix2 )
{
- UINT8 t;
+ uint8_t t;
IDX2BYTE(t);
A |= t;
CLR_NZ;
@@ -1455,7 +1455,7 @@ OP_HANDLER( ora_ix2 )
/* $db ADDA indexed, 2 byte offset **** */
OP_HANDLER( adda_ix2 )
{
- UINT16 t,r;
+ uint16_t t,r;
IDX2BYTE(t);
r = A + t;
CLR_HNZC;
@@ -1499,7 +1499,7 @@ OP_HANDLER( stx_ix2 )
/* $e0 SUBA indexed, 1 byte offset ?*** */
OP_HANDLER( suba_ix1 )
{
- UINT16 t,r;
+ uint16_t t,r;
IDX1BYTE(t);
r = A - t;
CLR_NZC;
@@ -1510,7 +1510,7 @@ OP_HANDLER( suba_ix1 )
/* $e1 CMPA indexed, 1 byte offset ?*** */
OP_HANDLER( cmpa_ix1 )
{
- UINT16 t,r;
+ uint16_t t,r;
IDX1BYTE(t);
r = A - t;
CLR_NZC;
@@ -1520,7 +1520,7 @@ OP_HANDLER( cmpa_ix1 )
/* $e2 SBCA indexed, 1 byte offset ?*** */
OP_HANDLER( sbca_ix1 )
{
- UINT16 t,r;
+ uint16_t t,r;
IDX1BYTE(t);
r = A - t - (CC & 0x01);
CLR_NZC;
@@ -1531,7 +1531,7 @@ OP_HANDLER( sbca_ix1 )
/* $e3 CPX indexed, 1 byte offset -*** */
OP_HANDLER( cpx_ix1 )
{
- UINT16 t,r;
+ uint16_t t,r;
IDX1BYTE(t);
r = X - t;
CLR_NZC;
@@ -1541,7 +1541,7 @@ OP_HANDLER( cpx_ix1 )
/* $e4 ANDA indexed, 1 byte offset -**- */
OP_HANDLER( anda_ix1 )
{
- UINT8 t;
+ uint8_t t;
IDX1BYTE(t);
A &= t;
CLR_NZ;
@@ -1551,7 +1551,7 @@ OP_HANDLER( anda_ix1 )
/* $e5 BITA indexed, 1 byte offset -**- */
OP_HANDLER( bita_ix1 )
{
- UINT8 t,r;
+ uint8_t t,r;
IDX1BYTE(t);
r = A & t;
CLR_NZ;
@@ -1578,7 +1578,7 @@ OP_HANDLER( sta_ix1 )
/* $e8 EORA indexed, 1 byte offset -**- */
OP_HANDLER( eora_ix1 )
{
- UINT8 t;
+ uint8_t t;
IDX1BYTE(t);
A ^= t;
CLR_NZ;
@@ -1588,7 +1588,7 @@ OP_HANDLER( eora_ix1 )
/* $e9 ADCA indexed, 1 byte offset **** */
OP_HANDLER( adca_ix1 )
{
- UINT16 t,r;
+ uint16_t t,r;
IDX1BYTE(t);
r = A + t + (CC & 0x01);
CLR_HNZC;
@@ -1600,7 +1600,7 @@ OP_HANDLER( adca_ix1 )
/* $ea ORA indexed, 1 byte offset -**- */
OP_HANDLER( ora_ix1 )
{
- UINT8 t;
+ uint8_t t;
IDX1BYTE(t);
A |= t;
CLR_NZ;
@@ -1610,7 +1610,7 @@ OP_HANDLER( ora_ix1 )
/* $eb ADDA indexed, 1 byte offset **** */
OP_HANDLER( adda_ix1 )
{
- UINT16 t,r;
+ uint16_t t,r;
IDX1BYTE(t);
r = A + t;
CLR_HNZC;
@@ -1654,7 +1654,7 @@ OP_HANDLER( stx_ix1 )
/* $f0 SUBA indexed ?*** */
OP_HANDLER( suba_ix )
{
- UINT16 t,r;
+ uint16_t t,r;
IDXBYTE(t);
r = A - t;
CLR_NZC;
@@ -1665,7 +1665,7 @@ OP_HANDLER( suba_ix )
/* $f1 CMPA indexed ?*** */
OP_HANDLER( cmpa_ix )
{
- UINT16 t,r;
+ uint16_t t,r;
IDXBYTE(t);
r = A - t;
CLR_NZC;
@@ -1675,7 +1675,7 @@ OP_HANDLER( cmpa_ix )
/* $f2 SBCA indexed ?*** */
OP_HANDLER( sbca_ix )
{
- UINT16 t,r;
+ uint16_t t,r;
IDXBYTE(t);
r = A - t - (CC & 0x01);
CLR_NZC;
@@ -1686,7 +1686,7 @@ OP_HANDLER( sbca_ix )
/* $f3 CPX indexed -*** */
OP_HANDLER( cpx_ix )
{
- UINT16 t,r;
+ uint16_t t,r;
IDXBYTE(t);
r = X - t;
CLR_NZC;
@@ -1696,7 +1696,7 @@ OP_HANDLER( cpx_ix )
/* $f4 ANDA indexed -**- */
OP_HANDLER( anda_ix )
{
- UINT8 t;
+ uint8_t t;
IDXBYTE(t);
A &= t;
CLR_NZ;
@@ -1706,7 +1706,7 @@ OP_HANDLER( anda_ix )
/* $f5 BITA indexed -**- */
OP_HANDLER( bita_ix )
{
- UINT8 t,r;
+ uint8_t t,r;
IDXBYTE(t);
r = A & t;
CLR_NZ;
@@ -1733,7 +1733,7 @@ OP_HANDLER( sta_ix )
/* $f8 EORA indexed -**- */
OP_HANDLER( eora_ix )
{
- UINT8 t;
+ uint8_t t;
IDXBYTE(t);
A ^= t;
CLR_NZ;
@@ -1743,7 +1743,7 @@ OP_HANDLER( eora_ix )
/* $f9 ADCA indexed **** */
OP_HANDLER( adca_ix )
{
- UINT16 t,r;
+ uint16_t t,r;
IDXBYTE(t);
r = A + t + (CC & 0x01);
CLR_HNZC;
@@ -1755,7 +1755,7 @@ OP_HANDLER( adca_ix )
/* $fa ORA indexed -**- */
OP_HANDLER( ora_ix )
{
- UINT8 t;
+ uint8_t t;
IDXBYTE(t);
A |= t;
CLR_NZ;
@@ -1765,7 +1765,7 @@ OP_HANDLER( ora_ix )
/* $fb ADDA indexed **** */
OP_HANDLER( adda_ix )
{
- UINT16 t,r;
+ uint16_t t,r;
IDXBYTE(t);
r = A + t;
CLR_HNZC;