View Single Post
Old 04-30-2005, 08:31   #15 (permalink)
charlielao
No Life Poster
 
charlielao's Avatar
 
Join Date: May 2004
Posts: 501
Member: 66040
Status: Offline
Thanks Meter: 14
Hi Prof, here is another out of the blue question:
Master Riza expalined this from his cdr patch:
From CDR.asm (Call Detail Record) source:
mov r8, #200h+'R' <- R(eceived)
- put "received sms" flag in the register R8
mov r12, #315h
- set R12 with value hexa 315
mov r5, #32h
- and R5 with 32h
R5:R12 is prepared to store the pointer to incoming SMS sender number (32h:0315h).
extp r5, #1
- work in page values stored in register R5 (32h)
movb rl4, 2F0h
- get the byte value of RAM 32h:02F0h and store it in the RL4. 32h:02f0 for incoming SMS is storing the SMS type, including normal or delivery status SMS. I don't know about another values meaning ...
andb rl4, #40h
jmpr cc_Z, sdr_001
- make some test. if (RL4 and 40h==0) goto sdr_001
mov r8, #200h+'D'
add r12, #1
- if the result of test is not zero (RL4 and 40h != 0), then set the flag with 'D' (Delivery status SMS), and change the incoming SMS sender number pointer to 32h:0316h ...

I used debugger and got these while there is new incoming sms:
09196262888:<-sender number
0C8300: 01 03 01 07 91 36 19 08 00 30 17 00 14 04 0C 00
0C8310: 00 00 01 14 04 0C 91 36 19 69 62 82 88 00 00 50
0C8320: 40 03 20 01 95 00 01 41 10 2E 07 C5 68 3A D8 4C
0C8330: 97 7D D7 E5 A0 71 5D 2E 2F BB E9 20 71 98 1D 76

the numbers are shown in red, but they are alternated in the RAM,
I tried using Master's CDR EP 44e6fc: E6FE2600 for incoming sms but if i receive an incoming sms, my phone shuts down
This is a simple patch test i made that causes it:
44e6fc: E6FE2600 DABA77BB
1ABB77: FFFF 8880
1ABB79: FFFFFFFF D7403200 ; extp #32h, #1
1ABB7D: FFFFFFFF F2F81B03 ; mov r8, 31bh
1ABB81: FFFFFFFF 46F85200 ; cmp r8, #82
1ABB85: FFFF 3D04 ; jmpr cc_NZ, 11
1ABB87: FFFFFFFF E6FC3a00 ; mov r12, #3a
1ABB8B: FFFFFFFF DAC3B600 ; calls 0C3h, loc_C300B6 (play tone)
1ABB8F: FFFFFFFF D7403200 ; extp #32h, #1
1ABB93: FFFFFFFF F6F81B03 ; mov 31bh, r8
1ABB97: FFFFFFFF E6FE2600
1ABB9B: FFFF 9880
1ABB9D: FFFF DB00
What's wrong prof?
I also saw that the RAM loc (000C:326C) you used in Blacklist is the same loc used when there is an incoming SMS for Postcode data. I tried using it in the above patch but it doesnt play the tone, but my phone didnt shut off. How come we have to use the low byte in the RAM loc above to compare the Postcode data? why cant we use the whole word?

Last edited by charlielao; 04-30-2005 at 09:35.
  Reply With Quote
 
Page generated in 0.08619 seconds with 7 queries