Skip to content

Possible bug in offscreen loading. #1

@DanielTheSilly

Description

@DanielTheSilly

The "SpriteInit:" section of snes/sprite/sprite.asm should set them off the screen, but if I remove the code lines 53-57:
lda #($80-16)
sta $0000

lda #(224/2 - 16)
sta $0001

The sprite shows up in the upper left corner of the screen. Changing line 96:
sta $0000,X
to
sta $0000
Appears to do the trick, but I don't fully understand why or if that's even really the desired "off screen" value. Not to mention that it would only work for a single sprite. Is this a bug or am I just confused? Assembly is hard.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions