Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Sony Reader

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 09-15-2010, 05:14 AM   #61
kravitz
Connoisseur
kravitz doesn't litterkravitz doesn't litter
 
Posts: 51
Karma: 104
Join Date: Mar 2010
Device: 505, Kindle PW
Quote:
Originally Posted by Mark Nord View Post
kravitz
Just out of curiosity: have you found a ARM-Assembler to build the codes, or are you doing it by hand like me?
by hand)
I D A + H i e w
kravitz is offline  
Old 09-15-2010, 05:49 AM   #62
kravitz
Connoisseur
kravitz doesn't litterkravitz doesn't litter
 
Posts: 51
Karma: 104
Join Date: Mar 2010
Device: 505, Kindle PW
Quote:
Originally Posted by kartu View Post
second works, but reports "" as a key instead of kHold*.
Original version returns e.g. "0", modified "", rightly?
kravitz is offline  
Advert
Old 09-15-2010, 05:52 AM   #63
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
Quote:
Originally Posted by kravitz View Post
Original version returns e.g. "0", modified "", rightly?
Right. Original returns "0" in both cases, yours returns "0" on simple press and empty string on hold.
kartu is offline  
Old 09-15-2010, 07:49 AM   #64
kravitz
Connoisseur
kravitz doesn't litterkravitz doesn't litter
 
Posts: 51
Karma: 104
Join Date: Mar 2010
Device: 505, Kindle PW
kartu
Could you try this (must return "old0" on hold 0)
Attached Files
File Type: zip ebook2.zip (33.9 KB, 140 views)
kravitz is offline  
Old 09-15-2010, 08:32 AM   #65
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
Quote:
Originally Posted by kravitz View Post
kartu
Could you try this (must return "old0" on hold 0)
Empty string again (as with previous versions). Which makes me wonder how "event.getEventKey()" actually works.

PS
getEventKey seems to be mapped to binary function Fskin_device_getEventKey from Fskin.so

Update:
Renamed -hold to -bold (in ebook.so) to see if there are additional checks/lookups. It works, so there aren't any. getEventKey calmly returns kLeft-bold.

Last edited by kartu; 09-15-2010 at 09:02 AM.
kartu is offline  
Advert
Old 09-15-2010, 09:19 AM   #66
kravitz
Connoisseur
kravitz doesn't litterkravitz doesn't litter
 
Posts: 51
Karma: 104
Join Date: Mar 2010
Device: 505, Kindle PW
Quote:
Originally Posted by kartu View Post
Empty string again (as with previous versions).
This one must send key without "kHold" in any case (like original, if my patch works)))
Attached Files
File Type: zip ebook3.zip (33.9 KB, 151 views)
kravitz is offline  
Old 09-15-2010, 10:42 AM   #67
kravitz
Connoisseur
kravitz doesn't litterkravitz doesn't litter
 
Posts: 51
Karma: 104
Join Date: Mar 2010
Device: 505, Kindle PW
And to be sure there are no additional checks)
This one MUST send key in hex "0x*" on hold.
Attached Files
File Type: zip ebook4.zip (33.9 KB, 184 views)
kravitz is offline  
Old 09-15-2010, 11:56 AM   #68
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
Quote:
Originally Posted by kravitz View Post
This one must send key without "kHold" in any case (like original, if my patch works)))
Sends char(15)

Quote:
Originally Posted by kravitz View Post
And to be sure there are no additional checks)
This one MUST send key in hex "0x*" on hold.
0 gives 0x00, other numbers crash the reader (tried 8 & 5)

PS
Just a thought, maybe you could simply change the number value? 0 => simple press, 10 => hold?
kartu is offline  
Old 09-15-2010, 02:23 PM   #69
Mark Nord
2B || !2B
Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.
 
Posts: 851
Karma: 194010
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
kravitz

By looking on your patch (ebook1.zip, but still valid for the following) I recognize that
.text:0000CE28 LDR R1, =aKholdD ; char *
seams to miss the [ ], thus loading the constant value 0x1160A and not the stringreference at this address.
[UPDATE] I'am wrong with this, as 0x1160a is already the string reference it should work, as the reference to .got would load the same value to the register
[/UPDATE]
IMHO it should read LDR R1, [aKhold], if this is possible.
Or maybe
LDR R3, =aKholdD
LDR R1, [R3]

