Thread: tasm board

  1. #1
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212

    tasm board

    Does anyone know where I can find a tasm - 16 bit message board.

    This program doesnt work, it is supposed to say happy birthday on the 28th of december, but instead it spews out a load of garbage ending in the string happy birthday...

    Code:
    MODEL SMALL
        IDEAL
        STACK 100H
        DATASEG
            BMSG DB 'Happy birthday.','$'
        CODESEG
    START:
     MOV AH, 2AH
     INT 21h
     CMP DH, 12d
     JNE END_PROG
     CMP DL, 28d
     JNE END_PROG
    
     MOV AH, 09h
     LEA DX, [BMSG]
     INT 21h
     
     JMP END_PROG
    
    END_PROG:
     MOV AH, 4Ch
     MOV AL, 00h
     INT 21h
    
    END START

  2. #2
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212
    hehe fixed it
    Code:
    MODEL SMALL
        IDEAL
        STACK 100H
        DATASEG
            BMSG DB 'Happy birthday.','$'
        CODESEG
    START:
     MOV AH, 2AH
     INT 21h
     CMP DH, 12d
     JNE END_PROG
     CMP DL, 28d
     JNE END_PROG
    
     MOV AX, SEG BMSG
     MOV DS, AX
     MOV AH, 09h
     LEA DX, [BMSG]
     INT 21h
     
     JMP END_PROG
    
    END_PROG:
     MOV AH, 4Ch
     MOV AL, 00h
     INT 21h
    
    END START

  3. #3
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    that ol' segment problem... why are you using a 16 bit assembler?

  4. #4
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212
    Originally posted by ygfperson
    that ol' segment problem... why are you using a 16 bit assembler?
    'cause I'm a creep,
    I'm a weirdo...

  5. #5
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    I know there's a bit of a lobby to get Borland to release TASM into opensource......that would be pretty cool.......

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need a second opinion - code error and i cant see it
    By bigfootneedhelp in forum C Programming
    Replies: 19
    Last Post: 10-25-2007, 06:02 AM
  2. Constructor problem
    By rebel in forum C++ Programming
    Replies: 22
    Last Post: 01-11-2006, 06:45 AM
  3. function trouble
    By rebel in forum C++ Programming
    Replies: 4
    Last Post: 12-21-2005, 05:23 AM
  4. Pick a number....
    By Salem in forum A Brief History of Cprogramming.com
    Replies: 39
    Last Post: 01-19-2003, 07:27 AM