View Single Post
Old 07-20-2004, 13:26   #26 (permalink)
rizapn
No Life Poster
 
Join Date: Mar 2002
Location: -[r0]-
Age: 53
Posts: 834
Member: 9891
Status: Offline
Thanks Meter: 2
SMS Counter
Thank's. I never try (use EEPROM func in that SMS Counter patch), but I think it is possible. If the result is same (not directly write into the EEPROM), then we have to check more in the Appointment routines. About reading the value, I think it will be no different (read it from RAM or read it from EEPROM) because the SMS Counter function will be executed after all phone initialization (including copy most EEPROM content/pointer to the RAM).

ClearRect and FillRect

...
ClearRect is a sub-function of FillRect.
FillRect() in SL45v56 is 0xC0E5D0, and here is the usage:

Code:
FillRect_test:
  mov  r12, #color     ; 0=white, 1=black
  mov [-r0], r12
  mov r12, #X
  mov r13, #Y
  mov r14, #width
  mov r15, #height
  calls 0xC0E5D0
  add r0, #2
  rets

sub_clearRect:
  mov r1, #0
  mov [-r0], r1
  calls 0xC0E5D0
  add r0, #2
  rets
There is also : drawImage() (not a drawImgIdx ones) and even drawString() in the firmware.

rizapn

Last edited by rizapn; 07-20-2004 at 14:07.
  Reply With Quote
 
Page generated in 0.08471 seconds with 8 queries