473,326 Members | 2,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Assembly

6
Hi guys, I have an assembly class, and I have a lab to do, but I am having a hard time to square numbers. if any1 knows would be appreciativ to let me know. this is what I have so far
Expand|Select|Wrap|Line Numbers
  1. ;
  2. ;       Qemajl Xhafa
  3.                 PAGE 55,132
  4.                 Program the square numbers, to and shows the sum of odd numbers to the square number
  5. ;
  6. STACKSG SEGMENT PARA STACK
  7.         DW      32 DUP(?)
  8. STACKSG ENDS
  9. ;
  10. DATASG  SEGMENT PARA
  11. SQUERIT  DW      5              ;ASSIG 5 TO SQUERIT
  12. SQUERD      DW     ?
  13. DATASG  ENDS
  14. ;
  15. CODESG  SEGMENT PARA
  16. BEGIN   PROC    FAR             ;START MAIN PROCEDURE
  17.         ASSUME   CS:CODESG,DS:DATASG,SS:STACKSG,ES:DATASG
  18.         MOV     AX,DATASG     ;SET UP DS TO POINT BEGINNING OF
  19.         MOV     DS,AX            ;DAT SEGMENT
  20.         MOV    ES,AX                 ;LIKEWISE ES FOR NI I/O CALLS
  21. ;
  22.         MOV     AX,VALUE      ;MOVE VALUE TO AX REGISTER
  23.         ADD     AX,AX             ;OUBLE THE VALUE
  24.         MOV     BX,AX             ;COPY RESULT TO BX
  25.         MOV     VALUE,AX      ;COPY RESULT BACK TO MEMORY
  26.  
  27. ;
  28.         NOP                           ;DUMMY INSTRUCTION-STOP DEBUG HERE
  29.         MOV     AH,4CH          ;RETURN TO DOS
  30.         INT     21H                   ;VIA SERVICE CALL 4CH
  31. BEGIN   ENDP                    ;END PROCEDURE
  32. CODESG  ENDS                 ;END CODE SEGMENT
  33.         END     BEGIN            ;END SOURCE CODE
  34.  
Mar 6 '07 #1
0 1320

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Terence Shek | last post by:
Is there a way to set the application binding policy so that it always binds to the latest version of an assembly? I'm hoping there is a way to avoid updating the application's binding...
26
by: nospam | last post by:
Just wondering, What do you think the difference in performance would be between (1.) Compiled C# (2.) Compiled C++ (3.) and Assembly Language And how would the mix be if some if any of...
2
by: Carlos G Benevides | last post by:
I have a ASP.Net web application that has two assemblies that run under com+. Under Windows 2000 the two assemblies are added to com+ automatically when instantiated from the web site. For this...
10
by: jojobar | last post by:
Hello, I am trying to use vs.net 2005 to migrate a project originally in vs.net 2003. I started with creation of a "web site", and then created folders for each component of the site. I read...
7
by: R Reyes | last post by:
Can someone please explain to me why I can't get the MS Word Interop assembly to work in my VS2005 project? I'm trying to manipulate MS Word from my Web Form application and I can't get passed...
3
by: Richard Lewis Haggard | last post by:
We are having a lot of trouble with problems relating to failures relating to 'The located assembly's manifest definition with name 'xxx' does not match the assembly reference" but none of us here...
1
by: Tim F | last post by:
Problem: I'm receiving the error "File or assembly name XXXXX or one of its dependencies, was not found." when trying to execute code in an assmebly that has both a strong-name and has been...
2
by: Paul | last post by:
Hi, I have experience in Java and C++ but I am rather new to C# and just started learning it. I am using Visual C# 2005 Express Edition and I found that there is a file called "AssemblyInfo.cs",...
1
by: Coaster | last post by:
orig ref here http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/ff29cc370678911d/c0db5b7e3da283b9?lnk=st&q=gac+assembly+new+version&rnum=7#c0db5b7e3da283b9...
14
by: Monty | last post by:
Hello, I have created a solution which has both a web UI and a winform UI, the latter is just for administrators. The Web UI (a Web Application Project) and the winform project both...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.