flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
fasm9
Just curious, i am dying to know. ;)
-- |
|||
![]() |
|
fasm9
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'. |
|||
![]() |
|
scientica
fasm9 see my reply to the emacs post
![]() ![]() |
|||
![]() |
|
fasm9
Thanks again!
Googling didn't much help me out. ;) -- regards |
|||
![]() |
|
Ralph
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.. |
|||
![]() |
|
crc
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.
|
|||
![]() |
|
evil__donkey
An emulator could be used as an aid to tutor assembly language.
|
|||
![]() |
|
lilainst
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 |
|||
![]() |
|
halyavin
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?
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.