1635

« **on:** December 08, 2007, 02:56:51 AM »
Ok, I found something that looks like it's drawing the item screen:

`$01/9066 5A PHY A:0001 X:1440 Y:0044 D:0100 DB:7E S:02E9 P:envMxdIzcHC:0070 VC:013 00 FL:08`

$01/9067 5A PHY A:0001 X:1440 Y:0044 D:0100 DB:7E S:02E7 P:envMxdIzcHC:0100 VC:013 00 FL:08

$01/9068 80 B3 BRA $B3 [$901D] A:0001 X:1440 Y:0044 D:0100 DB:7E S:02E5 P:envMxdIzcHC:0130 VC:013 00 FL:08

$01/901D 85 43 STA $43 [$00:0143] A:0001 X:1440 Y:0044 D:0100 DB:7E S:02E5 P:envMxdIzcHC:0152 VC:013 00 FL:08

$01/901F C2 20 REP #$20 A:0001 X:1440 Y:0044 D:0100 DB:7E S:02E5 P:envMxdIzcHC:0176 VC:013 00 FL:08

$01/9021 A5 29 LDA $29 [$00:0129] A:0001 X:1440 Y:0044 D:0100 DB:7E S:02E5 P:envmxdIzcHC:0198 VC:013 00 FL:08

$01/9023 18 CLC A:B600 X:1440 Y:0044 D:0100 DB:7E S:02E5 P:eNvmxdIzcHC:0230 VC:013 00 FL:08

$01/9024 69 40 00 ADC #$0040 A:B600 X:1440 Y:0044 D:0100 DB:7E S:02E5 P:eNvmxdIzcHC:0244 VC:013 00 FL:08

$01/9027 85 1D STA $1D [$00:011D] A:B640 X:1440 Y:0044 D:0100 DB:7E S:02E5 P:eNvmxdIzcHC:0268 VC:013 00 FL:08

$01/9029 A5 43 LDA $43 [$00:0143] A:B640 X:1440 Y:0044 D:0100 DB:7E S:02E5 P:eNvmxdIzcHC:0300 VC:013 00 FL:08

$01/902B 0A ASL A A:0001 X:1440 Y:0044 D:0100 DB:7E S:02E5 P:envmxdIzcHC:0332 VC:013 00 FL:08

$01/902C 0A ASL A A:0002 X:1440 Y:0044 D:0100 DB:7E S:02E5 P:envmxdIzcHC:0346 VC:013 00 FL:08

$01/902D 0A ASL A A:0004 X:1440 Y:0044 D:0100 DB:7E S:02E5 P:envmxdIzcHC:0360 VC:013 00 FL:08

$01/902E 65 43 ADC $43 [$00:0143] A:0008 X:1440 Y:0044 D:0100 DB:7E S:02E5 P:envmxdIzcHC:0374 VC:013 00 FL:08

$01/9030 AA TAX A:0009 X:1440 Y:0044 D:0100 DB:7E S:02E5 P:envmxdIzcHC:0406 VC:013 00 FL:08

$01/9031 E2 20 SEP #$20 A:0009 X:0009 Y:0044 D:0100 DB:7E S:02E5 P:envmxdIzcHC:0420 VC:013 00 FL:08

$01/9033 7A PLY A:0009 X:0009 Y:0044 D:0100 DB:7E S:02E5 P:envMxdIzcHC:0442 VC:013 00 FL:08

$01/9034 BF 00 80 0F LDA $0F8000,x[$0F:8009] A:0009 X:0009 Y:0044 D:0100 DB:7E S:02E7 P:envMxdIzcHC:0478 VC:013 00 FL:08

$01/9038 91 1D STA ($1D),y[$7E:B684] A:0029 X:0009 Y:0044 D:0100 DB:7E S:02E7 P:envMxdIzcHC:0534 VC:013 00 FL:08

$01/903A C8 INY A:0029 X:0009 Y:0044 D:0100 DB:7E S:02E7 P:envMxdIzcHC:0574 VC:013 00 FL:08

$01/903B A5 DB LDA $DB [$00:01DB] A:0029 X:0009 Y:0045 D:0100 DB:7E S:02E7 P:envMxdIzcHC:0588 VC:013 00 FL:08

$01/903D 05 34 ORA $34 [$00:0134] A:0004 X:0009 Y:0045 D:0100 DB:7E S:02E7 P:envMxdIzcHC:0612 VC:013 00 FL:08

$01/903F 91 29 STA ($29),y[$7E:B645] A:0004 X:0009 Y:0045 D:0100 DB:7E S:02E7 P:envMxdIzcHC:0652 VC:013 00 FL:08

$01/9041 91 1D STA ($1D),y[$7E:B685] A:0004 X:0009 Y:0045 D:0100 DB:7E S:02E7 P:envMxdIzcHC:0708 VC:013 00 FL:08

$01/9043 C8 INY A:0004 X:0009 Y:0045 D:0100 DB:7E S:02E7 P:envMxdIzcHC:0748 VC:013 00 FL:08

