| ??? 02/25/04 02:22 Read: times |
#65464 - RE: homework problem- Responding to: ???'s previous message |
* I dont see a need for the DONE routine. Why have you got to move the data from CODEMEMORY to 50H to perform addition. You might as well do it from CODEMEMORY itself.
* If I were you, would have done something like this : - First write and check a 16 bit addition routine.(ADD16) - Initialize 2 bytes to zero.(ANSWER+0, ANSWER+1) - Set a pointer to CODEMEMORY and set a counter for 32 additions. - Call ADD16, 32 times to add the number pointed by the pointer to ANSWER+0. - At the end ANSWER+0 will have the Low byte and ANSWER+1 will have High Byte. Move it to 2001H and 2000H respectively. ( Tip: If you search my user page you have a readymade 16 bit add routine that you can use. ) Raghu |
| Topic | Author | Date |
| homework problem- | 01/01/70 00:00 | |
| RE: homework problem- | 01/01/70 00:00 | |
| RE: homework problem- | 01/01/70 00:00 | |
| RE: homework problem- | 01/01/70 00:00 | |
| RE: homework problem- | 01/01/70 00:00 | |
| RE: homework problem- | 01/01/70 00:00 | |
| RE: homework problem- | 01/01/70 00:00 | |
RE: homework problem- | 01/01/70 00:00 |