My reference states:
Quote:
3.8 Load and store instructions
The ARM architecture supports two broad types of instruction which load or store the value of a single
register from or to memory:
• The first type can load or store a 32-bit word or an 8-bit unsigned byte.
• The second type can load or store a 16-bit unsigned halfword, and can load and sign extend a 16-bit
halfword or an 8-bit byte. This type of instruction is only available in ARM architecture version 4
and above.
3.8.1 Addressing modes
In both types of instruction, the addressing mode is formed from two parts:
• the base register
• the offset.
The base register can be any one of the general-purpose registers (including the PC, which allows
PC-relative addressing for position-independent code).
The offset takes one of three formats:
Immediate The offset is an unsigned number that can be added to or subtracted from the base
register. Immediate offset addressing is useful for accessing data elements that are
a fixed distance from the start of the data object, such as structure fields, stack
offsets and input/output registers.
For the word and unsigned byte instructions, the immediate offset is a 12-bit
number. For the halfword and signed byte instructions, it is an 8-bit number.
Register The offset is a general-purpose register (not the PC), that can be added to or
subtracted from the base register. Register offsets are useful for accessing arrays or
blocks of data.
Scaled register The offset is a general-purpose register (not the PC) shifted by an immediate value,
then added to or subtracted from the base register. The same shift operations used
for data-processing instructions can be used (Logical Shift Left, Logical Shift Right,
Arithmetic Shift Right and Rotate Right), but Logical Shift Left is the most useful
as it allows an array indexed to be scaled by the size of each array element.
Scaled register offsets are only available for the word and unsigned byte
instructions.
As well as the three types of offset, the offset and base register are used in three different ways to form the
memory address. The addressing modes are described as follows:
Offset The base register and offset are added or subtracted to form the memory address
.
PS: just working on Joystick-hold for the 505

Last edited by Mark Nord; 09-16-2010 at 02:27 AM. Reason: correction
Mark Nord is offline  
Old 09-15-2010, 02:25 PM   #70
kravitz
Connoisseur
kravitz doesn't litterkravitz doesn't litter
 
Posts: 51
Karma: 104
Join Date: Mar 2010
Device: 505, Kindle PW
Quote:
Originally Posted by kartu View Post
Sends char(15)
Always when you hold any button, func sends 15, isn't it?

Quote:
Originally Posted by kartu View Post
0 gives 0x00, other numbers crash the reader (tried 8 & 5)
Inscrutably)))

Quote:
Originally Posted by kartu View Post
Just a thought, maybe you could simply change the number value? 0 => simple press, 10 => hold?
No problem... (I hope) but it's not a unix-way)))
kravitz is offline  
Old 09-15-2010, 02:28 PM   #71
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
Quote:
Originally Posted by kravitz View Post
Always when you hold any button, func sends 15, isn't it?
Yes.
--------------
kartu is offline  
Old 09-15-2010, 03:19 PM   #72
kravitz
Connoisseur
kravitz doesn't litterkravitz doesn't litter
 
Posts: 51
Karma: 104
Join Date: Mar 2010
Device: 505, Kindle PW
Quote:
Originally Posted by Mark Nord View Post
LDR R3, =aKholdD
LDR R1, [R3]
I'm not sure, but let's try it.

kartu, could you possibly test this?
Attached Files
File Type: zip ebook5.zip (33.9 KB, 141 views)

Last edited by kravitz; 09-15-2010 at 03:22 PM.
kravitz is offline  
Old 09-15-2010, 03:29 PM   #73
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
Quote:
Originally Posted by kravitz View Post
I'm not sure, but let's try it.

kartu, could you possibly test this?
Crash on hold0 (didn't try others).
kartu is offline  
Old 09-15-2010, 03:59 PM   #74
kravitz
Connoisseur
kravitz doesn't litterkravitz doesn't litter
 
Posts: 51
Karma: 104
Join Date: Mar 2010
Device: 505, Kindle PW
Quote:
Originally Posted by kartu View Post
Just a thought, maybe you could simply change the number value? 0 => simple press, 10 => hold?
simple press: N
hold: N + 10
Attached Files
File Type: zip ebook6.zip (33.9 KB, 179 views)
kravitz is offline  
Old 09-15-2010, 04:08 PM   #75
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
Quote:
Originally Posted by kravitz View Post
simple press: N
hold: N + 10
Works. Except 10 is hex (will do).
Great job!
kartu is offline  
Closed Thread


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-505 PRS+: 2 Questions on "Browse Folders" and Dictionary Format crc Sony Reader 2 06-23-2010 01:36 AM
PRS-300 English dictionary for PRS-300 theles92843 Sony Reader 7 04-23-2010 02:25 PM
database of book bindings Nate the great Deals and Resources (No Self-Promotion or Affiliate Links) 0 12-05-2009 08:59 PM
iLiad custom key bindings for fbreader cnbcad iRex Developer's Corner 2 05-25-2008 02:27 AM
Key Events in Microsoft History Colin Dunstan Lounge 2 11-16-2004 01:03 PM


All times are GMT -4. The time now is 08:20 PM.


MobileRead.com is a privately owned, operated and funded community.