| | |
TASM Begginer
![]() |
•
•
Join Date: Sep 2005
Posts: 1
Reputation:
Solved Threads: 0
Hi, i need some help with a directive called ASSUME, and i have to write a program that display a string but i can't use .code nor code
and i have no idea of how can i make it work. Besides i can't find information about ASSUME. Please someone help me. This is the sample program i try to use.
TITLE HELLO
.Model Small
.Stack 160h
.Data
infor db "Hello world",10,12+1
inforlen Equ 13
.Code
start: MOV AX,@data
MOV DS,AX
MOV CX,inforleN
MOV SI,0
again: MOV AL,infor[SI]
CALL printch
INC SI
LOOP again
MOV AX,4c00h
INT 21h
printch Proc Near
MOV BX,0
MOV AH,0Eh
INT 10h
RET
printch EndP
End start
and i have no idea of how can i make it work. Besides i can't find information about ASSUME. Please someone help me. This is the sample program i try to use.
TITLE HELLO
.Model Small
.Stack 160h
.Data
infor db "Hello world",10,12+1
inforlen Equ 13
.Code
start: MOV AX,@data
MOV DS,AX
MOV CX,inforleN
MOV SI,0
again: MOV AL,infor[SI]
CALL printch
INC SI
LOOP again
MOV AX,4c00h
INT 21h
printch Proc Near
MOV BX,0
MOV AH,0Eh
INT 10h
RET
printch EndP
End start
Some links and other resources that might help you newbies...
Lot of links at assemblylanguage.net:
http://www.cheapersunglasses.com//asm.html
More links at the Open Directory Project:
http://dmoz.org/Computers/Programmin...ages/Assembly/
- ASSEMBLERS -
MASM32
http://www.movsd.com
NASM: The Netwide Assembler
http://nasm.sourceforge.net
HLA: High Level Assembly Language
http://webster.cs.ucr.edu/AsmTools/HLA/index.html
FASM: The Flat Assembler
http://flatassembler.net/
GoAsm
http://www.godevtool.com/
A86 (DOS) [Free]/A386 (Windows) [Commercial]
http://eji.com/a86/
Or, you can Write Your Own!
http://webster.cs.ucr.edu/AsmTools/...rOwn/index.html
USENET
alt.comp.lang.assembler
alt.lang.asm
alt.os.assembly
alt.os.development
comp.lang.asm.x86
comp.lang.ml
comp.software.extreme-programming
WEB-BASED
http://www.tek-tips.com/threadminder.cfm?pid=272
http://win32asm.cjb.net
http://www.masmforum.com/
http://board.flatassembler.net/
GROUP-BASED
http://groups.yahoo.com/group/aoaprogramming/
http://groups.yahoo.com/group/win32-nasm-users/
http://groups.yahoo.com/group/win32masm/
- Other useful resources -
Intel Manuals and such
http://www.sandpile.org/
Ralph Brown's Interupt List
http://www-2.cs.cmu.edu/afs/cs.cmu..../ralf-home.html
ASSEMBLY LANGUAGE information, tools, forums, and other links available at:
http://www.faqs.org/faqs/by-newsgrou...g.asm.x86.html
Nathan.
Lot of links at assemblylanguage.net:
http://www.cheapersunglasses.com//asm.html
More links at the Open Directory Project:
http://dmoz.org/Computers/Programmin...ages/Assembly/
- ASSEMBLERS -
MASM32
http://www.movsd.com
NASM: The Netwide Assembler
http://nasm.sourceforge.net
HLA: High Level Assembly Language
http://webster.cs.ucr.edu/AsmTools/HLA/index.html
FASM: The Flat Assembler
http://flatassembler.net/
GoAsm
http://www.godevtool.com/
A86 (DOS) [Free]/A386 (Windows) [Commercial]
http://eji.com/a86/
Or, you can Write Your Own!
http://webster.cs.ucr.edu/AsmTools/...rOwn/index.html
USENET
alt.comp.lang.assembler
alt.lang.asm
alt.os.assembly
alt.os.development
comp.lang.asm.x86
comp.lang.ml
comp.software.extreme-programming
WEB-BASED
http://www.tek-tips.com/threadminder.cfm?pid=272
http://win32asm.cjb.net
http://www.masmforum.com/
http://board.flatassembler.net/
GROUP-BASED
http://groups.yahoo.com/group/aoaprogramming/
http://groups.yahoo.com/group/win32-nasm-users/
http://groups.yahoo.com/group/win32masm/
- Other useful resources -
Intel Manuals and such
http://www.sandpile.org/
Ralph Brown's Interupt List
http://www-2.cs.cmu.edu/afs/cs.cmu..../ralf-home.html
ASSEMBLY LANGUAGE information, tools, forums, and other links available at:
http://www.faqs.org/faqs/by-newsgrou...g.asm.x86.html
Nathan.
while (CPU is present) {some assembly required}
•
•
•
•
Originally Posted by zaiboot
Hi, i need some help with a directive called ASSUME, and i have to write a program that display a string but i can't use .code nor code
and i have no idea of how can i make it work. Besides i can't find information about ASSUME. Please someone help me. This is the sample program i try to use.
TITLE HELLO
.Model Small
.Stack 160h
.Data
infor db "Hello world",10,12+1
inforlen Equ 13
.Code
start: MOV AX,@data
MOV DS,AX
MOV CX,inforleN
MOV SI,0
again: MOV AL,infor[SI]
CALL printch
INC SI
LOOP again
MOV AX,4c00h
INT 21h
printch Proc Near
MOV BX,0
MOV AH,0Eh
INT 10h
RET
printch EndP
End start
In such case, you will have to change the ASM convention to MASM (which is weird, cause you're using TASM):
Assembly Syntax (Toggle Plain Text)
DATASG SEGMENT PARA 'DATA' infor db "Hello world",10,12+1 inforlen Equ 13 DATASG ENDS STACKSG SEGMENT PARA STACK 'STACK' mystack db 160h dup(?) STACKSG ENDS CODESG SEGMENT PARA 'CODE' HELLO PROC FAR ASSUME CS:CODESG,DS:DATASG,SS:STACKSG start: MOV AX,DATASG MOV DS,AX MOV CX,inforleN MOV SI,0 again: MOV AL,infor[SI] CALL printch INC SI LOOP again MOV AX,4c00h INT 21h HELLO ENDP printch Proc Near MOV BX,0 MOV AH,0Eh INT 10h RET printch EndP CODESG ENDS END HELLO
Hope this helps.
Damn it, I still dream of her....:(
The address for "Write your own" didn't work in my browser. I don't know if it was abbreviated for some reason or what? Here's the link I found for it:
Write Your Own
Alcides.
Edit: It turns out that it was abbreviated by the code mangler for display. I put the link ith text, instead of using the address itself.
Write Your Own
Alcides.
Edit: It turns out that it was abbreviated by the code mangler for display. I put the link ith text, instead of using the address itself.
Vapor One
----------
http://www.vaporone.com (THE LEGEND)
http://www.candycola.com (FREE MUSIC)
http://www.pdunderground.com (THE UNDERGROUND)
----------
http://www.vaporone.com (THE LEGEND)
http://www.candycola.com (FREE MUSIC)
http://www.pdunderground.com (THE UNDERGROUND)
![]() |
Similar Threads
- how to show PC clock in the screen using TASM (Assembly)
- Nasm to tasm code help (Assembly)
- need assistance with tasm (Assembly)
Other Threads in the Assembly Forum
- Previous Thread: Need help with basic assembly calculator
- Next Thread: Question: Where are good Assembly Compilers?
| Thread Tools | Search this Thread |





