~ubuntu-branches/ubuntu/trusty/vice/trusty

« back to all changes in this revision

Viewing changes to src/viciisc/vicii-mem.c

  • Committer: Package Import Robot
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2013-07-28 20:38:23 UTC
  • mfrom: (1.1.10) (9.2.7 sid)
  • Revision ID: package-import@ubuntu.com-20130728203823-1h8s6bcv22oundul
Tags: 2.4.dfsg-1
* New upstream release (closes: #693065, #693641).
* Drop vice-ffmpeg.patch , applied upstream.
* Disable architecture specific compilation (closes: #686400, #714136).

Show diffs side-by-side

added added

removed removed

Lines of Context:
142
142
 
143
143
inline static void d011_store(BYTE value)
144
144
{
145
 
    int cycle;
146
 
    unsigned int line;
147
 
 
148
 
    cycle = vicii.raster_cycle;
149
 
    line = vicii.raster_line;
150
 
 
151
145
    VICII_DEBUG_REGISTER(("Control register: $%02X", value));
152
146
    VICII_DEBUG_REGISTER(("$D011 tricks at cycle %d, line $%04X, "
153
 
                          "value $%02X", cycle, line, value));
 
147
                          "value $%02X", vicii.raster_cycle, vicii.raster_line, value));
154
148
 
155
149
    vicii.ysmooth = value & 0x7;
156
150
 
186
180
 
187
181
inline static void d017_store(const BYTE value)
188
182
{
189
 
    int i, cycle;
 
183
    int i;
190
184
    BYTE b;
191
185
 
192
186
    VICII_DEBUG_REGISTER(("Sprite Y Expand register: $%02X", value));
195
189
        return;
196
190
    }
197
191
 
198
 
    cycle = vicii.raster_cycle;
199
 
 
200
192
    for (i = 0, b = 0x01; i < 8; b <<= 1, i++) {
201
 
        if (!(value & b)) {
 
193
        if (!(value & b) && !vicii.sprite[i].exp_flop) {
202
194
            /* sprite crunch */
203
 
            /* if ((vicii.regs[0x17] & b) && (cycle == VICII_PAL_CYCLE(15))) { */
204
 
            if ((vicii.regs[0x17] & b) && cycle_is_check_spr_crunch(vicii.cycle_flags)) {
 
195
            /* if (cycle == VICII_PAL_CYCLE(15))) { */
 
196
            if (cycle_is_check_spr_crunch(vicii.cycle_flags)) {
205
197
                BYTE mc = vicii.sprite[i].mc;
206
198
                BYTE mcbase = vicii.sprite[i].mcbase;
207
199
 
515
507
 
516
508
inline static BYTE d01e_read(void)
517
509
{
518
 
    /* Remove the pending sprite-sprite interrupt, as the collision
519
 
       register is reset upon read accesses.  */
520
 
    vicii_irq_sscoll_clear();
521
 
 
522
510
    if (!vicii_resources.sprite_sprite_collisions_enabled) {
523
511
        VICII_DEBUG_REGISTER(("Sprite-sprite collision mask: $00 "
524
512
                             "(emulation disabled)"));
536
524
 
537
525
inline static BYTE d01f_read(void)
538
526
{
539
 
    /* Remove the pending sprite-background interrupt, as the collision
540
 
       register is reset upon read accesses.  */
541
 
    vicii_irq_sbcoll_clear();
542
 
 
543
527
    if (!vicii_resources.sprite_background_collisions_enabled) {
544
528
        VICII_DEBUG_REGISTER(("Sprite-background collision mask: $00 "
545
529
                             "(emulation disabled)"));