dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    6,210

    Re: Can somebody please explain this to me ?

    For what OS are you writing assembler? Many of the assembler books are from the 1980/90's when you wrote dos programs in assembler.
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++17 Compiler: Microsoft VS2017 (15.7.1)

  2. #17
    Join Date
    Sep 2017
    Posts
    15

    Re: Can somebody please explain this to me ?

    I am using SASM IDE on Windows 7 , so that i can learn about some functions in Win 32 API , i hope that is what it is called .

    Some years ago when i tried to learn assembly language for the first time , i could only find simple examples for Linux only.

    I stopped following Assembly language when i could not find enough examples , same situations these days .Can't find enough examples .

  3. #18
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    6,210

    Re: Can somebody please explain this to me ?

    If you are writing assembler for windows, then a lot of what is probably in books etc can't be used as that is for ms-dos programming. You need to use only .model flat and you can't use int (ie no int 21h etc as that is for ms-dos). My assembler books are all from the 1980/90's. So I can't really advise on good modern assembly books either.

    I'll try and answer any specific assembler language question, but to be honest I haven't done much with Intel assembler for over 20 years - and I haven't used it to generate pure assembler windows console (or gui) programs. Since the mid 1990's I've done only some limited in-line assembler as part of c programs using Visual Studio but the bulk of the code has been c. I haven't knowledge of the new instructions Intel have added and I've done no 64-bit assembler code at all - although I might have a look at this as it could be interesting.

    Perhaps some other guru with more recent assembler language experience would advise.
    Last edited by 2kaud; September 25th, 2017 at 12:23 PM.
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++17 Compiler: Microsoft VS2017 (15.7.1)

  4. #19
    Join Date
    Dec 2006
    Posts
    74

    Re: Can somebody please explain this to me ?

    Quote Originally Posted by mandhabudhi View Post
    I am using SASM IDE on Windows 7 , so that i can learn about some functions in Win 32 API , i hope that is what it is called .

    Some years ago when i tried to learn assembly language for the first time , i could only find simple examples for Linux only.

    I stopped following Assembly language when i could not find enough examples , same situations these days .Can't find enough examples .
    Search for Windows assembly programming tutorials by Iczelion. However, that will only be helpful for Win32 because things are very different in x64.

    That being said, my advice is that you start with MS-DOS. For learning purposes cmd.exe, the command-line prompt in Win32, works well as DOS emulator. The problem with Win32 as a starting point for learning assembly language is its heavy reliance on APIs, whence learning assembly in MS-DOS (with the Int 21h mentioned by 2kaud) turns out to be more enlightening.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)