Partial Tutorial: The basics of 80x86 assembly with MASM 5.0 - Page 2
Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Partial Tutorial: The basics of 80x86 assembly with MASM 5.0

  1. #11
    Senior Member
    Join Date
    Sep 2001
    Posts
    534
    hello cheeseball i just tried out the example which u specified in your tutorial...
    well i tried out ...

    -----------------------code-------------------
    .model small

    .data
    db msg "Hello everyone!", "$" ;message we are storing (msg)

    .code
    main proc
    mov ax,SEG msg ;move the segment address of msg into ax
    mov dx,OFFSET msg ;move the offset of msg into ax
    mov ds, ax ;mov the SEG of msg into DS
    mov ah,09h ;calling function 09h
    int 21h ;of interrupt 21h (this displays the string stored in msg)

    mov ax,4c00h ;put 4c00h into ax
    int 21h ;interrupt 21h, return to DOS
    main endp

    end main

    ----------------------------------------

    but on assembling it with masm it is giving me following errors...

    ----------------- errors----------------

    Microsoft (R) Macro Assembler Version 6.11d
    Copyright (C) Microsoft Corp 1981-1995. All rights reserved.

    Assembling: try.asm
    try.asm(8) : error A2006: undefined symbol : msg
    try.asm(9) : error A2006: undefined symbol : msg
    try.asm(4) : error A2206: missing operator in expression

    -----------------------------------------

    requesting to pls help me...

    thanking u ....

    intruder...
    A laptop, internet connection and beer.

  2. #12
    Senior Member
    Join Date
    Sep 2001
    Posts
    138
    You have now offically found a typo in my code, (Notice I believe I said I didn't try to compile it?), the .data section should be
    msg db
    http://www25.brinkster.com/cheeseball

    -- Do not dwell in the past, do not dream of the future, concentrate the mind on the present moment--

  3. #13
    Senior Member
    Join Date
    Sep 2001
    Posts
    138
    You have now offically found a typo in my code, (Notice I believe I said I didn't try to compile it?), the .data section should be
    msg db "string$"

    Sorry about that......The code in the second tutorial was checked and does compile ok on masm version 5.0-6.14.

    Cheeseball
    http://www25.brinkster.com/cheeseball

    -- Do not dwell in the past, do not dream of the future, concentrate the mind on the present moment--

  4. #14
    Senior Member
    Join Date
    Sep 2001
    Posts
    534
    ...hey thanks for that... i read your second tutorial also...it is really a great job....
    thanks...i will correct ..what u specified and try to compile....

    thanks for the help..
    intruder...
    A laptop, internet connection and beer.

  5. #15
    Junior Member
    Join Date
    Jan 2002
    Posts
    1
    Yeah !!! great tutorial ....finally a step by step tutorial
    The best because it's for a dummy like me

  6. #16
    Junior Member
    Join Date
    Apr 2002
    Posts
    5
    I learn 80x86 assembly with NASM,a totally free stuff,available from this site:
    http://www.octium.net/nasm/

    Syntax is similar with MASM.The nice bit of NASM is it gots an good editor, also it is available in Linux,I am not sure MASM does. So could anyone say something about NASM and MASM ?

    nan

  7. #17
    Junior Member
    Join Date
    Jul 2001
    Posts
    1
    hello cheesy!
    that was ful of buggies,can u fix them or shall i send you them
    iam on the edge for your tutorials pls get it soon ....
    SDS

  8. #18
    They call me the Hunted foxyloxley's Avatar
    Join Date
    Nov 2003
    Location
    3rd Rock from Sun
    Posts
    2,528
    Are you for real !!!!
    you have been here [allegedly] for coming on FIVE years, and THIS is your idea of a post ???

    poor grammar and syntax
    and the thread is four YEARS old
    why didn't you reply THEN
    you 'were' here??

    registered Jul 2001 !!!!
    when did JP register
    55 - I'm fiftyfeckinfive and STILL no wiser,
    OLDER yes
    Beware of Geeks bearing GIF's
    come and waste the day :P at The Taz Zone

  9. #19
    King Arana: Super Moderator
    Join Date
    Oct 2002
    Posts
    4,055
    Now, Now Foxy.. no need to blast the user.. however, for future reference please do not make posts in threads this old. Thanks!
    Space For Rent.. =]

Posting Permissions

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