| ??? 01/29/03 11:01 Read: times |
#37631 - RE: db |
sorry, it is my mistake .
it is 0x0002 and 0x0003. THe following worked for hex values but the strings , i want to know the technique to make it work . Working .db ----------- _asm; sdsea: .db 0x0002,0x0003 mov dptr,#sdsea _endasm; I found that using .db is the correct approach and just db is not needed. I am able to get the above correctly. But, how about moving a string of characters using db directive ? The following didnot work : -------------------------- 1) _asm; sdsea: .db 'sdc' mov dptr,#sdsea _endasm The above didnt work. 2) _asm; sdsea: .db 's;','d;','c;' mov dptr,#sdsea _endasm THe above gave missing or improper delimiter error. 3) _asm; sdsea: .db '#s;','#d;','#c;' mov dptr,#sdsea _endasm The above got compiled but doesnt give the correct output except for the first character. 4) _asm; sdsea: .db 's;','d;','c;' mov dptr,#sdsea _endasm The above got compiled but did not give the correct output except for the first character 's'. How to use strings with .db directive ? How to move 'sdc' in to memory using directive and call it using the .db directive ? karthik bala guru |
| Topic | Author | Date |
| db | 01/01/70 00:00 | |
| RE: db | 01/01/70 00:00 | |
| RE: db | 01/01/70 00:00 | |
| RE: db | 01/01/70 00:00 | |
| RE: db | 01/01/70 00:00 | |
| RE: db | 01/01/70 00:00 | |
| RE: db | 01/01/70 00:00 | |
| RE: db | 01/01/70 00:00 | |
| RE: db | 01/01/70 00:00 | |
| RE: db | 01/01/70 00:00 | |
| RE: db | 01/01/70 00:00 | |
| Please read manual first | 01/01/70 00:00 | |
RE: Please read manual first/Craig | 01/01/70 00:00 |



