Results 1 to 10 of 10

Thread:

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Jan:2009
    Location: bg
    Posts: 5

    ...

    : ASCII .

    stack_seg segment stack
    dw 128 dup (?)
    stack_seg ends
    pokazwane segment
    assume csokazwane
    start: mov dl,00
    m1: mov ah,02h ;
    int 21h ; DL
    inc dl
    call izchakvane ;
    jmp m1
    izchakvane proc near ;
    push bx
    push cx
    mov bl,20h ;
    m3: mov cx,0ffffh
    m2: dec cx
    jnz m2
    dec bl
    jnz m3
    pop cx
    pop bx
    ret ;
    izchakvane endp ;
    pokazwane ends
    end start


    : ASCII ( FAR)

    extrn izchakvane:far
    stack_seg segment stack
    dw 128 dup (?)
    stack_seg ends
    brojach segment
    assume cs:brojach, ss:stack_seg
    start: mov dl,00
    m1: mov ah,02 ;
    int 21h ; DL
    inc dl

    jmp m1
    brojach ends
    end start
    end

    : -

    public izchakvane
    stack_seg segment stack
    dw 128 dup (?)
    stack_seg ends
    podpr_izchakvane segment
    assume csodpr_izchakvane, ss:stack_seg
    izchakvane proc far
    push bx
    push cs
    mov bl,20h
    m2: mov cx,0ffffh
    m1: dec cx
    jnz m1
    dec bl
    jnz m2
    pop cx
    pop bx
    ret
    izchakvane endp
    podpr_izchakvane ends
    end

    ... LINK PROG2+PROG3 , dos-a
    , ...
    Last edited by fresh_girl; 27th January 2009 at 00:41.

  2. #2

    Join Date: Sep:2005
    Location: Sofia
    Posts: 18,517

    jmp m1

    .

    cx bx ( bl) . .

    . 21h (int 21h). , - .

    , , - -.


    Code:
         

  3. #3
    Registered abUser ike's Avatar
    Join Date: Jul:2004
    Location: sofi
    Posts: 4,965
    ?
    tasm, masm xor nasm?
    Have no fear ike iz here.
    CPU Cx486DLC@40MHz, RAM 4MB, VGA Trident 512KB, HDD Conner 160MB, Monitor 14" Color

  4. #4
    Registered User
    Join Date: Jan:2009
    Location: bg
    Posts: 5
    tasm , tlink , ... ... , ,

  5. #5
    Registered abUser ike's Avatar
    Join Date: Jul:2004
    Location: sofi
    Posts: 4,965
    2 .obj
    .obj - exe.
    - google


    http://www.cse.ust.hk/~cktang/cs180/tasm.htm
    Code:
    Using Turbo Link
    Once the program has been assembled, you will need to link the various .obj files into an executable file. To do this, you will need to use Turbo Link. To link your file, simply type:
    
    l:\bc31\bin\tlink filename
    
    where filename is the name of your .obj file.
    
    Running tlink without specifying any options will display a help screen. Any options should be specified before the filename. After the filename, you can specify all other .obj files to be linked together. After the list of .obj files, you can specify the name of the .exe, the name of the .map, and a list of libraries to be linked into the program. Each option should be separated by a comma. For example, the command:
    
    l:\bc31\bin\tlink /c reverse prog2,,,lib\bri
    
    will link the files reverse.obj and prog2.obj into a file reverse.obj and create a map file reverse.map and using the supporting library lib\bri.lib. The /c option specifies that the .obj file is case sensitive.
    Have no fear ike iz here.
    CPU Cx486DLC@40MHz, RAM 4MB, VGA Trident 512KB, HDD Conner 160MB, Monitor 14" Color

  6. #6
    Registered User
    Join Date: Jan:2009
    Location: bg
    Posts: 5
    link prog2+prog3 ... tlink

  7. #7
    Registered abUser ike's Avatar
    Join Date: Jul:2004
    Location: sofi
    Posts: 4,965
    tlink.
    Have no fear ike iz here.
    CPU Cx486DLC@40MHz, RAM 4MB, VGA Trident 512KB, HDD Conner 160MB, Monitor 14" Color

  8. #8
    Registered User
    Join Date: Jan:2009
    Location: bg
    Posts: 5
    Ike ... .. ?

  9. #9

    Join Date: Sep:2005
    Location: Sofia
    Posts: 18,517

    - ?

  10. #10
    Registered User
    Join Date: Jan:2009
    Location: bg
    Posts: 5
    , ,

Posting Permissions

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

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |