Skip to content

Commit 2a39af4

Browse files
authoredJul 28, 2024
sgb_border: fix broken snek-gbc links, remove dead link to snippet in gbc-violence
1 parent 056e224 commit 2a39af4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎website/guides/sgb_border.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ We will see how to:
1010

1111
<small>
1212

13-
Written by [sylvie (zlago)](https://zlago.github.io/me/), idea (and minor help) by [valentina (coffee bat)](https://coffeebat.neocities.org/), reviews and improvements by [ISSOtm](https://eldred.fr), [avivace](https://github.com/avivace), and [PinoBatch](https://github.com/pinobatch).
13+
Written by **sylvie (zlago)**, idea (and minor help) by [valentina (coffee bat)](https://coffeebat.neocities.org/), reviews and improvements by [ISSOtm](https://eldred.fr), [avivace](https://github.com/avivace), and [PinoBatch](https://github.com/pinobatch).
1414

1515
</small>
1616

@@ -45,7 +45,7 @@ This adds up to 16 bytes of data (LSB first). If a packet doesn't read all 16 by
4545

4646
**You should wait 4 frames between each packet and the next.** This gives the SGB BIOS a chance to receive a packet even if it is doing something else time-consuming.
4747

48-
For an example of such routine, see this [code](https://github.com/zlago/violence-gbc/blob/11cfdb6ee8a35e042fa9712484d814e0961cea7c/src/sub.sm83#L413-L463) and the related Pan Docs entry: [SGB Command Packet on Pandocs](https://gbdev.io/pandocs/SGB_Command_Packet.html).
48+
For an example of such routine, see the related Pan Docs entry: [SGB Command Packet on Pandocs](https://gbdev.io/pandocs/SGB_Command_Packet.html).
4949

5050
This guide glosses over a minor detail, as certain packets can be (albeit unccomon) more than 16 bytes.
5151

@@ -60,7 +60,7 @@ For a transfer to function properly, you must prepare VRAM and the LCD registers
6060
3. the tilemap consists of `$00`, `$01`..`$13`, 12 bytes padding (offscreen), `$14`..`$27`, padding, repeat until `$ff` (inclusive)
6161
4. the data you want to send must be loaded at `$8000`-`$8fff`
6262

63-
You can do 1, 2 and 3 via [this snippet](https://github.com/zlago/snek-gbc/blob/baef0369f57d2b0d58316cb1c28c6cc22475a6c9/code/init.sm83#L208-L230)
63+
You can do 1, 2 and 3 via [this snippet](https://github.com/gb-archive/snek-gbc/blob/main/code/init.sm83#L208-L230)
6464

6565
- **You must load the data into VRAM and enable the screen before sending the TRN packet.** The SGB reads TRN payloads from the screen. If rendering is off, there is nothing on the screen to read.
6666
- **You must wait ~8 frames after each TRN** instead of just 4. The SGB BIOS has to finish what it's doing, receive the packet, and then read the screen.
@@ -78,7 +78,7 @@ Here's how a SGB detection routine should look like:
7878

7979
If a non-`%1111` value was found in step 4 either time, the program is running on SGB.
8080

81-
A routine like this may be used to detect SGB (modified from [source](https://github.com/zlago/snek-gbc/blob/baef0369f57d2b0d58316cb1c28c6cc22475a6c9/code/init.sm83#L167-L196)):
81+
A routine like this may be used to detect SGB (modified from [source](https://github.com/gb-archive/snek-gbc/blob/main/code/init.sm83#L167-L196)):
8282

8383
```sm83asm
8484
SGB_Detect:

0 commit comments

Comments
 (0)
Failed to load comments.