Hi ppl.

I tried to use 16 bit tasm for the first time , however I get some strange messages.
I can't manage to use a procedure , because it always says : undefined symbol.
The code:


DOSSEG
    .MODEL SMALL
    .STACK 200h
    .DATA

OurString  DB  "This is a string of characters.  "
            DB  "Do you lack imagination?  Put something interesting here!$"
.CODE

START:


    mov si,600h
    mov di,
    mov ,di


    mov ax,12h
    call WriteInt

    MOV  AX, 4C00h            ; Exit to DOS sufunction
    INT  21h                  ; Generate interrupt 21h



  WriteInt:
  ; Prints the content of the AX register onto the screen
  MOV    CX , 0Ah
  @@GetNextChar:
    XOR    DX , DX
    DIV    CX
    PUSH    DX
    OR      AX , AX
    JZ      @@PrintIt
    CALL    @@GetNextChar
  @@PrintIt:
    POP    DX
    ADD    DL , 30h
    MOV    AH , 02h
    INT    21h
  RET


END START



I really just combined a few stuff so I can't understand what's wrong.
Turbo Assembler  Version 4.1  Copyright (c) 1988, 1996 Borland International

Assembling file:  aaa.asm
**Error** aaa.asm(17) Undefined symbol: WRITEINT
Error messages:    1
Warning messages:  None
Passes:            1
Remaining memory:  415k

thanks,
bar.
Posted on 2006-07-23 14:40:48 by realcr
I think TASM supports only procedures defined in the following way:

WriteInt PROC
....
WriteInt ENDP
Posted on 2006-07-23 15:51:13 by arafel