flat assembler
Message board for the users of flat assembler.
Index
> Main > Admin, can you make FASM interpreter? |
Author |
|
fasm9 31 Jul 2004, 11:15
Just curious, i am dying to know. ;)
-- |
|||
31 Jul 2004, 11:15 |
|
fasm9 31 Jul 2004, 12:25
Thank you ask for it,
it's because of IDE, have to compile asm, always go out of editor, and type something it on shell. So maybe interpreter is not my goal. anyway, happy to said 'Just curious'. |
|||
31 Jul 2004, 12:25 |
|
scientica 31 Jul 2004, 13:56
fasm9 see my reply to the emacs post now you can run the compile from emacs and see the output directly
|
|||
31 Jul 2004, 13:56 |
|
fasm9 31 Jul 2004, 14:06
Thanks again!
Googling didn't much help me out. ;) -- regards |
|||
31 Jul 2004, 14:06 |
|
Ralph 31 Jul 2004, 23:05
Why would you have to write an emulator? The following seems like a fairly straight forward way to me:
1. Enter a line of assembly 2. Assemble 3. Save interpreter context, load application context 4. Execute one instruction, return to interpreter Then you could also display register status, memory, etc and update it after every instruction. You could come up with some creative way to handle labels too like maybe initially only use @@ and change its behaviour a little to allow for forward referencing (eg jmp @f would compile a long jump and @@ would patch it up when reached). You could even save multiple contexts so you can backstrace and correct problems or just rerun up to a certain point. A tool like this might make it easier to learn assembly because you could immediately see what certain instructions do especially on intel where many instructions have implied affects (eg rep lods modifies 3 registers based on direction flag). It could make it easier/faster to write certain routines because you don't have to assemble, verify, go back and fix bugs, repeat. Just some thoughts.. |
|||
31 Jul 2004, 23:05 |
|
crc 01 Aug 2004, 06:45
Emulation would be needed when you're under Linux or Windows and the code involves port I/O, or "priviliged" instructions. Most of the code could be handled the way you suggest, but not all of it. I must admit though, I loved the old DEBUG tool, which could be used a lot like your example, though it was only for 16- bit 808x, not the 32-bit instructions.
|
|||
01 Aug 2004, 06:45 |
|
evil__donkey 01 Aug 2004, 06:58
An emulator could be used as an aid to tutor assembly language.
|
|||
01 Aug 2004, 06:58 |
|
lilainst 08 Aug 2004, 15:57
crc wrote: Emulation would be needed when you're under Linux or Windows and the code involves port I/O, or "priviliged" instructions. Most of the code could be handled the way you suggest, but not all of it. I must admit though, I loved the old DEBUG tool, which could be used a lot like your example, though it was only for 16- bit 808x, not the 32-bit instructions. Then what about writing a 32-bit DEBUG, as an assistent of fasm on both Linux and Win32 platform. Actually, there isn't an good assembler-level Debuger can both run under Linux and Windows Last edited by lilainst on 24 Aug 2004, 07:24; edited 1 time in total |
|||
08 Aug 2004, 15:57 |
|
halyavin 23 Aug 2004, 17:13
I have unit in delphi which emulate almost all commands. And this module can be usily converted to .dll library. All you need - load segments of code. (It can debug program also) Do you need it?
|
|||
23 Aug 2004, 17:13 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.