|
Post by Aryan 10 on May 30, 2017 20:54:50 GMT 5.5
Hello guys, I am here with a new ASM routine that shows a icon in messagebox when you recieves a item. And that icon is the item's image you recived like this, So this is the ASM routine, first compile it somewhere and note down the offset,
.THUMB .ALIGN 2
CMP R4, #1 BNE END
MOV R0, R5 MOV R1, #3 BL BOX
PUSH {R0-R7} LDR R0, = 0x03000EC4 LDR R0, [R0] LDR R1, = 0x081A6816 LDR R2, = 0x081A6820 CMP R0, R1 BEQ LOAD CMP R0, R2 BNE END
LOAD: LDR R0, = 0x020370C0 LDRH R0, [R0] LSL R0, R0, #3 LDR R5, = 0x083D4294 ADD R5, R0 LDR R0, [R5] LDR R1, = 0x06008020 SWI 0x12
MOV R2, R1 LDR R0, [R5, #4] LDR R1, = 0x02037798 SWI 0x12
MOV R0, #0x7F LSL R0, R0, #8 ADD R0, #0xFF STRH R0, [R1, #0x1E]
MOV R0, R2 MOV R6, #0x12 LSL R6, R6, #5 MOV R5, #0
LOOP: LDRB R1, [R0, R5] LDRB R2, [R0, R5] MOV R3, #0x0F MOV R4, #0xF0 AND R1, R3 AND R2, R4 CMP R1, #0 BNE LAST
MOV R1, #0x0F
LAST: LSR R3, R2, #4 CMP R3, #0 BNE CONTROL
MOV R2, #0xF0
CONTROL: ORR R2, R1
ADD R5, #1 CMP R5, #2 BNE BYTE
LSL R2, R2, #8 ORR R7, R2 STRH R7, [R0] ADD R0, #2 MOV R5, #0 B COUNTER
BYTE: MOV R7, R2
COUNTER: SUB R6, #1 BPL LOOP
MOV R1, #0xD LSL R1, R1, #12 ADD R1, R1, #1 MOV R2, #2 MOV R3, #2 LDR R0, = 0x02001C6E LOOP: STRH R1, [R0] ADD R0, #2 ADD R1, #1 SUB R2, #1 BPL LOOP MOV R2, #2 ADD R0, #0x3A SUB R3, #1 BPL LOOP END: POP {R0-R7}
END: POP {R4, R5} POP {R0} BX R0
BOX: PUSH {R0} LDR R0, = 0x08003F20+1 MOV R10, R0 POP {R0} BX R10
Now, change 0xF6F08 to 00480047XXXXXX08
Where XXXXXX will be offset where you inserted the routine as reverse hex+1 This is a download link of a zip containing routine as .asm file and a mini tutorial. Download HERE
|
|