How to code procs for masm

From: Calm n Collected (spamtrap_at_crayne.org)
Date: 09/24/04

  • Next message: Ross A. Finlayson: "Re: Kind of new: function implementation questions, MASM"
    Date: Fri, 24 Sep 2004 18:42:18 +0000 (UTC)
    
    

    I am porting this partial code over to masm code from tasm.

    Masm is complaining about the calls.

    I need to learn how masm proc calls should be coded.
    The last three includes are just procs.

    Thanks.

    .model small
    .586
    .stack

    .data

    include data.inc

    .code
                          .startup

                          mov [sub1],0 ;
                          mov dx, offset DTA ; DOS Set Disk
    Transfer Address
                          mov ah,1ah ; not necessary, but
    it is better
                          int 21h ; to do it.
                          mov dx,offset here ; use DOS Change
    Directory with '..'
                          mov ah,3bh ; to return to
    parent directory
                          int 21h ; trusting default
    addresses
                          mov ax, offset exit ;
                          push ax ;
                          mov edi,1 ;
                   again: mov cx,7 ; DOS Find First
    File
                          mov dx, offset string+1 ;
                          mov ah,4eh ;
                          int 21h ;
                          jc no_more_file ;
                  repeat: call calculate ; prints the number
    in edx in decimal
                 
                          .exit
    include filename.asm
    include print.asm
    include calcul~1.asm

    end


  • Next message: Ross A. Finlayson: "Re: Kind of new: function implementation questions, MASM"