Difference between revisions of "F8tool"

From veswiki
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
F8tool is an assembler AND disassembler to assemble your code into a binary file and to make binary files understandable by translating it into rudimentary assembler again.
 
F8tool is an assembler AND disassembler to assemble your code into a binary file and to make binary files understandable by translating it into rudimentary assembler again.
  
The disassembly does currently not mask out data areas, everything is interpreted as OP-codes.
+
The disassembly attempts to mask out data areas if using the -s argument.  
  
 
Here are the instructions to run it: <br>
 
Here are the instructions to run it: <br>
  
"''f8tool asm file.asm file.bin''" will compile file.asm and give you file.bin. <br><br>
+
'''"f8tool asm file.asm file.bin" will compile file.asm and give you file.bin.'''
  
"''f8tool dis file.bin 2048 > file.asm''" will disassemble file.bin giving you <br>
+
'''"f8tool dis file.bin 2048 > file.asm" will disassemble file.bin giving you
file.asm starting at address 2048 (which is $800). You can also use hexadecimal numbers: <br>
+
file.asm starting at address $0800.'''
"''f8tool dis file.bin 0x0800 > file.asm''"
 
  
 +
'''"f8tool dis file.bin 2048 > file.asm -s" will disassemble file.bin and attempt
 +
to mask out the data areas.'''
  
[https://channelf.se/files/channelf/f8tool.zip  F8 Tool package including source code (.zip, 221kB)]
+
'''You can also use hex notation 0x0800 instead of 2048 - should you want to.'''
 +
 
 +
 
 +
[https://channelf.se/veswiki/images/f/f7/F8TOOL_2.0.zip  F8 Tool package including source code (.zip, 358KiB)]
  
  
 
F8tool was written by [[Peter Trauner]], who also wrote [[Homebrew:Tetris|Tetris]] for the Channel F.
 
F8tool was written by [[Peter Trauner]], who also wrote [[Homebrew:Tetris|Tetris]] for the Channel F.

Latest revision as of 00:39, 27 June 2026

F8tool is an assembler AND disassembler to assemble your code into a binary file and to make binary files understandable by translating it into rudimentary assembler again.

The disassembly attempts to mask out data areas if using the -s argument.

Here are the instructions to run it:

"f8tool asm file.asm file.bin" will compile file.asm and give you file.bin.

"f8tool dis file.bin 2048 > file.asm" will disassemble file.bin giving you file.asm starting at address $0800.

"f8tool dis file.bin 2048 > file.asm -s" will disassemble file.bin and attempt to mask out the data areas.

You can also use hex notation 0x0800 instead of 2048 - should you want to.


F8 Tool package including source code (.zip, 358KiB)


F8tool was written by Peter Trauner, who also wrote Tetris for the Channel F.