$01/9044 E8 INX A:0004 X:0009 Y:0046 D:0100 DB:7E S:02E7 P:envMxdIzcHC:0762 VC:013 00 FL:08

$01/9045 A9 08 LDA #$08 A:0004 X:000A Y:0046 D:0100 DB:7E S:02E7 P:envMxdIzcHC:0776 VC:013 00 FL:08

$01/9047 85 45 STA $45 [$00:0145] A:0008 X:000A Y:0046 D:0100 DB:7E S:02E7 P:envMxdIzcHC:0792 VC:013 00 FL:08

$01/9049 BF 00 80 0F LDA $0F8000,x[$0F:800A] A:0008 X:000A Y:0046 D:0100 DB:7E S:02E7 P:envMxdIzcHC:0816 VC:013 00 FL:08

$01/904D 20 34 8E JSR $8E34 [$01:8E34] A:0047 X:000A Y:0046 D:0100 DB:7E S:02E7 P:envMxdIzcHC:0856 VC:013 00 FL:08

$01/9050 91 29 STA ($29),y[$7E:B646] A:47FF X:000A Y:0046 D:0100 DB:7E S:02E7 P:envMxdIzCHC:1156 VC:013 00 FL:08

$01/9052 EB XBA A:47FF X:000A Y:0046 D:0100 DB:7E S:02E7 P:envMxdIzCHC:1196 VC:013 00 FL:08

$01/9053 91 1D STA ($1D),y[$7E:B686] A:FF47 X:000A Y:0046 D:0100 DB:7E S:02E7 P:envMxdIzCHC:1232 VC:013 00 FL:08

$01/9055 E8 INX A:FF47 X:000A Y:0046 D:0100 DB:7E S:02E7 P:envMxdIzCHC:1272 VC:013 00 FL:08

$01/9056 C8 INY A:FF47 X:000B Y:0046 D:0100 DB:7E S:02E7 P:envMxdIzCHC:1286 VC:013 00 FL:08

$01/9057 A5 DB LDA $DB [$00:01DB] A:FF47 X:000B Y:0047 D:0100 DB:7E S:02E7 P:envMxdIzCHC:1300 VC:013 00 FL:08

$01/9059 05 34 ORA $34 [$00:0134] A:FF04 X:000B Y:0047 D:0100 DB:7E S:02E7 P:envMxdIzCHC:1324 VC:013 00 FL:08

$01/905B 91 29 STA ($29),y[$7E:B647] A:FF04 X:000B Y:0047 D:0100 DB:7E S:02E7 P:envMxdIzCHC:1364 VC:013 00 FL:08

$01/905D 91 1D STA ($1D),y[$7E:B687] A:FF04 X:000B Y:0047 D:0100 DB:7E S:02E7 P:envMxdIzCHC:0052 VC:014 00 FL:08

$01/905F C8 INY A:FF04 X:000B Y:0047 D:0100 DB:7E S:02E7 P:envMxdIzCHC:0092 VC:014 00 FL:08

$01/9060 C6 45 DEC $45 [$00:0145] A:FF04 X:000B Y:0048 D:0100 DB:7E S:02E7 P:envMxdIzCHC:0106 VC:014 00 FL:08

$01/9062 D0 E5 BNE $E5 [$9049] A:FF04 X:000B Y:0048 D:0100 DB:7E S:02E7 P:envMxdIzCHC:0144 VC:014 00 FL:08

$01/9064 7A PLY A:FF04 X:0012 Y:0056 D:0100 DB:7E S:02E7 P:envMxdIZCHC:0498 VC:018 00 FL:08

$01/9065 60 RTS A:FF04 X:0012 Y:0044 D:0100 DB:7E S:02E9 P:envMxdIzCHC:0534 VC:018 00 FL:08

Those three ASL's and the subsequent ADC is the multiplying. ASL x 3 is the same as multiplying by 8, and adding itself seems to be the 9. That holds true in this case, since the item ID number is 1.

`$01/902B 0A ASL A A:0001 X:1440 Y:0044 D:0100 DB:7E S:02E5 P:envmxdIzcHC:0332 VC:013 00 FL:08`

$01/902C 0A ASL A A:0002 X:1440 Y:0044 D:0100 DB:7E S:02E5 P:envmxdIzcHC:0346 VC:013 00 FL:08

$01/902D 0A ASL A A:0004 X:1440 Y:0044 D:0100 DB:7E S:02E5 P:envmxdIzcHC:0360 VC:013 00 FL:08

$01/902E 65 43 ADC $43 [$00:0143] A:0008 X:1440 Y:0044 D:0100 DB:7E S:02E5 P:envmxdIzcHC:0374 VC:013

In case it wasn't clear, that's your multiplier. That only gives you 5 bytes to work with, it's probably not going to be easily expanded on here.

If you're wondering where this is in the actual file, it's at 0x901D (add 0x200 if you have a header).