Previous 199869 Revisions Next

r34695 Wednesday 28th January, 2015 at 12:23:08 UTC by Olivier Galibert
m65ce02: Generalize Kale's findings [O. Galibert]
[src/emu/cpu/m6502]m6502.c om65ce02.lst

trunk/src/emu/cpu/m6502/m6502.c
r243206r243207
579579      break;
580580
581581   case DASM_rw2:
582      sprintf(buffer, " $%04x", (pc & 0xf0000) | UINT16(pc + 3 + INT16((opram[2] << 8) | opram[1])));
582      sprintf(buffer, " $%04x", (pc & 0xf0000) | UINT16(pc + 2 + INT16((opram[2] << 8) | opram[1])));
583583      flags |= 3;
584584      break;
585585
trunk/src/emu/cpu/m6502/om65ce02.lst
r243206r243207
245245   TMP = read_pc();
246246   TMP = set_h(TMP, read_pc());
247247   if(!(P & F_C))
248      PC += TMP;
248      PC += TMP-1;
249249   prefetch();
250250
251251bcs_ce_rel
r243206r243207
258258   TMP = read_pc();
259259   TMP = set_h(TMP, read_pc());
260260   if(P & F_C)
261      PC += TMP;
261      PC += TMP-1;
262262   prefetch();
263263
264264beq_ce_rel
r243206r243207
271271   TMP = read_pc();
272272   TMP = set_h(TMP, read_pc());
273273   if(P & F_Z)
274      PC += TMP;
274      PC += TMP-1;
275275   prefetch();
276276
277277bit_ce_abx
r243206r243207
307307   TMP = read_pc();
308308   TMP = set_h(TMP, read_pc());
309309   if(P & F_N)
310      PC += TMP;
310      PC += TMP-1;
311311   prefetch();
312312
313313bne_ce_rel
r243206r243207
320320   TMP = read_pc();
321321   TMP = set_h(TMP, read_pc());
322322   if(!(P & F_Z))
323      PC += TMP;
323      PC += TMP-1;
324324   prefetch();
325325
326326bpl_ce_rel
r243206r243207
333333   TMP = read_pc();
334334   TMP = set_h(TMP, read_pc());
335335   if(!(P & F_N))
336      PC += TMP;
336      PC += TMP-1;
337337   prefetch();
338338
339339bra_ce_rel
r243206r243207
379379   write(SP, PC);
380380   dec_SP_ce();
381381   TMP = set_h(TMP, read_pc());
382   PC += TMP;
382   PC += TMP-1;
383383   prefetch();
384384
385385bvc_ce_rel
r243206r243207
392392   TMP = read_pc();
393393   TMP = set_h(TMP, read_pc());
394394   if(!(P & F_V))
395      PC += TMP;
395      PC += TMP-1;
396396   prefetch();
397397
398398bvs_ce_rel
r243206r243207
405405   TMP = read_pc();
406406   TMP = set_h(TMP, read_pc());
407407   if(P & F_V)
408      PC += TMP;
408      PC += TMP-1;
409409   prefetch();
410410
411411clc_ce_imp


Previous 199869 Revisions Next


© 1997-2024 The MAME Team