-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adição do Assembly responsável por carregar as legendas durante os ví…
…deos
- Loading branch information
1 parent
0c686b5
commit 2d7263f
Showing
19 changed files
with
5,310,480 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
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,36 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: windows-1252 -*- | ||
|
||
''' Script para converter o dump de memória do no$gba em binário ''' | ||
|
||
import sys | ||
with open( "dump.b" , 'rb' ) as fd: | ||
|
||
out = open( "dump.bin", 'wb' ) | ||
|
||
while True: | ||
|
||
_addr = fd.read( 8 ) # Endereço | ||
if len( _addr ) != 8: | ||
out.close() | ||
sys.exit(1) | ||
|
||
fd.seek( 1, 1 ) | ||
# Hex | ||
_hex = fd.read( 47 ) | ||
if len( _hex ) != 47: | ||
out.close() | ||
sys.exit(1) | ||
|
||
fd.seek( 2, 1 ) | ||
# Ascii | ||
_ascii = fd.read( 16 ) | ||
if len( _ascii ) != 16: | ||
out.close() | ||
sys.exit(1) | ||
|
||
fd.seek( 3, 1 ) | ||
out.write( ''.join( map( lambda x : chr(int(x, 16) ) , _hex.split( ' ' ) ) ) ) | ||
|
||
|
||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.