15,891,184 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 15784866 (Top 11 by date)
Member 15784866
6-Oct-22 8:20am
View
Hi Richard! yes, I took into account that the number can be greater than 9, it is the part called "doppia"/"doppia1" but it doesn't work properly anyway...when the number consists of 2 digits..something is missing to me. I'm using emu8086 indeed.
Member 15784866
5-Oct-22 17:01pm
View
I understand it and I thank you for your reply. I promise that I'm going to stop posting about this problem. I really don't want to monopolize the site.
Member 15784866
2-Oct-22 11:28am
View
beh as I said, the ASCII value for '0' is always 00h, and Null as code, , and 9 becomes 09h and HT as code. This program is supposed to add two one digit numbers, and the risult should be kept until 9. This is my first goal, then I will improve it. Unfortunately I didn't catch the last question
Member 15784866
2-Oct-22 11:13am
View
to be honest, I barely understand the question.. the first ten numbers should be the same, in ex and in the binary form...well, I have to read the assembly's basics again...thank you anyway.
Member 15784866
2-Oct-22 9:04am
View
this code should convert the chars into binary numbers, as I was supposed to it. I found it online but I must adapt it to my program..is it reasonable or am I out of line? by the way, I'm using emu8086..so this is an emulator and nothing else
Member 15784866
2-Oct-22 8:00am
View
Ah I forgot to tell you that "somma" would be"sum" in English..but you already got it.
Member 15784866
2-Oct-22 7:59am
View
wonderful! I understand more or less the point...I need something like this: .model small
.data
a db 0AH
.code
mov ax, @data ; Initialize data section
mov ds, ax
mov al, a ; Load number1 in al
mov cl , 08H
mov ah, 00h ; ah=00
up : shl al, 01h ; divide the number by 2
and SHL gives the same result
mov bl, al
mov al, 00H
adc al, 30h
mov dl, al
mov ah, 02h
int 21h
mov al,bl
dec cl
jnz up
mov ah, 4cH ; Terminate Program
int 21H
end
Member 15784866
2-Oct-22 4:19am
View
Content moved to the question.
Member 15784866
2-Oct-22 3:48am
View
hI Richard" many thanks! I'm having another problem, I just corrected the code but the debugger says that there operands don't match in the "MOV NUM1, AX" instruction..it's a 8 bit address and a 16 bit register..can we correct this point? I must excuse me, I should have brush up the basics but I was in hurry and I started with the practice immediately..;,
Member 15784866
1-Oct-22 14:05pm
View
there is an "FB" instead of "DB", this is an error, but not the main one
Member 15784866
1-Oct-22 14:04pm
View
hello, thanks for answering! you are right, I beg your pardon. The emulator shows "the emulator is halted." before giving the final result
Show More