home *** CD-ROM | disk | FTP | other *** search
/ 8bitfiles.net/archives / archives.tar / archives / commodore-scene-files / Documents / JAMMON.DOC < prev    next >
Encoding:
Text File  |  2019-04-13  |  3.8 KB  |  135 lines

  1. Quick docs for JamaicaMON SLJ 1/31/97 sjudd@ffd2.com
  2. -------------------------
  3.  
  4. Last update: 10/3/99
  5.  
  6. version 2.2:
  7.  
  8.     - Note that v2 is larger than 4k; don't relocate to $C000!
  9.  
  10. Format:
  11.  byte      two characters -- use 09 instead of 9.  Exception is
  12.     load and save, where the device number may be 1 or 2 chars
  13.     (and is in _decimal_ i.e. not hex).
  14.  
  15.  addr    16 or 24 bits -- two or three bytes.
  16.  
  17.     If a 16-bit address is used, the current value of PBR is 
  18.     prepended to form a 24-bit address (e.g. d c000 will disassemble 
  19.     at $01C000 if PBR=01).
  20.  
  21. Notes:
  22.     If E=1 then X=M=1
  23.  
  24.     24-bit load/save is supported via CMD load/save patch.
  25.  
  26.     Requires a SuperCPU!
  27.  
  28. Commands
  29. --------
  30.  
  31. a    a addr command
  32.     Assemble.  Numbers/addresses are in hex and prefixed by a $.
  33.     <!> are valid in absolute addressing to force 8/16/24 bit addresses.
  34.     The flags (see r) determine whether immediate mode is be assembled
  35.     as 8 or 16 bits.  !x and !m may be used to flip the X and M bits
  36.     during assembly (!! will flip both; note that X=M=1 when e=1).
  37.  
  38. d    d addr
  39.     Disassemble one screen.
  40.  
  41. <-    <-
  42.     Disassemble one screen backwards from current address.
  43.  
  44. {lira}    {lira}
  45.     Toggle whether disassembler follows REP and SEP.  Note that if E=1
  46.     then X=M=1 always.  (I felt the lira key was growing lonely from
  47.     neglect, so he gets the toggle honor).
  48.  
  49. ,    , addr byte1 [byte2 ...]
  50.      Re-disassemble.  The bytes following the address are read in and 
  51.     stored, and the screen is re-disassembled.
  52.  
  53. p    p addr1 addr2
  54.     Disassemble range.
  55.  
  56. #    #number
  57.     Number conversion.  Argument "number" may be hex ($), binary (%),
  58.     or decimal (no prefix).
  59.  
  60. r/e    no args
  61.     Display regs/alternate regs.  Note that value of flags, PBR,
  62.     and $01 can alter certain commands: flags determine 8/16 bit
  63.     #immediate mode assembly and disassembly, PBR changes default
  64.     address locations, and $01 affects any memory read (disassembly,
  65.     memory display, etc.)
  66.  
  67. m    m [addr1 [addr2]]
  68.     Display memory.  If a second address is specified, display memory
  69.     range.  If no address is specified, then continuously display
  70.     memory from the current address.
  71.  
  72. i    i [addr1 [addr2]]
  73.      Display memory+text.  Memory can't be modified like m command
  74.     (not enough room on the screen line!).
  75.  
  76. i*    i* [addr1 [addr2]]
  77.     Display memory as screen codes.
  78.  
  79. h    h addr1 addr2 byte1 [byte2 ...] or h addr1 addr2 "string"
  80.      Hunt.
  81.  
  82. f    f addr1 addr2 byte
  83.       Fill range of memory with specified byte.
  84.  
  85. t    t addr1 addr2 dest
  86.     Transfer memory.
  87.  
  88. n    n addr1 addr2 addr3 dest
  89.     Relocate code.  addr1=start of code, addr2=start of variables,
  90.     and addr3=end of variables.  Transfers memory and updates addresses
  91.     between addr1 and addr2.  This way, programs (like JamaicaMON!) that 
  92.     have code followed by variables and tables can be relocated in one 
  93.     swell foop (use w to get jamaicamon addresses).  Yep, you're SOL
  94.     if you just want to relocate a table -- maybe a future update?
  95.  
  96.     To relocate jammon, use w, set the dest address, relocate the
  97.     code, and g dest.
  98.  
  99. w    no args
  100.      Where am I?  Prints addresses of jammon code, vars, and end.
  101.  
  102. ;^:    various
  103.     Alter regs/alternate regs/memory (printed by r and e)
  104.  
  105. l    l "filename",dev[,addr]
  106.     Load  file (to addr if specified).
  107.  
  108. s    s "filename",dev,addr1,addr2
  109.     Save file
  110.  
  111. @    @ @$ @#dev @command
  112.     Send disk command.  @ reads the error channel.  @$ displays the
  113.     directory.  @#dev changes the current device to dev.  @command
  114.     sends "command" to the drive.
  115.  
  116. b    b addr
  117.     Set breakpoint.  The address and previous contents are remembered;
  118.     if the monitor is then re-entered from this point, the previous
  119.     contents are restored.  Only one breakpoint may be set at a time.
  120.  
  121. g    g [addr]
  122.     Restore registers and go.  If no address is specified, it will go to PC.
  123.  
  124. z    z [addr]
  125.     Zingle ztep.  Zame az go, but zets a breakpoint at ze next inztruction.
  126.     (Note that branches, JSRs, etc. will not be followed).
  127.  
  128. x    no args
  129.     Exit to basic.
  130.  
  131. ?    no args
  132.     List available command keys
  133.  
  134. This program is in the public domain.
  135.