www.delorie.com/gnu/docs/gforth/gforth_191.html   search  
 
Buy GNU books!


Gforth Manual

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.23.3 Common Disassembler

You can disassemble a code word with see (see section 5.22.3 Debugging). You can disassemble a section of memory with

doc-disasm

The disassembler generally produces output that can be fed into the assembler (i.e., same syntax, etc.). It also includes additional information in comments. In particular, the address of the instruction is given in a comment before the instruction.

See may display more or less than the actual code of the word, because the recognition of the end of the code is unreliable. You can use disasm if it did not display enough. It may display more, if the code word is not immediately followed by a named word. If you have something else there, you can follow the word with align last , to ensure that the end is recognized.


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003