tasm


TASM giving no output after compile


I have a program that compiles correctly with zero error or warning but does not display the output I cannot guess the reason for no output
.model small
.data
a dw 1234H
b dw 0100H
.code
Process:
MOV AX, #data
MOV DS, AX
Mov AX, a
MOV BX, b
SUB AX, BX
MOV CH, 04H
MOV CL, 04H
MOV BX, AX
X: ROL BX, CL
MOV DL, BL
AND DL, 0FH
CMP DL, 09
JBE Y
ADD DL, 07
Y: ADD DL, 30H
INT 21H
DEC CH
JNZ X
MOV AH, 4CH
INT 21H
END Process;
If you intend to write characters one at a time to STDOUT then DL should contain the character and AH must be set to 02H before you invoke INT 21H. So,
Y: ADD DL, 30H
MOV AH, 02H
INT 21H
You can also set AH to 02H before the loop starts, saving on the number MOV instructions.

Related Links

How do you code subtraction in TASM
How to do inverse subtraction in TASM?
Display Negative numbers in TASM
getch() in TASM
why do we use 0dh,0ah after msg1 db in this statement :msg1 db 0dh, 0ah, “ENTER A CHOICE $”;
TASM problems with output
TASM Can't locate .asm file Error: **Fatal** Command line: Can't locate file: filename.asm
TASM giving no output after compile
I can't figure out how to delete a row in my tasm assembly homework
How to read and write A FAT in WinXP [duplicate]
Turbo Assembler [closed]
8086 programming using TASM: pc to pc communication

Categories

HOME
asp.net-web-api
twitter-bootstrap-3
cobalt
fpga
mjml
jwplayer
oracle-apex-5
apiblueprint
pclxl
ms-access-2016
hpc
tvos
crystal-lang
alamofire
mautic
x-cart
php-5.6
openbugs
eip
http-post
microsoft-dynamics-nav
vuejs
template-engine
imessage
exit
onload
stackexchange
soot
tpm
nsurl
panoramas
eviews
dst
fstream
erb
login-script
contacts
nested-lists
jpad
verifiable-c
jvmti
branching-and-merging
subclipse
logback-groovy
outputcache
clang++
apache-directory
x++
textsum
hammer.js
page-replacement
semantic-logging
colorbar
avx
payload
rsa-archer-grc
reachability
chromium-os
uicolor
synonym
respondcms
clipboard.js
bizagi
ellucian-scribe
xenomai
file-move
morton-number
xvim
uvc
fail2ban
umlgraph
actionfilterattribute
browserify-shim
xml-dsig
memset
ios8-extension
cfcache
multiautocompletetextview
ice-cube
diem
font-awesome-4.0.0
video-codecs
http-status-code-410
pdfviewer
dajaxice
pyunit
usertype
role
user-tracking
android-holo-everywhere
quotation-marks
pos-for-.net
nstokenfield
tui
sun
dojo-dnd
flvplayback

Resources

Encrypt Message