I've been working on a code to make the computer karts go as fast as you. A break down of the asm
$80/87E2 4C 00 93 JMP $9300 [$80:9300] A:2000 X:1700 Y:0004 P:envmxdiZc Jumps to free space
$80/9300 BD EF 00 LDA $00EF,x[$80:17EF] A:2000 X:1700 Y:0004 P:envmxdiZc load the computers break offset
$80/9303 C9 FF 00 CMP #$00FF A:00FF X:1700 Y:0004 P:envmxdizc compares computer break value 00 no ff yes
$80/9306 D0 0B BNE $0B [$9313] A:00FF X:1700 Y:0004 P:envmxdiZC if not breaking so value would be 00 jump to [$9313]
$80/9308 DA PHX A:00FF X:1700 Y:0004 P:envmxdiZC but if value is ff Push Index Register X
$80/9309 A2 00 10 LDX #$1000 A:00FF X:1700 Y:0004 P:envmxdiZC loads player ones offset into X
$80/930C BD D6 00 LDA $00D6,x[$80:10D6] A:00FF X:1000 Y:0004 P:envmxdizC loads player ones top speed into A
$80/930F FA PLX A:03B0 X:1000 Y:0004 P:envmxdizC pulls back computers offset to Index Register X
$80/9310 9D EA 00 STA $00EA,x[$80:17EA] A:03B0 X:1700 Y:0004 P:envmxdizC stores player ones tops speed to computer speed
$80/9313 BD EA 00 LDA $00EA,x[$80:17EA] A:03B0 X:1700 Y:0004 P:envmxdizC puts back high jacked code
$80/9316 4C E5 87 JMP $87E5 [$80:87E5] A:03B0 X:1700 Y:0004 P:envmxdizC jumps back to normal code
This part is where the problem is $80/9303 C9 FF 00 CMP #$00FF is there a way to make it only compare FF side of A but still work for all computers so not a Absolute address? the ram address for FF side is 7e17EF. So I don't want 00 side ram address 7E17f0 tobe Compared.
please help if you can.
$80/87E2 4C 00 93 JMP $9300 [$80:9300] A:2000 X:1700 Y:0004 P:envmxdiZc Jumps to free space
$80/9300 BD EF 00 LDA $00EF,x[$80:17EF] A:2000 X:1700 Y:0004 P:envmxdiZc load the computers break offset
$80/9303 C9 FF 00 CMP #$00FF A:00FF X:1700 Y:0004 P:envmxdizc compares computer break value 00 no ff yes
$80/9306 D0 0B BNE $0B [$9313] A:00FF X:1700 Y:0004 P:envmxdiZC if not breaking so value would be 00 jump to [$9313]
$80/9308 DA PHX A:00FF X:1700 Y:0004 P:envmxdiZC but if value is ff Push Index Register X
$80/9309 A2 00 10 LDX #$1000 A:00FF X:1700 Y:0004 P:envmxdiZC loads player ones offset into X
$80/930C BD D6 00 LDA $00D6,x[$80:10D6] A:00FF X:1000 Y:0004 P:envmxdizC loads player ones top speed into A
$80/930F FA PLX A:03B0 X:1000 Y:0004 P:envmxdizC pulls back computers offset to Index Register X
$80/9310 9D EA 00 STA $00EA,x[$80:17EA] A:03B0 X:1700 Y:0004 P:envmxdizC stores player ones tops speed to computer speed
$80/9313 BD EA 00 LDA $00EA,x[$80:17EA] A:03B0 X:1700 Y:0004 P:envmxdizC puts back high jacked code
$80/9316 4C E5 87 JMP $87E5 [$80:87E5] A:03B0 X:1700 Y:0004 P:envmxdizC jumps back to normal code
This part is where the problem is $80/9303 C9 FF 00 CMP #$00FF is there a way to make it only compare FF side of A but still work for all computers so not a Absolute address? the ram address for FF side is 7e17EF. So I don't want 00 side ram address 7E17f0 tobe Compared.
please help if you can.
Comment