![]() |
im trying to modify this coding...help anyone
Code:
.model smallsuppose the input are 8 bit.. i want to make this program where the input can be up to two bytes( that is 16 bit) and give correct answer.. i have try to modify it, but the result are not correct. pls help me. where should i change the coding and what should i do.. thanks for the help... |
Re: im trying to modify this coding...help anyone
You should also try to explain what you have code for so that its easy for us to understand and suggest.
|
Re: im trying to modify this coding...help anyone
sorry for that...
im using tasm. this program will do a logical operations....that is XOR and XNOR operation.. the code i have display is the code for the whole program.. the problem is; when i set the input in 8 bit, i can get correct answer. but what i want is; the input = 16 bit...and get a correct 16 bit answer. when i insert first input = 1111111111111111(16bit) second input= 0000000000000000 answer = 1111111011111111 suppose my answer should be all '1'.. i think here is my main problem. that is, conversion hexadecimal to binary. Code:
convbina: ;convert hexadecimal to binary and displaysorry my grammar is not that very good. |
Same here, I m also having the same problem...
I m asked to do write a code to perform logic operation for xor and xnor which can accept inputs up to 2 bytes(16 bits). Moreover, my program should be able to do the operation for hexadecimal and binary inputs. Can anyone pls help us out to complete to code as shown by pengait above?
Really need help... :( |
| All times are GMT +5.5. The time now is 21:22. |