mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Update to rgbds 0.3.8
This commit is contained in:
parent
d9d688df4e
commit
df337fc417
2
FAQ.md
2
FAQ.md
@ -32,7 +32,7 @@ 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.7**][rgbds]. Older versions will not work.
|
Download [**rgbds 0.3.8**][rgbds]. Older versions will not work.
|
||||||
|
|
||||||
### "Segmentation fault" from `rgbgfx`
|
### "Segmentation fault" from `rgbgfx`
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ Click once on the text that says "**Skip**" next to each package to select the m
|
|||||||
|
|
||||||
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.7.** Ignore this if you have never installed rgbds before. If a version newer than 0.3.7 does not work, try downloading 0.3.7.
|
**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.
|
||||||
|
|
||||||
Now open the **Cygwin terminal** and enter the following commands.
|
Now open the **Cygwin terminal** and enter the following commands.
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ BATTLETRANSITION_NO_CAVE_STRONGER EQU $18
|
|||||||
BATTLETRANSITION_FINISH EQU $20
|
BATTLETRANSITION_FINISH EQU $20
|
||||||
BATTLETRANSITION_END EQU $80
|
BATTLETRANSITION_END EQU $80
|
||||||
|
|
||||||
BATTLETRANSITION_SQUARE EQUS "\"8\"" ; $fe
|
BATTLETRANSITION_SQUARE EQU "8" ; $fe
|
||||||
|
|
||||||
DoBattleTransition:
|
DoBattleTransition:
|
||||||
call .InitGFX
|
call .InitGFX
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
UNOWNSTAMP_BOLD_A EQUS "\"♂\"" ; $ef
|
UNOWNSTAMP_BOLD_A EQU "♂" ; $ef
|
||||||
UNOWNSTAMP_BOLD_B EQUS "\"♀\"" ; $f5
|
UNOWNSTAMP_BOLD_B EQU "♀" ; $f5
|
||||||
|
|
||||||
_UnownPrinter:
|
_UnownPrinter:
|
||||||
ld a, [wUnownDex]
|
ld a, [wUnownDex]
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
CARDFLIP_LIGHT_OFF EQUS "\"♂\"" ; $ef
|
CARDFLIP_LIGHT_OFF EQU "♂" ; $ef
|
||||||
CARDFLIP_LIGHT_ON EQUS "\"♀\"" ; $f5
|
CARDFLIP_LIGHT_ON EQU "♀" ; $f5
|
||||||
|
|
||||||
CARDFLIP_DECK_SIZE EQU 4 * 6
|
CARDFLIP_DECK_SIZE EQU 4 * 6
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ WriteOAMDMACodeToHRAM::
|
|||||||
ld hl, .PushOAM
|
ld hl, .PushOAM
|
||||||
.loop
|
.loop
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld [$ff00+c], a
|
ldh [c], a
|
||||||
inc c
|
inc c
|
||||||
dec b
|
dec b
|
||||||
jr nz, .loop
|
jr nz, .loop
|
||||||
|
@ -256,7 +256,7 @@ Function104a95:
|
|||||||
jr c, .ly_loop
|
jr c, .ly_loop
|
||||||
ld c, LOW(rRP)
|
ld c, LOW(rRP)
|
||||||
ld a, $c0
|
ld a, $c0
|
||||||
ld [$ff00+c], a
|
ldh [c], a
|
||||||
ld b, 240 ; This might have been intended as a 4-second timeout buffer.
|
ld b, 240 ; This might have been intended as a 4-second timeout buffer.
|
||||||
; However, it is reset with each frame.
|
; However, it is reset with each frame.
|
||||||
.loop3
|
.loop3
|
||||||
@ -267,14 +267,14 @@ Function104a95:
|
|||||||
ld c, LOW(rRP)
|
ld c, LOW(rRP)
|
||||||
; Delay frame
|
; Delay frame
|
||||||
.ly_loop2
|
.ly_loop2
|
||||||
ld a, [$ff00+c]
|
ldh a, [c]
|
||||||
and b
|
and b
|
||||||
ld b, a
|
ld b, a
|
||||||
ldh a, [rLY]
|
ldh a, [rLY]
|
||||||
cp LY_VBLANK
|
cp LY_VBLANK
|
||||||
jr nc, .ly_loop2
|
jr nc, .ly_loop2
|
||||||
.ly_loop3
|
.ly_loop3
|
||||||
ld a, [$ff00+c]
|
ldh a, [c]
|
||||||
and b
|
and b
|
||||||
ld b, a
|
ld b, a
|
||||||
ldh a, [rLY]
|
ldh a, [rLY]
|
||||||
@ -657,7 +657,7 @@ Function104da9:
|
|||||||
xor a
|
xor a
|
||||||
ldh [rIF], a
|
ldh [rIF], a
|
||||||
halt
|
halt
|
||||||
ld a, [$ff00+c]
|
ldh a, [c]
|
||||||
bit 1, a
|
bit 1, a
|
||||||
jr z, Function104da9
|
jr z, Function104da9
|
||||||
or a
|
or a
|
||||||
@ -669,7 +669,7 @@ Function104db7:
|
|||||||
xor a
|
xor a
|
||||||
ldh [rIF], a
|
ldh [rIF], a
|
||||||
halt
|
halt
|
||||||
ld a, [$ff00+c]
|
ldh a, [c]
|
||||||
bit 1, a
|
bit 1, a
|
||||||
jr nz, Function104db7
|
jr nz, Function104db7
|
||||||
or a
|
or a
|
||||||
@ -677,7 +677,7 @@ Function104db7:
|
|||||||
|
|
||||||
Function104dc5:
|
Function104dc5:
|
||||||
ld a, $c1
|
ld a, $c1
|
||||||
ld [$ff00+c], a
|
ldh [c], a
|
||||||
.wait
|
.wait
|
||||||
dec d
|
dec d
|
||||||
ret z
|
ret z
|
||||||
@ -688,7 +688,7 @@ Function104dc5:
|
|||||||
|
|
||||||
Function104dd1:
|
Function104dd1:
|
||||||
ld a, $c0
|
ld a, $c0
|
||||||
ld [$ff00+c], a
|
ldh [c], a
|
||||||
.wait
|
.wait
|
||||||
dec d
|
dec d
|
||||||
ret z
|
ret z
|
||||||
@ -716,7 +716,7 @@ Function104ddd:
|
|||||||
.next
|
.next
|
||||||
bit 0, a
|
bit 0, a
|
||||||
jr nz, Function104e3a
|
jr nz, Function104e3a
|
||||||
ld a, [$ff00+c]
|
ldh a, [c]
|
||||||
and b
|
and b
|
||||||
jr nz, .loop
|
jr nz, .loop
|
||||||
|
|
||||||
@ -997,14 +997,14 @@ Function104faf:
|
|||||||
.asm_104fdb
|
.asm_104fdb
|
||||||
inc d
|
inc d
|
||||||
jr z, .asm_104fe5
|
jr z, .asm_104fe5
|
||||||
ld a, [$ff00+c]
|
ldh a, [c]
|
||||||
bit 1, a
|
bit 1, a
|
||||||
jr z, .asm_104fdb
|
jr z, .asm_104fdb
|
||||||
ld d, $0
|
ld d, $0
|
||||||
.asm_104fe5
|
.asm_104fe5
|
||||||
inc d
|
inc d
|
||||||
jr z, .asm_104fed
|
jr z, .asm_104fed
|
||||||
ld a, [$ff00+c]
|
ldh a, [c]
|
||||||
bit 1, a
|
bit 1, a
|
||||||
jr nz, .asm_104fe5
|
jr nz, .asm_104fe5
|
||||||
.asm_104fed
|
.asm_104fed
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
NAMINGSCREEN_CURSOR EQU $7e
|
NAMINGSCREEN_CURSOR EQU $7e
|
||||||
|
|
||||||
NAMINGSCREEN_BORDER EQUS "\"■\"" ; $60
|
NAMINGSCREEN_BORDER EQU "■" ; $60
|
||||||
NAMINGSCREEN_MIDDLELINE EQUS "\"→\"" ; $eb
|
NAMINGSCREEN_MIDDLELINE EQU "→" ; $eb
|
||||||
NAMINGSCREEN_UNDERLINE EQUS "\"<DOT>\"" ; $f2
|
NAMINGSCREEN_UNDERLINE EQU "<DOT>" ; $f2
|
||||||
|
|
||||||
_NamingScreen:
|
_NamingScreen:
|
||||||
call DisableSpriteUpdates
|
call DisableSpriteUpdates
|
||||||
|
@ -53,7 +53,7 @@ SaveMenu_CopyTilemapAtOnce:
|
|||||||
rept SCREEN_WIDTH / 2
|
rept SCREEN_WIDTH / 2
|
||||||
pop de
|
pop de
|
||||||
.loop\@
|
.loop\@
|
||||||
ld a, [$ff00+c]
|
ldh a, [c]
|
||||||
and b
|
and b
|
||||||
jr nz, .loop\@
|
jr nz, .loop\@
|
||||||
ld [hl], e
|
ld [hl], e
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
TRADEANIM_RIGHT_ARROW EQUS "\"▶\"" ; $ed
|
TRADEANIM_RIGHT_ARROW EQU "▶" ; $ed
|
||||||
TRADEANIM_LEFT_ARROW EQUS "\"▼\"" ; $ee
|
TRADEANIM_LEFT_ARROW EQU "▼" ; $ee
|
||||||
|
|
||||||
; TradeAnim_TubeAnimJumptable.Jumptable indexes
|
; TradeAnim_TubeAnimJumptable.Jumptable indexes
|
||||||
const_def
|
const_def
|
||||||
|
@ -56,7 +56,7 @@ PhoneRing_CopyTilemapAtOnce:
|
|||||||
rept SCREEN_WIDTH / 2
|
rept SCREEN_WIDTH / 2
|
||||||
pop de
|
pop de
|
||||||
.loop\@
|
.loop\@
|
||||||
ld a, [$ff00+c]
|
ldh a, [c]
|
||||||
and b
|
and b
|
||||||
jr nz, .loop\@
|
jr nz, .loop\@
|
||||||
ld [hl], e
|
ld [hl], e
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
PRINTPARTY_HP EQUS "\"◀\"" ; $71
|
PRINTPARTY_HP EQU "◀" ; $71
|
||||||
|
|
||||||
PrintPage1:
|
PrintPage1:
|
||||||
hlcoord 0, 0
|
hlcoord 0, 0
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
TIMESET_UP_ARROW EQUS "\"♂\"" ; $ef
|
TIMESET_UP_ARROW EQU "♂" ; $ef
|
||||||
TIMESET_DOWN_ARROW EQUS "\"♀\"" ; $f5
|
TIMESET_DOWN_ARROW EQU "♀" ; $f5
|
||||||
|
|
||||||
InitClock:
|
InitClock:
|
||||||
; Ask the player to set the time.
|
; Ask the player to set the time.
|
||||||
|
@ -6,7 +6,7 @@ Unreferenced_Function547::
|
|||||||
ret nz
|
ret nz
|
||||||
ld c, a
|
ld c, a
|
||||||
ld a, [wLYOverrides]
|
ld a, [wLYOverrides]
|
||||||
ld [$ff00+c], a
|
ldh [c], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
LCD::
|
LCD::
|
||||||
@ -25,7 +25,7 @@ LCD::
|
|||||||
ldh a, [hLCDCPointer]
|
ldh a, [hLCDCPointer]
|
||||||
ld c, a
|
ld c, a
|
||||||
ld a, b
|
ld a, b
|
||||||
ld [$ff00+c], a
|
ldh [c], a
|
||||||
pop bc
|
pop bc
|
||||||
|
|
||||||
.done
|
.done
|
||||||
|
@ -33,7 +33,7 @@ ForceUpdateCGBPals::
|
|||||||
.bgp
|
.bgp
|
||||||
rept (1 palettes) * 2
|
rept (1 palettes) * 2
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld [$ff00+c], a
|
ldh [c], a
|
||||||
endr
|
endr
|
||||||
|
|
||||||
dec b
|
dec b
|
||||||
@ -49,7 +49,7 @@ endr
|
|||||||
.obp
|
.obp
|
||||||
rept (1 palettes) * 2
|
rept (1 palettes) * 2
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld [$ff00+c], a
|
ldh [c], a
|
||||||
endr
|
endr
|
||||||
|
|
||||||
dec b
|
dec b
|
||||||
|
@ -119,7 +119,7 @@ rept SCREEN_WIDTH / 2
|
|||||||
pop de
|
pop de
|
||||||
; if in v/hblank, wait until not in v/hblank
|
; if in v/hblank, wait until not in v/hblank
|
||||||
.loop\@
|
.loop\@
|
||||||
ld a, [$ff00+c]
|
ldh a, [c]
|
||||||
and b
|
and b
|
||||||
jr nz, .loop\@
|
jr nz, .loop\@
|
||||||
; load BGMap0
|
; load BGMap0
|
||||||
|
@ -215,9 +215,9 @@ Function1100dc:
|
|||||||
ld [$c815], a
|
ld [$c815], a
|
||||||
ld c, $7
|
ld c, $7
|
||||||
ld a, $2
|
ld a, $2
|
||||||
ld [$ff00+c], a
|
ldh [c], a
|
||||||
ld a, $6
|
ld a, $6
|
||||||
ld [$ff00+c], a
|
ldh [c], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
Function110115:
|
Function110115:
|
||||||
@ -604,9 +604,9 @@ Function11032c:
|
|||||||
|
|
||||||
Function110393:
|
Function110393:
|
||||||
ld c, LOW(rIE)
|
ld c, LOW(rIE)
|
||||||
ld a, [$ff00+c]
|
ldh a, [c]
|
||||||
or $c
|
or $c
|
||||||
ld [$ff00+c], a
|
ldh [c], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
Function11039a:
|
Function11039a:
|
||||||
@ -3416,9 +3416,9 @@ Function111686:
|
|||||||
xor a
|
xor a
|
||||||
ldh [rTAC], a
|
ldh [rTAC], a
|
||||||
ld c, $ff
|
ld c, $ff
|
||||||
ld a, [$ff00+c]
|
ldh a, [c]
|
||||||
and $f3
|
and $f3
|
||||||
ld [$ff00+c], a
|
ldh [c], a
|
||||||
ld a, [$cb48]
|
ld a, [$cb48]
|
||||||
ld [$c86a], a
|
ld [$c86a], a
|
||||||
ld a, [$cb47]
|
ld a, [$cb47]
|
||||||
|
Loading…
Reference in New Issue
Block a user