Hi guys i have problems with the codes that i got from a site.

this is the code

.model
.code
main proc 
    
mov ah, 02
mov dl, 61h

start: sub dl,20h
int 21h 

push dx
mov dl, 0AH
int 21h
pop dx
add dl, 20h
inc dl
cmp dl, 79H
jne start
int 20h    

main endp 

end

but when i ran the code on my pc it displayed many errors
<1> invalid model type
<2> model must be specified first
<5> code or data emission to undeclared segment
<18> near jump or call to different CS


somebody help me

try .model small

i tried but the letters did not appear. By the way i'm using tasm and my processor is amd..pls. i need a little with this

If you can't get this straight with TASM, can you use a different assembler?

I compiled your code with A86 (http://eji.com/a86/) and it compiled and ran fine without error or warning.

Also, did you try the tiny model?

.model tiny
.code
org 100h
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.