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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Game Programming Book Uses C and Asm How do I build these programs

Game Programming Book Uses C and Asm How do I build these programs

Scheduled Pinned Locked Moved C / C++ / MFC
questioncsharpvisual-studiogame-devhelp
5 Posts 3 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.
  • U Offline
    U Offline
    User 10841325
    wrote on last edited by
    #1

    I am going through an older programming book which uses both C and Assembly. Most of these assembly routines are 16bit routines. How do I get Visual studio to link in my .obj files. The first part of the book uses .asm files with a corrisponding .c file, where the c program uses the function in the .asm file. As I scan through the book it looks like it uses inline assembly in the later parts of the book. I have both MASM 6.11 and MASM32 and I have access to Visual Studio 6, 2005, and 2010. These all are 32bit compilers, where the samples in the book all seem to be 16bit and I think they expect to run under DOS, not windows. Is it possible to create these sample programs and test them? I do have access to a machine that has Windows XP on it, if that would help? Thanks!

    M L 2 Replies Last reply
    0
    • U User 10841325

      I am going through an older programming book which uses both C and Assembly. Most of these assembly routines are 16bit routines. How do I get Visual studio to link in my .obj files. The first part of the book uses .asm files with a corrisponding .c file, where the c program uses the function in the .asm file. As I scan through the book it looks like it uses inline assembly in the later parts of the book. I have both MASM 6.11 and MASM32 and I have access to Visual Studio 6, 2005, and 2010. These all are 32bit compilers, where the samples in the book all seem to be 16bit and I think they expect to run under DOS, not windows. Is it possible to create these sample programs and test them? I do have access to a machine that has Windows XP on it, if that would help? Thanks!

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

      (my 2c) Get a new modern game programming book. Unless you come around a REAL performance issue (measured and profiled), there is no need nowadays to use assembly code. good modern C and C++ coding practice will be sufficient to do everything you need to do in a game. As for the question, I don't have a clue; I've not touched assembly code in 20+ years of professional work.

      I'd rather be phishing!

      1 Reply Last reply
      0
      • U User 10841325

        I am going through an older programming book which uses both C and Assembly. Most of these assembly routines are 16bit routines. How do I get Visual studio to link in my .obj files. The first part of the book uses .asm files with a corrisponding .c file, where the c program uses the function in the .asm file. As I scan through the book it looks like it uses inline assembly in the later parts of the book. I have both MASM 6.11 and MASM32 and I have access to Visual Studio 6, 2005, and 2010. These all are 32bit compilers, where the samples in the book all seem to be 16bit and I think they expect to run under DOS, not windows. Is it possible to create these sample programs and test them? I do have access to a machine that has Windows XP on it, if that would help? Thanks!

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        As Max says you need to look at more modern environments for games development. You may find more useful information at http://www.microsoft.com/en-gb/download/details.aspx?id=23714[^], although be aware of http://www.gamasutra.com/view/news/185894/Its_official_XNA_is_dead.php[^].

        U 1 Reply Last reply
        0
        • L Lost User

          As Max says you need to look at more modern environments for games development. You may find more useful information at http://www.microsoft.com/en-gb/download/details.aspx?id=23714[^], although be aware of http://www.gamasutra.com/view/news/185894/Its_official_XNA_is_dead.php[^].

          U Offline
          U Offline
          User 10841325
          wrote on last edited by
          #4

          Actually I selected this book specifically because it was a mix of 16bit assembly and C. I have a project coming up that was written as a C and Assemby application. This gaming book looked like a fun way to pickup on the skills I need. I have not done any C and Assembly mixed programming, before, so my biggest problem right now is to figure out how to successfully build a complete runable app. I am not really planning to write a game, I just want to be able to get the samples to work as I read through the sections I need. Thanks again!

          L 1 Reply Last reply
          0
          • U User 10841325

            Actually I selected this book specifically because it was a mix of 16bit assembly and C. I have a project coming up that was written as a C and Assemby application. This gaming book looked like a fun way to pickup on the skills I need. I have not done any C and Assembly mixed programming, before, so my biggest problem right now is to figure out how to successfully build a complete runable app. I am not really planning to write a game, I just want to be able to get the samples to work as I read through the sections I need. Thanks again!

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Member 10875481 wrote:

            This gaming book looked like a fun way to pickup on the skills I need.

            On the contrary it is an extremely bad way. Learning how to write 16-bit applications is a total waste of time since Windows no longer supports them. Get hold of a modern book on C++ or C#, and a copy of the latest Visual Studio*, and spend your time learning the languages that will be of some real use. * If you cannot afford to buy the pro version then you can get the Express Edition[^] which is free.

            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