home *** CD-ROM | disk | FTP | other *** search
- In Module
- Out NModule
- Type Module
- Max 32k
-
- @ &BE0C
- ; this replaces code :
- ; LDR r14,[r2],#32 - get data and increment
- ; AND r14,r14,#&F000 - leave just button
- ; TEQ r14,#&F000 <-- this line
- ; BNE &BDF8 - if not then try again
- B checkforWI
-
- @ &C29C
- ; this replaces code :
- ; MOV r0,r3 - set window handle
- ; MOV r1,r4 - set icon handle
- ; MVN r2,#&f0000000 - set x offset
- ; MVN r5,#0 <-- this line
- ; BL &a53c - is Wimp_SetCaretPosition
- BL changesetcaret
-
- @ endofcode
- .checkforWI
- TEQ r14,#&F000
- TEQNE r14,#&E000
- B &BE10
-
- ; changes parameters passed to Wimp_SetCaretPosition internally when
- ; menu opens
- .changesetcaret
- MOV r2,#1024*16*16 ; 16k (should be enough)
- MOV r3,#0 ; no y-offset
- MVN r4,#0 ; flags (-1)
- MVN r5,#0 ; no index
- MOV pc,link
-