Joypad reading

Go down

Joypad reading Empty Joypad reading

Post by Conn Wed 9 Apr 2014 - 17:10

I currently try to hack a bit for bszelda again, making Roto's patch more Hardware compatible. While the Joypad Input works wonderful in snes9x/zsnes... bsnes and higan (and real Hardware) make Troubles.

I was able to trace a bit was higan actually does and here it is:

Code:

ced717 beq $d6f7    [ced6f7] A:6000 X:0004 Y:0082 S:1ff5
ced6f7 lda $4219    [004219] A:6000 X:0004 Y:0082 S:1ff5
ced6fa and #$20              A:6001 X:0004 Y:0082 S:1ff5
ced6fc beq $d712    [ced712] A:6000 X:0004 Y:0082 S:1ff5
ced712 lda $4219    [004219] A:6000 X:0004 Y:0082 S:1ff5
ced715 and #$10              A:6001 X:0004 Y:0082 S:1ff5
ced717 beq $d6f7    [ced6f7] A:6000 X:0004 Y:0082 S:1ff5
ced6f7 lda $4219    [004219] A:6000 X:0004 Y:0082 S:1ff5
ced6fa and #$20              A:6001 X:0004 Y:0082 S:1ff5
ced6fc beq $d712    [ced712] A:6000 X:0004 Y:0082 S:1ff5
ced712 lda $4219    [004219] A:6000 X:0004 Y:0082 S:1ff5
ced715 and #$10              A:6001 X:0004 Y:0082 S:1ff5
ced717 beq $d6f7    [ced6f7] A:6000 X:0004 Y:0082 S:1ff5
ced6f7 lda $4219    [004219] A:6000 X:0004 Y:0082 S:1ff5
ced6fa and #$20              A:6002 X:0004 Y:0082 S:1ff5
ced6fc beq $d712    [ced712] A:6000 X:0004 Y:0082 S:1ff5
ced712 lda $4219    [004219] A:6000 X:0004 Y:0082 S:1ff5
ced715 and #$10              A:6002 X:0004 Y:0082 S:1ff5
ced717 beq $d6f7    [ced6f7] A:6000 X:0004 Y:0082 S:1ff5
ced6f7 lda $4219    [004219] A:6000 X:0004 Y:0082 S:1ff5
ced6fa and #$20              A:6002 X:0004 Y:0082 S:1ff5
ced6fc beq $d712    [ced712] A:6000 X:0004 Y:0082 S:1ff5
ced712 lda $4219    [004219] A:6000 X:0004 Y:0082 S:1ff5
ced715 and #$10              A:6004 X:0004 Y:0082 S:1ff5
ced717 beq $d6f7    [ced6f7] A:6000 X:0004 Y:0082 S:1ff5
ced6f7 lda $4219    [004219] A:6000 X:0004 Y:0082 S:1ff5
ced6fa and #$20              A:6004 X:0004 Y:0082 S:1ff5


Has anybody an idea why repeated read of $4219 Counts up (1,2,4,8...)? Normally you press a button, it is stored to this Register and that's it. Somehow in Roto's menu the Input (I pressed select here, which usually is #$20) is counted up.
Conn
Conn

Joypad reading Image212

Since : 2013-06-30

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum