Re: CPU simulator written in C

From: Dan Pop (Dan.Pop_at_cern.ch)
Date: 06/23/04

  • Next message: Allan Bruce: "Re: Getting window coordinates"
    Date: 23 Jun 2004 12:52:40 GMT
    
    

    In <2jsitqF151a28U1@uni-berlin.de> /* frank */ <__frank__@despammed.com> writes:

    >I have to do a homework: make a CPU simulator using C language.

    Well, C is particularly suitable for such an exercise.

    >I have a set of asm instructions so I have to write a program
    >that should:
    >- load .asm file
    >- view .asm file
    >- do a step by step simulation
    >- display registers contents
    >
    >I tried to search con google with no success.
    >
    >Any help (links, tricks/tips...)
    >would be really appreciated.

    Apart from being lazy, you're also stupid if you can expect any help
    without specifying the CPU being emulated and the format of the .asm
    files. I hope they're containing machine code and not assembly code,
    because assemblying the code is, by far, the most difficult part of the
    exercise.

    Anyway, you can't expect any help until you describe your design and
    ask very specific questions about its implementation.

    Dan

    -- 
    Dan Pop
    DESY Zeuthen, RZ group
    Email: Dan.Pop@ifh.de
    

  • Next message: Allan Bruce: "Re: Getting window coordinates"

    Relevant Pages

    • Re: In memory layout of the C++ program
      ... suppose i have a assembly code i wann to convert it into the exe fileI ... wann to know how this can happen. ... But if u compile this program and get the ASM file you can see ... And the stack is not like this as you have mentioned. ...
      (microsoft.public.vc.language)
    • In memory layout of the C++ program
      ... Well i wann to know ... suppose i have a assembly code i wann to convert it into the exe fileI ... But if u compile this program and get the ASM file you can see ... Vars] [Stack Pointer] ...
      (microsoft.public.vc.language)
    • To mark randall
      ... Well i wann to know ... suppose i hav e a assembly code i wann to convert it into the exe fileI ... ASM file you can see the registers. ... And the stack is not like this ...
      (microsoft.public.vc.language)