Merge pull request #661 from mid-kid/patch-1

Fixed a charmap warning with the new RGBDS
This commit is contained in:
mid-kid 2019-11-19 00:08:28 +00:00 committed by GitHub
commit 5e104de3f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 26 additions and 25 deletions

4
FAQ.md
View File

@ -38,11 +38,11 @@ You need to install `gcc`. If you're using Cygwin, re-run its setup, and at "Sel
### "ERROR: `UNION` already defined" ### "ERROR: `UNION` already defined"
Download [**rgbds 0.3.8**][rgbds]. Older versions will not work. Download [**rgbds 0.3.9**][rgbds] or newer. Older versions will not work.
### "Expression must be 8-bit" ### "Expression must be 8-bit"
Download [**rgbds 0.3.8**][rgbds]. Older versions will not work. Download [**rgbds 0.3.9**][rgbds] or newer. Older versions will not work.
### "Segmentation fault" from `rgbgfx` ### "Segmentation fault" from `rgbgfx`

View File

@ -38,7 +38,7 @@ Double click on the text that says "**Skip**" next to each package to select the
Then download [**rgbds**](https://github.com/rednex/rgbds/releases/): the latest **win64.zip** or **win32.zip** release. Extract it and put all the `exe` and `dll` files individually in **C:\cygwin64\usr\local\bin**. Then download [**rgbds**](https://github.com/rednex/rgbds/releases/): the latest **win64.zip** or **win32.zip** release. Extract it and put all the `exe` and `dll` files individually in **C:\cygwin64\usr\local\bin**.
**Note: If you already have an older rgbds, you will need to update to 0.3.8.** Ignore this if you have never installed rgbds before. If a version newer than 0.3.8 does not work, try downloading 0.3.8. **Note: If you already have an older rgbds, you will need to update to 0.3.9.** Ignore this if you have never installed rgbds before. If a version newer than 0.3.9 does not work, try downloading 0.3.9.
Now open the **Cygwin terminal** and enter the following commands. Now open the **Cygwin terminal** and enter the following commands.

View File

@ -416,3 +416,8 @@
charmap "", $fd charmap "", $fd
charmap "", $fe charmap "", $fe
charmap "", $ff charmap "", $ff
; ASCII charmap, for mobile functions
pushc
newcharmap ascii
popc

View File

@ -1683,16 +1683,13 @@ Function100ae7:
ld [wcd2b], a ld [wcd2b], a
ret ret
pushc
SECTION "tetsuji", ROMX setcharmap ascii
charmap " ", $20 ; revert to ascii
Unknown_100b0a: Unknown_100b0a:
db "tetsuji", 0 db "tetsuji", 0
popc
SECTION "bank40_2", ROMX
Function100b12: Function100b12:
call Function100dd8 call Function100dd8
@ -3617,10 +3614,8 @@ Function101826:
ld [wcd2b], a ld [wcd2b], a
ret ret
pushc
SECTION "ascii 10186f", ROMX setcharmap ascii
charmap " ", $20 ; revert to ascii
Unknown_10186f: Unknown_10186f:
db .end - @ db .end - @
@ -3637,8 +3632,7 @@ Unknown_101895:
db $19, $67, $10, $01, "limit_crystal" db $19, $67, $10, $01, "limit_crystal"
.end db 0 .end db 0
popc
SECTION "bank40_3", ROMX
Function1018a8: Function1018a8:
ld hl, wccb5 ld hl, wccb5

View File

@ -1,6 +1,7 @@
SECTION "Mobile 45", ROMX SECTION "Mobile 45", ROMX
charmap " ", $20 ; revert to ascii pushc
setcharmap ascii
String_114000: String_114000:
db "---", 0 db "---", 0
@ -125,6 +126,8 @@ String_114228:
String_114232: String_114232:
db "=?ISO-2022-JP?B?", 0 db "=?ISO-2022-JP?B?", 0
popc
Function114243:: Function114243::
ld a, SRAM_ENABLE ld a, SRAM_ENABLE
ld [MBC3SRamEnable], a ld [MBC3SRamEnable], a

View File

@ -1484,7 +1484,8 @@ Function118b9a:
and a and a
ret ret
charmap " ", $20 ; revert to ascii pushc
setcharmap ascii
ExchangeDownloadURL: ExchangeDownloadURL:
db "http://gameboy.datacenter.ne.jp/cgb/download?name=/01/CGB-BXTJ/exchange/index.txt", 0 db "http://gameboy.datacenter.ne.jp/cgb/download?name=/01/CGB-BXTJ/exchange/index.txt", 0
@ -1501,6 +1502,8 @@ MenuDownloadURL:
IndexDownloadURL: IndexDownloadURL:
db "http://gameboy.datacenter.ne.jp/cgb/download?name=/01/CGB-BXTJ/tamago/index.txt", 0 db "http://gameboy.datacenter.ne.jp/cgb/download?name=/01/CGB-BXTJ/tamago/index.txt", 0
popc
Unreferenced_Function118d35: Unreferenced_Function118d35:
ld hl, $d200 ld hl, $d200
ld a, [wcd38] ld a, [wcd38]
@ -2918,6 +2921,9 @@ Function119694:
jr nz, .asm_119699 jr nz, .asm_119699
ret ret
pushc
setcharmap ascii
Unknown_1196b8: Unknown_1196b8:
db "Mon" db "Mon"
db "Tue" db "Tue"
@ -2927,9 +2933,7 @@ Unknown_1196b8:
db "Sat" db "Sat"
db "Sun" db "Sun"
popc
SECTION "Mobile 46 ASCII", ROMX
; A hack to use ascii above.
Function1196cd: Function1196cd:
ld de, wc719 ld de, wc719

View File

@ -167,10 +167,6 @@ ROMX $3f
"bank3F" "bank3F"
ROMX $40 ROMX $40
"mobile_40" "mobile_40"
"tetsuji"
"bank40_2"
"ascii 10186f"
"bank40_3"
ROMX $41 ROMX $41
"bank41" "bank41"
ROMX $42 ROMX $42
@ -186,7 +182,6 @@ ROMX $45
"Mobile Stadium" "Mobile Stadium"
ROMX $46 ROMX $46
"Mobile 46" "Mobile 46"
"Mobile 46 ASCII"
ROMX $47 ROMX $47
"Battle Tower" "Battle Tower"
ROMX $48 ROMX $48