home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / hv503aa.zip / HIEWE.503 < prev    next >
Text File  |  1995-10-03  |  11KB  |  263 lines

  1.  
  2.   ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  3.   ▒▒▒▒▒▒▒▒▒┼┼┼┼┼┼┼┼┼┼▒▒▒┼┼┼┼┼┼┼┼┼┼▒▒▒┼┼┼┼┼▒▒▒▒┼┼┼┼▒▒▒▒▒▒▒▒▒▒▒ æπß½¿¬«ó   ▒▒▒
  4.   ▒▒▒▒▒▒▒▒┼┼┼┼░░░░░░░░▒┼┼┼┼░░░░░░░░▒┼┼┼┼┼┼░▒▒┼┼┼┼░░▒▒▒▒▒▒▒▒▒▒ àóúÑ¡¿⌐    ░░▒
  5.   ▒▒▒▒▒▒▒┼┼┼┼░░▒▒▒▒▒▒▒┼┼┼┼░░▒▒▒▒▒▒▒┼┼┼┼░┼┼░▒┼┼┼┼░░▒▒▒▒▒▒▒▒▒▒▒ ì¿¬«½áÑó¿τ ░░▒
  6.   ▒▒▒▒▒▒┼┼┼┼┼┼┼┼┼┼▒▒▒┼┼┼┼┼┼┼┼┼┼▒▒▒┼┼┼┼░░┼┼░┼┼┼┼░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░░░▒
  7.   ▒▒▒▒▒▒▒░░░░┼┼┼┼░░▒┼┼┼┼░░░░░░░░▒┼┼┼┼░░▒┼┼┼┼┼┼░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  8.   ▒▒▒▒▒▒▒▒▒▒┼┼┼┼░░▒┼┼┼┼░░▒▒▒▒▒▒▒┼┼┼┼░░▒▒┼┼┼┼┼░░▒  FIDO:  2:5020/35.200   ▒▒▒
  9.   ▒▒▒┼┼┼┼┼┼┼┼┼┼░░▒┼┼┼┼┼┼┼┼┼┼▒▒▒┼┼┼┼░░▒▒▒┼┼┼┼░░▒▒ voice: (384-2-)23-31-40 ░░▒
  10.   ▒▒▒▒░░░░░░░░░░▒▒▒░░░░░░░░░░▒▒▒░░░░▒▒▒▒▒░░░░▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░░░░▒
  11.   ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  12.  
  13.  
  14.   DOS  Release 5.03a  3 Oct 1995
  15.   OS/2 Release 5.03a  3 Oct 1995
  16.  
  17.  ( English translation: M.Korneff )
  18.  
  19. ▒▒▒▒ Contents ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  20.  
  21.   1. About HIEW
  22.   2. Assembler mode
  23.   3. Basing
  24.   4. Block operations
  25.   5. Video modes
  26.   6. Status bar
  27.   7. Keys
  28.   8. Bookmarks
  29.   9. Jumps (call/jmp) in the disassembler mode
  30.  10. Search/replace operations
  31.  11. Crypt operations
  32.  12. INI file
  33.  13. SAV file
  34.  
  35. ▒▒▒▒ About HIEW ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  36.  
  37.         Basically HIEW (Hacker's  view) is  a hex  viewer for  those who  need
  38. change some bytes in the  code (usually 7xh  to 0EBh).  Hiew  is able to  view
  39. unlimited length files in text/hex modes and in 386 disassembler mode.
  40.  
  41.     Features:
  42.  
  43.  ■ Text/hex mode editor
  44.  ■ Built-in 386 assembler
  45.  ■ HIEW is able to create new files
  46.  ■ Search and replace mode (can be restricted to block size)
  47.  ■ Context-sensitive help (but who needs any goddamned help anyways? HIEW can
  48.    operate without help file HIEW.HLP)
  49.  ■ Search of assembler commands using pattern (for real hackers!)
  50.  ■ Version 5.02 compiled for OS/2, EXE for DOS use as stub
  51.  
  52. ▒▒▒▒ Assembler mode ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  53.  
  54.         "Byte/word/dword ptr" may be abbreviated to "b/w/d".  All numbers  are
  55. hex, so the letter "h"  is optional.  You can  use math operations (i.e.   mov
  56. bx, [123+23-46h] = mov  bx,[100h]).  Error  messages are  very brief  (invalid
  57. command, syntax error, invalid operand, missing/invalid size).   Unconditional
  58. JMP will be translated to 0E9 XX XX, so if you want near jump (0EB), you  have
  59. to type jmp short xxxxx (or jmps xxxxx ).
  60.  
  61.         There is 386  assembler in HIEW  version 5.00 or  later, so check  all
  62. jumps carefully because you may get unwanted long jump in 8086 code.
  63.  
  64.         WARNING!  The same command can  be assembled differently depending  on
  65. the assembler you're using.
  66.  
  67. ▒▒▒▒ Basing ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  68.  
  69.         Base is a constant  that will be added  to offset and jump  addresses.
  70. If current offset is YY and you need XX, you should type base "*XX"  (asterisk
  71. is required!).
  72.  
  73. ▒▒▒▒ Block operations ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  74.  
  75.         Block operations are working only  in Hex and  Decode modes.  You  can
  76. mark blocks without switching  to Edit  mode.  Block  can be  written to  file
  77. using PutBlk(F2).  If you want  to append the  block to the  end of file,  you
  78. should type "FFFFFFFF" offset.  You can  insert the block to the current  file
  79. from another file using GetBlk  (CtrlF2).   Block  will  be  inserted  on  the
  80. current offset.
  81.  
  82. ▒▒▒▒ Video modes ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  83.  
  84.    HIEW supports video modes up to 132x75.
  85.  
  86. ▒▒▒▒ Status Bar ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  87.  
  88. ──────────────────────────────────────────────────────────────────────────────
  89.  xxx% Filename.ext R          xxxxxxxx xxx -------- YYYYYYY║ HIEW X.XXa by SEN
  90. ──────────────────────────────────────────────────────────────────────────────
  91.  └┬─┘ └─────────┬┘ │          └──┬───┘ └┬┘ └─┬────┘ └──┬───┘
  92.  percent        │  │           current  │    │         file length in bytes
  93.  indicator      │  │           offset   │    │
  94.  (only if BAR=P │  │                    │    │   1: status of the bookmarks:
  95.   in HIEW.INI)  │  │                    │    │     '-' free
  96.                 V  │                    │    └─>   '1...8' respective position
  97.          filename  │                    │          is currently used
  98.                    │                    │          '*' current
  99.                    │                    │        2: "<Editor>" = Edit mode
  100.                    │                    │
  101.                    V                    │
  102.       status of the file:               └─> 1: Text mode: number of the first
  103.       R - open in Read mode                    column
  104.       W - open in Write mode                2: Decode mode: measurement of
  105.       U - modified                             operands and addresses
  106.  
  107.  
  108. ▒▒▒▒ Keys ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  109.  
  110.         All keys are described  in HIEW.HLP  (press Alt-H).   HIEW.HLP may  be
  111. modified.  First line of HIEW.HLP must be "[HiewHelp 5.01]".  Semicolon ';' is
  112. a comment prefix character.   By pressing Alt-H  the respective section  (from
  113. [xxxx] till [yyyy]) will be  displayed.   HIEW.HLP  must  be  terminated  with
  114. [End].
  115.  
  116.  
  117. ▒▒▒▒ Bookmarks ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  118.  
  119.         Bookmarks is for saving/restoring of the current screen.  Press '+' to
  120. save the state of current screen.  You can save eight screens.  To restore any
  121. saved screen, press Alt-1...Alt-8 respectively.  There are different  bookmarks
  122. for different modes (Text/ Hex/Decode).
  123.  
  124. ▒▒▒▒ Jumps (call/jmp) in the disassembler mode ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  125.  
  126.         Now jumps is 100% configurable.  Jumps can be specified in HIEW.INI in
  127. the jumpTable array.  This line (C  Language) consists of digits and  letters.
  128. First character used to undo  jump ('0'  in HIEW  4, 'Z'  in HIEW  5 day  28).
  129. After reading from keyboard the character will be converted to the upper case,
  130. then search in jumpTable will  be performed.   Default value  of jumpTable  is
  131. '1'-'9', then 'A'-'Z'.
  132.  
  133. ▒▒▒▒ Search/replace operations ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  134.  
  135.         If search string was entered  in ASCII field, case-insensitive  search
  136. will be performed.  If you  want to  perform case-sensitive  search, move  the
  137. cursor to the HEX field and press Enter.
  138.  
  139.         You can search assembler commands (F7).
  140.  
  141.         Now search/replace can be restricted  to  selected  block  (F4  during
  142. entering the search/replace string).
  143.  
  144.         In the disassembler mode you  can use wildcards in assembler  commands
  145. for searching.  The wildcard character  is '?'.  For example, DECODE  <F7><F7>
  146. 'mov ax, ?' will look for 'mov ax,1234h", "mov ax,sp", etc.
  147.  
  148.  
  149. ▒▒▒▒ Crypt operations (F7/F8 in Edit) ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  150.  
  151.    Crypt operations are using for crypting/decrypting the code/data. Crypt
  152. algorithm is very simple. Code/data will be crypted by the bytes/words (to
  153. change the size ot the unit, press F2). Crypting routine must be terminated
  154. with "LOOP numberLine" operator.
  155.  
  156.               Available commands:
  157.  
  158.         Reg mode    : neg,mul,div
  159.         Reg-Reg mode: mov,xor,add,sub,rol,ror,xchg
  160.         Reg-Imm mode: mov,xor,add,sub,rol,ror
  161.         Imm mode    : loop
  162.  
  163.         All 8/16 bit registers are available, except AL/AX that will be filled
  164. with (de)crypted byte/word.
  165.  
  166.    The differences from standart asembler:
  167.         there are no jumps;
  168.         'loop' means 'jmp/stop'
  169.         the operands of 'rol/ror' commands must have the same size, i.e.
  170.         ROL AX,CL not allowed.
  171.  
  172.    Example:
  173.      a. XOR byte with 0AAh:
  174.         1. XOR  al,0aah
  175.         2. LOOP 1
  176.  
  177.      b. XOR word with mask increment
  178.         1. MOV  dx,0
  179.         2. XOR  ax,dx
  180.         3. ADD  dx,1
  181.         4. LOOP 2
  182.  
  183. ▒▒▒▒ INI file ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  184.  
  185.    INI file must be located in HIEW.EXE home directory.
  186.    First line in HIEW.INI always "[HiewIni 5.01]" !
  187.    Blank line or line, beginners with ';' is ignored.
  188.  
  189. -----8<------ Example HIEW.INI -------8<-------
  190.  
  191.     [HiewIni 5.01]
  192. ;
  193. ;       Startup
  194. ;                                        ; legal values
  195.  
  196. ; startup mode
  197. ;
  198.  StartMode               = Text          ; Text | Hex     | Code
  199.  
  200. ; beeper
  201.  Beep                    = On            ; On   | Off
  202.  
  203. ; percent indicator
  204.  Bar                     = Left          ; Left | Right   | Percent
  205.  
  206. ; warp/don't warp long lines
  207. ; Auto=Off for textfile, On for binary
  208.  Wrap                    = Auto          ; Auto | On      | Off
  209.  
  210. ; tabulation
  211. ; Auto=On for textfile, Off for binary
  212.  Tab                     = Auto          ; Auto | On      | Off
  213.  
  214. ; step for Ctrl-Left, Ctrl-Right in textmode
  215.  StepCtrlRight           = 20            ; 1 - 128
  216.  
  217. ; Show/Do not show mouse cursor
  218.  DisableMouse            = On            ; On   | Off
  219.  
  220. ; see next line :-)
  221.  ActionAfterWriteSavfile = None          ; None | ExitF10 | ExitESC
  222.  
  223. ; table symbols for branch call/jmp
  224.  JumpTable               = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  225. ;
  226. ;       Colors
  227. ;
  228.  ColorMain               = 0x1B       ; main color
  229.  ColorCurrent            = 0x71       ; current byte
  230.  ColorMark               = 0x5E       ; block color
  231.  ColorEdit               = 0x1E       ; file editing
  232.  ColorEditOut            = 0x1D       ; non-file editing
  233.  ColorError              = 0x4E       ; error messages
  234.  ColorMsg                = 0x2E       ; messages
  235.  ColorTitle              = 0x70       ; status bar
  236.  ColorKbNum              = 0x07       ; keys
  237.  ColorKb                 = 0x30       ; key is active
  238.  ColorKbOff              = 0x37       ; key is inactive
  239.  ColorBar                = 0x02       ; progress indicator
  240.  ColorWin                = 0x70       ; input dialog
  241.  ColorWinBold            = 0x7F       ;  - " -  selected
  242.  ColorWinInput           = 0x3F       ;  - " -  input field
  243.  ColorMenu               = 0x30       ; menu frame
  244.  ColorMenuText           = 0x31       ;  - " - field
  245.  ColorMenuBold           = 0x0F       ;  - " - text
  246.  ColorHelp               = 0x20       ; help frame
  247.  ColorHelpText           = 0x2E       ;  - " - field
  248.  ColorHelpBold           = 0x0F       ;  - " - text
  249.  
  250. ; ---+--- End of Inifile ---+---
  251.  
  252. --------8<--------8<--------8<--------
  253.  
  254.  
  255. ▒▒▒▒ SAV file ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  256.  
  257.         If executed without any parameters, HIEW will look for SAV file in the
  258. current directory (you can  specify /FS=<savefile>  in the  command line)  and
  259. restore previously saved  (Ctrl-F10) state.  If  executed with filename,  HIEW
  260. will use SAV file only to restore search/replace data.
  261.  
  262. ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ = YES = ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  263.