Annotation of generator/src/out/cpu68k-7.c, revision 1.1

1.1     ! root        1: /*****************************************************************************/
        !             2: /*     Generator - Sega Genesis emulation - (c) James Ponder 1997-1998       */
        !             3: /*****************************************************************************/
        !             4: /*                                                                           */
        !             5: /* cpu68k-7.c                                                                */
        !             6: /*                                                                           */
        !             7: /*****************************************************************************/
        !             8: 
        !             9: #include "generator.h"
        !            10: #include "cpu68k.h"
        !            11: #include "mem68k.h"
        !            12: #include "reg68k.h"
        !            13: 
        !            14: #include "cpu68k-inline.h"
        !            15: 
        !            16: #include <stdio.h>
        !            17: 
        !            18: void cpu_op_1063a(t_ipc *ipc) /* MOVE */ {
        !            19:   /* mask f100, bits 7000, mnemonic 21, priv 0, endblk 0, imm_notzero 0, used 0     set -2, size 3, stype 18, dtype 0, sbitpos 0, dbitpos 9, immvalue 0 */
        !            20:   signed int srcdata = ipc->src;
        !            21:   int dstreg = (ipc->opcode >> 9) & 7;
        !            22:   uint32 outdata = srcdata;
        !            23: 
        !            24:   DATAREG(dstreg) = outdata;
        !            25:   PC+= 2;
        !            26: }
        !            27: 
        !            28: void cpu_op_1063b(t_ipc *ipc) /* MOVE */ {
        !            29:   /* mask f100, bits 7000, mnemonic 21, priv 0, endblk 0, imm_notzero 0, used 0     set -2, size 3, stype 18, dtype 0, sbitpos 0, dbitpos 9, immvalue 0 */
        !            30:   signed int srcdata = ipc->src;
        !            31:   int dstreg = (ipc->opcode >> 9) & 7;
        !            32:   uint32 outdata = srcdata;
        !            33: 
        !            34:   DATAREG(dstreg) = outdata;
        !            35: 
        !            36:   VFLAG = 0;
        !            37:   CFLAG = 0;
        !            38:   NFLAG = ((sint32)outdata) < 0;
        !            39:   ZFLAG = !outdata;
        !            40:   PC+= 2;
        !            41: }
        !            42: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.