Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add option to optimize display for the RetroTINK-4K.
- Loading branch information
Showing
10 changed files
with
79 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#include "reservedarea.h" | ||
|
||
.globl VIConfigureHook1RT4K | ||
VIConfigureHook1RT4K: | ||
li %r0, 0 | ||
lhz %r6, 4 (%r3) | ||
subfic %r5, %r6, 720 | ||
srwi %r5, %r5, 1 | ||
sth %r0, 12 (%r3) | ||
sth %r5, 18 (%r3) | ||
sth %r6, 20 (%r3) | ||
lis %r4, VAR_AREA | ||
stw %r3, VAR_RMODE (%r4) | ||
lbz %r0, VAR_VFILTER_ON (%r4) | ||
cmpwi %r0, 0 | ||
beq 5f | ||
addi %r4, %r4, VAR_VFILTER | ||
addi %r3, %r3, 50 | ||
lswi %r5, %r4, 7 | ||
stswi %r5, %r3, 7 | ||
5: mfmsr %r3 | ||
rlwinm %r4, %r3, 0, 17, 15 | ||
extrwi %r3, %r3, 1, 16 | ||
mtmsr %r4 | ||
blr | ||
|
||
.globl VIConfigureHook1RT4K_length | ||
VIConfigureHook1RT4K_length: | ||
.long (VIConfigureHook1RT4K_length - VIConfigureHook1RT4K) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters