Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. C++ to Assembly

C++ to Assembly

Scheduled Pinned Locked Moved C / C++ / MFC
c++
11 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tuotrut
    wrote on last edited by
    #1

    I downloaded a program that simulates a UNIVAC computer and I wrote some code for it in C++ and I tried loading it as a servo. Can someone post the Assembly source code I should put in the univactest2.cpp and the univactest2.obj files. THE .CPP FILE SHOULD BE TRANSLATED INTO A .ASM FILE. -------------------------- Eric I still need to learn C++! --------------------------

    M R 3 Replies Last reply
    0
    • T Tuotrut

      I downloaded a program that simulates a UNIVAC computer and I wrote some code for it in C++ and I tried loading it as a servo. Can someone post the Assembly source code I should put in the univactest2.cpp and the univactest2.obj files. THE .CPP FILE SHOULD BE TRANSLATED INTO A .ASM FILE. -------------------------- Eric I still need to learn C++! --------------------------

      M Offline
      M Offline
      Maximilien
      wrote on last edited by
      #2

      NO. but less seriously, I don't understand what you are trying to do ? I assume the simulator reads some sort of UNIVAC language, and me think it's not x86 assembly; and more important, if it's a real UNIVAC simulator, I think it would be very hard to do C++ on it, even if could translate the C++ language to UNIVAC language it would be SOOO big that it would be useless.


      Maximilien Lincourt Your Head A Splode - Strong Bad

      1 Reply Last reply
      0
      • T Tuotrut

        I downloaded a program that simulates a UNIVAC computer and I wrote some code for it in C++ and I tried loading it as a servo. Can someone post the Assembly source code I should put in the univactest2.cpp and the univactest2.obj files. THE .CPP FILE SHOULD BE TRANSLATED INTO A .ASM FILE. -------------------------- Eric I still need to learn C++! --------------------------

        R Offline
        R Offline
        Rage
        wrote on last edited by
        #3

        I honestly have no idea what you are talking about. Please give some hints so that we can help you.

        Tuotrut wrote:

        I downloaded a program that simulates a UNIVAC computer

        Where did you download it from ?

        Tuotrut wrote:

        I tried loading it as a servo

        What is a servo ?

        Tuotrut wrote:

        the Assembly source code I should put in the univactest2.cpp and the univactest2.obj files

        Which assembly code ? For what purposes ? for which plateform ? What yre the files you are talking about ? Are you aware that a .obj is already compiled and that you usually do not edit it per hand ?

        Tuotrut wrote:

        THE .CPP FILE SHOULD BE TRANSLATED INTO A .ASM FILE.

        Which cpp file ? I think that you can rename a file extension by yourself, don't you ? ~RaGE();

        T 1 Reply Last reply
        0
        • T Tuotrut

          I downloaded a program that simulates a UNIVAC computer and I wrote some code for it in C++ and I tried loading it as a servo. Can someone post the Assembly source code I should put in the univactest2.cpp and the univactest2.obj files. THE .CPP FILE SHOULD BE TRANSLATED INTO A .ASM FILE. -------------------------- Eric I still need to learn C++! --------------------------

          M Offline
          M Offline
          Maximilien
          wrote on last edited by
          #4

          UNIVAC user Guide[^] Nice read.


          Maximilien Lincourt Your Head A Splode - Strong Bad

          T 1 Reply Last reply
          0
          • R Rage

            I honestly have no idea what you are talking about. Please give some hints so that we can help you.

            Tuotrut wrote:

            I downloaded a program that simulates a UNIVAC computer

            Where did you download it from ?

            Tuotrut wrote:

            I tried loading it as a servo

            What is a servo ?

            Tuotrut wrote:

            the Assembly source code I should put in the univactest2.cpp and the univactest2.obj files

            Which assembly code ? For what purposes ? for which plateform ? What yre the files you are talking about ? Are you aware that a .obj is already compiled and that you usually do not edit it per hand ?

            Tuotrut wrote:

            THE .CPP FILE SHOULD BE TRANSLATED INTO A .ASM FILE.

            Which cpp file ? I think that you can rename a file extension by yourself, don't you ? ~RaGE();

            T Offline
            T Offline
            Tuotrut
            wrote on last edited by
            #5

            Rage wrote:

            Where did you download it from ?

            I downloaded it from Simtel.net.

            Rage wrote:

            What is a servo ?

            I don't realy know. It's probaly some UNIVAC command that fell off the face of the earth.

            Rage wrote:

            Which assembly code ? For what purposes ? for which plateform ? What yre the files you are talking about ? Are you aware that a .obj is already compiled and that you usually do not edit it per hand ?

            Standard assembly code, standard purposes, Intel, I just want it translated from C++ to Standard Assembly, I don't want you to edit the .obj file by hand but I want you to translate it into assembly and compile it in an Assembly compiler that will create a .obj file, and I can tell you where to get an assembly compiler to.

            Rage wrote:

            Which cpp file ? I think that you can rename a file extension by yourself, don't you ?

            Of course I can but I want some one who knows Assembly and C++ to translate it from C++ into Assembly and then post it on the the fourms under this topic and about the C++ file, I will post it when someone wants to trasnslate it for me. -------------------------- Eric I still need to learn C++! --------------------------

            M 1 Reply Last reply
            0
            • T Tuotrut

              Rage wrote:

              Where did you download it from ?

              I downloaded it from Simtel.net.

              Rage wrote:

              What is a servo ?

              I don't realy know. It's probaly some UNIVAC command that fell off the face of the earth.

              Rage wrote:

              Which assembly code ? For what purposes ? for which plateform ? What yre the files you are talking about ? Are you aware that a .obj is already compiled and that you usually do not edit it per hand ?

              Standard assembly code, standard purposes, Intel, I just want it translated from C++ to Standard Assembly, I don't want you to edit the .obj file by hand but I want you to translate it into assembly and compile it in an Assembly compiler that will create a .obj file, and I can tell you where to get an assembly compiler to.

              Rage wrote:

              Which cpp file ? I think that you can rename a file extension by yourself, don't you ?

              Of course I can but I want some one who knows Assembly and C++ to translate it from C++ into Assembly and then post it on the the fourms under this topic and about the C++ file, I will post it when someone wants to trasnslate it for me. -------------------------- Eric I still need to learn C++! --------------------------

              M Offline
              M Offline
              Maximilien
              wrote on last edited by
              #6

              If you don't know exactly what you are writing about, imagine us trying to figure out want you want to do, please explain what you really want to do. I don't think that you can "mecanically" generate a textual assembly listing for a C++ file, and I would think that it would take at least thousands of line of assembly to do simple stuff; and will be intelligible. why do you want to have an assembly listing ? for educational purpose ? to use it in your UNIVAC simulator ? if so, it will not work; it's a different instruction set.


              Maximilien Lincourt Your Head A Splode - Strong Bad

              T 2 Replies Last reply
              0
              • M Maximilien

                If you don't know exactly what you are writing about, imagine us trying to figure out want you want to do, please explain what you really want to do. I don't think that you can "mecanically" generate a textual assembly listing for a C++ file, and I would think that it would take at least thousands of line of assembly to do simple stuff; and will be intelligible. why do you want to have an assembly listing ? for educational purpose ? to use it in your UNIVAC simulator ? if so, it will not work; it's a different instruction set.


                Maximilien Lincourt Your Head A Splode - Strong Bad

                T Offline
                T Offline
                Tuotrut
                wrote on last edited by
                #7

                Can someone give me a listing or guide of Assembly Commands? -------------------------- Eric I still need to learn C++! --------------------------

                T J 2 Replies Last reply
                0
                • M Maximilien

                  If you don't know exactly what you are writing about, imagine us trying to figure out want you want to do, please explain what you really want to do. I don't think that you can "mecanically" generate a textual assembly listing for a C++ file, and I would think that it would take at least thousands of line of assembly to do simple stuff; and will be intelligible. why do you want to have an assembly listing ? for educational purpose ? to use it in your UNIVAC simulator ? if so, it will not work; it's a different instruction set.


                  Maximilien Lincourt Your Head A Splode - Strong Bad

                  T Offline
                  T Offline
                  Tuotrut
                  wrote on last edited by
                  #8

                  I want it for educational purpose and to use it in my UNIVAC simulator. Sorry about the other message I accidently posted the other message, but I still want you to read it.:rolleyes: -------------------------- Eric I still need to learn C++! --------------------------

                  1 Reply Last reply
                  0
                  • T Tuotrut

                    Can someone give me a listing or guide of Assembly Commands? -------------------------- Eric I still need to learn C++! --------------------------

                    T Offline
                    T Offline
                    toxcct
                    wrote on last edited by
                    #9

                    o you know Google.com ?:~


                    TOXCCT >>> GEII power
                    [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]

                    1 Reply Last reply
                    0
                    • M Maximilien

                      UNIVAC user Guide[^] Nice read.


                      Maximilien Lincourt Your Head A Splode - Strong Bad

                      T Offline
                      T Offline
                      toxcct
                      wrote on last edited by
                      #10

                      :wtf::omg: for educational purpose ? :~ I lime pits pupils !!!


                      TOXCCT >>> GEII power
                      [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]

                      1 Reply Last reply
                      0
                      • T Tuotrut

                        Can someone give me a listing or guide of Assembly Commands? -------------------------- Eric I still need to learn C++! --------------------------

                        J Offline
                        J Offline
                        John M Drescher
                        wrote on last edited by
                        #11

                        There is a switch in VC that will output intel assmbly code. I have no Idea how this will help you with a UNIVAC which I know will not use Intel assembly but the switch is in the project settings. I would tell you the switch location but this depends on your version of VC. John

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups