home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 1 / crawlyvol1.bin / program / compiler / szadb21b / doc / fixargs.adb
Text File  |  1992-01-14  |  842b  |  23 lines

  1. #
  2. # An example of a command file which 'repairs' an interpretation
  3. # of command line arguments for szadb on gcc-compiled program.
  4. # A stack display 'before' and 'after' is for your amusement
  5. # and enlightment.  Load your program with: adb -k fixargs.adb <prog> <args>
  6. # and hit F1.  Your shell may require prepending 'gem ' to a command above.
  7. #
  8. F1  $k11; $k13 ; $k14; $k15; $b; :c
  9. F11 main:b <sp,10/x; $k12
  10. # for 32 bit compiled program
  11. #F12 <sp/W *(<sp+4)-3; <sp+4/W *(<sp+8)+c; <sp,10/x
  12. # for 16 bit compilation - -mshort
  13. F12 <sp/w *(<sp+2)-3; <sp+2/W *(<sp+6)+c; <sp,10/x
  14. #
  15. # this is only an example - the break below may not
  16. # fall on any executable instruction in your program
  17. # or request may not make any sense in it; be careful
  18. # if you are going to enable it.
  19. #
  20. #F13 v_fillarea+e2:b <a3,<d0+2%4/8d
  21. #F14 
  22. #F15 
  23.