home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 1 / crawlyvol1.bin / falcon / program / x_debug / startup.xdb < prev    next >
Text File  |  1993-01-03  |  2KB  |  123 lines

  1. # start with MonST commands
  2.  
  3. # Alt-A = set window Address
  4. proc monst_a
  5.     dialog Window Start address?
  6.     window addr ?window #d
  7. endproc
  8. key alt a monst_a
  9.  
  10. # Alt-L = Lock window to address register
  11. proc monst_l
  12.     dialog Window Lock to?
  13.     window lock ?window #d
  14. endproc
  15. key alt l monst_l
  16.  
  17. # Alt-R = set Register value
  18. proc monst_r
  19.     dialog "" Register=value
  20.     reg #d
  21. endproc
  22. key alt r monst_r
  23.  
  24. # Alt-B = set Breakpoint
  25. proc monst_b
  26.     dialog  "" Breakpoint
  27.     break monst #d
  28. endproc
  29. key alt b monst_b
  30.  
  31.  
  32. # Ctrl-L = Load program
  33. proc monst_ctrl_l
  34.     dialog "" Load program & command line
  35.     load exec #d
  36. endproc
  37.  
  38. # Alt-Z = Zoom window
  39. key alt z window zoom ?window
  40.  
  41. # Ctrl-Z and Ctrl-Y = single step assembler
  42. key ctrl y step asm
  43. key ctrl z step asm
  44.  
  45. # Ctrl-R = Run
  46. key ctrl r go
  47.  
  48. key ctrl a step askip
  49.  
  50. # Ctrl-S = Skip instruction
  51. key ctrl s step amiss
  52.  
  53. # Ctrl-T = inTerpret instruction
  54. key ctrl t step interpret
  55.  
  56. # Ctrl-L = Load program
  57. key ctrl l monst_ctrl_l
  58.  
  59. # M = set window address - clashes with MR so commented out
  60. #key normal m monst_a
  61.  
  62. # U = run Until
  63. proc monst_u
  64.     dialog "" Run Until
  65.     run until #d
  66. endproc
  67. key normal u monst_u
  68.  
  69. # V = View screen
  70. key normal v screen
  71.  
  72. ###################
  73. # XDebug specials #
  74. ###################
  75.  
  76. # Alt-F = change Font
  77. key alt f screen font
  78.  
  79. # Alt-Q = Quit
  80. key alt q system
  81.  
  82. # Alt-C = Close window
  83. key alt c window close ?window
  84.  
  85. # Alt-M = Move window
  86. key alt m window move ?window
  87.  
  88. # Alt-P = Print window
  89. key alt p window print ?window
  90.  
  91. ###########
  92. # MacsBug #
  93. ###########
  94.  
  95. # gt = Go Til <addr>
  96. alias gt run until #1
  97.  
  98. # mr = Magic Return - puts breakpoint on return address directly on stack
  99. proc mr
  100.     go {sp}
  101. endproc
  102.  
  103. ##################
  104. # CodeView (ish) #
  105. ##################
  106.  
  107. # F3 = change Smart mode (source, mixed, asm)
  108. key fn 3 window mode 2
  109.  
  110. # F4 = switch screen
  111. key fn 4 screen
  112.  
  113. # F5 = run
  114. key fn 5 run
  115.  
  116. # F8 = Source single-step
  117. key fn 8 step source
  118.  
  119. # F10 = Source single-step over
  120. key fn 10 step sskip
  121.  
  122. echo "Emulation script installed OK"
  123.