Questions tagged [tasm]

Turbo Assembler is an x86 assembler by Borland

Turbo Assembler is an x86 assembler by Borland.

833 questions
-2
votes
3 answers

How to print colored string in DOS?

I want to print the below set of datablock(s) in a different color other than the usual white text color which can be achieved by using another DOS interrupt (dx:string-address; ah,08H; int 21h). Jan db " January$ " …
0ptimus
  • 171
  • 2
  • 2
  • 15
-2
votes
2 answers

Relative Jump Out of Range Error

How can I fix the "relative jump out of range" error without inbetween jumps? Like stretching the jump range? I heard about something called long jump or something like that that uses 32-bit instead of the regular 16.
HelloWorld
  • 1,128
  • 1
  • 7
  • 14
-2
votes
1 answer

Produce a .com instead of a .exe

It was required to change the program from ".exe" in".com". I removed the stack and data segments because i received errors about their existence. I renamed the file in ".com". But the program doesn't work now (it is displaying nothing). I…
lifetowin
  • 107
  • 2
  • 11
-2
votes
1 answer

Basic Assembly arithmetics and order

:) I am struggling with a piece of assembly language, mostly the order in which my strings are printed. Here's what I have!! .model small .stack 100h .DATA ;DISPLAYS msgquestion db 13,10, "Addition or Subtraction?: $ " msgfirst db 13,10, "Enter…
-2
votes
2 answers

Need Assembly Programming Help (TASM) - Booth's Algorithm

I've written an algorithm to simulate Booth's Algorithm using only Add, Sub, and Logical Operators and return a hexadecimal value. My Tasm compiler keeps throwing me these errors. When I try to omodify the code, it still doesn't work. Could someone…
Julian
  • 1,853
  • 5
  • 27
  • 48
-2
votes
1 answer

How input number if greater than 9

I use TASM, I am trying to input 2 number greater than 9 and calculate sum of this numbers and after print the numbersand the sum simply ; like that : Number1=109 Number2=90 sum=199 I want how to converted this number and how to calculate sum. I…
-3
votes
1 answer

I have an indexing problems

I need to write names from keyboard and then display them, one on each line. They should be displayed with an index before of them. For example if I write the names elena and maria the should be displayed as 1.elena 2.maria I tried adding a counter…
Andrei2308
  • 23
  • 5
-3
votes
2 answers

Tasm help needed

Could someone give me a little help? It must be done in TASM 1.4, dividing 2 numbers like 14:2== 7. I tried for a few hours with tutorials from youtube but them all dont work. Some are for microsoft visual studio, which I can't use cause i must make…
Lucash
  • 1
  • 1
-3
votes
1 answer

Trying to print asteric triangle in ASSEMBLY Language

.model small .stack 100h .data space db 10,"$" asteric db "*$" .code start: mov cl,5 mov ax,@data mov ds,ax mov bl,0 mov al,0 l1: mov ah,09 lea dx,space int 21h inc bl cmp bl,cl je exit l2: lea dx,asteric int 21h cmp al,bl jl l2 inc al jnl…
-3
votes
1 answer

What does L EQU 0AH and T EQU 09H mean in assembly?

Can someone explain what each expression(L Equ 0AH and T equ 09h) means in assembly,please?
Byaby
  • 1
-3
votes
1 answer

How to read image file and display on screen in windows tasm dosbox

Im currently learning graphical programming in tasm using dosbox. Ive been using a bunch of loops to draw square blocks of pixels and its really hard. I want to know if theres a way to read an image and display it. I know how to read a txt file…
-3
votes
1 answer

Print triangle of numbers in assembly x86

I must do a program in tasm which have to print a triangle on numbers like this: input: n. Ex: n=4 output: 1 1 2 1 2 3 1 2 3 4 I've managed to make my program print this thing, but i also have to make it work with numbers between 0 and 255, not…
Cosmin Baciu
  • 43
  • 3
  • 7
-3
votes
1 answer

How to receive parameters from MS-DOS and compares it in Assembly 16-bits?

Good night, what's the simpliest way to receive a simple char as parameter in Assembly 16-BITS, and compares to test if is the right one? I'm for 2 days searching for examples of how to do it, but no one had worked for me... I tried that code from…
-3
votes
2 answers

How to move a char's bit from one position into another in TASM?

I have to write a program which is reading chars from a file, moving bits in every char and writing those changed chars to a new file in TASM. I've written a program which is reading chars from a file and writing them to a new file, but I don't know…
-3
votes
1 answer

Assembly x86 - problems with code

I have my project due to tomorrow and I finished it but I still have some bugs which I can't seem to understand how to fix them. I have been sitting for a long time and I just don't know what to do. I will explain the code after. *Note - This post…
KatomPower
  • 119
  • 1
  • 3
  • 14
1 2 3
55
56