Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
New line spacing patch for fw 3.0.1
This is an alternative to the standard line spacing patch for firmware 3.0.1 (644485e229). It allows all 15 line spacing values to be set, and it is as easy to configure as the standard patch.
Spoiler:
Code:
<Patch>
patch_name = `My 15 line spacing values`
patch_enable = `yes`
# save regs, load val1 from new table
replace_bytes = 749398, 00 22 00 23 06 F1 48 05, B0 46 06 F1 48 05 3C A3
replace_bytes = 7493A0, C3 F6 F0 73, D3 E9 00 23
# load val5 from new table
replace_bytes = 7493E8, 4F F0 33 32 43 F2 33 33, 2B A3 D3 E9 00 23 00 46
replace_bytes = 7493F0, C3 F6 F3 73, 00 46 00 46
# load val7 from new table
replace_bytes = 749412, 00 22 00 23 C3 F6 F8 73, 23 A3 D3 E9 00 23 00 46
# load val10 from new table
replace_bytes = 74944A, 00 22 4F F0 80 43, 17 A3 D3 E9 00 23
# load val11-val14 from old table in a loop to make room for new table
replace_bytes = 74945C, 32 A3 D3 E9 00 23 1E A9, 32 A7 00 26 D7 E9 00 23
replace_bytes = 749464, 28 46 61 E9 0A 23 26 F6, 1E A9 31 44 61 E9 0A 23
replace_bytes = 74946C, 50 EA 30 A3 D3 E9 00 23, 28 46 26 F6 4E EA 08 36
replace_bytes = 749474, 1E A9 28 46 61 E9, 08 37 20 2E F2 D1
# restore regs, load val15 from new table
replace_bytes = 74947A, 08 23 26 F6 46 EA 2D A3, 46 46 28 46 0C A3 D3 E9
replace_bytes = 749482, D3 E9 00 23 1E A9 28 46, 00 23 1E A9 61 E9 02 23
replace_bytes = 74948A, 61 E9 06 23 26 F6, 26 F6 40 EA 13 E0
# new table, inial values 1.0, 1.2, 1.5, 2.0, 3.0
replace_bytes = 749490, 3E EA 2B A3 D3 E9 00 23, 00 00 00 00 00 00 F0 3F
replace_bytes = 749498, 1E A9 28 46 61 E9 04 23, 33 33 33 33 33 33 F3 3F
replace_bytes = 7494A0, 26 F6 34 EA 00 23 00 22, 00 00 00 00 00 00 F8 3F
replace_bytes = 7494A8, C4 F2 08 03 1E A9 61 E9, 00 00 00 00 00 00 00 40
replace_bytes = 7494B0, 02 23 28 46 26 F6 2A EA, 00 00 00 00 00 00 08 40
#
# 15 values for replacement
replace_float = 749490, 1.0, 0.7
replace_float = 7494F8, 1.05, 0.75
replace_float = 749500, 1.07, 0.8
replace_float = 749508, 1.1, 0.825
replace_float = 749498, 1.2, 0.85
replace_float = 749510, 1.35, 0.875
replace_float = 7494A0, 1.5, 0.9
replace_float = 749518, 1.7, 0.925
replace_float = 749520, 1.8, 0.95
replace_float = 7494A8, 2.0, 0.975
replace_float = 749528, 2.2, 1.0
replace_float = 749530, 2.4, 1.05
replace_float = 749538, 2.6, 1.1
replace_float = 749540, 2.8, 1.2
replace_float = 7494B0, 3.0, 1.5
</Patch>
(For the firmware 3.1.1 version see this thread.)
|