Dreamcast Widescreen Hacks
Sega Dreamcast Development and Research@-=FamilyGuy=-
Some games are written like this, and I'm usually inserted before RTS
mov.l @(h'1E4,pc), r5 ; [0C1D38B8] = dword_C2A1ED4
mova @(h'1E0,pc), r0 ; [0C1D38B4] = h'3F000000
fmov.s @r0, fr5
mov #4, r0
fmov.s @r5, fr3
fmul fr5, fr3
fmov.s fr3, @r4
write fr3 = 0x43a00000
r4 = 0x0c230250
PS: I used the WinHex to manually enter the assembler instruction. T_T
Some games are written like this, and I'm usually inserted before RTS
mov.l @(h'1E4,pc), r5 ; [0C1D38B8] = dword_C2A1ED4
mova @(h'1E0,pc), r0 ; [0C1D38B4] = h'3F000000
fmov.s @r0, fr5
mov #4, r0
fmov.s @r5, fr3
fmul fr5, fr3
fmov.s fr3, @r4
write fr3 = 0x43a00000
r4 = 0x0c230250
PS: I used the WinHex to manually enter the assembler instruction. T_T
That version is also pretty old, and it doesn't work with some games like Shenmue 2. But it was very helpful to me.
But you'll have to dumb it down a bit for me to understand

This is assembly code, and it seems to take values from some addresses (h'1E4,pc and h'1E0,pc), put them into registers, put those registers into floating point registers and do a multiplication then put the result in another register and write it to memory at the address 0x0c230250.
You tell me I should convert this to machine code using a sh4 assembler (or by hand like it seems you did), and input it into the 1st_read.bin? Where should I insert it?
@-=FamilyGuy=-
Please upload a Shenmue 1st file, I can try to write an example, you can have a look
Please upload a Shenmue 1st file, I can try to write an example, you can have a look
I'm reinstalling my system right now so I only have access to my phone, if someone else would upload it for you I'd appreciate it!
[Edit] IIUC the first part is the asm code, and the two last lines what it does? If that the original code? Why do they put #4 in r0? (Is #4 sign extension of 4?)
So the patch would be to modify the code so that fr3 is 438e38e4 before moving it to memory, or adding an instruction to add it to memory after that snippet? Like "mov.b 0x438e38e4 @r4"? We might have to load the value from somewhere though? Won't we have the camera problem S4ph talked about earlier?
[Edit] IIUC the first part is the asm code, and the two last lines what it does? If that the original code? Why do they put #4 in r0? (Is #4 sign extension of 4?)
So the patch would be to modify the code so that fr3 is 438e38e4 before moving it to memory, or adding an instruction to add it to memory after that snippet? Like "mov.b 0x438e38e4 @r4"? We might have to load the value from somewhere though? Won't we have the camera problem S4ph talked about earlier?
![[IMG]](https://web.archive.org/web/2im_/http://i.imgur.com/qZAZr1D.png)
I'm dropping off the projects as my work is redundant now. Also, do not have the time now as I have to move to japan.
CODE VERONICA NTSC USA
02329E40----3F400000
CODE VERONICA PAL SPANISH
0232A3A0----3F400000
VIRTUA FIGHTER 3 PAL
0219d718----43700000
BLUE STINGER
022D9CA4---3F400000
COOL BOARDERS
0219C1BC----3F8CCCCD
021600C8----3F400000
SOUL CALIBUR PAL
022D6138---3F400000
SPACE CHANNEL 5 PART 2 NTSC J
0214D3E0---3F400000
DAYTONA USA-NTSC USA
021FC6D0----43700000
02329E40----3F400000
CODE VERONICA PAL SPANISH
0232A3A0----3F400000
VIRTUA FIGHTER 3 PAL
0219d718----43700000
BLUE STINGER
022D9CA4---3F400000
COOL BOARDERS
0219C1BC----3F8CCCCD
021600C8----3F400000
SOUL CALIBUR PAL
022D6138---3F400000
SPACE CHANNEL 5 PART 2 NTSC J
0214D3E0---3F400000
DAYTONA USA-NTSC USA
021FC6D0----43700000
@Esppiral that is so cool! My TV is actually the 21:9 Philips model, would be quite epic to finally play some games which use the whole screen! Now I'm used to playing games in the size of a postal stamp haha.
To make the games 21x9
Change
16x9-43700000 to 21x9 43300000
16x9-3F400000 to 21x9 3F100000
Change
16x9-43700000 to 21x9 43300000
16x9-3F400000 to 21x9 3F100000
Dead or alive 2 NTSC?
https://dl.dropboxusercontent.com/u/17063965/Dreamcast/Shenmue (NTSC) 1ST_READ.zip
Anyway, the #4 would make more sense if you saw the rest of the code in that area. They actually move #8 into the same register later on, and I think #C as well. The area it's writing to a part of a struct (or an array) so they're doing the equivalent of start, start+4, start+8, to populate various values inside the struct.
Regarding the camera problem, It's possible that one of the registers I used was used for something else later and I didn't put it back how it was supposed to be. Not positive though, I lost the changes I made when I ran chkdsk on Sunday.
Could we simply insert code there? Literally offsetting the rest of the file or would it break it? (I think it would) There's a lot of blank data in the bootbin, so maybe we could use that space to redirect our custom instructions?
Could you recommend a disassembler and assembler?
Could you recommend a disassembler and assembler?
https://mega.nz/#!zQVTUYCT
test
Just a simple modification
Maybe we can switch to a key combination in the game.
test
Just a simple modification
Maybe we can switch to a key combination in the game.
sorry~~
!a8rfdmbiEbeZQMTymsJsGdFLzJCT4KhQPGOZVSK09ek
or
down :
https://mega.nz/#!zQVTUYCT!a8rfdmbiEbeZQMTymsJsGdFLzJCT4KhQPGOZVSK09ek
!a8rfdmbiEbeZQMTymsJsGdFLzJCT4KhQPGOZVSK09ek
or
down :
https://mega.nz/#!zQVTUYCT!a8rfdmbiEbeZQMTymsJsGdFLzJCT4KhQPGOZVSK09ek
Is any one else making widescreen pathces?
Original thread: https://assemblergames.com/threads/dreamcast-widescreen-hacks.58620/