home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilsf / jfshared / Modules / TextCopy / WinMgr / Patch322m < prev    next >
Encoding:
Text File  |  1995-07-01  |  878 b   |  37 lines

  1. In   Module
  2. Out  NModule
  3. Type Module
  4. Max  32k
  5.  
  6. @ &BE0C
  7. ; this replaces code :
  8. ; LDR r14,[r2],#32   - get data and increment
  9. ; AND r14,r14,#&F000 - leave just button
  10. ; TEQ r14,#&F000    <-- this line
  11. ; BNE &BDF8          - if not then try again
  12.    B       checkforWI
  13.  
  14. @ &C29C
  15. ; this replaces code :
  16. ; MOV r0,r3          - set window handle
  17. ; MOV r1,r4          - set icon handle
  18. ; MVN r2,#&f0000000  - set x offset
  19. ; MVN r5,#0         <-- this line
  20. ; BL  &a53c          - is Wimp_SetCaretPosition
  21.    BL      changesetcaret
  22.  
  23. @ endofcode
  24. .checkforWI
  25.    TEQ     r14,#&F000
  26.    TEQNE   r14,#&E000
  27.    B       &BE10
  28.  
  29. ; changes parameters passed to Wimp_SetCaretPosition internally when
  30. ; menu opens
  31. .changesetcaret
  32.    MOV     r2,#1024*16*16 ; 16k (should be enough)
  33.    MOV     r3,#0     ; no y-offset
  34.    MVN     r4,#0     ; flags (-1)
  35.    MVN     r5,#0     ; no index
  36.    MOV     pc,link
  37.