•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Assembly section within the Software Development category of DaniWeb, a massive community of 391,821 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,625 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Assembly advertiser:
Views: 374 | Replies: 6
![]() |
•
•
Join Date: Feb 2008
Posts: 12
Reputation:
Rep Power: 1
Solved Threads: 0
I am trying to write a program using direct addressing and pointers on the number and create a 32 bit variable from 10136654 All operations will be done in 16 bit registers like ax, bx, etc.
But how is this possible if it must go in 16 bit from 32 bit?
a) NAND the upper 16-bits with the lower 16-bits and store the 16-bit result in a variable named MyNAND.
b) NOR the upper 16-bits with the lower 16-bits and store the 16-bit result in a variable named MyNOR
c) XOR the upper 16-bits with the lower 16-bits and store the 16-bit result in a variable named MyXOR.
d) XNOR the upper 16-bits with the lower 16-bits and store the 16-bit result in a variable named MyXNOR
But how is this possible if it must go in 16 bit from 32 bit?
a) NAND the upper 16-bits with the lower 16-bits and store the 16-bit result in a variable named MyNAND.
b) NOR the upper 16-bits with the lower 16-bits and store the 16-bit result in a variable named MyNOR
c) XOR the upper 16-bits with the lower 16-bits and store the 16-bit result in a variable named MyXOR.
d) XNOR the upper 16-bits with the lower 16-bits and store the 16-bit result in a variable named MyXNOR
•
•
Join Date: Feb 2008
Posts: 12
Reputation:
Rep Power: 1
Solved Threads: 0
Use your whole BCC ID number (10136654) to create a single 32-bit variable (ie 8 digits), assume the resulting number is already hexadecimal (ie do not convert the digits). Name the variable MyID. Write a program (name it P3a.cpp) that will perform the following operations, using direct addressing and pointers on that number. All operations will be done in 16 bit registers like ax, bx, etc.
a) NAND the upper 16-bits with the lower 16-bits and store the 16-bit result in a variable named MyNAND.
b) NOR the upper 16-bits with the lower 16-bits and store the 16-bit result in a variable named MyNOR
c) XOR the upper 16-bits with the lower 16-bits and store the 16-bit result in a variable named MyXOR.
d) XNOR the upper 16-bits with the lower 16-bits and store the 16-bit result in a variable named MyXNOR
Verify your results in the debugger and provide a single screen shot of the entire debugger window showing all of the answers in a single watch window. What are the answers? Type the answers (from a calculator or by hand), in your program code, as part of the program description.
a) NAND the upper 16-bits with the lower 16-bits and store the 16-bit result in a variable named MyNAND.
b) NOR the upper 16-bits with the lower 16-bits and store the 16-bit result in a variable named MyNOR
c) XOR the upper 16-bits with the lower 16-bits and store the 16-bit result in a variable named MyXOR.
d) XNOR the upper 16-bits with the lower 16-bits and store the 16-bit result in a variable named MyXNOR
Verify your results in the debugger and provide a single screen shot of the entire debugger window showing all of the answers in a single watch window. What are the answers? Type the answers (from a calculator or by hand), in your program code, as part of the program description.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Assembly Marketplace
Other Threads in the Assembly Forum
- Previous Thread: Fibonacci Program
- Next Thread: Please help me to modify this application..


Linear Mode