小编J.W*_*son的帖子

NES(6502组装)精灵运动

我目前正在开发NES(6502)组装游戏,但不了解如何进行精灵移动,这里我认为它应该如何工作:

(loop)
LDA $200 ;will load into the A register the content of address $200,wich contain the Y postion of my sprite
INA ;Increment the A register wich would increment the content of A wich is the Y position of my sprite..?
Run Code Online (Sandbox Code Playgroud)

但是似乎您无法增加A寄存器累加器,因为在尝试使用INA指令进行汇编时出现错误。但是我想使用地址$ 200的内容,而不是在其中选择一个值,我不知道如何使子画面移动。

谢谢!

assembly 6502 sprite nes

2
推荐指数
1
解决办法
664
查看次数

标签 统计

6502 ×1

assembly ×1

nes ×1

sprite ×1