From f88c29e0836aa1e9f9d238484ff1c31ecc97f476 Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Mon, 8 Apr 2024 21:30:05 +0200 Subject: [PATCH] convert github doc links into permalinks --- compiler/res/prog8lib/cx16/emudbg.p8 | 2 +- compiler/res/prog8lib/cx16/psg.p8 | 2 +- compiler/res/prog8lib/cx16/syslib.p8 | 6 +++--- compiler/res/prog8lib/cx16/verafx.p8 | 2 +- compiler/res/prog8lib/virtual/emudbg.p8 | 2 +- examples/cx16/keyboardhandler.p8 | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/compiler/res/prog8lib/cx16/emudbg.p8 b/compiler/res/prog8lib/cx16/emudbg.p8 index 30407b292..10ab898fb 100644 --- a/compiler/res/prog8lib/cx16/emudbg.p8 +++ b/compiler/res/prog8lib/cx16/emudbg.p8 @@ -1,5 +1,5 @@ ; Emulator debug interface. -; Docs: https://github.com/X16Community/x16-emulator#emulator-io-registers +; Docs: https://github.com/X16Community/x16-emulator/tree/d52f118ce893fa24c4ca021a0b8de46cb80e5ccf#emulator-io-registers emudbg { %option ignore_unused diff --git a/compiler/res/prog8lib/cx16/psg.p8 b/compiler/res/prog8lib/cx16/psg.p8 index dc8f084fd..d9bbf7f5b 100644 --- a/compiler/res/prog8lib/cx16/psg.p8 +++ b/compiler/res/prog8lib/cx16/psg.p8 @@ -48,7 +48,7 @@ psg { sub freq(ubyte voice_num, uword vera_freq) { ; -- Changes the frequency of the voice's sound. ; voice_num = 0-15, vera_freq = 0-65535 calculate this via the formula given in the Vera's PSG documentation. - ; (https://github.com/x16community/x16-docs/blob/master/VERA%20Programmer's%20Reference.md) + ; (https://github.com/X16Community/x16-docs/blob/101759f3bfa5e6cce4e8c5a0b67cb0f2f1c6341e/X16%20Reference%20-%2009%20-%20VERA%20Programmer's%20Reference.md) ; Write freq MSB first and then LSB to reduce the chance on clicks sys.irqsafe_set_irqd() cx16.r0 = $f9c1 + voice_num * 4 diff --git a/compiler/res/prog8lib/cx16/syslib.p8 b/compiler/res/prog8lib/cx16/syslib.p8 index 12a3dad40..7165ea1e6 100644 --- a/compiler/res/prog8lib/cx16/syslib.p8 +++ b/compiler/res/prog8lib/cx16/syslib.p8 @@ -998,7 +998,7 @@ asmsub restore_vera_context() clobbers(A) { asmsub set_chrin_keyhandler(ubyte handlerbank @A, uword handler @XY) clobbers(A) { ; Install a custom CHRIN (BASIN) key handler in a safe manner. Call this before each line you want to read. - ; See https://github.com/X16Community/x16-docs/blob/master/X16%20Reference%20-%2002%20-%20Editor.md#custom-basin-petscii-code-override-handler + ; See https://github.com/X16Community/x16-docs/blob/101759f3bfa5e6cce4e8c5a0b67cb0f2f1c6341e/X16%20Reference%20-%2003%20-%20Editor.md#custom-basin-petscii-code-override-handler %asm {{ sei sta P8ZP_SCRATCH_REG @@ -1256,7 +1256,7 @@ sub search_x16edit() -> ubyte { sub set_program_args(uword args_ptr, ubyte args_size) { ; -- Set the inter-program arguments. ; standardized way to pass arguments between programs is in ram bank 0, address $bf00-$bfff. - ; see https://github.com/X16Community/x16-docs/blob/master/X16%20Reference%20-%2007%20-%20Memory%20Map.md#bank-0 + ; see https://github.com/X16Community/x16-docs/blob/101759f3bfa5e6cce4e8c5a0b67cb0f2f1c6341e/X16%20Reference%20-%2008%20-%20Memory%20Map.md#bank-0 sys.push(getrambank()) rambank(0) sys.memcopy(args_ptr, $bf00, args_size) @@ -1268,7 +1268,7 @@ sub search_x16edit() -> ubyte { asmsub get_program_args(uword buffer @R0, ubyte buf_size @R1, bool binary @Pc) { ; -- Retrieve the inter-program arguments. If binary=false, it treats them as a string (stops copying at first zero). ; standardized way to pass arguments between programs is in ram bank 0, address $bf00-$bfff. - ; see https://github.com/X16Community/x16-docs/blob/a21a320aebec2c7b93f1bd90b97dcfd73fff4ad0/X16%20Reference%20-%2008%20-%20Memory%20Map.md#bank-0 + ; see https://github.com/X16Community/x16-docs/blob/101759f3bfa5e6cce4e8c5a0b67cb0f2f1c6341e/X16%20Reference%20-%2008%20-%20Memory%20Map.md#bank-0 %asm {{ lda #0 rol a diff --git a/compiler/res/prog8lib/cx16/verafx.p8 b/compiler/res/prog8lib/cx16/verafx.p8 index d6b5d88de..2e3d2a618 100644 --- a/compiler/res/prog8lib/cx16/verafx.p8 +++ b/compiler/res/prog8lib/cx16/verafx.p8 @@ -1,6 +1,6 @@ ; Somewhat experimental Vera FX support. ; Docs: -; https://github.com/X16Community/x16-docs/blob/master/X16%20Reference%20-%2010%20-%20VERA%20FX%20Reference.md +; https://github.com/X16Community/x16-docs/blob/101759f3bfa5e6cce4e8c5a0b67cb0f2f1c6341e/X16%20Reference%20-%2010%20-%20VERA%20FX%20Reference.md ; https://docs.google.com/document/d/1q34uWOiM3Be2pnaHRVgSdHySI-qsiQWPTo_gfE54PTg verafx { diff --git a/compiler/res/prog8lib/virtual/emudbg.p8 b/compiler/res/prog8lib/virtual/emudbg.p8 index f6993333a..f74ca9c97 100644 --- a/compiler/res/prog8lib/virtual/emudbg.p8 +++ b/compiler/res/prog8lib/virtual/emudbg.p8 @@ -1,5 +1,5 @@ ; Emulator debug interface. (reflecting the Commander X16 emudbg library module) -; Docs: https://github.com/X16Community/x16-emulator#emulator-io-registers +; Docs: https://github.com/X16Community/x16-emulator/tree/d52f118ce893fa24c4ca021a0b8de46cb80e5ccf#emulator-io-registers %import textio diff --git a/examples/cx16/keyboardhandler.p8 b/examples/cx16/keyboardhandler.p8 index d4f896350..4b3b42d37 100644 --- a/examples/cx16/keyboardhandler.p8 +++ b/examples/cx16/keyboardhandler.p8 @@ -3,7 +3,7 @@ %option no_sysinit ; The documentation for custom key handlers can be found here: -; https://github.com/X16Community/x16-docs/blob/master/X16%20Reference%20-%2002%20-%20Editor.md#custom-keyboard-keynum-code-handler +; https://github.com/X16Community/x16-docs/blob/101759f3bfa5e6cce4e8c5a0b67cb0f2f1c6341e/X16%20Reference%20-%2003%20-%20Editor.md#custom-keyboard-keynum-code-handler main {