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

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