Skip to content

Instantly share code, notes, and snippets.

@Danita
Created February 7, 2014 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Danita/8862941 to your computer and use it in GitHub Desktop.
Save Danita/8862941 to your computer and use it in GitHub Desktop.
Byte to change language from Portuguese to Spanish in TK90X ROM
04aa 112a3a ld de,$3a2a ; $3a2a possui mensagem "Ligue o gravador, digite ENTER"
04ad 211e00 ld hl,$001e ; $3a2a+$001e possui mensagem "Conecte grabador, digite ENTER"
04b0 1806 jr $04b8
04b2 119113 ld de,$1391 ; $1391 possui mensagens de erro em portugues
04b5 21dc24 ld hl,$24dc ; $1391+$24dc possui mensagens de erro em espanhol
04b8 dbbf in a,($bf)
04ba 17 rla
04bb 00 nop ; valor 00(nop) para espanhol ou C9(ret) para portugues
04bc 19 add hl,de
04bd eb ex de,hl ; calcula soma, se for espanhol
04be c9 ret
@Danita
Copy link
Author

Danita commented Feb 7, 2014

Change value of 04BB from C9 to 00

@Danita
Copy link
Author

Danita commented Mar 3, 2014

In some roms the value for spanish is D0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment