PDA

View Full Version : tasm board



Brian
12-01-2002, 05:59 AM
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...



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

Brian
12-01-2002, 06:04 AM
hehe fixed it


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

ygfperson
12-01-2002, 01:43 PM
that ol' segment problem... why are you using a 16 bit assembler?

Brian
12-01-2002, 01:58 PM
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...

Fordy
12-01-2002, 03:08 PM
I know there's a bit of a lobby to get Borland to release TASM into opensource......that would be pretty cool.......