diff --git a/docs/api/bcd_8h.html b/docs/api/bcd_8h.html index 26ac9113..8608976e 100644 --- a/docs/api/bcd_8h.html +++ b/docs/api/bcd_8h.html @@ -93,32 +93,33 @@ $(document).ready(function(){initNavTree('bcd_8h.html',''); initResizable(); });
bcd.h File Reference
-
#include <asm/types.h>
+
#include <stdint.h>
+#include <asm/types.h>

Go to the source code of this file.

- +

Macros

#define BCD_HEX(v)   ((BCD)(v))
#define BCD_HEX(v)   ((BCD)(v))
 
#define MAKE_BCD(v)   BCD_HEX(0x ## v)
 
- - + +

Typedefs

typedef unsigned long BCD
 
typedef uint32_t BCD
 
- - - + + + - + - - + +

Functions

void uint2bcd (unsigned int i, BCD *value)
 
void bcd_add (BCD *sour, const BCD *value)
void uint2bcd (uint16_t i, BCD *value)
 
void bcd_add (BCD *sour, const BCD *value)
 
void bcd_sub (BCD *sour, const BCD *value)
void bcd_sub (BCD *sour, const BCD *value)
 
UBYTE bcd2text (const BCD *bcd, UBYTE tile_offset, unsigned char *buffer)
 
uint8_t bcd2text (const BCD *bcd, uint8_t tile_offset, uint8_t *buffer)
 

Detailed Description

Support for working with BCD (Binary Coded Decimal)

@@ -135,7 +136,7 @@ Functions (   v) -    ((BCD)(v)) +    ((BCD)(v))
@@ -163,14 +164,14 @@ Functions

Typedef Documentation

- -

◆ BCD

+ +

◆ BCD

- +
typedef unsigned long BCDtypedef uint32_t BCD
@@ -178,8 +179,8 @@ Functions

Function Documentation

- -

◆ uint2bcd()

+ +

◆ uint2bcd()

@@ -187,13 +188,13 @@ Functions void uint2bcd ( - unsigned int  + uint16_t  i, - BCD *  + BCDvalue  @@ -222,13 +223,13 @@ Functions void bcd_add ( - BCD *  + BCDsour, - const BCD *  + const BCDvalue  @@ -257,13 +258,13 @@ Functions void bcd_sub ( - BCD *  + BCDsour, - const BCD *  + const BCDvalue  @@ -283,28 +284,28 @@ Functions
- -

◆ bcd2text()

+ +

◆ bcd2text()

- + - + - + - + @@ -325,7 +326,7 @@ Functions

Returns: Length in characters (always 8)

buffer should be large enough to store the converted string (9 bytes: 8 characters + 1 for terminator)

There are a couple different ways to use tile_offset. For example:

    -
  • It can be the Index of the Font Tile '0' in VRAM to allow the buffer to be used directly with set_bkg_tiles.
  • +
  • It can be the Index of the Font Tile '0' in VRAM to allow the buffer to be used directly with set_bkg_tiles.
  • It can also be set to the ascii value for character '0' so that the buffer is a normal string that can be passed to printf.
diff --git a/docs/api/bcd_8h.js b/docs/api/bcd_8h.js index 14387d20..4f200abc 100644 --- a/docs/api/bcd_8h.js +++ b/docs/api/bcd_8h.js @@ -2,9 +2,9 @@ var bcd_8h = [ [ "BCD_HEX", "bcd_8h.html#a5b336fcb3fc84fe505dc7e14d0ec17a7", null ], [ "MAKE_BCD", "bcd_8h.html#a8a3023920aa103a74c7d59007bcc7b6f", null ], - [ "BCD", "bcd_8h.html#a8c63f4b8b13c77782a46de2e666c7408", null ], - [ "uint2bcd", "bcd_8h.html#a199d4e29e267c9722768fbcbd7c4cc1d", null ], + [ "BCD", "bcd_8h.html#a4813acd7f1852dd32b67175ca6aca2eb", null ], + [ "uint2bcd", "bcd_8h.html#a718f9c42a96e0a1dde983117e08f0e91", null ], [ "bcd_add", "bcd_8h.html#afa80f8e7a7af38bf7527d8e87860a40c", null ], [ "bcd_sub", "bcd_8h.html#a52b446b9dd70d54bed395bf38c53e82f", null ], - [ "bcd2text", "bcd_8h.html#ad2804ad5d0c4376e7c5636e83f140889", null ] + [ "bcd2text", "bcd_8h.html#a9bb3578354883184d3bdfa877ec65ed2", null ] ]; \ No newline at end of file diff --git a/docs/api/bcd_8h_source.html b/docs/api/bcd_8h_source.html index 5b066833..124745e9 100644 --- a/docs/api/bcd_8h_source.html +++ b/docs/api/bcd_8h_source.html @@ -92,33 +92,37 @@ $(document).ready(function(){initNavTree('bcd_8h_source.html',''); initResizable Go to the documentation of this file.
1 #ifndef __BCD_H_INCLUDE
2 #define __BCD_H_INCLUDE
3 
-
4 #include <asm/types.h>
-
5 
-
12 // macro for creating BCD constants
-
13 #define BCD_HEX(v) ((BCD)(v))
-
14 
-
19 #define MAKE_BCD(v) BCD_HEX(0x ## v)
-
20 
-
21 typedef unsigned long BCD;
-
22 
-
27 void uint2bcd(unsigned int i, BCD * value);
-
28 
-
33 void bcd_add(BCD * sour, const BCD * value);
-
34 
-
39 void bcd_sub(BCD * sour, const BCD * value);
-
40 
-
58 UBYTE bcd2text(const BCD * bcd, UBYTE tile_offset, unsigned char * buffer);
-
59 
-
60 #endif
+
4 #include <stdint.h>
+
5 #include <asm/types.h>
+
6 
+
13 // macro for creating BCD constants
+
14 #define BCD_HEX(v) ((BCD)(v))
+
15 
+
20 #define MAKE_BCD(v) BCD_HEX(0x ## v)
+
21 
+
22 typedef uint32_t BCD;
+
23 
+
28 void uint2bcd(uint16_t i, BCD * value);
+
29 
+
34 void bcd_add(BCD * sour, const BCD * value);
+
35 
+
40 void bcd_sub(BCD * sour, const BCD * value);
+
41 
+
59 uint8_t bcd2text(const BCD * bcd, uint8_t tile_offset, uint8_t * buffer);
+
60 
+
61 #endif
-
UBYTE bcd2text(const BCD *bcd, UBYTE tile_offset, unsigned char *buffer)
+
unsigned char uint8_t
Definition: stdint.h:51
+
unsigned long int uint32_t
Definition: stdint.h:53
+
uint32_t BCD
Definition: bcd.h:22
+
uint8_t bcd2text(const BCD *bcd, uint8_t tile_offset, uint8_t *buffer)
+
unsigned short int uint16_t
Definition: stdint.h:52
void bcd_add(BCD *sour, const BCD *value)
-
UINT8 UBYTE
Definition: types.h:46
-
void uint2bcd(unsigned int i, BCD *value)
+ +
void uint2bcd(uint16_t i, BCD *value)
void bcd_sub(BCD *sour, const BCD *value)
-
unsigned long BCD
Definition: bcd.h:21
#include <types.h>
+#include <stdint.h>

Go to the source code of this file.

UBYTE bcd2text uint8_t bcd2text (const BCDconst BCD bcd,
UBYTE uint8_t  tile_offset,
unsigned char * uint8_t buffer 
- + @@ -143,14 +144,14 @@ Macros

Macros

#define RGB(r, g, b)    ((((UINT16)(b) & 0x1f) << 10) | (((UINT16)(g) & 0x1f) << 5) | (((UINT16)(r) & 0x1f) << 0))
#define RGB(r, g, b)    ((((uint16_t)(b) & 0x1f) << 10) | (((uint16_t)(g) & 0x1f) << 5) | (((uint16_t)(r) & 0x1f) << 0))
 
#define RGB_RED   RGB(31, 0, 0)
 
- - - - - - - - + + + + + + + + @@ -196,7 +197,7 @@ Functions - +

Functions

void set_bkg_palette (UINT8 first_palette, UINT8 nb_palettes, UINT16 *rgb_data) NONBANKED
 
void set_sprite_palette (UINT8 first_palette, UINT8 nb_palettes, UINT16 *rgb_data) NONBANKED
 
void set_bkg_palette_entry (UINT8 palette, UINT8 entry, UINT16 rgb_data)
 
void set_sprite_palette_entry (UINT8 palette, UINT8 entry, UINT16 rgb_data)
 
void set_bkg_palette (uint8_t first_palette, uint8_t nb_palettes, uint16_t *rgb_data) NONBANKED
 
void set_sprite_palette (uint8_t first_palette, uint8_t nb_palettes, uint16_t *rgb_data) NONBANKED
 
void set_bkg_palette_entry (uint8_t palette, uint8_t entry, uint16_t rgb_data)
 
void set_sprite_palette_entry (uint8_t palette, uint8_t entry, uint16_t rgb_data)
 
void cpu_slow (void)
 
void cpu_fast (void)
)    ((((UINT16)(b) & 0x1f) << 10) | (((UINT16)(g) & 0x1f) << 5) | (((UINT16)(r) & 0x1f) << 0))    ((((uint16_t)(b) & 0x1f) << 10) | (((uint16_t)(g) & 0x1f) << 5) | (((uint16_t)(r) & 0x1f) << 0))
@@ -210,7 +211,7 @@ Functions

The resulting format is BGR 15bpp.

-
See also
set_bkg_palette(), set_sprite_palette()
+
See also
set_bkg_palette(), set_sprite_palette()
@@ -496,8 +497,8 @@ Functions

Function Documentation

- -

◆ set_bkg_palette()

+ +

◆ set_bkg_palette()

@@ -505,19 +506,19 @@ Functions void set_bkg_palette ( - UINT8  + uint8_t  first_palette, - UINT8  + uint8_t  nb_palettes, - UINT16 *  + uint16_trgb_data  @@ -542,12 +543,12 @@ Functions
  • Each color (4 per palette) is packed as BGR 15bpp format (1:5:5:5, MSBit [15] is unused).
  • Each component (R, G, B) may have values from 0 - 31 (5 bits), 31 is brightest.
  • -
    See also
    RGB(), set_bkg_palette_entry()
    +
    See also
    RGB(), set_bkg_palette_entry()
    - -

    ◆ set_sprite_palette()

    + +

    ◆ set_sprite_palette()

    @@ -555,19 +556,19 @@ Functions void set_sprite_palette ( - UINT8  + uint8_t  first_palette, - UINT8  + uint8_t  nb_palettes, - UINT16 *  + uint16_trgb_data  @@ -592,12 +593,12 @@ Functions
  • Each color (4 per palette) is packed as BGR 15bpp format (1:5:5:5, MSBit [15] is unused).
  • Each component (R, G, B) may have values from 0 - 31 (5 bits), 31 is brightest.
  • -
    See also
    RGB(), set_sprite_palette_entry()
    +
    See also
    RGB(), set_sprite_palette_entry()
    - -

    ◆ set_bkg_palette_entry()

    + +

    ◆ set_bkg_palette_entry()

    @@ -605,19 +606,19 @@ Functions void set_bkg_palette_entry ( - UINT8  + uint8_t  palette, - UINT8  + uint8_t  entry, - UINT16  + uint16_t  rgb_data  @@ -636,12 +637,12 @@ Functions -
    See also
    set_bkg_palette(), RGB()
    +
    See also
    set_bkg_palette(), RGB()
    - -

    ◆ set_sprite_palette_entry()

    + +

    ◆ set_sprite_palette_entry()

    @@ -649,19 +650,19 @@ Functions void set_sprite_palette_entry ( - UINT8  + uint8_t  palette, - UINT8  + uint8_t  entry, - UINT16  + uint16_t  rgb_data  @@ -680,7 +681,7 @@ Functions -
    See also
    set_sprite_palette(), RGB()
    +
    See also
    set_sprite_palette(), RGB()
    @@ -703,7 +704,7 @@ Functions

    Interrupts are temporarily disabled and then re-enabled during this call.

    In this mode the CGB operates at the same speed as the DMG/Pocket/SGB models.

    See also
    cpu_fast()
    @@ -728,9 +729,9 @@ Functions

    On startup the CGB operates in Normal Speed Mode and can be switched into Double speed mode (faster processing but also higher power consumption). See the Pan Docs for more information about which hardware features operate faster and which remain at Normal Speed.

    -
    See also
    cpu_slow(), _cpu
    +
    See also
    cpu_slow(), _cpu
    @@ -752,7 +753,7 @@ Functions

    Set defaults compatible with the normal GameBoy models.

    The default/first CGB palettes for sprites and backgrounds are set to a similar default appearance as on the DMG/Pocket/SGB models. (White, Light Gray, Dark Gray, Black)

    diff --git a/docs/api/cgb_8h.js b/docs/api/cgb_8h.js index b11cf096..a18eaf87 100644 --- a/docs/api/cgb_8h.js +++ b/docs/api/cgb_8h.js @@ -21,10 +21,10 @@ var cgb_8h = [ "RGB_BROWN", "cgb_8h.html#a7c2a437dfb89d663a1c2f0a7a9256474", null ], [ "RGB_ORANGE", "cgb_8h.html#a0a85d8d0da8edc5cce98f48701f903f7", null ], [ "RGB_TEAL", "cgb_8h.html#a9c8c3710151b2258ea8269850498703f", null ], - [ "set_bkg_palette", "cgb_8h.html#a5744e7df7116e07a69713b494053675e", null ], - [ "set_sprite_palette", "cgb_8h.html#ace9a3e5d7a44d89906bfe20a722c1d14", null ], - [ "set_bkg_palette_entry", "cgb_8h.html#a1d751a36ceb28413e2300e1025378c8d", null ], - [ "set_sprite_palette_entry", "cgb_8h.html#a64f00b81348b63f60bdd2cb7649b09eb", null ], + [ "set_bkg_palette", "cgb_8h.html#aec5c352285ef0fb0d5a1a1d35f6e7877", null ], + [ "set_sprite_palette", "cgb_8h.html#a2f0430a99cd9df4496b3c04f49aa3f6d", null ], + [ "set_bkg_palette_entry", "cgb_8h.html#a9e90b3a0f765485234e7b4416ea194e2", null ], + [ "set_sprite_palette_entry", "cgb_8h.html#a6f4e37ea7767881169d20baf6b0735ec", null ], [ "cpu_slow", "cgb_8h.html#a476d06d0fe64d7c5a1ec05b8ee859a56", null ], [ "cpu_fast", "cgb_8h.html#a871b5b1aba74ab8764f72b73bc090adb", null ], [ "cgb_compatibility", "cgb_8h.html#a6b334e5e452d0650aded17199be1514a", null ] diff --git a/docs/api/cgb_8h_source.html b/docs/api/cgb_8h_source.html index 23e452a4..3e771443 100644 --- a/docs/api/cgb_8h_source.html +++ b/docs/api/cgb_8h_source.html @@ -94,71 +94,73 @@ $(document).ready(function(){initNavTree('cgb_8h_source.html',''); initResizable
    18 #define _CGB_H
    19 
    20 #include <types.h>
    -
    21 
    -
    32 #define RGB(r, g, b) \
    -
    33  ((((UINT16)(b) & 0x1f) << 10) | (((UINT16)(g) & 0x1f) << 5) | (((UINT16)(r) & 0x1f) << 0))
    -
    34 
    -
    37 #define RGB_RED RGB(31, 0, 0)
    -
    38 #define RGB_DARKRED RGB(15, 0, 0)
    -
    39 #define RGB_GREEN RGB( 0, 31, 0)
    -
    40 #define RGB_DARKGREEN RGB( 0, 15, 0)
    -
    41 #define RGB_BLUE RGB( 0, 0, 31)
    -
    42 #define RGB_DARKBLUE RGB( 0, 0, 15)
    -
    43 #define RGB_YELLOW RGB(31, 31, 0)
    -
    44 #define RGB_DARKYELLOW RGB(21, 21, 0)
    -
    45 #define RGB_CYAN RGB( 0, 31, 31)
    -
    46 #define RGB_AQUA RGB(28, 5, 22)
    -
    47 #define RGB_PINK RGB(11, 0, 31)
    -
    48 #define RGB_PURPLE RGB(21, 0, 21)
    -
    49 #define RGB_BLACK RGB( 0, 0, 0)
    -
    50 #define RGB_DARKGRAY RGB(10, 10, 10)
    -
    51 #define RGB_LIGHTGRAY RGB(21, 21, 21)
    -
    52 #define RGB_WHITE RGB(31, 31, 31)
    -
    53 
    -
    54 #define RGB_LIGHTFLESH RGB(30, 20, 15)
    -
    55 #define RGB_BROWN RGB(10, 10, 0)
    -
    56 #define RGB_ORANGE RGB(30, 20, 0)
    -
    57 #define RGB_TEAL RGB(15, 15, 0)
    -
    58 
    -
    74 void
    -
    75 set_bkg_palette(UINT8 first_palette,
    -
    76  UINT8 nb_palettes,
    -
    77  UINT16 *rgb_data) NONBANKED;
    -
    78 
    -
    94 void
    -
    95 set_sprite_palette(UINT8 first_palette,
    -
    96  UINT8 nb_palettes,
    -
    97  UINT16 *rgb_data) NONBANKED;
    -
    98 
    -
    108 void
    -
    109 set_bkg_palette_entry(UINT8 palette,
    -
    110  UINT8 entry,
    -
    111  UINT16 rgb_data);
    -
    112 
    -
    121 void
    -
    122 set_sprite_palette_entry(UINT8 palette,
    -
    123  UINT8 entry,
    -
    124  UINT16 rgb_data);
    -
    125 
    -
    136 void cpu_slow(void);
    -
    137 
    -
    150 void cpu_fast(void);
    -
    151 
    -
    160 void cgb_compatibility(void);
    -
    161 
    -
    162 #endif /* _CGB_H */
    +
    21 #include <stdint.h>
    +
    22 
    +
    33 #define RGB(r, g, b) \
    +
    34  ((((uint16_t)(b) & 0x1f) << 10) | (((uint16_t)(g) & 0x1f) << 5) | (((uint16_t)(r) & 0x1f) << 0))
    +
    35 
    +
    38 #define RGB_RED RGB(31, 0, 0)
    +
    39 #define RGB_DARKRED RGB(15, 0, 0)
    +
    40 #define RGB_GREEN RGB( 0, 31, 0)
    +
    41 #define RGB_DARKGREEN RGB( 0, 15, 0)
    +
    42 #define RGB_BLUE RGB( 0, 0, 31)
    +
    43 #define RGB_DARKBLUE RGB( 0, 0, 15)
    +
    44 #define RGB_YELLOW RGB(31, 31, 0)
    +
    45 #define RGB_DARKYELLOW RGB(21, 21, 0)
    +
    46 #define RGB_CYAN RGB( 0, 31, 31)
    +
    47 #define RGB_AQUA RGB(28, 5, 22)
    +
    48 #define RGB_PINK RGB(11, 0, 31)
    +
    49 #define RGB_PURPLE RGB(21, 0, 21)
    +
    50 #define RGB_BLACK RGB( 0, 0, 0)
    +
    51 #define RGB_DARKGRAY RGB(10, 10, 10)
    +
    52 #define RGB_LIGHTGRAY RGB(21, 21, 21)
    +
    53 #define RGB_WHITE RGB(31, 31, 31)
    +
    54 
    +
    55 #define RGB_LIGHTFLESH RGB(30, 20, 15)
    +
    56 #define RGB_BROWN RGB(10, 10, 0)
    +
    57 #define RGB_ORANGE RGB(30, 20, 0)
    +
    58 #define RGB_TEAL RGB(15, 15, 0)
    +
    59 
    +
    75 void
    +
    76 set_bkg_palette(uint8_t first_palette,
    +
    77  uint8_t nb_palettes,
    +
    78  uint16_t *rgb_data) NONBANKED;
    +
    79 
    +
    95 void
    +
    96 set_sprite_palette(uint8_t first_palette,
    +
    97  uint8_t nb_palettes,
    +
    98  uint16_t *rgb_data) NONBANKED;
    +
    99 
    +
    109 void
    +
    110 set_bkg_palette_entry(uint8_t palette,
    +
    111  uint8_t entry,
    +
    112  uint16_t rgb_data);
    +
    113 
    +
    122 void
    +
    123 set_sprite_palette_entry(uint8_t palette,
    +
    124  uint8_t entry,
    +
    125  uint16_t rgb_data);
    +
    126 
    +
    137 void cpu_slow(void);
    +
    138 
    +
    151 void cpu_fast(void);
    +
    152 
    +
    161 void cgb_compatibility(void);
    +
    162 
    +
    163 #endif /* _CGB_H */
    -
    UINT8
    unsigned char UINT8
    Definition: types.h:22
    -
    UINT16
    unsigned int UINT16
    Definition: types.h:28
    -
    set_sprite_palette_entry
    void set_sprite_palette_entry(UINT8 palette, UINT8 entry, UINT16 rgb_data)
    -
    set_bkg_palette_entry
    void set_bkg_palette_entry(UINT8 palette, UINT8 entry, UINT16 rgb_data)
    +
    uint8_t
    unsigned char uint8_t
    Definition: stdint.h:51
    +
    uint16_t
    unsigned short int uint16_t
    Definition: stdint.h:52
    cpu_slow
    void cpu_slow(void)
    -
    set_bkg_palette
    void set_bkg_palette(UINT8 first_palette, UINT8 nb_palettes, UINT16 *rgb_data) NONBANKED
    +
    set_bkg_palette_entry
    void set_bkg_palette_entry(uint8_t palette, uint8_t entry, uint16_t rgb_data)
    cgb_compatibility
    void cgb_compatibility(void)
    +
    set_sprite_palette_entry
    void set_sprite_palette_entry(uint8_t palette, uint8_t entry, uint16_t rgb_data)
    +
    set_bkg_palette
    void set_bkg_palette(uint8_t first_palette, uint8_t nb_palettes, uint16_t *rgb_data) NONBANKED
    +
    stdint.h
    cpu_fast
    void cpu_fast(void)
    NONBANKED
    #define NONBANKED
    Definition: types.h:12
    -
    set_sprite_palette
    void set_sprite_palette(UINT8 first_palette, UINT8 nb_palettes, UINT16 *rgb_data) NONBANKED
    +
    set_sprite_palette
    void set_sprite_palette(uint8_t first_palette, uint8_t nb_palettes, uint16_t *rgb_data) NONBANKED
    #include <types.h>
    +#include <stdint.h>

    Go to the source code of this file.

    - - - - - - + + + + + + @@ -112,8 +113,8 @@ Functions

    Console functions that work like Turbo C's.

    The font is 8x8, making the screen 20x18 characters.

    Function Documentation

    - -

    ◆ gotoxy()

    + +

    ◆ gotoxy()

    @@ -121,13 +122,13 @@ Functions
    - + - + @@ -142,14 +143,14 @@ Functions - -

    ◆ posx()

    + +

    ◆ posx()

    Functions

    void gotoxy (UINT8 x, UINT8 y)
     
    UINT8 posx (void)
     
    UINT8 posy (void)
     
    void gotoxy (uint8_t x, uint8_t y)
     
    uint8_t posx (void)
     
    uint8_t posy (void)
     
    void setchar (char c)
     
    void cls ()
    void gotoxy (UINT8 uint8_t  x,
    UINT8 uint8_t  y 
    - + @@ -158,18 +159,18 @@ Functions
    UINT8 posx uint8_t posx ( void  )

    Returns the current X position of the cursor.

    -
    See also
    gotoxy()
    +
    See also
    gotoxy()
    - -

    ◆ posy()

    + +

    ◆ posy()

    - + @@ -178,7 +179,7 @@ Functions
    UINT8 posy uint8_t posy ( void  )

    Returns the current Y position of the cursor.

    -
    See also
    gotoxy()
    +
    See also
    gotoxy()
    @@ -199,7 +200,7 @@ Functions

    Writes out a single character at the current cursor position.

    Does not update the cursor or interpret the character.

    -
    See also
    gotoxy()
    +
    See also
    gotoxy()
    diff --git a/docs/api/console_8h.js b/docs/api/console_8h.js index 790b3554..a5c7118f 100644 --- a/docs/api/console_8h.js +++ b/docs/api/console_8h.js @@ -1,8 +1,8 @@ var console_8h = [ - [ "gotoxy", "console_8h.html#a3cd0543b4adebf0bfb5c93a6d0a6f1a2", null ], - [ "posx", "console_8h.html#a87f5702d0e74f791414576f7636b4b74", null ], - [ "posy", "console_8h.html#a87894e0e2afb574907e2b11ef26e01cb", null ], + [ "gotoxy", "console_8h.html#a394a8e162064a6733250b20d5ced5806", null ], + [ "posx", "console_8h.html#a5f662e2102dbd1e10ff19ff1c73fd7d8", null ], + [ "posy", "console_8h.html#a6a650d5ea980a8d78ce1c706357cc54d", null ], [ "setchar", "console_8h.html#a39cc3b71f4262838512c8589e755bbd3", null ], [ "cls", "console_8h.html#a4826277cc150ddc0f4de4bd464a34909", null ] ]; \ No newline at end of file diff --git a/docs/api/console_8h_source.html b/docs/api/console_8h_source.html index c8efc056..f0b14714 100644 --- a/docs/api/console_8h_source.html +++ b/docs/api/console_8h_source.html @@ -94,27 +94,29 @@ $(document).ready(function(){initNavTree('console_8h_source.html',''); initResiz
    7 #define _CONSOLE_H
    8 
    9 #include <types.h>
    -
    10 
    -
    16 void gotoxy(UINT8 x, UINT8 y);
    -
    17 
    -
    22 UINT8 posx(void);
    -
    23 
    -
    28 UINT8 posy(void);
    -
    29 
    -
    37 void setchar(char c);
    -
    38 
    -
    41 void cls();
    -
    42 
    -
    43 #endif /* _CONSOLE_H */
    +
    10 #include <stdint.h>
    +
    11 
    +
    17 void gotoxy(uint8_t x, uint8_t y);
    +
    18 
    +
    23 uint8_t posx(void);
    +
    24 
    +
    29 uint8_t posy(void);
    +
    30 
    +
    38 void setchar(char c);
    +
    39 
    +
    42 void cls();
    +
    43 
    +
    44 #endif /* _CONSOLE_H */
    -
    UINT8
    unsigned char UINT8
    Definition: types.h:22
    -
    posy
    UINT8 posy(void)
    +
    uint8_t
    unsigned char uint8_t
    Definition: stdint.h:51
    +
    gotoxy
    void gotoxy(uint8_t x, uint8_t y)
    cls
    void cls()
    +
    posy
    uint8_t posy(void)
    setchar
    void setchar(char c)
    -
    c
    UINT8 c
    Definition: gb.h:278
    -
    posx
    UINT8 posx(void)
    -
    gotoxy
    void gotoxy(UINT8 x, UINT8 y)
    +
    c
    uint8_t c
    Definition: gb.h:277
    +
    posx
    uint8_t posx(void)
    +
    stdint.h
    #include <types.h>
    +#include <stdbool.h>

    Go to the source code of this file.

    - - - - - - - - - - + + + + + + + + + + @@ -115,14 +116,14 @@ Functions

    Detailed Description

    Character type functions.

    Function Documentation

    - -

    ◆ isalpha()

    + +

    ◆ isalpha()

    Functions

    BOOLEAN isalpha (char c)
     
    BOOLEAN isupper (char c)
     
    BOOLEAN islower (char c)
     
    BOOLEAN isdigit (char c)
     
    BOOLEAN isspace (char c)
     
    bool isalpha (char c)
     
    bool isupper (char c)
     
    bool islower (char c)
     
    bool isdigit (char c)
     
    bool isspace (char c)
     
    char toupper (char c)
     
    char tolower (char c)
    - + @@ -139,14 +140,14 @@ Functions - -

    ◆ isupper()

    + +

    ◆ isupper()

    BOOLEAN isalpha bool isalpha ( char  c)
    - + @@ -163,14 +164,14 @@ Functions - -

    ◆ islower()

    + +

    ◆ islower()

    BOOLEAN isupper bool isupper ( char  c)
    - + @@ -187,14 +188,14 @@ Functions - -

    ◆ isdigit()

    + +

    ◆ isdigit()

    BOOLEAN islower bool islower ( char  c)
    - + @@ -211,14 +212,14 @@ Functions - -

    ◆ isspace()

    + +

    ◆ isspace()

    BOOLEAN isdigit bool isdigit ( char  c)
    - + diff --git a/docs/api/ctype_8h.js b/docs/api/ctype_8h.js index aa99afaf..e79c65c8 100644 --- a/docs/api/ctype_8h.js +++ b/docs/api/ctype_8h.js @@ -1,10 +1,10 @@ var ctype_8h = [ - [ "isalpha", "ctype_8h.html#ab9ed40800d3e18a39bd07e31de16af20", null ], - [ "isupper", "ctype_8h.html#ae71a491d659acc84ca7e72ee88df0b2e", null ], - [ "islower", "ctype_8h.html#ad208457578e6758bf8e9043a49cdd9c1", null ], - [ "isdigit", "ctype_8h.html#afe7b3895d13be3e313967576c095aa98", null ], - [ "isspace", "ctype_8h.html#a5c851b201a80a43fd4e648b008e37100", null ], + [ "isalpha", "ctype_8h.html#aa08b907b413d5f156b6214e72d0612bb", null ], + [ "isupper", "ctype_8h.html#a31e9b95a4c8bca65d901dca5c0c95c1f", null ], + [ "islower", "ctype_8h.html#a0b70d87c74367a00d03702a44da39614", null ], + [ "isdigit", "ctype_8h.html#af3380cc4b95d21a135cd1b35fc9a09cc", null ], + [ "isspace", "ctype_8h.html#a48644b2a9c138472af0e1c83f688bd58", null ], [ "toupper", "ctype_8h.html#a811b7a0d5194feaccfacf8a7f02bb9c3", null ], [ "tolower", "ctype_8h.html#a207391fc2c5fa7786d5e0b9ef8ba5e80", null ] ]; \ No newline at end of file diff --git a/docs/api/ctype_8h_source.html b/docs/api/ctype_8h_source.html index 47ecba00..ec9c095c 100644 --- a/docs/api/ctype_8h_source.html +++ b/docs/api/ctype_8h_source.html @@ -94,41 +94,42 @@ $(document).ready(function(){initNavTree('ctype_8h_source.html',''); initResizab
    5 #define _CTYPE_H
    6 
    7 #include <types.h>
    -
    8 
    -
    12 BOOLEAN
    -
    13 isalpha(char c);
    -
    14 
    -
    18 BOOLEAN
    -
    19 isupper(char c);
    -
    20 
    -
    24 BOOLEAN
    -
    25 islower(char c);
    -
    26 
    -
    30 BOOLEAN
    -
    31 isdigit(char c);
    -
    32 
    -
    36 BOOLEAN
    -
    37 isspace(char c);
    -
    38 
    -
    42 char
    -
    43 toupper(char c);
    -
    44 
    -
    48 char
    -
    49 tolower(char c);
    -
    50 
    -
    51 #endif /* _CTYPE_H */
    +
    8 #include <stdbool.h>
    +
    9 
    +
    13 bool
    +
    14 isalpha(char c);
    +
    15 
    +
    19 bool
    +
    20 isupper(char c);
    +
    21 
    +
    25 bool
    +
    26 islower(char c);
    +
    27 
    +
    31 bool
    +
    32 isdigit(char c);
    +
    33 
    +
    37 bool
    +
    38 isspace(char c);
    +
    39 
    +
    43 char
    +
    44 toupper(char c);
    +
    45 
    +
    49 char
    +
    50 tolower(char c);
    +
    51 
    +
    52 #endif /* _CTYPE_H */
    -
    BOOLEAN islower(char c)
    -
    BOOLEAN isupper(char c)
    -
    UINT8 c
    Definition: gb.h:278
    -
    BOOLEAN isalpha(char c)
    +
    +
    bool isspace(char c)
    +
    bool isdigit(char c)
    +
    bool isalpha(char c)
    +
    uint8_t c
    Definition: gb.h:277
    char tolower(char c)
    -
    INT8 BOOLEAN
    Definition: types.h:31
    char toupper(char c)
    -
    BOOLEAN isspace(char c)
    -
    BOOLEAN isdigit(char c)
    +
    bool islower(char c)
    +
    bool isupper(char c)

    The GBDK 2020 releases can be found on Github: https://github.com/gbdk-2020/gbdk-2020/releases

    -

    +

    GBDK 2020 Release Notes

    -

    +

    +GBDK 2020 4.0.4

    +

    2021/06

      +
    • Library +
    • +
    • Examples
        +
      • Added project using a .lk linkerfile
      • +
      • Changed all examples to use standard stdint.h types
      • +
      • Moved banks_farptr and banks_new examples to "broken" due to SDCC changes
      • +
      +
    • +
    • Toolchain / Utilities
        +
      • png2mtspr
          +
        • Added option to change default value for sprite property/attributes in (allows CGB palette, BG/WIN priority, etc).
        • +
        • Improved: Turn off suppression of "blank" metasprite frames (composed of entirely transparent sprites)
        • +
        • Fixed endless loop for png files taller than 255 pixels
        • +
        +
      • +
      • bankpack
          +
        • Fixed -yt mbc specifier to also accept Decimal
        • +
        • Improved: bank ID can be used in same file it is declared. Requires SDCC 12238+ with -n option to defer symbol resolution to link time.
        • +
        +
      • +
      • gbcompress
          +
        • Added C source input (expirimental) and output
        • +
        • Added size #defines
        • +
        +
      • +
      • lcc
          +
        • Added -no-libs and -no-crt options
        • +
        • Added support for .lk linker files (useful when number of files on lcc command line exceeds max size on windows)
        • +
        • Added support for converting .ihx to .gb
        • +
        • Added rewrite .o files -> .rel for linking when called with -autobank and -Wb-ext=.rel
        • +
        • Workaround makebin -Wl-yp formatting segfault
        • +
        +
      • +
      +
    • +
    • Docs +
    • +
    +

    GBDK 2020 4.0.3

    2021/03

    -

    +

    GBDK 2020 4.0.2

    2021/01/17

    • Includes SDCC snapshot build version 12016 (has a fix for duplicate debug symbols generated from inlined header functions which GBDK 4.0+ uses)
    • @@ -141,7 +194,7 @@ GBDK 2020 4.0.2
    • safer copy-to-VRAM functions
    • loading of 1bit data fixed, also now it is possible to specify pixel color
    • Improved code generation for the GBDK Library with SDCC switch on by default: --max-allocs-per-node 50000
    • -
    • fixed wrong parameter offsets in hiramcpy() (broken ram_function example)
    • +
    • fixed wrong parameter offsets in hiramcpy() (broken ram_function example)
    • Multiple minor improvements
    @@ -152,7 +205,7 @@ GBDK 2020 4.0.2
  • Examples: Added bgb debug example
  • -

    +

    GBDK 2020 4.0.1

    2020/11/14

    • Updated API documentation
    • @@ -162,7 +215,7 @@ GBDK 2020 4.0.1
    • new fill_*_rect() functions to clear rectangle areas
    • runtime initialization code now does not initialize whole WRAM with zeros anymore, that allows BGB to raise exceptions when code tries to read WRAM that was not written before.
    • enhanced SGB support
    • @@ -178,7 +231,7 @@ GBDK 2020 4.0.1
    -

    +

    GBDK 2020 4.0

    2020/10/01

    • GBDK now requires SDCC 4.0.3 or higher, that has fully working toolchain. Old link-gbz80 linker is not used anymore, sdldgb and makebin are used to link objects and produce binary roms; maccer tool is no longer needed either
        @@ -207,19 +260,19 @@ GBDK 2020 4.0
    -

    +

    GBDK 2020 3.2

    2020/06/05

    • Fixed OAM initialization that was causing a bad access to VRAM
    • Interrupt handlers now wait for lcd controller mode 0 or 1 by default to prevent access to inaccessible VRAM in several functions (like set_bkg_tiles)
    • Several optimizations here and there
    -

    +

    GBDK 2020 3.1.1

    2020/05/17

    • Fixed issues with libgcc_s_dw2-1.dll
    -

    +

    GBDK 2020 3.1

    2020/05/16

    • Banked functions are working! The patcher is fully integrated in link-gbz80, no extra tools are needed. It is based on Toxa's work
        @@ -237,21 +290,21 @@ GBDK 2020 3.1
    -

    +

    GBDK 2020 3.0.1

    2020/04/12

    • Updated SDCC to v.4.0
    • Updated LCC to work with the new compiler
    -

    +

    GBDK 2020 3.0

    2020/04/12

    • Initial GBDK 2020 release
      Updated SDCC to v4.0 The new linker is not working so the old version is still there There is an issue with sdagb compiling drawing.s (the JP in line 32 after ".org .MODE_TABLE+4*.G_MODE" it's writing more than 4 bytes invading some addresses required by input.s:41) Because of this, all .s files in libc have been assembled with the old as-gbz80 and that's why it is still included
    -

    +

    Historical GBDK Release Notes

    -

    +

    GBDK 2.96

    17 April, 2000
    Many changes.
    @@ -261,7 +314,7 @@ GBDK 2.96

  • Added full 32 bit long support.
  • Still no floating pt support.
  • -

    +

    GBDK 2.95-3

    19th August, 2000

    @@ -273,7 +326,7 @@ GBDK 2.95-3

    This is an experimental release for those who feel keen. The main change is a new lexer (the first part in the compilation process which recognises words and symbols like '!=' and 'char' and turns them into a token number) which speeds up compilation of large initialised arrays like tile data by a factor of three. Please report any bugs that show up - this is a big change.

    I have also included a 'minimal' release for win32 users which omits the documentation, library sources, and examples. If this is useful I will keep doing it.

    -

    +

    GBDK 2.95-2

    5th August, 2000
    Just a small update. From the README:

    @@ -283,7 +336,7 @@ GBDK 2.95-2
  • Changed the ways globals are exported, reducing the amount of extra junk linked in.
  • Turned on the optimisations in flex. Large constant arrays like tile data should compile a bit faster.
  • -

    +

    GBDK 2.95

    22nd July, 2000

    • Fixed 'a << c' for c = [9..15]
    • @@ -305,7 +358,7 @@ GBDK 2.95

      7th July, 2000
      Information on float and long support. Someone asked about the state of float/long support recently. Heres my reply:

      long support is partly there, as is float support. The compiler will correctly recognise the long and float keywords, and will generate the code for most basic ops (+, -, &, | etc) for longs correctly and will generate the function calls for floats and hard long operations (*, /, %) correctly. However it wont generate float constants in the correct format, nor will it 'return' a long or float - gbdk doesn't yet support returning types of 4 bytes. Unfortunately its not going to make it into 2.95 as there's too much else to do, but I should be able to complete long support for 2.96

      -

      +

      GBDK 2.94

      7th May, 2000
      Many fixes - see the README for more.

      @@ -322,7 +375,7 @@ GBDK 2.94
    -

    +

    GBDK 2.93

    6th April, 2000
    From the README

    @@ -335,7 +388,7 @@ GBDK 2.93
  • The dscan demo now fully works (with a hack :)
  • There is a bug with cached computed values which are later used as pointers. When the value is first used as a BYTE arg, then later as a pointer the pointer fails as the high byte was never computed and is now missing. A temporary fix is to declare something appropriate as 'volatile' to stop the value being cached. See dscan.c/bombs() for an example.
  • -

    +

    GBDK 2.92-2 for win32

    26th March, 2000
    This is a maintenance release for win32 which fixes some of the niggly install problems, especially:

      @@ -354,7 +407,7 @@ GBDK 2.92-2 for win32 Problems with the installer. It seems that the demo of InstallVISE has an unreasonably short time limit. I had planed to use the demo until the license key came through, but there's no sign of the key yet and the 3 day evaluation is up. If anyone knows of a free Windows installer with the ability to modify environment variables, please contact me. I hear that temporarily setting you clock back to the 15th works...

      18th March, 2000
      libc5 version available / "Error creating temp file" Thanks to Rodrigo Couto there is now a Linux/libc5 version of gbdk3-2.92 available - follow the download link above. At least it will be there when the main sourceforge site comes back up... Also some people have reported a bug where the compiler reports '*** Error creating temp file'. Try typing "mkdir c: tmp" from a DOS prompt and see if that helps.

      -

      +

      GBDK 2.92

      8th March, 2000
      Better than 2.91 :). Can now be installed anywhere. All the demos work. See the README for more.

        @@ -369,7 +422,7 @@ GBDK 2.92
    -

    +

    GBDK 2.91

    27th Feb, 2000
    Better than 2.90 and includes Linux, win32 and a source tar ball. Some notes:

    @@ -384,7 +437,7 @@ GBDK 2.91 Icehawk wrote "I did write some rumble pack routines. Just make sure to remind people to add -Wl-yt0x1C or -Wl-yt0x1D or -Wl-yt0x1E depending on sram and battery usage. Find the routines on my site (as usual). =)"

    18th Oct, 1999
    Bug tracking / FAQ up. Try the link on the left to report any bugs with GBDK. It's also the first place to look if your having problems.

    -

    +

    GBDK 2.1.5

    17th Oct, 1999

    diff --git a/docs/api/docs_rombanking_mbcs.html b/docs/api/docs_rombanking_mbcs.html index cfcbde0e..4b4c5eb5 100644 --- a/docs/api/docs_rombanking_mbcs.html +++ b/docs/api/docs_rombanking_mbcs.html @@ -199,7 +199,7 @@ Restoring the current bank (after calling functions which change it without rest

    It should be:

    void vbl_music_isr(void)
    {
    // Save the current bank
    -
    UBYTE _saved_bank = _current_bank;
    +
    uint8_t _saved_bank = _current_bank;
    // A function which changes the bank and
    // *doesn't* restore it after changing.
    @@ -220,13 +220,13 @@ Auto-Banking

    In the source files you want auto-banked, do the following:

    • Set the bank for the source file to 255: #pragma bank 255
    • Create a constant with no value to store the bank number for the source file: const void __at(255) __bank_<name-for-a-given-source-file>;.
      - This constant can then be used for obtaining that files bank number with (UINT8)&__bank_<name-for-a-given-source-file.
    • + This constant can then be used for obtaining that files bank number with (uint8_t)&__bank_<name-for-a-given-source-file.

    Example: level_1_map.c

        #pragma bank 255
         const void __at(255) __bank_level_1_map;
     
    -    const UINT8 my_level_1_map[] = {... some map data here ...};
    -

    Accessing that data: main.c

      SWITCH_ROM_MBC1( (UINT8)&__bank_level_1_map );
    +    const uint8_t my_level_1_map[] = {... some map data here ...};
    +

    Accessing that data: main.c

      SWITCH_ROM_MBC1( (uint8_t)&__bank_level_1_map );
       // Do something with my_level_1_map[]
     

    Features and Notes:

    • Fixed banked source files can be used in the same project as auto-banked source files. The bankpack tool will attempt to pack the auto-banked source files as efficiently as possible around the fixed-bank ones.
    • diff --git a/docs/api/docs_toolchain.html b/docs/api/docs_toolchain.html index bf52ae1d..6b64f23d 100644 --- a/docs/api/docs_toolchain.html +++ b/docs/api/docs_toolchain.html @@ -255,7 +255,7 @@ GBDK Utilities GBCompress

      Compresssion utility

      For detailed settings see gbcompress-settings

      -

      Compresses (and decompresses) binary file data with the gbcompress algorithm (also used in GBTD/GBMB). Decompression support is available in GBDK, see gb_decompress().

      +

      Compresses (and decompresses) binary file data with the gbcompress algorithm (also used in GBTD/GBMB). Decompression support is available in GBDK, see gb_decompress().

      PNG to Metasprite

      @@ -263,7 +263,7 @@ PNG to Metasprite

      Convert single or multiple frames of graphics into metasprite structured data for use with the ...metasprite...() functions.

      For detailed settings see png2mtspr-settings
      For working with sprite properties (including cgb palettes), see metasprite_and_sprite_properties
      - For API support see move_metasprite() and related functions in metasprites.h
      + For API support see move_metasprite() and related functions in metasprites.h

      Working with png2mtspr

      diff --git a/docs/api/docs_toolchain_settings.html b/docs/api/docs_toolchain_settings.html index 87148faa..5a0edd3a 100644 --- a/docs/api/docs_toolchain_settings.html +++ b/docs/api/docs_toolchain_settings.html @@ -90,7 +90,7 @@ $(document).ready(function(){initNavTree('docs_toolchain_settings.html',''); ini

    -

    +

    lcc settings

    ./lcc [ option | file ]...
    except for -l, options are processed left-to-right before files
    @@ -110,6 +110,8 @@ lcc settings
    -lx search library `x'
    -N do not search the standard directories for #include files
    -n emit code to check for dereferencing zero pointers
    +
    -no-crt do not auto-include the gbdk crt0.o runtime in linker list
    +
    -no-libs do not auto-include the gbdk libs in linker list
    -O is ignored
    -o file leave the output in `file'
    -P print ANSI-style declarations for globals
    @@ -126,9 +128,9 @@ lcc settings
    -Woarg specify system-specific `arg'
    -W[pfablim]arg pass `arg' to the preprocessor, compiler, assembler, bankpack, linker, ihxcheck, or makebin

    -

    +

    sdcc settings

    -
    SDCC : mcs51/z80/z180/r2k/r2ka/r3ka/gbz80/tlcs90/ez80_z80/z80n/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8/pdk13/pdk14/pdk15 4.1.0 #12069 (Linux)
    +
    SDCC : mcs51/z80/z180/r2k/r2ka/r3ka/gbz80/tlcs90/ez80_z80/z80n/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8/pdk13/pdk14/pdk15 4.1.4 #12246 (Linux)
    published under GNU General Public License (GPL)
    Usage : sdcc [options] filename
    Options :-
    @@ -257,7 +259,7 @@ sdcc settings
    --dataseg <name> use this name for the data segment
    --no-std-crt0 For the z80/gbz80 do not link default crt0.rel
    --reserve-regs-iy Do not use IY (incompatible with --fomit-frame-pointer)
    -
    --oldralloc Use old register allocator
    +
    --oldralloc Use old register allocator (deprecated)
    --fno-omit-frame-pointer Do not omit frame pointer
    --emit-externs Emit externs list in generated asm
    --legacy-banking Use legacy method to call banked functions
    @@ -272,7 +274,7 @@ sdcc settings
    --dataseg <name> use this name for the data segment
    --no-std-crt0 For the z80/gbz80 do not link default crt0.rel
    --reserve-regs-iy Do not use IY (incompatible with --fomit-frame-pointer)
    -
    --oldralloc Use old register allocator
    +
    --oldralloc Use old register allocator (deprecated)
    --fno-omit-frame-pointer Do not omit frame pointer
    --emit-externs Emit externs list in generated asm
    --legacy-banking Use legacy method to call banked functions
    @@ -287,7 +289,7 @@ sdcc settings
    --dataseg <name> use this name for the data segment
    --no-std-crt0 For the z80/gbz80 do not link default crt0.rel
    --reserve-regs-iy Do not use IY (incompatible with --fomit-frame-pointer)
    -
    --oldralloc Use old register allocator
    +
    --oldralloc Use old register allocator (deprecated)
    --fno-omit-frame-pointer Do not omit frame pointer
    --emit-externs Emit externs list in generated asm
    --legacy-banking Use legacy method to call banked functions
    @@ -302,7 +304,7 @@ sdcc settings
    --dataseg <name> use this name for the data segment
    --no-std-crt0 For the z80/gbz80 do not link default crt0.rel
    --reserve-regs-iy Do not use IY (incompatible with --fomit-frame-pointer)
    -
    --oldralloc Use old register allocator
    +
    --oldralloc Use old register allocator (deprecated)
    --fno-omit-frame-pointer Do not omit frame pointer
    --emit-externs Emit externs list in generated asm
    --legacy-banking Use legacy method to call banked functions
    @@ -317,7 +319,7 @@ sdcc settings
    --dataseg <name> use this name for the data segment
    --no-std-crt0 For the z80/gbz80 do not link default crt0.rel
    --reserve-regs-iy Do not use IY (incompatible with --fomit-frame-pointer)
    -
    --oldralloc Use old register allocator
    +
    --oldralloc Use old register allocator (deprecated)
    --fno-omit-frame-pointer Do not omit frame pointer
    --emit-externs Emit externs list in generated asm
    --legacy-banking Use legacy method to call banked functions
    @@ -326,6 +328,7 @@ sdcc settings
    Special options for the gbz80 port:
    -bo <num> use code bank <num>
    -ba <num> use data bank <num>
    +
    --asm= Define assembler name (rgbds/asxxxx/isas/z80asm/gas)
    --callee-saves-bc Force a called function to always save BC
    --codeseg <name> use this name for the code segment
    --constseg <name> use this name for the const segment
    @@ -342,7 +345,7 @@ sdcc settings
    --dataseg <name> use this name for the data segment
    --no-std-crt0 For the z80/gbz80 do not link default crt0.rel
    --reserve-regs-iy Do not use IY (incompatible with --fomit-frame-pointer)
    -
    --oldralloc Use old register allocator
    +
    --oldralloc Use old register allocator (deprecated)
    --fno-omit-frame-pointer Do not omit frame pointer
    --emit-externs Emit externs list in generated asm
    --legacy-banking Use legacy method to call banked functions
    @@ -357,7 +360,7 @@ sdcc settings
    --dataseg <name> use this name for the data segment
    --no-std-crt0 For the z80/gbz80 do not link default crt0.rel
    --reserve-regs-iy Do not use IY (incompatible with --fomit-frame-pointer)
    -
    --oldralloc Use old register allocator
    +
    --oldralloc Use old register allocator (deprecated)
    --fno-omit-frame-pointer Do not omit frame pointer
    --emit-externs Emit externs list in generated asm
    --legacy-banking Use legacy method to call banked functions
    @@ -372,7 +375,7 @@ sdcc settings
    --dataseg <name> use this name for the data segment
    --no-std-crt0 For the z80/gbz80 do not link default crt0.rel
    --reserve-regs-iy Do not use IY (incompatible with --fomit-frame-pointer)
    -
    --oldralloc Use old register allocator
    +
    --oldralloc Use old register allocator (deprecated)
    --fno-omit-frame-pointer Do not omit frame pointer
    --emit-externs Emit externs list in generated asm
    --legacy-banking Use legacy method to call banked functions
    @@ -456,7 +459,7 @@ sdcc settings
    --constseg <name> use this name for the const segment
    --out-fmt-elf Output executable in ELF format

    -

    +

    sdasgb settings

    sdas Assembler V02.00 + NoICE + SDCC mods (GameBoy Z80-like CPU)
    @@ -470,6 +473,7 @@ sdasgb settings
    -q Octal listing
    -x Hex listing (default)
    -g Undefined symbols made global
    +
    -n Don't resolve global assigned value symbols
    -a All user symbols made global
    -b Display .define substitutions in listing
    -bb and display without .define substitutions
    @@ -491,7 +495,7 @@ sdasgb settings
    removing

    -

    +

    bankpack settings

    bankalloc [options] objfile1 objfile2 etc
    Use: Read .o files and auto-assign areas with bank=255.
    @@ -524,7 +528,7 @@ bankpack settings
    S ___bank_<const name> Def0000FF
    (Above can be made by: const void __at(255) __bank_<const name>;

    -

    +

    sdldgb settings

    sdld Linker V03.00 + NoICE + sdld
    @@ -560,7 +564,7 @@ sdldgb settings
    End:
    -e or null line terminates input

    -

    +

    ihxcheck settings

    ihx_check input_file.ihx [options]
    @@ -571,14 +575,19 @@ ihxcheck settings
    Use: Read a .ihx and warn about overlapped areas.
    Example: "ihx_check build/MyProject.ihx"

    -

    +

    makebin settings

    makebin: convert a Intel IHX file to binary or GameBoy format binary.
    Usage: makebin [options] [<in_file> [<out_file>]]
    Options:
    -p pack mode: the binary file size will be truncated to the last occupied byte
    -s romsize size of the binary file (default: rom banks * 16384)
    -
    -Z genarate GameBoy format binary file
    +
    -Z generate GameBoy format binary file
    +
    -S generate Sega Master System format binary file
    +
    SMS format options (applicable only with -S option):
    +
    -xo n rom size (0xa-0x2)
    +
    -xj n set region code (3-7)
    +
    -xv n version number (0-15)
    GameBoy format options (applicable only with -Z option):
    -yo n number of rom banks (default: 2) (autosize: A)
    -ya n number of ram banks (default: 0)
    @@ -596,19 +605,22 @@ makebin settings
    <in_file> optional IHX input file, '-' means stdin. (default: stdin)
    <out_file> optional output file, '-' means stdout. (default: stdout)

    -

    +

    gbcompress settings

    gbcompress [options] infile outfile
    Use: Gbcompress a binary file and write it out.
    Options
    -
    -h : Show this help screen
    -
    -d : Decompress (default is compress)
    -
    -v : Verbose output
    +
    -h : Show this help screen
    +
    -d : Decompress (default is compress)
    +
    -v : Verbose output
    +
    -cin : Read input as .c source format (8 bit char ONLY, uses first array found)
    +
    -cout : Write output in .c / .h source format (8 bit char ONLY)
    +
    -varname=<NAME> : specify variable name for c source output
    Example: "gbcompress binaryfile.bin compressed.bin"
    Example: "gbcompress -d compressedfile.bin decompressed.bin"

    -

    +

    png2mtspr settings

    usage: png2mtspr <file>.png [options]
    -c ouput file (default: <png file>.c)
    diff --git a/docs/api/docs_using_gbdk.html b/docs/api/docs_using_gbdk.html index 06729cdc..7fc63fe0 100644 --- a/docs/api/docs_using_gbdk.html +++ b/docs/api/docs_using_gbdk.html @@ -92,7 +92,7 @@ $(document).ready(function(){initNavTree('docs_using_gbdk.html',''); initResizab

    Interrupts

    Interrupts allow execution to jump to a different part of your code as soon as an external event occurs - for example the LCD entering the vertical blank period, serial data arriving or the timer reaching its end count. For an example see the irq.c sample project.

    -

    Interrupts in GBDK are handled using the functions disable_interrupts(), enable_interrupts(), set_interrupts(UBYTE ier) and the interrupt service routine (ISR) linkers add_VBL(), add_TIM, add_LCD, add_SIO and add_JOY which add interrupt handlers for the vertical blank, timer, LCD, serial link and joypad interrupts respectively.

    +

    Interrupts in GBDK are handled using the functions disable_interrupts(), enable_interrupts(), set_interrupts(uint8_t ier) and the interrupt service routine (ISR) linkers add_VBL(), add_TIM, add_LCD, add_SIO and add_JOY which add interrupt handlers for the vertical blank, timer, LCD, serial link and joypad interrupts respectively.

    Since an interrupt can occur at any time an Interrupt Service Request (ISR) cannot take any arguments or return anything. Its only way of communicating with the greater program is through the global variables. When interacting with those shared ISR global variables from main code outside the interrupt, it is a good idea to wrap them in a critical {} section in case the interrupt occurs and modifies the variable while it is being used.

    Interrupts should be disabled before adding ISRs. To use multiple interrupts, logical OR the relevant IFLAGs together.

    ISRs should be kept as small and short as possible, do not write an ISR so long that the Game Boy hardware spends all of its time servicing interrupts and has no time spare for the main code.

    @@ -137,7 +137,7 @@ Adding your own interrupt handler
    1. Write a function (say foo()) that takes no parameters, and that returns nothing. Remember that the code executed in an interrupt handler must be short.
    2. Inside a __critical { ... } section, install your interrupt handling routines using the add_XXX() function, where XXX is the interrupt that you want to handle.
    3. -
    4. Enable interrupts for the IRQ you want to handle, using the set_interrupts() function. Note that the VBL interrupt is already enabled before the main() function is called. If you want to set the interrupts before main() is called, you must install an initialization routine.
    5. +
    6. Enable interrupts for the IRQ you want to handle, using the set_interrupts() function. Note that the VBL interrupt is already enabled before the main() function is called. If you want to set the interrupts before main() is called, you must install an initialization routine.

    See the irq example project for additional details for a complete example.

    @@ -155,13 +155,13 @@ Font tiles when using stdio.h

    Default Interrupt Service Handlers (ISRs)

      -
    • V-Blank: A default V-Blank ISR is installed on startup which copies the Shadow OAM to the hardware OAM and increments the global sys_time variable once per frame.
    • +
    • V-Blank: A default V-Blank ISR is installed on startup which copies the Shadow OAM to the hardware OAM and increments the global sys_time variable once per frame.
    • Serial Link I/O: If any of the GBDK serial link functions are used such as send_byte() and receive_byte(), the default SIO serial link handler will be installed automatically at compile-time.

    Copying Functions to RAM and HIRAM

    The ram_function example project included with GBDK demonstrates copying functions to RAM and HIRAM.

    -

    It is possible to copy functions to RAM and HIRAM (using the memcpy() and hiramcpy() functions), and execute them from C. The compiler automatically generates two symbols for the start and the end of each function, named start_X and end_X (where X is the name of the function). This enables to calculate the length of a function when copying it to RAM. Ensure you have enough free space in RAM or HIRAM for copying a function.

    +

    It is possible to copy functions to RAM and HIRAM (using the memcpy() and hiramcpy() functions), and execute them from C. The compiler automatically generates two symbols for the start and the end of each function, named start_X and end_X (where X is the name of the function). This enables to calculate the length of a function when copying it to RAM. Ensure you have enough free space in RAM or HIRAM for copying a function.

    There are basically two ways for calling a function located in RAM, HIRAM, or ROM:

    • Declare a pointer-to-function variable, and set it to the address of the function to call.
    • @@ -198,13 +198,13 @@ In Separate ASM files

      Here is an example of how to mix assembly with C:

      main.c

      main()
       {
      -  WORD i;
      -  WORD add(WORD, WORD);
      +  int16_t i;
      +  int16_t add(int16_t, int16_t);
       
         i = add(1, 3);
       }
       

      add.s

      .globl _add
      -_add:         ; WORD add(WORD a, WORD b)
      +_add:         ; int16_t add(int16_t a, int16_t b)
                     ; There is no register to save:
                     ;  BC is not used
                     ;  DE is the return register
      diff --git a/docs/api/drawing_8h.html b/docs/api/drawing_8h.html
      index 679ea2f2..59f48e2b 100644
      --- a/docs/api/drawing_8h.html
      +++ b/docs/api/drawing_8h.html
      @@ -92,7 +92,8 @@ $(document).ready(function(){initNavTree('drawing_8h.html',''); initResizable();
       
      drawing.h File Reference
    -
    #include <types.h>
    +
    #include <stdint.h>
    +#include <types.h>

    Go to the source code of this file.

    BOOLEAN isspace bool isspace ( char  c)
    @@ -131,39 +132,39 @@ Macros Functions - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - - + + + +
    void gprint (char *str) NONBANKED
     
    void gprintln (INT16 number, INT8 radix, INT8 signed_value)
     
    void gprintn (INT8 number, INT8 radix, INT8 signed_value)
     
    INT8 gprintf (char *fmt,...) NONBANKED
     
    void plot (UINT8 x, UINT8 y, UINT8 colour, UINT8 mode)
     
    void plot_point (UINT8 x, UINT8 y)
     
    void switch_data (UINT8 x, UINT8 y, unsigned char *src, unsigned char *dst) NONBANKED
     
    void draw_image (unsigned char *data) NONBANKED
     
    void line (UINT8 x1, UINT8 y1, UINT8 x2, UINT8 y2)
     
    void box (UINT8 x1, UINT8 y1, UINT8 x2, UINT8 y2, UINT8 style)
     
    void circle (UINT8 x, UINT8 y, UINT8 radius, UINT8 style)
     
    UINT8 getpix (UINT8 x, UINT8 y)
     
    void gprintln (int16_t number, int8_t radix, int8_t signed_value)
     
    void gprintn (int8_t number, int8_t radix, int8_t signed_value)
     
    int8_t gprintf (char *fmt,...) NONBANKED
     
    void plot (uint8_t x, uint8_t y, uint8_t colour, uint8_t mode)
     
    void plot_point (uint8_t x, uint8_t y)
     
    void switch_data (uint8_t x, uint8_t y, uint8_t *src, uint8_t *dst) NONBANKED
     
    void draw_image (uint8_t *data) NONBANKED
     
    void line (uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2)
     
    void box (uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, uint8_t style)
     
    void circle (uint8_t x, uint8_t y, uint8_t radius, uint8_t style)
     
    uint8_t getpix (uint8_t x, uint8_t y)
     
    void wrtchr (char chr)
     
    void gotogxy (UINT8 x, UINT8 y)
     
    void color (UINT8 forecolor, UINT8 backcolor, UINT8 mode)
     
    void gotogxy (uint8_t x, uint8_t y)
     
    void color (uint8_t forecolor, uint8_t backcolor, uint8_t mode)
     

    Detailed Description

    All Points Addressable (APA) mode drawing library.

    Drawing routines originally by Pascal Felber Legendary overhall by Jon Fuge jonny.nosp@m.@q-c.nosp@m.ontin.nosp@m.uum..nosp@m.demon.nosp@m..co..nosp@m.uk Commenting by Michael Hope

    -

    Note: The standard text printf() and putchar() cannot be used in APA mode - use gprintf() and wrtchr() instead.

    +

    Note: The standard text printf() and putchar() cannot be used in APA mode - use gprintf() and wrtchr() instead.

    Note: Using drawing.h will cause it's custom VBL and LCD ISRs (drawing_vbl and drawing_lcd) to be installed.

    The valid coordinate ranges are from (x,y) 0,0 to 159,143. There is no built-in clipping, so drawing outside valid coordinates will likely produce undesired results (wrapping/etc).


    @@ -324,7 +325,7 @@ Functions
    -

    Possible fill styles for box() and circle()

    +

    Possible fill styles for box() and circle()

    @@ -353,7 +354,7 @@ Functions
    -

    Possible values for signed_value in gprintln() and gprintn()

    +

    Possible values for signed_value in gprintln() and gprintn()

    @@ -387,12 +388,12 @@ Functions
    -

    Print the string 'str' with no interpretation

    See also
    gotogxy()
    +

    Print the string 'str' with no interpretation

    See also
    gotogxy()
    - -

    ◆ gprintln()

    + +

    ◆ gprintln()

    @@ -400,19 +401,19 @@ Functions void gprintln ( - INT16  + int16_t  number, - INT8  + int8_t  radix, - INT8  + int8_t  signed_value  @@ -431,12 +432,12 @@ Functions -

    The current position is advanced by the numer of characters printed.

    See also
    gotogxy()
    +

    The current position is advanced by the numer of characters printed.

    See also
    gotogxy()
    - -

    ◆ gprintn()

    + +

    ◆ gprintn()

    @@ -444,19 +445,19 @@ Functions void gprintn ( - INT8  + int8_t  number, - INT8  + int8_t  radix, - INT8  + int8_t  signed_value  @@ -467,18 +468,18 @@ Functions

    Print 8 bit number in radix (base) in the default font at the current text position.

    -
    See also
    gprintln(), gotogxy()
    +
    See also
    gprintln(), gotogxy()
    - -

    ◆ gprintf()

    + +

    ◆ gprintf()

    - + @@ -507,18 +508,18 @@ Functions

    Currently supported:

    Returns
    Returns the number of items printed, or -1 if there was an error.
    -
    See also
    gotogxy()
    +
    See also
    gotogxy()
    - -

    ◆ plot()

    + +

    ◆ plot()

    @@ -526,25 +527,25 @@ Functions
    - + - + - + - + @@ -554,12 +555,12 @@ Functions
    INT8 gprintf int8_t gprintf ( char *  fmt,
    void plot (UINT8 uint8_t  x,
    UINT8 uint8_t  y,
    UINT8 uint8_t  colour,
    UINT8 uint8_t  mode 
    -

    Old style plot - try plot_point()

    +

    Old style plot - try plot_point()

    - -

    ◆ plot_point()

    + +

    ◆ plot_point()

    @@ -567,13 +568,13 @@ Functions void plot_point ( - UINT8  + uint8_t  x, - UINT8  + uint8_t  y  @@ -587,8 +588,8 @@ Functions
    - -

    ◆ switch_data()

    + +

    ◆ switch_data()

    @@ -596,25 +597,25 @@ Functions void switch_data ( - UINT8  + uint8_t  x, - UINT8  + uint8_t  y, - unsigned char *  + uint8_tsrc, - unsigned char *  + uint8_tdst  @@ -628,8 +629,8 @@ Functions
    - -

    ◆ draw_image()

    + +

    ◆ draw_image()

    @@ -637,7 +638,7 @@ Functions void draw_image ( - unsigned char *  + uint8_tdata) @@ -647,8 +648,8 @@ Functions
    - -

    ◆ line()

    + +

    ◆ line()

    @@ -656,25 +657,25 @@ Functions void line ( - UINT8  + uint8_t  x1, - UINT8  + uint8_t  y1, - UINT8  + uint8_t  x2, - UINT8  + uint8_t  y2  @@ -688,8 +689,8 @@ Functions
    - -

    ◆ box()

    + +

    ◆ box()

    @@ -697,31 +698,31 @@ Functions void box ( - UINT8  + uint8_t  x1, - UINT8  + uint8_t  y1, - UINT8  + uint8_t  x2, - UINT8  + uint8_t  y2, - UINT8  + uint8_t  style  @@ -735,8 +736,8 @@ Functions
    - -

    ◆ circle()

    + +

    ◆ circle()

    @@ -744,25 +745,25 @@ Functions void circle ( - UINT8  + uint8_t  x, - UINT8  + uint8_t  y, - UINT8  + uint8_t  radius, - UINT8  + uint8_t  style  @@ -776,22 +777,22 @@ Functions
    - -

    ◆ getpix()

    + +

    ◆ getpix()

    - + - + - + @@ -821,12 +822,12 @@ Functions
    UINT8 getpix uint8_t getpix (UINT8 uint8_t  x,
    UINT8 uint8_t  y 

    Prints the character chr in the default font at the current text position.

    -

    The current position is advanced by 1 after the character is printed.

    See also
    gotogxy()
    +

    The current position is advanced by 1 after the character is printed.

    See also
    gotogxy()
    - -

    ◆ gotogxy()

    + +

    ◆ gotogxy()

    @@ -834,13 +835,13 @@ Functions void gotogxy ( - UINT8  + uint8_t  x, - UINT8  + uint8_t  y  @@ -855,8 +856,8 @@ Functions
    - -

    ◆ color()

    + +

    ◆ color()

    @@ -864,19 +865,19 @@ Functions void color ( - UINT8  + uint8_t  forecolor, - UINT8  + uint8_t  backcolor, - UINT8  + uint8_t  mode  diff --git a/docs/api/drawing_8h.js b/docs/api/drawing_8h.js index 51592685..a2290271 100644 --- a/docs/api/drawing_8h.js +++ b/docs/api/drawing_8h.js @@ -15,18 +15,18 @@ var drawing_8h = [ "SIGNED", "drawing_8h.html#a4dec4d9b2bace4f5bc6e6337f4086837", null ], [ "UNSIGNED", "drawing_8h.html#a08cbc66092284f7da94279f986a0aae9", null ], [ "gprint", "drawing_8h.html#aef65e5faa0adb82768fca06aafbe50e8", null ], - [ "gprintln", "drawing_8h.html#a9869295972fdbad75ecfa9d4bff2ff21", null ], - [ "gprintn", "drawing_8h.html#a99bdf955788d991c90c0a1a80ca26e7d", null ], - [ "gprintf", "drawing_8h.html#a20f022d3050cc0409b1558c02a3b47c0", null ], - [ "plot", "drawing_8h.html#ac3271bc637bab1205ed066f439ebc955", null ], - [ "plot_point", "drawing_8h.html#a0fdc56b95bb27e97685c71639dd96209", null ], - [ "switch_data", "drawing_8h.html#ad252f1952b09c3ec66bf2759b4e2dea9", null ], - [ "draw_image", "drawing_8h.html#ab6a6e4de3149941100edc6c7ed5236cf", null ], - [ "line", "drawing_8h.html#a41d053b8f3a0be6f0de400dc2f0e0fd9", null ], - [ "box", "drawing_8h.html#a4e792560f4216fac5be9ff2a5235a2aa", null ], - [ "circle", "drawing_8h.html#ae867228cd30ff62fe83d184ce6d6fda8", null ], - [ "getpix", "drawing_8h.html#aaf7ed5593d7fb811f00cd241e3d97c10", null ], + [ "gprintln", "drawing_8h.html#aad4e32cc775320f61f61c0707aa86a23", null ], + [ "gprintn", "drawing_8h.html#a73925b79fb8d1cf6c40602b113913f25", null ], + [ "gprintf", "drawing_8h.html#a5f7a0ed309f9526e9be285146559848c", null ], + [ "plot", "drawing_8h.html#a7ff51a226a56b4813f595892f1ae31d3", null ], + [ "plot_point", "drawing_8h.html#af357a92be4a6864d46c28f9530e61429", null ], + [ "switch_data", "drawing_8h.html#aedd9c98ab95b4b4fab93bf1d00e3f01b", null ], + [ "draw_image", "drawing_8h.html#a16075b2ab6621bfc1694cc1a92e3df2b", null ], + [ "line", "drawing_8h.html#a0d0306ae7aafbbf9439e26c85d96e02b", null ], + [ "box", "drawing_8h.html#a6b7c3151e0778846aa31682ff69b01ac", null ], + [ "circle", "drawing_8h.html#a24838f0ca44f1d69ff94b8f74097015d", null ], + [ "getpix", "drawing_8h.html#a93ff760a96e4fbbd42487d0d97bcb3db", null ], [ "wrtchr", "drawing_8h.html#a57de178908d5dc3e574e666e4d4cb6a7", null ], - [ "gotogxy", "drawing_8h.html#a2dee47d4ad7d830605a63bbf5edeeed1", null ], - [ "color", "drawing_8h.html#ac9f0e5e503be3fe11f09b28252187c55", null ] + [ "gotogxy", "drawing_8h.html#afb20967d61db0e3288edbc0c12e31728", null ], + [ "color", "drawing_8h.html#af36897dea18be4c65b69767be47b98e4", null ] ]; \ No newline at end of file diff --git a/docs/api/drawing_8h_source.html b/docs/api/drawing_8h_source.html index c92e37a4..486c825d 100644 --- a/docs/api/drawing_8h_source.html +++ b/docs/api/drawing_8h_source.html @@ -93,101 +93,104 @@ $(document).ready(function(){initNavTree('drawing_8h_source.html',''); initResiz
    29 #ifndef __DRAWING_H
    30 #define __DRAWING_H
    31 
    -
    33 #define GRAPHICS_WIDTH 160
    -
    34 #define GRAPHICS_HEIGHT 144
    -
    35 
    -
    37 #if ORIGINAL
    -
    38  #define SOLID 0x10 /* Overwrites the existing pixels */
    -
    39  #define OR 0x20 /* Performs a logical OR */
    -
    40  #define XOR 0x40 /* Performs a logical XOR */
    -
    41  #define AND 0x80 /* Performs a logical AND */
    -
    42 #else
    -
    43  #define SOLID 0x00 /* Overwrites the existing pixels */
    -
    44  #define OR 0x01 /* Performs a logical OR */
    -
    45  #define XOR 0x02 /* Performs a logical XOR */
    -
    46  #define AND 0x03 /* Performs a logical AND */
    -
    47 #endif
    -
    48 
    -
    50 #define WHITE 0
    -
    51 #define LTGREY 1
    -
    52 #define DKGREY 2
    -
    53 #define BLACK 3
    -
    54 
    -
    56 #define M_NOFILL 0
    -
    57 #define M_FILL 1
    -
    58 
    -
    60 #define SIGNED 1
    -
    61 #define UNSIGNED 0
    -
    62 
    -
    63 #include <types.h>
    +
    32 #include <stdint.h>
    +
    33 
    +
    35 #define GRAPHICS_WIDTH 160
    +
    36 #define GRAPHICS_HEIGHT 144
    +
    37 
    +
    39 #if ORIGINAL
    +
    40  #define SOLID 0x10 /* Overwrites the existing pixels */
    +
    41  #define OR 0x20 /* Performs a logical OR */
    +
    42  #define XOR 0x40 /* Performs a logical XOR */
    +
    43  #define AND 0x80 /* Performs a logical AND */
    +
    44 #else
    +
    45  #define SOLID 0x00 /* Overwrites the existing pixels */
    +
    46  #define OR 0x01 /* Performs a logical OR */
    +
    47  #define XOR 0x02 /* Performs a logical XOR */
    +
    48  #define AND 0x03 /* Performs a logical AND */
    +
    49 #endif
    +
    50 
    +
    52 #define WHITE 0
    +
    53 #define LTGREY 1
    +
    54 #define DKGREY 2
    +
    55 #define BLACK 3
    +
    56 
    +
    58 #define M_NOFILL 0
    +
    59 #define M_FILL 1
    +
    60 
    +
    62 #define SIGNED 1
    +
    63 #define UNSIGNED 0
    64 
    -
    68 void
    -
    69  gprint(char *str) NONBANKED;
    -
    70 
    -
    80 void
    -
    81  gprintln(INT16 number, INT8 radix, INT8 signed_value);
    -
    82 
    -
    87 void
    -
    88  gprintn(INT8 number, INT8 radix, INT8 signed_value);
    -
    89 
    -
    106 INT8
    -
    107  gprintf(char *fmt,...) NONBANKED;
    -
    108 
    -
    110 void
    -
    111  plot(UINT8 x, UINT8 y, UINT8 colour, UINT8 mode);
    -
    112 
    -
    114 void
    - -
    116 
    -
    120 void
    -
    121  switch_data(UINT8 x, UINT8 y, unsigned char *src, unsigned char *dst) NONBANKED;
    -
    122 
    -
    124 void
    -
    125  draw_image(unsigned char *data) NONBANKED;
    -
    126 
    -
    128 void
    -
    129  line(UINT8 x1, UINT8 y1, UINT8 x2, UINT8 y2);
    -
    130 
    -
    133 void
    -
    134  box(UINT8 x1, UINT8 y1, UINT8 x2, UINT8 y2, UINT8 style);
    -
    135 
    -
    138 void
    -
    139  circle(UINT8 x, UINT8 y, UINT8 radius, UINT8 style);
    -
    140 
    -
    142 UINT8
    - -
    144 
    -
    149 void
    -
    150  wrtchr(char chr);
    -
    151 
    -
    156 void
    - -
    158 
    -
    161 void color(UINT8 forecolor, UINT8 backcolor, UINT8 mode);
    -
    162 
    -
    163 #endif /* __DRAWING_H */
    +
    65 #include <types.h>
    +
    66 
    +
    70 void
    +
    71  gprint(char *str) NONBANKED;
    +
    72 
    +
    82 void
    +
    83  gprintln(int16_t number, int8_t radix, int8_t signed_value);
    +
    84 
    +
    89 void
    +
    90  gprintn(int8_t number, int8_t radix, int8_t signed_value);
    +
    91 
    +
    108 int8_t
    +
    109  gprintf(char *fmt,...) NONBANKED;
    +
    110 
    +
    112 void
    + +
    114 
    +
    116 void
    + +
    118 
    +
    122 void
    + +
    124 
    +
    126 void
    + +
    128 
    +
    130 void
    +
    131  line(uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2);
    +
    132 
    +
    135 void
    +
    136  box(uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, uint8_t style);
    +
    137 
    +
    140 void
    +
    141  circle(uint8_t x, uint8_t y, uint8_t radius, uint8_t style);
    +
    142 
    +
    144 uint8_t
    + +
    146 
    +
    151 void
    +
    152  wrtchr(char chr);
    +
    153 
    +
    158 void
    + +
    160 
    +
    163 void color(uint8_t forecolor, uint8_t backcolor, uint8_t mode);
    +
    164 
    +
    165 #endif /* __DRAWING_H */
    -
    gprintln
    void gprintln(INT16 number, INT8 radix, INT8 signed_value)
    -
    UINT8
    unsigned char UINT8
    Definition: types.h:22
    -
    gprintf
    INT8 gprintf(char *fmt,...) NONBANKED
    -
    INT16
    signed int INT16
    Definition: types.h:25
    -
    plot_point
    void plot_point(UINT8 x, UINT8 y)
    -
    getpix
    UINT8 getpix(UINT8 x, UINT8 y)
    -
    mode
    void mode(UINT8 m) NONBANKED
    -
    box
    void box(UINT8 x1, UINT8 y1, UINT8 x2, UINT8 y2, UINT8 style)
    -
    draw_image
    void draw_image(unsigned char *data) NONBANKED
    -
    color
    void color(UINT8 forecolor, UINT8 backcolor, UINT8 mode)
    -
    line
    void line(UINT8 x1, UINT8 y1, UINT8 x2, UINT8 y2)
    +
    uint8_t
    unsigned char uint8_t
    Definition: stdint.h:51
    +
    int8_t
    signed char int8_t
    Definition: stdint.h:43
    +
    mode
    void mode(uint8_t m) NONBANKED
    +
    draw_image
    void draw_image(uint8_t *data) NONBANKED
    +
    color
    void color(uint8_t forecolor, uint8_t backcolor, uint8_t mode)
    +
    circle
    void circle(uint8_t x, uint8_t y, uint8_t radius, uint8_t style)
    gprint
    void gprint(char *str) NONBANKED
    -
    switch_data
    void switch_data(UINT8 x, UINT8 y, unsigned char *src, unsigned char *dst) NONBANKED
    -
    circle
    void circle(UINT8 x, UINT8 y, UINT8 radius, UINT8 style)
    -
    gotogxy
    void gotogxy(UINT8 x, UINT8 y)
    +
    int16_t
    short int int16_t
    Definition: stdint.h:44
    +
    stdint.h
    +
    getpix
    uint8_t getpix(uint8_t x, uint8_t y)
    +
    switch_data
    void switch_data(uint8_t x, uint8_t y, uint8_t *src, uint8_t *dst) NONBANKED
    +
    gotogxy
    void gotogxy(uint8_t x, uint8_t y)
    +
    gprintf
    int8_t gprintf(char *fmt,...) NONBANKED
    NONBANKED
    #define NONBANKED
    Definition: types.h:12
    -
    gprintn
    void gprintn(INT8 number, INT8 radix, INT8 signed_value)
    -
    INT8
    signed char INT8
    Definition: types.h:19
    -
    plot
    void plot(UINT8 x, UINT8 y, UINT8 colour, UINT8 mode)
    +
    gprintln
    void gprintln(int16_t number, int8_t radix, int8_t signed_value)
    +
    line
    void line(uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2)
    +
    plot_point
    void plot_point(uint8_t x, uint8_t y)
    wrtchr
    void wrtchr(char chr)
    +
    box
    void box(uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, uint8_t style)
    +
    gprintn
    void gprintn(int8_t number, int8_t radix, int8_t signed_value)
    +
    plot
    void plot(uint8_t x, uint8_t y, uint8_t colour, uint8_t mode)
    @@ -195,11 +195,11 @@ Variables

    Macro to get the Segment (Bank) number of a far pointer

    Parameters
    - +
    ptrA far pointer (type FAR_PTR)
    ptrA far pointer (type FAR_PTR)
    -
    Returns
    Segment (Bank) of the far pointer (type unsigned int)
    +
    Returns
    Segment (Bank) of the far pointer (type uint16_t)
    @@ -220,7 +220,7 @@ Variables

    Macro to get the Offset (address) of a far pointer

    Parameters
    - +
    ptrA far pointer (type FAR_PTR)
    ptrA far pointer (type FAR_PTR)
    @@ -289,7 +289,7 @@ Variables

    Macro to call a function at far pointer ptr of type typ

    Parameters
    - +
    ptrFar pointer of a function to call (type FAR_PTR)
    ptrFar pointer of a function to call (type FAR_PTR)
    typType to cast the function far pointer to.
    ...VA Args list of parameters for the function
    @@ -297,12 +297,12 @@ Variables

    type should match the definition of the function being called. For example:

    // A function in bank 2
    #pragma bank 2
    -
    int some_function(int param1, int param2) __banked { return 1; };
    +
    uint16_t some_function(uint16_t param1, uint16_t param2) __banked { return 1; };
    ...
    // Code elsewhere, such as unbanked main()
    // This type declaration should match the above function
    -
    typedef int (*some_function_t)(int, int) __banked;
    +
    typedef uint16_t (*some_function_t)(uint16_t, uint16_t) __banked;
    // Using FAR_CALL() with the above as *ptr*, *typ*, and two parameters.
    result = FAR_CALL(some_function, some_function_t, 100, 50);
    @@ -311,14 +311,14 @@ Variables

    Typedef Documentation

    - -

    ◆ FAR_PTR

    + +

    ◆ FAR_PTR

    - +
    typedef unsigned long FAR_PTRtypedef uint32_t FAR_PTR
    @@ -344,14 +344,14 @@ Variables
    - -

    ◆ to_far_ptr()

    + +

    ◆ to_far_ptr()

    - + @@ -359,7 +359,7 @@ Variables - + @@ -376,7 +376,7 @@ Variables
    long to_far_ptr int32_t to_far_ptr ( void *  ofs,
    int int16_t  seg 
    -
    Returns
    A far pointer (type FAR_PTR)
    +
    Returns
    A far pointer (type FAR_PTR)
    @@ -391,7 +391,7 @@ Variables - +
    volatile FAR_PTR __call_banked_ptrvolatile FAR_PTR __call_banked_ptr
    @@ -425,8 +425,8 @@ Variables - -

    ◆ __call_banked_bank

    + +

    ◆ __call_banked_bank

    @@ -435,7 +435,7 @@ Variables - +
    volatile unsigned char __call_banked_bankvolatile uint8_t __call_banked_bank
    @@ -449,6 +449,7 @@ Variables
    +
    uint16_t
    unsigned short int uint16_t
    Definition: stdint.h:52
    FAR_CALL
    #define FAR_CALL(ptr, typ,...)
    Definition: far_ptr.h:62
    diff --git a/docs/api/far__ptr_8h.js b/docs/api/far__ptr_8h.js index 1296ad7b..550df3dc 100644 --- a/docs/api/far__ptr_8h.js +++ b/docs/api/far__ptr_8h.js @@ -6,10 +6,10 @@ var far__ptr_8h = [ "FAR_OFS", "far__ptr_8h.html#ab79586d8cc3cb926f363f4d0cf7143d5", null ], [ "FAR_FUNC", "far__ptr_8h.html#a048cfacb5d37ab758a74f44e86c1dbc6", null ], [ "FAR_CALL", "far__ptr_8h.html#a7f4ab1893ea392f8bf042a3b97de4730", null ], - [ "FAR_PTR", "far__ptr_8h.html#aea7a313c991baf8e28c1d73cf6595209", null ], + [ "FAR_PTR", "far__ptr_8h.html#a7c6f52121dd07af29b477f4e64314842", null ], [ "__call__banked", "far__ptr_8h.html#aa45a2312a2584abb8733a052f66b4a90", null ], - [ "to_far_ptr", "far__ptr_8h.html#a374dd0c7e00bec635f1dd24d5cbe0d35", null ], + [ "to_far_ptr", "far__ptr_8h.html#a8a9dc804d06e0c5c3f96675f68a051bb", null ], [ "__call_banked_ptr", "far__ptr_8h.html#a27792b7fc3796a1e1828d4c5812e5b21", null ], [ "__call_banked_addr", "far__ptr_8h.html#a1344c26ca298a9eadea4bcfea6442ae3", null ], - [ "__call_banked_bank", "far__ptr_8h.html#a6f1c13e2fad9dd04645a000050d9f382", null ] + [ "__call_banked_bank", "far__ptr_8h.html#a892433d652420445a9a6aebf1a256623", null ] ]; \ No newline at end of file diff --git a/docs/api/far__ptr_8h_source.html b/docs/api/far__ptr_8h_source.html index bdf67236..cd391122 100644 --- a/docs/api/far__ptr_8h_source.html +++ b/docs/api/far__ptr_8h_source.html @@ -103,44 +103,49 @@ $(document).ready(function(){initNavTree('far__ptr_8h_source.html',''); initResi
    39 
    62 #define FAR_CALL(ptr, typ, ...) (__call_banked_ptr=ptr,((typ)(&__call__banked))(__VA_ARGS__))
    63 
    -
    66 typedef unsigned long FAR_PTR;
    +
    66 typedef uint32_t FAR_PTR;
    67 
    70 union __far_ptr {
    -
    71  FAR_PTR ptr;
    +
    71  FAR_PTR ptr;
    72  struct {
    73  void * ofs;
    -
    74  unsigned int seg;
    +
    74  uint16_t seg;
    75  } segofs;
    76  struct {
    77  void (*fn)();
    -
    78  unsigned int seg;
    +
    78  uint16_t seg;
    79  } segfn;
    80 };
    81 
    -
    82 extern volatile FAR_PTR __call_banked_ptr;
    +
    82 extern volatile FAR_PTR __call_banked_ptr;
    83 extern volatile void * __call_banked_addr;
    -
    84 extern volatile unsigned char __call_banked_bank;
    +
    84 extern volatile uint8_t __call_banked_bank;
    85 
    86 void __call__banked();
    87 
    -
    94 long to_far_ptr(void* ofs, int seg);
    +
    94 int32_t to_far_ptr(void* ofs, int16_t seg);
    95 
    96 #endif
    +
    uint8_t
    unsigned char uint8_t
    Definition: stdint.h:51
    __call_banked_ptr
    volatile FAR_PTR __call_banked_ptr
    -
    __call_banked_bank
    volatile unsigned char __call_banked_bank
    +
    uint32_t
    unsigned long int uint32_t
    Definition: stdint.h:53
    +
    to_far_ptr
    int32_t to_far_ptr(void *ofs, int16_t seg)
    __far_ptr::ofs
    void * ofs
    Definition: far_ptr.h:73
    __far_ptr::segfn
    struct __far_ptr::@1 segfn
    __call_banked_addr
    volatile void * __call_banked_addr
    -
    to_far_ptr
    long to_far_ptr(void *ofs, int seg)
    -
    FAR_PTR
    unsigned long FAR_PTR
    Definition: far_ptr.h:66
    +
    uint16_t
    unsigned short int uint16_t
    Definition: stdint.h:52
    +
    int32_t
    long int int32_t
    Definition: stdint.h:45
    +
    int16_t
    short int int16_t
    Definition: stdint.h:44
    __far_ptr::fn
    void(* fn)()
    Definition: far_ptr.h:77
    +
    __far_ptr::seg
    uint16_t seg
    Definition: far_ptr.h:74
    __far_ptr
    Definition: far_ptr.h:70
    +
    __call_banked_bank
    volatile uint8_t __call_banked_bank
    __far_ptr::ptr
    FAR_PTR ptr
    Definition: far_ptr.h:71
    __far_ptr::segofs
    struct __far_ptr::@0 segofs
    __call__banked
    void __call__banked()
    -
    __far_ptr::seg
    unsigned int seg
    Definition: far_ptr.h:74
    +
    FAR_PTR
    uint32_t FAR_PTR
    Definition: far_ptr.h:66
    #include <gb/gb.h>
    +#include <stdint.h>

    Go to the source code of this file.

    @@ -117,8 +118,8 @@ Macros
    - - + + @@ -128,23 +129,23 @@ Typedefs Functions - + - +

    Typedefs

    typedef UINT16 font_t
     
    typedef uint16_t font_t
     
    typedef struct sfont_handle mfont_handle
     
    typedef struct sfont_handlepmfont_handle
    void font_init (void) NONBANKED
     
    font_t font_load (void *font) NONBANKED
    font_t font_load (void *font) NONBANKED
     
    font_t font_set (font_t font_handle) NONBANKED
    font_t font_set (font_t font_handle) NONBANKED
     
    - - - - - - - - - - + + + + + + + + + +

    Variables

    UINT8 font_spect []
     
    UINT8 font_italic []
     
    UINT8 font_ibm []
     
    UINT8 font_min []
     
    UINT8 font_ibm_fixed []
     
    uint8_t font_spect []
     
    uint8_t font_italic []
     
    uint8_t font_ibm []
     
    uint8_t font_min []
     
    uint8_t font_ibm_fixed []
     

    Detailed Description

    Multiple font support for the GameBoy Michael Hope, 1999 micha.nosp@m.elh@.nosp@m.earth.nosp@m.ling.nosp@m..net

    @@ -207,14 +208,14 @@ Variables

    Typedef Documentation

    - -

    ◆ font_t

    + +

    ◆ font_t

    - +
    typedef UINT16 font_ttypedef uint16_t font_t
    @@ -278,7 +279,7 @@ Variables
    - + @@ -304,9 +305,9 @@ Variables
    font_t font_load font_t font_load ( void *  font)
    - + - + diff --git a/docs/api/font_8h.js b/docs/api/font_8h.js index b2ae29f3..d45b95bb 100644 --- a/docs/api/font_8h.js +++ b/docs/api/font_8h.js @@ -5,15 +5,15 @@ var font_8h = [ "FONT_128ENCODING", "font_8h.html#a305ee4387ba051bd0e372b8a6dfb6905", null ], [ "FONT_NOENCODING", "font_8h.html#a80d0f581e17313b62dd7824653462b55", null ], [ "FONT_COMPRESSED", "font_8h.html#a7c5452979723b3535d17e253beb5d604", null ], - [ "font_t", "font_8h.html#a0356deab046e522bc369dfd4cf108e5e", null ], + [ "font_t", "font_8h.html#a7c6b54e58c41763c66f15ec4528a1d4a", null ], [ "mfont_handle", "font_8h.html#aea1f63fe2ea8c7689b061ad93b485553", null ], [ "pmfont_handle", "font_8h.html#a82e0e078fc8a8b6a18538131625dba3a", null ], [ "font_init", "font_8h.html#a61b6448050030c4367eafd836598e515", null ], [ "font_load", "font_8h.html#aae1084aacf5cfceb40d9ce8f34a3870a", null ], [ "font_set", "font_8h.html#a2f1eb1f81be1a153bc11b1ea368fe614", null ], - [ "font_spect", "group__gbdk__fonts.html#ga8864dda768d160716fb95cc8c46cb5a9", null ], - [ "font_italic", "group__gbdk__fonts.html#ga3c28d792899071492568375585a171cf", null ], - [ "font_ibm", "group__gbdk__fonts.html#gada456ea6f9f74229a178cef52471d37b", null ], - [ "font_min", "group__gbdk__fonts.html#gaa7ed899bc52aac6cd5cd7ba4c2a43215", null ], - [ "font_ibm_fixed", "group__gbdk__fonts.html#ga2d59fb8d9b95354fcc9b4541ce43f276", null ] + [ "font_spect", "group__gbdk__fonts.html#ga1b59bbd85c12436eeef52d4c32c7345d", null ], + [ "font_italic", "group__gbdk__fonts.html#ga17e825a65ba38f34a658fe0a2c99d8d4", null ], + [ "font_ibm", "group__gbdk__fonts.html#ga6dcb04fed78fc39b95171988b776e6bb", null ], + [ "font_min", "group__gbdk__fonts.html#gad8497ecbd9d845fc24a56688f157aad8", null ], + [ "font_ibm_fixed", "group__gbdk__fonts.html#gab8c52bed73e745f1ee910f2da60ddb4c", null ] ]; \ No newline at end of file diff --git a/docs/api/font_8h_source.html b/docs/api/font_8h_source.html index fbbea267..31e96f46 100644 --- a/docs/api/font_8h_source.html +++ b/docs/api/font_8h_source.html @@ -94,57 +94,59 @@ $(document).ready(function(){initNavTree('font_8h_source.html',''); initResizabl
    7 #define __FONT_H
    8 
    9 #include <gb/gb.h>
    -
    10 
    -
    13 #define FONT_256ENCODING 0
    -
    14 #define FONT_128ENCODING 1
    -
    15 #define FONT_NOENCODING 2
    -
    16 
    -
    17 #define FONT_COMPRESSED 4
    -
    18 
    -
    19 /* See gb.h/M_NO_SCROLL and gb.h/M_NO_INTERP */
    -
    20 
    -
    23 typedef UINT16 font_t;
    -
    24 
    +
    10 #include <stdint.h>
    +
    11 
    +
    14 #define FONT_256ENCODING 0
    +
    15 #define FONT_128ENCODING 1
    +
    16 #define FONT_NOENCODING 2
    +
    17 
    +
    18 #define FONT_COMPRESSED 4
    +
    19 
    +
    20 /* See gb.h/M_NO_SCROLL and gb.h/M_NO_INTERP */
    +
    21 
    +
    24 typedef uint16_t font_t;
    25 
    - -
    32 
    -
    34 extern UINT8 font_ibm_fixed[];
    -
    35 
    -
    42 void font_init(void) NONBANKED;
    -
    43 
    -
    50 font_t font_load( void *font ) NONBANKED;
    -
    51 
    - -
    59 
    -
    60 /* Use mode() and color() to set the font modes and colours */
    -
    61 
    -
    64 typedef struct sfont_handle mfont_handle;
    -
    65 typedef struct sfont_handle *pmfont_handle;
    -
    66 
    -
    69 struct sfont_handle {
    - -
    71  void *font;
    -
    72 };
    -
    73 
    -
    74 #endif /* __FONT_H */
    +
    26 
    + +
    33 
    +
    35 extern uint8_t font_ibm_fixed[];
    +
    36 
    +
    43 void font_init(void) NONBANKED;
    +
    44 
    +
    51 font_t font_load( void *font ) NONBANKED;
    +
    52 
    + +
    60 
    +
    61 /* Use mode() and color() to set the font modes and colours */
    +
    62 
    +
    65 typedef struct sfont_handle mfont_handle;
    +
    66 typedef struct sfont_handle *pmfont_handle;
    +
    67 
    +
    70 struct sfont_handle {
    + +
    72  void *font;
    +
    73 };
    +
    74 
    +
    75 #endif /* __FONT_H */
    -
    unsigned char UINT8
    Definition: types.h:22
    -
    Definition: font.h:69
    +
    Definition: font.h:70
    +
    unsigned char uint8_t
    Definition: stdint.h:51
    -
    unsigned int UINT16
    Definition: types.h:28
    font_t font_set(font_t font_handle) NONBANKED
    -
    UINT8 font_ibm[]
    Definition: font.h:31
    -
    UINT8 font_min[]
    Definition: font.h:31
    -
    void * font
    Definition: font.h:71
    +
    void * font
    Definition: font.h:72
    +
    unsigned short int uint16_t
    Definition: stdint.h:52
    +
    uint8_t font_ibm_fixed[]
    +
    uint8_t font_spect[]
    font_t font_load(void *font) NONBANKED
    -
    UINT8 font_italic[]
    Definition: font.h:31
    -
    UINT16 font_t
    Definition: font.h:23
    -
    UINT8 font_ibm_fixed[]
    -
    UINT8 font_spect[]
    +
    uint16_t font_t
    Definition: font.h:24
    + +
    uint8_t first_tile
    Definition: font.h:71
    +
    uint8_t font_ibm[]
    Definition: font.h:32
    #define NONBANKED
    Definition: types.h:12
    -
    UINT8 first_tile
    Definition: font.h:70
    -
    struct sfont_handle * pmfont_handle
    Definition: font.h:65
    +
    struct sfont_handle * pmfont_handle
    Definition: font.h:66
    +
    uint8_t font_min[]
    Definition: font.h:32
    +
    uint8_t font_italic[]
    Definition: font.h:32
    void font_init(void) NONBANKED
    diff --git a/docs/api/functions.html b/docs/api/functions.html index faddadaa..c1779474 100644 --- a/docs/api/functions.html +++ b/docs/api/functions.html @@ -96,20 +96,20 @@ $(document).ready(function(){initNavTree('functions.html',''); initResizable();

    - d -

    - f -

    @@ -182,10 +182,10 @@ $(document).ready(function(){initNavTree('functions.html',''); initResizable();

    - p -

    font_t font_set font_t font_set (font_t font_t  font_handle)
    @@ -111,7 +110,7 @@ Data Structures
    - + @@ -183,27 +182,27 @@ Macros - + - + - + - + - + - + - + - + - + @@ -227,7 +226,7 @@ Macros - +

    Macros

    #define __GBDK_VERSION   402
    #define __GBDK_VERSION   404
     
    #define J_START   0x80U
     
     
    #define IO_ERROR   0x04U
     
    #define SWITCH_ROM_MBC1(b)    _current_bank = (b), *(unsigned char *)0x2000 = (b)
    #define SWITCH_ROM_MBC1(b)    _current_bank = (b), *(uint8_t *)0x2000 = (b)
     
    #define SWITCH_RAM_MBC1(b)    *(unsigned char *)0x4000 = (b)
    #define SWITCH_RAM_MBC1(b)    *(uint8_t *)0x4000 = (b)
     
    #define ENABLE_RAM_MBC1    *(unsigned char *)0x0000 = 0x0A
    #define ENABLE_RAM_MBC1    *(uint8_t *)0x0000 = 0x0A
     
    #define DISABLE_RAM_MBC1    *(unsigned char *)0x0000 = 0x00
    #define DISABLE_RAM_MBC1    *(uint8_t *)0x0000 = 0x00
     
    #define SWITCH_16_8_MODE_MBC1    *(unsigned char *)0x6000 = 0x00
    #define SWITCH_16_8_MODE_MBC1    *(uint8_t *)0x6000 = 0x00
     
    #define SWITCH_4_32_MODE_MBC1    *(unsigned char *)0x6000 = 0x01
    #define SWITCH_4_32_MODE_MBC1    *(uint8_t *)0x6000 = 0x01
     
    #define SWITCH_ROM_MBC5(b)
     
    #define SWITCH_ROM_MBC5_8M(b)
     
    #define SWITCH_RAM_MBC5(b)    *(unsigned char *)0x4000 = (b)
    #define SWITCH_RAM_MBC5(b)    *(uint8_t *)0x4000 = (b)
     
    #define ENABLE_RAM_MBC5    *(unsigned char *)0x0000 = 0x0A
    #define ENABLE_RAM_MBC5    *(uint8_t *)0x0000 = 0x0A
     
    #define DISABLE_RAM_MBC5    *(unsigned char *)0x0000 = 0x00
    #define DISABLE_RAM_MBC5    *(uint8_t *)0x0000 = 0x00
     
    #define DISPLAY_ON    LCDC_REG|=0x80U
     
     
    #define DISABLE_OAM_DMA    _shadow_OAM_base = 0
     
    #define ENABLE_OAM_DMA    _shadow_OAM_base = (UBYTE)((UWORD)&shadow_OAM >> 8)
    #define ENABLE_OAM_DMA    _shadow_OAM_base = (uint8_t)((uint16_t)&shadow_OAM >> 8)
     
    - - - - + + + + - - - - - - + + + + + + - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    @@ -263,150 +262,150 @@ Functions

     
    void wait_int_handler (void) NONBANKED
     
    void mode (UINT8 m) NONBANKED
     
    UINT8 get_mode (void) NONBANKED __preserves_regs(b
     
    void mode (uint8_t m) NONBANKED
     
    uint8_t get_mode (void) NONBANKED __preserves_regs(b
     
    void send_byte (void)
     
    void receive_byte (void)
     
    void delay (UINT16 d) NONBANKED
     
    UINT8 joypad (void) NONBANKED __preserves_regs(b
     
    UINT8 waitpad (UINT8 mask) NONBANKED __preserves_regs(b
     
    void delay (uint16_t d) NONBANKED
     
    uint8_t joypad (void) NONBANKED __preserves_regs(b
     
    uint8_t waitpad (uint8_t mask) NONBANKED __preserves_regs(b
     
    void waitpadup (void) NONBANKED __preserves_regs(a
     
    UINT8 joypad_init (UINT8 npads, joypads_t *joypads)
     
    uint8_t joypad_init (uint8_t npads, joypads_t *joypads)
     
    void joypad_ex (joypads_t *joypads) __preserves_regs(b
     
    void enable_interrupts (void) NONBANKED __preserves_regs(a
     
    void disable_interrupts (void) NONBANKED __preserves_regs(a
     
    void set_interrupts (UINT8 flags) NONBANKED __preserves_regs(b
     
    void set_interrupts (uint8_t flags) NONBANKED __preserves_regs(b
     
    void reset (void) NONBANKED
     
    void wait_vbl_done (void) NONBANKED __preserves_regs(b
     
    void display_off (void) NONBANKED __preserves_regs(b
     
    void hiramcpy (UINT8 dst, const void *src, UINT8 n) NONBANKED __preserves_regs(b
     
    void set_vram_byte (UBYTE *addr, UINT8 v) __preserves_regs(b
     
    UINT8 get_vram_byte (UBYTE *addr) __preserves_regs(b
     
    UINT8get_bkg_xy_addr (UINT8 x, UINT8 y) __preserves_regs(b
     
    void set_bkg_data (UINT8 first_tile, UINT8 nb_tiles, const unsigned char *data) NONBANKED __preserves_regs(b
     
    void set_bkg_1bit_data (UINT8 first_tile, UINT8 nb_tiles, const unsigned char *data, UINT8 color) NONBANKED __preserves_regs(b
     
    void get_bkg_data (UINT8 first_tile, UINT8 nb_tiles, unsigned char *data) NONBANKED __preserves_regs(b
     
    void set_bkg_tiles (UINT8 x, UINT8 y, UINT8 w, UINT8 h, const unsigned char *tiles) NONBANKED __preserves_regs(b
     
    void set_bkg_submap (UINT8 x, UINT8 y, UINT8 w, UINT8 h, const unsigned char *map, UINT8 map_w)
     
    void get_bkg_tiles (UINT8 x, UINT8 y, UINT8 w, UINT8 h, unsigned char *tiles) NONBANKED __preserves_regs(b
     
    UINT8set_bkg_tile_xy (UBYTE x, UBYTE y, UBYTE t) __preserves_regs(b
     
    UINT8 get_bkg_tile_xy (UBYTE x, UBYTE y) __preserves_regs(b
     
    void move_bkg (UINT8 x, UINT8 y)
     
    void scroll_bkg (INT8 x, INT8 y)
     
    UINT8get_win_xy_addr (UINT8 x, UINT8 y) __preserves_regs(b
     
    void set_win_data (UINT8 first_tile, UINT8 nb_tiles, const unsigned char *data) NONBANKED __preserves_regs(b
     
    void set_win_1bit_data (UINT8 first_tile, UINT8 nb_tiles, const unsigned char *data) NONBANKED __preserves_regs(b
     
    void get_win_data (UINT8 first_tile, UINT8 nb_tiles, unsigned char *data) NONBANKED __preserves_regs(b
     
    void set_win_tiles (UINT8 x, UINT8 y, UINT8 w, UINT8 h, const unsigned char *tiles) NONBANKED __preserves_regs(b
     
    void set_win_submap (UINT8 x, UINT8 y, UINT8 w, UINT8 h, const unsigned char *map, UINT8 map_w)
     
    void get_win_tiles (UINT8 x, UINT8 y, UINT8 w, UINT8 h, unsigned char *tiles) NONBANKED __preserves_regs(b
     
    UINT8set_win_tile_xy (UBYTE x, UBYTE y, UBYTE t) __preserves_regs(b
     
    UINT8 get_win_tile_xy (UBYTE x, UBYTE y) __preserves_regs(b
     
    void move_win (UINT8 x, UINT8 y)
     
    void scroll_win (INT8 x, INT8 y)
     
    void set_sprite_data (UINT8 first_tile, UINT8 nb_tiles, const unsigned char *data) NONBANKED __preserves_regs(b
     
    void set_sprite_1bit_data (UINT8 first_tile, UINT8 nb_tiles, const unsigned char *data) NONBANKED __preserves_regs(b
     
    void get_sprite_data (UINT8 first_tile, UINT8 nb_tiles, unsigned char *data) NONBANKED __preserves_regs(b
     
    void hiramcpy (uint8_t dst, const void *src, uint8_t n) NONBANKED __preserves_regs(b
     
    void set_vram_byte (uint8_t *addr, uint8_t v) __preserves_regs(b
     
    uint8_t get_vram_byte (uint8_t *addr) __preserves_regs(b
     
    uint8_tget_bkg_xy_addr (uint8_t x, uint8_t y) __preserves_regs(b
     
    void set_bkg_data (uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data) NONBANKED __preserves_regs(b
     
    void set_bkg_1bit_data (uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data, uint8_t color) NONBANKED __preserves_regs(b
     
    void get_bkg_data (uint8_t first_tile, uint8_t nb_tiles, uint8_t *data) NONBANKED __preserves_regs(b
     
    void set_bkg_tiles (uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *tiles) NONBANKED __preserves_regs(b
     
    void set_bkg_submap (uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *map, uint8_t map_w)
     
    void get_bkg_tiles (uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t *tiles) NONBANKED __preserves_regs(b
     
    uint8_tset_bkg_tile_xy (uint8_t x, uint8_t y, uint8_t t) __preserves_regs(b
     
    uint8_t get_bkg_tile_xy (uint8_t x, uint8_t y) __preserves_regs(b
     
    void move_bkg (uint8_t x, uint8_t y)
     
    void scroll_bkg (int8_t x, int8_t y)
     
    uint8_tget_win_xy_addr (uint8_t x, uint8_t y) __preserves_regs(b
     
    void set_win_data (uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data) NONBANKED __preserves_regs(b
     
    void set_win_1bit_data (uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data) NONBANKED __preserves_regs(b
     
    void get_win_data (uint8_t first_tile, uint8_t nb_tiles, uint8_t *data) NONBANKED __preserves_regs(b
     
    void set_win_tiles (uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *tiles) NONBANKED __preserves_regs(b
     
    void set_win_submap (uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *map, uint8_t map_w)
     
    void get_win_tiles (uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t *tiles) NONBANKED __preserves_regs(b
     
    uint8_tset_win_tile_xy (uint8_t x, uint8_t y, uint8_t t) __preserves_regs(b
     
    uint8_t get_win_tile_xy (uint8_t x, uint8_t y) __preserves_regs(b
     
    void move_win (uint8_t x, uint8_t y)
     
    void scroll_win (int8_t x, int8_t y)
     
    void set_sprite_data (uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data) NONBANKED __preserves_regs(b
     
    void set_sprite_1bit_data (uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data) NONBANKED __preserves_regs(b
     
    void get_sprite_data (uint8_t first_tile, uint8_t nb_tiles, uint8_t *data) NONBANKED __preserves_regs(b
     
    void SET_SHADOW_OAM_ADDRESS (void *address)
     
    void set_sprite_tile (UINT8 nb, UINT8 tile)
     
    UINT8 get_sprite_tile (UINT8 nb)
     
    void set_sprite_prop (UINT8 nb, UINT8 prop)
     
    UINT8 get_sprite_prop (UINT8 nb)
     
    void move_sprite (UINT8 nb, UINT8 x, UINT8 y)
     
    void scroll_sprite (UINT8 nb, INT8 x, INT8 y)
     
    void hide_sprite (UINT8 nb)
     
    void set_data (unsigned char *vram_addr, const unsigned char *data, UINT16 len) NONBANKED __preserves_regs(b
     
    void get_data (unsigned char *data, unsigned char *vram_addr, UINT16 len) NONBANKED __preserves_regs(b
     
    void set_tiles (UINT8 x, UINT8 y, UINT8 w, UINT8 h, unsigned char *vram_addr, const unsigned char *tiles) NONBANKED __preserves_regs(b
     
    void set_tile_data (UINT8 first_tile, UINT8 nb_tiles, const unsigned char *data, UINT8 base) NONBANKED __preserves_regs(b
     
    void get_tiles (UINT8 x, UINT8 y, UINT8 w, UINT8 h, unsigned char *vram_addr, unsigned char *tiles) NONBANKED __preserves_regs(b
     
    void init_win (UINT8 c) NONBANKED __preserves_regs(b
     
    void init_bkg (UINT8 c) NONBANKED __preserves_regs(b
     
    void vmemset (void *s, UINT8 c, size_t n) NONBANKED __preserves_regs(b
     
    void fill_bkg_rect (UINT8 x, UINT8 y, UINT8 w, UINT8 h, UINT8 tile) NONBANKED __preserves_regs(b
     
    void fill_win_rect (UINT8 x, UINT8 y, UINT8 w, UINT8 h, UINT8 tile) NONBANKED __preserves_regs(b
     
    void set_sprite_tile (uint8_t nb, uint8_t tile)
     
    uint8_t get_sprite_tile (uint8_t nb)
     
    void set_sprite_prop (uint8_t nb, uint8_t prop)
     
    uint8_t get_sprite_prop (uint8_t nb)
     
    void move_sprite (uint8_t nb, uint8_t x, uint8_t y)
     
    void scroll_sprite (uint8_t nb, int8_t x, int8_t y)
     
    void hide_sprite (uint8_t nb)
     
    void set_data (uint8_t *vram_addr, const uint8_t *data, uint16_t len) NONBANKED __preserves_regs(b
     
    void get_data (uint8_t *data, uint8_t *vram_addr, uint16_t len) NONBANKED __preserves_regs(b
     
    void set_tiles (uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t *vram_addr, const uint8_t *tiles) NONBANKED __preserves_regs(b
     
    void set_tile_data (uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data, uint8_t base) NONBANKED __preserves_regs(b
     
    void get_tiles (uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t *vram_addr, uint8_t *tiles) NONBANKED __preserves_regs(b
     
    void init_win (uint8_t c) NONBANKED __preserves_regs(b
     
    void init_bkg (uint8_t c) NONBANKED __preserves_regs(b
     
    void vmemset (void *s, uint8_t c, size_t n) NONBANKED __preserves_regs(b
     
    void fill_bkg_rect (uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t tile) NONBANKED __preserves_regs(b
     
    void fill_win_rect (uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t tile) NONBANKED __preserves_regs(b
     
    - + - - - - - - - - - - + + + + + + + + + + - + - + @@ -429,7 +428,7 @@ Variables

    Variables

    UINT8 c
    uint8_t c
     
    UINT8 _cpu
     
    volatile UINT16 sys_time
     
    volatile UINT8 _io_status
     
    volatile UINT8 _io_in
     
    volatile UINT8 _io_out
     
    uint8_t _cpu
     
    volatile uint16_t sys_time
     
    volatile uint8_t _io_status
     
    volatile uint8_t _io_in
     
    volatile uint8_t _io_out
     
    __REG _current_bank
     
    UINT8 h
    uint8_t h
     
    UINT8 l
    uint8_t l
     
    void b
     
    - +
    #define __GBDK_VERSION   402#define __GBDK_VERSION   404
    @@ -448,8 +447,8 @@ Variables

    Joypad bits. A logical OR of these is used in the wait_pad and joypad functions. For example, to see if the B button is pressed try

    -

    UINT8 keys; keys = joypad(); if (keys & J_B) { ... }

    -
    See also
    joypad
    +

    uint8_t keys; keys = joypad(); if (keys & J_B) { ... }

    +
    See also
    joypad
    @@ -562,7 +561,7 @@ Variables
    -

    Screen modes. Normally used by internal functions only.

    See also
    mode()
    +

    Screen modes. Normally used by internal functions only.

    See also
    mode()
    @@ -606,7 +605,7 @@ Variables

    Set this in addition to the others to disable scrolling

    -

    If scrolling is disabled, the cursor returns to (0,0)

    See also
    mode()
    +

    If scrolling is disabled, the cursor returns to (0,0)

    See also
    mode()
    @@ -621,7 +620,7 @@ Variables
    -

    Set this to disable interpretation

    See also
    mode()
    +

    Set this to disable interpretation

    See also
    mode()
    @@ -636,7 +635,7 @@ Variables
    -

    If this is set, sprite colours come from OBJ1PAL. Else they come from OBJ0PAL

    See also
    set_sprite_prop().
    +

    If this is set, sprite colours come from OBJ1PAL. Else they come from OBJ0PAL

    See also
    set_sprite_prop().
    @@ -651,7 +650,7 @@ Variables
    -

    If set the sprite will be flipped horizontally.

    See also
    set_sprite_prop()
    +

    If set the sprite will be flipped horizontally.

    See also
    set_sprite_prop()
    @@ -666,7 +665,7 @@ Variables
    -

    If set the sprite will be flipped vertically.

    See also
    set_sprite_prop()
    +

    If set the sprite will be flipped vertically.

    See also
    set_sprite_prop()
    @@ -681,7 +680,7 @@ Variables
    -

    If this bit is clear, then the sprite will be displayed on top of the background and window.

    See also
    set_sprite_prop()
    +

    If this bit is clear, then the sprite will be displayed on top of the background and window.

    See also
    set_sprite_prop()
    @@ -697,7 +696,7 @@ Variables

    VBlank Interrupt occurs at the start of the vertical blank.

    -

    During this period the video ram may be freely accessed.

    See also
    set_interrupts(),
    +

    During this period the video ram may be freely accessed.

    See also
    set_interrupts(),
    add_VBL
    @@ -714,7 +713,7 @@ Variables
    -

    LCD Interrupt when triggered by the STAT register.

    See also
    set_interrupts(),
    +

    LCD Interrupt when triggered by the STAT register.

    See also
    set_interrupts(),
    add_LCD
    @@ -731,7 +730,7 @@ Variables
    -

    Timer Interrupt when the timer TIMA_REG overflows.

    See also
    set_interrupts(),
    +

    Timer Interrupt when the timer TIMA_REG overflows.

    See also
    set_interrupts(),
    add_TIM
    @@ -748,7 +747,7 @@ Variables
    -

    Serial Link Interrupt occurs when the serial transfer has completed.

    See also
    set_interrupts(),
    +

    Serial Link Interrupt occurs when the serial transfer has completed.

    See also
    set_interrupts(),
    add_SIO
    @@ -765,7 +764,7 @@ Variables
    -

    Joypad Interrupt occurs on a transition of the keypad.

    See also
    set_interrupts(),
    +

    Joypad Interrupt occurs on a transition of the keypad.

    See also
    set_interrupts(),
    add_JOY
    @@ -812,7 +811,7 @@ Variables
    -

    The Minimum X position of the Window Layer (Left edge of screen)

    See also
    move_win()
    +

    The Minimum X position of the Window Layer (Left edge of screen)

    See also
    move_win()
    @@ -827,7 +826,7 @@ Variables
    -

    The Minimum Y position of the Window Layer (Top edge of screen)

    See also
    move_win()
    +

    The Minimum Y position of the Window Layer (Top edge of screen)

    See also
    move_win()
    @@ -842,7 +841,7 @@ Variables
    -

    The Maximum X position of the Window Layer (Right edge of screen)

    See also
    move_win()
    +

    The Maximum X position of the Window Layer (Right edge of screen)

    See also
    move_win()
    @@ -857,7 +856,7 @@ Variables
    -

    The Maximum Y position of the Window Layer (Bottom edge of screen)

    See also
    move_win()
    +

    The Maximum Y position of the Window Layer (Bottom edge of screen)

    See also
    move_win()
    @@ -872,7 +871,7 @@ Variables
    -

    Hardware Model: Original GB or Super GB.

    See also
    _cpu
    +

    Hardware Model: Original GB or Super GB.

    See also
    _cpu
    @@ -887,7 +886,7 @@ Variables
    -

    Hardware Model: Pocket GB or Super GB 2.

    See also
    _cpu
    +

    Hardware Model: Pocket GB or Super GB 2.

    See also
    _cpu
    @@ -902,7 +901,7 @@ Variables
    -

    Hardware Model: Color GB.

    See also
    _cpu
    +

    Hardware Model: Color GB.

    See also
    _cpu
    @@ -977,7 +976,7 @@ Variables (   b) -     _current_bank = (b), *(unsigned char *)0x2000 = (b) +     _current_bank = (b), *(uint8_t *)0x2000 = (b)
    @@ -1001,7 +1000,7 @@ Variables (   b) -     *(unsigned char *)0x4000 = (b) +     *(uint8_t *)0x4000 = (b)
    @@ -1021,7 +1020,7 @@ Variables
    - +
    #define ENABLE_RAM_MBC1    *(unsigned char *)0x0000 = 0x0A#define ENABLE_RAM_MBC1    *(uint8_t *)0x0000 = 0x0A
    @@ -1036,7 +1035,7 @@ Variables
    - +
    #define DISABLE_RAM_MBC1    *(unsigned char *)0x0000 = 0x00#define DISABLE_RAM_MBC1    *(uint8_t *)0x0000 = 0x00
    @@ -1051,7 +1050,7 @@ Variables
    - +
    #define SWITCH_16_8_MODE_MBC1    *(unsigned char *)0x6000 = 0x00#define SWITCH_16_8_MODE_MBC1    *(uint8_t *)0x6000 = 0x00
    @@ -1065,7 +1064,7 @@ Variables
    - +
    #define SWITCH_4_32_MODE_MBC1    *(unsigned char *)0x6000 = 0x01#define SWITCH_4_32_MODE_MBC1    *(uint8_t *)0x6000 = 0x01
    @@ -1088,8 +1087,8 @@ Variables
    Value:
    -
    *(unsigned char *)0x3000 = 0, \
    -
    *(unsigned char *)0x2000 = (b)
    +
    *(uint8_t *)0x3000 = 0, \
    +
    *(uint8_t *)0x2000 = (b)

    Makes MBC5 switch to the active ROM bank; only 4M roms are supported,

    See also
    SWITCH_ROM_MBC5_8M()
    Parameters
    @@ -1116,8 +1115,8 @@ Variables
    -Value:
    *(unsigned char *)0x3000 = ((UINT16)(b) >> 8), \
    -
    *(unsigned char *)0x2000 = (b)
    +Value:
    *(uint8_t *)0x3000 = ((uint16_t)(b) >> 8), \
    +
    *(uint8_t *)0x2000 = (b)

    Makes MBC5 to switch the active ROM bank; active bank number is not tracked by _current_bank if you use this macro

    See also
    _current_bank
    Parameters
    @@ -1140,7 +1139,7 @@ Variables - +
    (   b)    *(unsigned char *)0x4000 = (b)    *(uint8_t *)0x4000 = (b)
    @@ -1160,7 +1159,7 @@ Variables
    - +
    #define ENABLE_RAM_MBC5    *(unsigned char *)0x0000 = 0x0A#define ENABLE_RAM_MBC5    *(uint8_t *)0x0000 = 0x0A
    @@ -1175,7 +1174,7 @@ Variables
    - +
    #define DISABLE_RAM_MBC5    *(unsigned char *)0x0000 = 0x00#define DISABLE_RAM_MBC5    *(uint8_t *)0x0000 = 0x00
    @@ -1355,7 +1354,7 @@ Variables
    - +
    #define ENABLE_OAM_DMA    _shadow_OAM_base = (UBYTE)((UWORD)&shadow_OAM >> 8)#define ENABLE_OAM_DMA    _shadow_OAM_base = (uint8_t)((uint16_t)&shadow_OAM >> 8)
    @@ -1394,8 +1393,8 @@ Variables - - + +
    xX Coordinate of the sprite on screen
    yY Coordinate of the sprite on screen
    tileSprite tile number (see set_sprite_tile)
    propOAM Property Flags (see set_sprite_prop)
    tileSprite tile number (see set_sprite_tile)
    propOAM Property Flags (see set_sprite_prop)
    @@ -1572,7 +1571,7 @@ Variables

    From pan/k0Pa: This interrupt occurs when the TIMA_REG register ($FF05) changes from $FF to $00.

    See also
    add_VBL
    -set_interrupts() with TIM_IFLAG
    +set_interrupts() with TIM_IFLAG
    @@ -1595,7 +1594,7 @@ Variables

    From pan/k0Pa: This interrupt occurs when a serial transfer has completed on the game link port.

    See also
    send_byte, receive_byte(), add_VBL()
    -set_interrupts() with SIO_IFLAG
    +set_interrupts() with SIO_IFLAG
    @@ -1616,7 +1615,7 @@ Variables

    Adds a joypad button change interrupt handler.

    From pan/k0Pa: This interrupt occurs on a transition of any of the keypad input lines from high to low. Due to the fact that keypad "bounce" is virtually always present, software should expect this interrupt to occur one or more times for every button press and one or more times for every button release.

    -
    See also
    joypad()
    +
    See also
    joypad()
    @@ -1665,8 +1664,8 @@ Variables
    - -

    ◆ mode()

    + +

    ◆ mode()

    @@ -1674,7 +1673,7 @@ Variables void mode ( - UINT8  + uint8_t  m) @@ -1686,14 +1685,14 @@ Variables
    - -

    ◆ get_mode()

    + +

    ◆ get_mode()

    - + @@ -1721,10 +1720,10 @@ Variables
    UINT8 get_mode uint8_t get_mode ( void  )
    -

    Serial Link: Send the byte in _io_out out through the serial port

    +

    Serial Link: Send the byte in _io_out out through the serial port

    Make sure to enable interrupts for the Serial Link before trying to transfer data.

    See also
    add_SIO(), remove_SIO()
    -set_interrupts() with SIO_IFLAG
    +set_interrupts() with SIO_IFLAG
    @@ -1743,15 +1742,15 @@ Variables
    -

    Serial Link: Receive a byte from the serial port into _io_in

    +

    Serial Link: Receive a byte from the serial port into _io_in

    Make sure to enable interrupts for the Serial Link before trying to transfer data.

    See also
    add_SIO(), remove_SIO()
    -set_interrupts() with SIO_IFLAG
    +set_interrupts() with SIO_IFLAG
    - -

    ◆ delay()

    + +

    ◆ delay()

    @@ -1759,7 +1758,7 @@ Variables void delay ( - UINT16  + uint16_t  d) @@ -1769,14 +1768,14 @@ Variables
    - -

    ◆ joypad()

    + +

    ◆ joypad()

    - + @@ -1790,16 +1789,16 @@ Variables - -

    ◆ waitpad()

    + +

    ◆ waitpad()

    UINT8 joypad uint8_t joypad ( void  )
    - + - + @@ -1813,7 +1812,7 @@ Variables

    Normally only used for checking one key, but it will support many, even J_LEFT at the same time as J_RIGHT. :)

    -

    Note: Checks in a loop that doesn't HALT at all, so the CPU will be maxed out until this call returns.

    See also
    joypad
    +

    Note: Checks in a loop that doesn't HALT at all, so the CPU will be maxed out until this call returns.

    See also
    joypad
    J_START, J_SELECT, J_A, J_B, J_UP, J_DOWN, J_LEFT, J_RIGHT
    @@ -1839,16 +1838,16 @@ Variables - -

    ◆ joypad_init()

    + +

    ◆ joypad_init()

    UINT8 waitpad uint8_t waitpad (UINT8 uint8_t  mask)
    - + - + @@ -1871,7 +1870,7 @@ Variables
    UINT8 joypad_init uint8_t joypad_init (UINT8 uint8_t  npads,
    -

    Only required for joypad_ex, not required for calls to regular joypad()

    Returns
    number of joypads avaliable
    +

    Only required for joypad_ex, not required for calls to regular joypad()

    Returns
    number of joypads avaliable
    See also
    joypad_ex(), joypads_t
    @@ -1893,11 +1892,11 @@ Variables

    Polls all avaliable joypads (for the GB and ones connected via SGB)

    Parameters
    - +
    joypadspointer to joypads_t structure to be filled with joypad statuses, must be previously initialized with joypad_init()
    joypadspointer to joypads_t structure to be filled with joypad statuses, must be previously initialized with joypad_init()
    -
    See also
    joypad_init(), joypads_t
    +
    See also
    joypad_init(), joypads_t
    @@ -1916,7 +1915,7 @@ Variables
    -

    Enables unmasked interrupts

    See also
    disable_interrupts, set_interrupts
    +

    Enables unmasked interrupts

    See also
    disable_interrupts, set_interrupts
    @@ -1936,12 +1935,12 @@ Variables

    Disables interrupts.

    -

    This function may be called as many times as you like; however the first call to enable_interrupts will re-enable them.

    See also
    enable_interrupts, set_interrupts
    +

    This function may be called as many times as you like; however the first call to enable_interrupts will re-enable them.

    See also
    enable_interrupts, set_interrupts
    - -

    ◆ set_interrupts()

    + +

    ◆ set_interrupts()

    @@ -1949,7 +1948,7 @@ Variables void set_interrupts ( - UINT8  + uint8_t  flags) @@ -2027,8 +2026,8 @@ Variables
    - -

    ◆ hiramcpy()

    + +

    ◆ hiramcpy()

    @@ -2036,7 +2035,7 @@ Variables void hiramcpy ( - UINT8  + uint8_t  dst, @@ -2048,7 +2047,7 @@ Variables - UINT8  + uint8_t  n  @@ -2069,8 +2068,8 @@ Variables
    - -

    ◆ set_vram_byte()

    + +

    ◆ set_vram_byte()

    @@ -2078,13 +2077,13 @@ Variables void set_vram_byte ( - UBYTE *  + uint8_taddr, - UINT8  + uint8_t  v  @@ -2105,16 +2104,16 @@ Variables
    - -

    ◆ get_vram_byte()

    + +

    ◆ get_vram_byte()

    - + - + @@ -2131,22 +2130,22 @@ Variables - -

    ◆ get_bkg_xy_addr()

    + +

    ◆ get_bkg_xy_addr()

    UINT8 get_vram_byte uint8_t get_vram_byte (UBYTEuint8_t addr)
    - + - + - + @@ -2160,8 +2159,8 @@ Variables - -

    ◆ set_bkg_data()

    + +

    ◆ set_bkg_data()

    @@ -2169,19 +2168,19 @@ Variables
    - + - + - + @@ -2209,8 +2208,8 @@ Variables - -

    ◆ set_bkg_1bit_data()

    + +

    ◆ set_bkg_1bit_data()

    @@ -2218,25 +2217,25 @@ Variables
    - + - + - + - + @@ -2256,17 +2255,17 @@ Variables
    UINT8* get_bkg_xy_addr uint8_t* get_bkg_xy_addr (UINT8 uint8_t  x,
    UINT8 uint8_t  y 
    void set_bkg_data (UINT8 uint8_t  first_tile,
    UINT8 uint8_t  nb_tiles,
    const unsigned char * const uint8_t data 
    void set_bkg_1bit_data (UINT8 uint8_t  first_tile,
    UINT8 uint8_t  nb_tiles,
    const unsigned char * const uint8_t data,
    UINT8 uint8_t  color 
    -

    Similar to set_bkg_data, except source data is 1 bit-per-pixel which gets expanded into 2 bits-per-pixel.

    +

    Similar to set_bkg_data, except source data is 1 bit-per-pixel which gets expanded into 2 bits-per-pixel.

    For a given bit that represent a pixel:

    -
    See also
    SHOW_BKG, HIDE_BKG, set_bkg_tiles
    +
    See also
    SHOW_BKG, HIDE_BKG, set_bkg_tiles
    - -

    ◆ get_bkg_data()

    + +

    ◆ get_bkg_data()

    @@ -2274,19 +2273,19 @@ Variables void get_bkg_data ( - UINT8  + uint8_t  first_tile, - UINT8  + uint8_t  nb_tiles, - unsigned char *  + uint8_tdata  @@ -2307,12 +2306,12 @@ Variables

    Copies nb_tiles tiles from VRAM starting at first_tile, Tile data is copied into data.

    Each Tile is 16 bytes, so the buffer pointed to by data should be at least nb_tiles x 16 bytes in size.

    -
    See also
    get_win_data
    +
    See also
    get_win_data
    - -

    ◆ set_bkg_tiles()

    + +

    ◆ set_bkg_tiles()

    @@ -2320,31 +2319,31 @@ Variables void set_bkg_tiles ( - UINT8  + uint8_t  x, - UINT8  + uint8_t  y, - UINT8  + uint8_t  w, - UINT8  + uint8_t  h, - const unsigned char *  + const uint8_ttiles  @@ -2366,7 +2365,7 @@ Variables

    Entries are copied from map at tiles to the Background Tile Map starting at x, y writing across for w tiles and down for h tiles.

    -

    Use set_bkg_submap() instead when:

    See also
    SHOW_BKG
    -set_bkg_data, set_bkg_submap
    +set_bkg_data, set_bkg_submap
    - -

    ◆ set_bkg_submap()

    + +

    ◆ set_bkg_submap()

    @@ -2411,37 +2410,37 @@ Variables void set_bkg_submap ( - UINT8  + uint8_t  x, - UINT8  + uint8_t  y, - UINT8  + uint8_t  w, - UINT8  + uint8_t  h, - const unsigned char *  + const uint8_tmap, - UINT8  + uint8_t  map_w  @@ -2464,19 +2463,19 @@ Variables

    Entries are copied from map to the Background Tile Map starting at x, y writing across for w tiles and down for h tiles, using map_w as the rowstride for the source tile map.

    -

    Use this instead of set_bkg_tiles when the source map is wider than 32 tiles or when writing a width that does not match the source map width.

    +

    Use this instead of set_bkg_tiles when the source map is wider than 32 tiles or when writing a width that does not match the source map width.

    One byte per source tile map entry.

    Writes that exceed coordinate 31 on the x or y axis will wrap around to the Left and Top edges.

    -

    See set_bkg_tiles for setting CGB attribute maps with VBK_REG.

    +

    See set_bkg_tiles for setting CGB attribute maps with VBK_REG.

    See also
    SHOW_BKG
    -set_bkg_data, set_bkg_tiles, set_win_submap
    +set_bkg_data, set_bkg_tiles, set_win_submap
    - -

    ◆ get_bkg_tiles()

    + +

    ◆ get_bkg_tiles()

    @@ -2484,31 +2483,31 @@ Variables void get_bkg_tiles ( - UINT8  + uint8_t  x, - UINT8  + uint8_t  y, - UINT8  + uint8_t  w, - UINT8  + uint8_t  h, - unsigned char *  + uint8_ttiles  @@ -2535,28 +2534,28 @@ Variables
    - -

    ◆ set_bkg_tile_xy()

    + +

    ◆ set_bkg_tile_xy()

    - + - + - + - + @@ -2574,26 +2573,26 @@ Variables
    UINT8* set_bkg_tile_xy uint8_t* set_bkg_tile_xy (UBYTE uint8_t  x,
    UBYTE uint8_t  y,
    UBYTE uint8_t  t 
    -
    Returns
    returns the address of tile, so you may use faster set_vram_byte() later
    +
    Returns
    returns the address of tile, so you may use faster set_vram_byte() later
    - -

    ◆ get_bkg_tile_xy()

    + +

    ◆ get_bkg_tile_xy()

    - + - + - + @@ -2614,8 +2613,8 @@ Variables - -

    ◆ move_bkg()

    + +

    ◆ move_bkg()

    @@ -2626,13 +2625,13 @@ Variables
    - + - + @@ -2661,8 +2660,8 @@ Variables - -

    ◆ scroll_bkg()

    + +

    ◆ scroll_bkg()

    @@ -2673,13 +2672,13 @@ Variables
    - + - + @@ -2704,26 +2703,26 @@ Variables
    UINT8 get_bkg_tile_xy uint8_t get_bkg_tile_xy (UBYTE uint8_t  x,
    UBYTE uint8_t  y 
    void move_bkg (UINT8 uint8_t  x,
    UINT8 uint8_t  y 
    void scroll_bkg (INT8 int8_t  x,
    INT8 int8_t  y 
    -
    See also
    move_bkg
    +
    See also
    move_bkg
    - -

    ◆ get_win_xy_addr()

    + +

    ◆ get_win_xy_addr()

    - + - + - + @@ -2737,8 +2736,8 @@ Variables - -

    ◆ set_win_data()

    + +

    ◆ set_win_data()

    @@ -2746,19 +2745,19 @@ Variables
    - + - + - + @@ -2777,17 +2776,17 @@ Variables
    UINT8* get_win_xy_addr uint8_t* get_win_xy_addr (UINT8 uint8_t  x,
    UINT8 uint8_t  y 
    void set_win_data (UINT8 uint8_t  first_tile,
    UINT8 uint8_t  nb_tiles,
    const unsigned char * const uint8_t data 
    -

    This is the same as set_bkg_data, since the Window Layer and Background Layer share the same Tile pattern data.

    -
    See also
    set_bkg_data
    +

    This is the same as set_bkg_data, since the Window Layer and Background Layer share the same Tile pattern data.

    +
    See also
    set_bkg_data
    -set_win_tiles
    +set_win_tiles
    SHOW_WIN, HIDE_WIN
    - -

    ◆ set_win_1bit_data()

    + +

    ◆ set_win_1bit_data()

    @@ -2795,19 +2794,19 @@ Variables void set_win_1bit_data ( - UINT8  + uint8_t  first_tile, - UINT8  + uint8_t  nb_tiles, - const unsigned char *  + const uint8_tdata  @@ -2826,13 +2825,13 @@ Variables -

    This is the same as set_bkg_1bit_data, since the Window Layer and Background Layer share the same Tile pattern data.

    -
    See also
    set_bkg_data, set_bkg_1bit_data, set_win_data
    +

    This is the same as set_bkg_1bit_data, since the Window Layer and Background Layer share the same Tile pattern data.

    +
    See also
    set_bkg_data, set_bkg_1bit_data, set_win_data
    - -

    ◆ get_win_data()

    + +

    ◆ get_win_data()

    @@ -2840,19 +2839,19 @@ Variables void get_win_data ( - UINT8  + uint8_t  first_tile, - UINT8  + uint8_t  nb_tiles, - unsigned char *  + uint8_tdata  @@ -2871,13 +2870,13 @@ Variables -

    This is the same as get_bkg_data, since the Window Layer and Background Layer share the same Tile pattern data.

    -
    See also
    get_bkg_data
    +

    This is the same as get_bkg_data, since the Window Layer and Background Layer share the same Tile pattern data.

    +
    See also
    get_bkg_data
    - -

    ◆ set_win_tiles()

    + +

    ◆ set_win_tiles()

    @@ -2885,31 +2884,31 @@ Variables void set_win_tiles ( - UINT8  + uint8_t  x, - UINT8  + uint8_t  y, - UINT8  + uint8_t  w, - UINT8  + uint8_t  h, - const unsigned char *  + const uint8_ttiles  @@ -2931,7 +2930,7 @@ Variables

    Entries are copied from map at tiles to the Window Tile Map starting at x, y writing across for w tiles and down for h tiles.

    -

    Use set_win_submap() instead when:

    -

    For more details about GBC Tile Attributes see set_bkg_tiles.

    -
    See also
    SHOW_WIN, HIDE_WIN, set_win_submap, set_bkg_tiles, set_bkg_data
    +

    For more details about GBC Tile Attributes see set_bkg_tiles.

    +
    See also
    SHOW_WIN, HIDE_WIN, set_win_submap, set_bkg_tiles, set_bkg_data
    - -

    ◆ set_win_submap()

    + +

    ◆ set_win_submap()

    @@ -2956,37 +2955,37 @@ Variables void set_win_submap ( - UINT8  + uint8_t  x, - UINT8  + uint8_t  y, - UINT8  + uint8_t  w, - UINT8  + uint8_t  h, - const unsigned char *  + const uint8_tmap, - UINT8  + uint8_t  map_w  @@ -3009,20 +3008,20 @@ Variables

    Entries are copied from map to the Window Tile Map starting at x, y writing across for w tiles and down for h tiles, using map_w as the rowstride for the source tile map.

    -

    Use this instead of set_win_tiles when the source map is wider than 32 tiles or when writing a width that does not match the source map width.

    +

    Use this instead of set_win_tiles when the source map is wider than 32 tiles or when writing a width that does not match the source map width.

    One byte per source tile map entry.

    Writes that exceed coordinate 31 on the x or y axis will wrap around to the Left and Top edges.

    GBC only: VBK_REG determines whether Tile Numbers or Tile Attributes get set.

    -

    See set_bkg_tiles for details about CGB attribute maps with VBK_REG.

    -
    See also
    SHOW_WIN, HIDE_WIN, set_win_tiles, set_bkg_submap, set_bkg_tiles, set_bkg_data
    +

    See set_bkg_tiles for details about CGB attribute maps with VBK_REG.

    +
    See also
    SHOW_WIN, HIDE_WIN, set_win_tiles, set_bkg_submap, set_bkg_tiles, set_bkg_data
    - -

    ◆ get_win_tiles()

    + +

    ◆ get_win_tiles()

    @@ -3030,31 +3029,31 @@ Variables void get_win_tiles ( - UINT8  + uint8_t  x, - UINT8  + uint8_t  y, - UINT8  + uint8_t  w, - UINT8  + uint8_t  h, - unsigned char *  + uint8_ttiles  @@ -3081,28 +3080,28 @@ Variables
    - -

    ◆ set_win_tile_xy()

    + +

    ◆ set_win_tile_xy()

    - + - + - + - + @@ -3120,26 +3119,26 @@ Variables
    UINT8* set_win_tile_xy uint8_t* set_win_tile_xy (UBYTE uint8_t  x,
    UBYTE uint8_t  y,
    UBYTE uint8_t  t 
    -
    Returns
    returns the address of tile, so you may use faster set_vram_byte() later
    +
    Returns
    returns the address of tile, so you may use faster set_vram_byte() later
    - -

    ◆ get_win_tile_xy()

    + +

    ◆ get_win_tile_xy()

    - + - + - + @@ -3160,8 +3159,8 @@ Variables - -

    ◆ move_win()

    + +

    ◆ move_win()

    @@ -3172,13 +3171,13 @@ Variables
    - + - + @@ -3207,8 +3206,8 @@ Variables - -

    ◆ scroll_win()

    + +

    ◆ scroll_win()

    @@ -3219,13 +3218,13 @@ Variables
    - + - + @@ -3250,12 +3249,12 @@ Variables
    UINT8 get_win_tile_xy uint8_t get_win_tile_xy (UBYTE uint8_t  x,
    UBYTE uint8_t  y 
    void move_win (UINT8 uint8_t  x,
    UINT8 uint8_t  y 
    void scroll_win (INT8 int8_t  x,
    INT8 int8_t  y 
    -
    See also
    move_win
    +
    See also
    move_win
    - -

    ◆ set_sprite_data()

    + +

    ◆ set_sprite_data()

    @@ -3263,19 +3262,19 @@ Variables void set_sprite_data ( - UINT8  + uint8_t  first_tile, - UINT8  + uint8_t  nb_tiles, - const unsigned char *  + const uint8_tdata  @@ -3303,8 +3302,8 @@ Variables
    - -

    ◆ set_sprite_1bit_data()

    + +

    ◆ set_sprite_1bit_data()

    @@ -3312,19 +3311,19 @@ Variables void set_sprite_1bit_data ( - UINT8  + uint8_t  first_tile, - UINT8  + uint8_t  nb_tiles, - const unsigned char *  + const uint8_tdata  @@ -3343,17 +3342,17 @@ Variables -

    Similar to set_sprite_data, except source data is 1 bit-per-pixel which gets expanded into 2 bits-per-pixel.

    +

    Similar to set_sprite_data, except source data is 1 bit-per-pixel which gets expanded into 2 bits-per-pixel.

    For a given bit that represent a pixel:

    -
    See also
    SHOW_SPRITES, HIDE_SPRITES, set_sprite_tile
    +
    See also
    SHOW_SPRITES, HIDE_SPRITES, set_sprite_tile
    - -

    ◆ get_sprite_data()

    + +

    ◆ get_sprite_data()

    @@ -3361,19 +3360,19 @@ Variables void get_sprite_data ( - UINT8  + uint8_t  first_tile, - UINT8  + uint8_t  nb_tiles, - unsigned char *  + uint8_tdata  @@ -3424,8 +3423,8 @@ Variables
    - -

    ◆ set_sprite_tile()

    + +

    ◆ set_sprite_tile()

    @@ -3436,13 +3435,13 @@ Variables void set_sprite_tile ( - UINT8  + uint8_t  nb, - UINT8  + uint8_t  tile  @@ -3464,7 +3463,7 @@ Variables tileSelects a tile (0 - 255) from memory at 8000h - 8FFFh
    In CGB Mode this could be either in VRAM Bank
    0 or 1, depending on Bit 3 of the OAM Attribute Flag
    - (see set_sprite_prop) + (see set_sprite_prop) @@ -3476,8 +3475,8 @@ Variables
    - -

    ◆ get_sprite_tile()

    + +

    ◆ get_sprite_tile()

    @@ -3486,9 +3485,9 @@ Variables - + - + @@ -3506,12 +3505,12 @@ Variables
    UINT8 get_sprite_tile uint8_t get_sprite_tile (UINT8 uint8_t  nb)
    -
    See also
    set_sprite_tile for more details
    +
    See also
    set_sprite_tile for more details
    - -

    ◆ set_sprite_prop()

    + +

    ◆ set_sprite_prop()

    @@ -3522,13 +3521,13 @@ Variables void set_sprite_prop ( - UINT8  + uint8_t  nb, - UINT8  + uint8_t  prop  @@ -3574,8 +3573,8 @@ Variables
    - -

    ◆ get_sprite_prop()

    + +

    ◆ get_sprite_prop()

    @@ -3584,9 +3583,9 @@ Variables - + - + @@ -3604,12 +3603,12 @@ Variables
    UINT8 get_sprite_prop uint8_t get_sprite_prop (UINT8 uint8_t  nb)
    -
    See also
    set_sprite_prop for property bitfield settings
    +
    See also
    set_sprite_prop for property bitfield settings
    - -

    ◆ move_sprite()

    + +

    ◆ move_sprite()

    @@ -3620,19 +3619,19 @@ Variables void move_sprite ( - UINT8  + uint8_t  nb, - UINT8  + uint8_t  x, - UINT8  + uint8_t  y  @@ -3662,8 +3661,8 @@ Variables
    - -

    ◆ scroll_sprite()

    + +

    ◆ scroll_sprite()

    @@ -3674,19 +3673,19 @@ Variables void scroll_sprite ( - UINT8  + uint8_t  nb, - INT8  + int8_t  x, - INT8  + int8_t  y  @@ -3712,12 +3711,12 @@ Variables -
    See also
    move_sprite for more details about the X and Y position
    +
    See also
    move_sprite for more details about the X and Y position
    - -

    ◆ hide_sprite()

    + +

    ◆ hide_sprite()

    @@ -3728,7 +3727,7 @@ Variables void hide_sprite ( - UINT8  + uint8_t  nb) @@ -3749,8 +3748,8 @@ Variables
    - -

    ◆ set_data()

    + +

    ◆ set_data()

    @@ -3758,19 +3757,19 @@ Variables void set_data ( - unsigned char *  + uint8_tvram_addr, - const unsigned char *  + const uint8_tdata, - UINT16  + uint16_t  len  @@ -3797,8 +3796,8 @@ Variables
    - -

    ◆ get_data()

    + +

    ◆ get_data()

    @@ -3806,19 +3805,19 @@ Variables void get_data ( - unsigned char *  + uint8_tdata, - unsigned char *  + uint8_tvram_addr, - UINT16  + uint16_t  len  @@ -3845,8 +3844,8 @@ Variables
    - -

    ◆ set_tiles()

    + +

    ◆ set_tiles()

    @@ -3854,37 +3853,37 @@ Variables void set_tiles ( - UINT8  + uint8_t  x, - UINT8  + uint8_t  y, - UINT8  + uint8_t  w, - UINT8  + uint8_t  h, - unsigned char *  + uint8_tvram_addr, - const unsigned char *  + const uint8_ttiles  @@ -3916,8 +3915,8 @@ Variables
    - -

    ◆ set_tile_data()

    + +

    ◆ set_tile_data()

    @@ -3925,25 +3924,25 @@ Variables void set_tile_data ( - UINT8  + uint8_t  first_tile, - UINT8  + uint8_t  nb_tiles, - const unsigned char *  + const uint8_tdata, - UINT8  + uint8_t  base  @@ -3966,8 +3965,8 @@ Variables
    - -

    ◆ get_tiles()

    + +

    ◆ get_tiles()

    @@ -3975,37 +3974,37 @@ Variables void get_tiles ( - UINT8  + uint8_t  x, - UINT8  + uint8_t  y, - UINT8  + uint8_t  w, - UINT8  + uint8_t  h, - unsigned char *  + uint8_tvram_addr, - unsigned char *  + uint8_ttiles  @@ -4034,8 +4033,8 @@ Variables
    - -

    ◆ init_win()

    + +

    ◆ init_win()

    @@ -4043,7 +4042,7 @@ Variables void init_win ( - UINT8  + uint8_t  c) @@ -4059,8 +4058,8 @@ Variables
    - -

    ◆ init_bkg()

    + +

    ◆ init_bkg()

    @@ -4068,7 +4067,7 @@ Variables void init_bkg ( - UINT8  + uint8_t  c) @@ -4084,8 +4083,8 @@ Variables
    - -

    ◆ vmemset()

    + +

    ◆ vmemset()

    @@ -4099,7 +4098,7 @@ Variables - UINT8  + uint8_t  c, @@ -4127,8 +4126,8 @@ Variables
    - -

    ◆ fill_bkg_rect()

    + +

    ◆ fill_bkg_rect()

    @@ -4136,31 +4135,31 @@ Variables void fill_bkg_rect ( - UINT8  + uint8_t  x, - UINT8  + uint8_t  y, - UINT8  + uint8_t  w, - UINT8  + uint8_t  h, - UINT8  + uint8_t  tile  @@ -4184,8 +4183,8 @@ Variables
    - -

    ◆ fill_win_rect()

    + +

    ◆ fill_win_rect()

    @@ -4193,31 +4192,31 @@ Variables void fill_win_rect ( - UINT8  + uint8_t  x, - UINT8  + uint8_t  y, - UINT8  + uint8_t  w, - UINT8  + uint8_t  h, - UINT8  + uint8_t  tile  @@ -4256,8 +4255,8 @@ Variables
    - -

    ◆ _cpu

    + +

    ◆ _cpu

    @@ -4266,7 +4265,7 @@ Variables - +
    UINT8 _cpuuint8_t _cpu
    @@ -4280,8 +4279,8 @@ Variables
    - -

    ◆ sys_time

    + +

    ◆ sys_time

    @@ -4290,7 +4289,7 @@ Variables - +
    volatile UINT16 sys_timevolatile uint16_t sys_time
    @@ -4305,8 +4304,8 @@ Variables
    - -

    ◆ _io_status

    + +

    ◆ _io_status

    @@ -4315,7 +4314,7 @@ Variables - +
    volatile UINT8 _io_statusvolatile uint8_t _io_status
    @@ -4328,8 +4327,8 @@ Variables
    - -

    ◆ _io_in

    + +

    ◆ _io_in

    @@ -4338,7 +4337,7 @@ Variables - +
    volatile UINT8 _io_involatile uint8_t _io_in
    @@ -4351,8 +4350,8 @@ Variables
    - -

    ◆ _io_out

    + +

    ◆ _io_out

    @@ -4361,7 +4360,7 @@ Variables - +
    volatile UINT8 _io_outvolatile uint8_t _io_out
    @@ -4499,11 +4498,12 @@ Variables
    -
    _current_bank
    __REG _current_bank
    Definition: gb.h:351
    -
    UINT16
    unsigned int UINT16
    Definition: types.h:28
    +
    uint8_t
    unsigned char uint8_t
    Definition: stdint.h:51
    +
    _current_bank
    __REG _current_bank
    Definition: gb.h:350
    +
    uint16_t
    unsigned short int uint16_t
    Definition: stdint.h:52
    nowait_int_handler
    void nowait_int_handler(void) NONBANKED
    add_SIO
    void add_SIO(int_handler h) NONBANKED
    -
    b
    void b
    Definition: gb.h:458
    +
    b
    void b
    Definition: gb.h:457
    -
    UINT8
    unsigned char UINT8
    Definition: types.h:22
    +
    get_sprite_prop
    uint8_t get_sprite_prop(uint8_t nb)
    Definition: gb.h:1229
    reset
    void reset(void) NONBANKED
    -
    get_bkg_tiles
    void get_bkg_tiles(UINT8 x, UINT8 y, UINT8 w, UINT8 h, unsigned char *tiles) NONBANKED __preserves_regs(b
    +
    _io_status
    volatile uint8_t _io_status
    display_off
    void display_off(void) NONBANKED __preserves_regs(b
    -
    OAM_item_t::tile
    UINT8 tile
    Definition: gb.h:1129
    -
    hide_sprite
    void hide_sprite(UINT8 nb)
    Definition: gb.h:1273
    +
    uint8_t
    unsigned char uint8_t
    Definition: stdint.h:51
    +
    joypad
    uint8_t joypad(void) NONBANKED __preserves_regs(b
    +
    OAM_item_t::x
    uint8_t x
    Definition: gb.h:1127
    +
    move_bkg
    void move_bkg(uint8_t x, uint8_t y)
    Definition: gb.h:845
    +
    _io_in
    volatile uint8_t _io_in
    +
    int8_t
    signed char int8_t
    Definition: stdint.h:43
    +
    set_bkg_data
    void set_bkg_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data) NONBANKED __preserves_regs(b
    remove_TIM
    void remove_TIM(int_handler h) NONBANKED
    -
    OAM_item_t::y
    UINT8 y
    Definition: gb.h:1128
    -
    joypad
    UINT8 joypad(void) NONBANKED __preserves_regs(b
    shadow_OAM
    volatile struct OAM_item_t shadow_OAM[]
    +
    joypads_t::npads
    uint8_t npads
    Definition: gb.h:465
    OAM_item_t
    struct OAM_item_t OAM_item_t
    -
    _current_bank
    __REG _current_bank
    Definition: gb.h:351
    -
    UINT16
    unsigned int UINT16
    Definition: types.h:28
    -
    joypads_t
    Definition: gb.h:465
    -
    set_data
    void set_data(unsigned char *vram_addr, const unsigned char *data, UINT16 len) NONBANKED __preserves_regs(b
    -
    get_vram_byte
    UINT8 get_vram_byte(UBYTE *addr) __preserves_regs(b
    +
    _current_bank
    __REG _current_bank
    Definition: gb.h:350
    +
    get_mode
    uint8_t get_mode(void) NONBANKED __preserves_regs(b
    +
    joypads_t
    Definition: gb.h:464
    +
    set_sprite_prop
    void set_sprite_prop(uint8_t nb, uint8_t prop)
    Definition: gb.h:1219
    +
    mode
    void mode(uint8_t m) NONBANKED
    WY_REG
    __REG WY_REG
    Definition: hardware.h:53
    -
    scroll_win
    void scroll_win(INT8 x, INT8 y)
    Definition: gb.h:1058
    -
    set_sprite_1bit_data
    void set_sprite_1bit_data(UINT8 first_tile, UINT8 nb_tiles, const unsigned char *data) NONBANKED __preserves_regs(b
    -
    set_vram_byte
    void set_vram_byte(UBYTE *addr, UINT8 v) __preserves_regs(b
    -
    fill_bkg_rect
    void fill_bkg_rect(UINT8 x, UINT8 y, UINT8 w, UINT8 h, UINT8 tile) NONBANKED __preserves_regs(b
    -
    set_win_tiles
    void set_win_tiles(UINT8 x, UINT8 y, UINT8 w, UINT8 h, const unsigned char *tiles) NONBANKED __preserves_regs(b
    -
    fill_win_rect
    void fill_win_rect(UINT8 x, UINT8 y, UINT8 w, UINT8 h, UINT8 tile) NONBANKED __preserves_regs(b
    -
    set_win_submap
    void set_win_submap(UINT8 x, UINT8 y, UINT8 w, UINT8 h, const unsigned char *map, UINT8 map_w)
    +
    _io_out
    volatile uint8_t _io_out
    wait_int_handler
    void wait_int_handler(void) NONBANKED
    disable_interrupts
    void disable_interrupts(void) NONBANKED __preserves_regs(a
    -
    set_bkg_submap
    void set_bkg_submap(UINT8 x, UINT8 y, UINT8 w, UINT8 h, const unsigned char *map, UINT8 map_w)
    -
    _shadow_OAM_base
    __REG _shadow_OAM_base
    Definition: gb.h:1140
    -
    get_win_tiles
    void get_win_tiles(UINT8 x, UINT8 y, UINT8 w, UINT8 h, unsigned char *tiles) NONBANKED __preserves_regs(b
    +
    _shadow_OAM_base
    __REG _shadow_OAM_base
    Definition: gb.h:1139
    +
    set_win_submap
    void set_win_submap(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *map, uint8_t map_w)
    +
    set_bkg_submap
    void set_bkg_submap(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *map, uint8_t map_w)
    +
    set_win_1bit_data
    void set_win_1bit_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data) NONBANKED __preserves_regs(b
    remove_LCD
    void remove_LCD(int_handler h) NONBANKED
    remove_JOY
    void remove_JOY(int_handler h) NONBANKED
    +
    set_sprite_data
    void set_sprite_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data) NONBANKED __preserves_regs(b
    waitpadup
    void waitpadup(void) NONBANKED __preserves_regs(a
    -
    set_interrupts
    void set_interrupts(UINT8 flags) NONBANKED __preserves_regs(b
    -
    _io_out
    volatile UINT8 _io_out
    -
    mode
    void mode(UINT8 m) NONBANKED
    -
    joypads_t::joy3
    UINT8 joy3
    Definition: gb.h:469
    -
    set_win_1bit_data
    void set_win_1bit_data(UINT8 first_tile, UINT8 nb_tiles, const unsigned char *data) NONBANKED __preserves_regs(b
    +
    set_tiles
    void set_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t *vram_addr, const uint8_t *tiles) NONBANKED __preserves_regs(b
    +
    get_win_tiles
    void get_win_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t *tiles) NONBANKED __preserves_regs(b
    +
    set_data
    void set_data(uint8_t *vram_addr, const uint8_t *data, uint16_t len) NONBANKED __preserves_regs(b
    +
    uint16_t
    unsigned short int uint16_t
    Definition: stdint.h:52
    add_TIM
    void add_TIM(int_handler h) NONBANKED
    -
    get_data
    void get_data(unsigned char *data, unsigned char *vram_addr, UINT16 len) NONBANKED __preserves_regs(b
    -
    move_sprite
    void move_sprite(UINT8 nb, UINT8 x, UINT8 y)
    Definition: gb.h:1247
    __REG
    #define __REG
    Definition: hardware.h:12
    nowait_int_handler
    void nowait_int_handler(void) NONBANKED
    +
    fill_bkg_rect
    void fill_bkg_rect(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t tile) NONBANKED __preserves_regs(b
    +
    color
    void color(uint8_t forecolor, uint8_t backcolor, uint8_t mode)
    joypad_ex
    void joypad_ex(joypads_t *joypads) __preserves_regs(b
    add_SIO
    void add_SIO(int_handler h) NONBANKED
    -
    l
    UINT8 l
    Definition: gb.h:437
    -
    waitpad
    UINT8 waitpad(UINT8 mask) NONBANKED __preserves_regs(b
    -
    set_sprite_tile
    void set_sprite_tile(UINT8 nb, UINT8 tile)
    Definition: gb.h:1174
    +
    set_win_data
    void set_win_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data) NONBANKED __preserves_regs(b
    +
    l
    uint8_t l
    Definition: gb.h:436
    +
    set_tile_data
    void set_tile_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data, uint8_t base) NONBANKED __preserves_regs(b
    +
    set_interrupts
    void set_interrupts(uint8_t flags) NONBANKED __preserves_regs(b
    +
    sys_time
    volatile uint16_t sys_time
    remove_SIO
    void remove_SIO(int_handler h) NONBANKED
    -
    color
    void color(UINT8 forecolor, UINT8 backcolor, UINT8 mode)
    send_byte
    void send_byte(void)
    -
    c
    UINT8 c
    Definition: gb.h:278
    -
    get_tiles
    void get_tiles(UINT8 x, UINT8 y, UINT8 w, UINT8 h, unsigned char *vram_addr, unsigned char *tiles) NONBANKED __preserves_regs(b
    -
    UBYTE
    UINT8 UBYTE
    Definition: types.h:46
    +
    c
    uint8_t c
    Definition: gb.h:277
    +
    get_bkg_tile_xy
    uint8_t get_bkg_tile_xy(uint8_t x, uint8_t y) __preserves_regs(b
    +
    set_bkg_tile_xy
    uint8_t * set_bkg_tile_xy(uint8_t x, uint8_t y, uint8_t t) __preserves_regs(b
    +
    set_win_tile_xy
    uint8_t * set_win_tile_xy(uint8_t x, uint8_t y, uint8_t t) __preserves_regs(b
    enable_interrupts
    void enable_interrupts(void) NONBANKED __preserves_regs(a
    -
    cgb.h
    -
    get_bkg_tile_xy
    UINT8 get_bkg_tile_xy(UBYTE x, UBYTE y) __preserves_regs(b
    -
    e
    void e
    Definition: gb.h:458
    -
    get_win_data
    void get_win_data(UINT8 first_tile, UINT8 nb_tiles, unsigned char *data) NONBANKED __preserves_regs(b
    -
    set_bkg_data
    void set_bkg_data(UINT8 first_tile, UINT8 nb_tiles, const unsigned char *data) NONBANKED __preserves_regs(b
    -
    get_sprite_data
    void get_sprite_data(UINT8 first_tile, UINT8 nb_tiles, unsigned char *data) NONBANKED __preserves_regs(b
    +
    e
    void e
    Definition: gb.h:457
    SCX_REG
    __REG SCX_REG
    Definition: hardware.h:46
    +
    get_data
    void get_data(uint8_t *data, uint8_t *vram_addr, uint16_t len) NONBANKED __preserves_regs(b
    remove_VBL
    void remove_VBL(int_handler h) NONBANKED
    -
    set_win_data
    void set_win_data(UINT8 first_tile, UINT8 nb_tiles, const unsigned char *data) NONBANKED __preserves_regs(b
    -
    move_win
    void move_win(UINT8 x, UINT8 y)
    Definition: gb.h:1044
    -
    SET_SHADOW_OAM_ADDRESS
    void SET_SHADOW_OAM_ADDRESS(void *address)
    Definition: gb.h:1154
    -
    sgb.h
    -
    get_sprite_tile
    UINT8 get_sprite_tile(UINT8 nb)
    Definition: gb.h:1185
    -
    int_handler
    void(* int_handler)(void) NONBANKED
    Definition: gb.h:120
    -
    set_tile_data
    void set_tile_data(UINT8 first_tile, UINT8 nb_tiles, const unsigned char *data, UINT8 base) NONBANKED __preserves_regs(b
    -
    _io_in
    volatile UINT8 _io_in
    -
    OAM_item_t::prop
    UINT8 prop
    Definition: gb.h:1130
    -
    joypads_t::npads
    UINT8 npads
    Definition: gb.h:466
    +
    init_bkg
    void init_bkg(uint8_t c) NONBANKED __preserves_regs(b
    +
    joypad_init
    uint8_t joypad_init(uint8_t npads, joypads_t *joypads)
    +
    SET_SHADOW_OAM_ADDRESS
    void SET_SHADOW_OAM_ADDRESS(void *address)
    Definition: gb.h:1153
    +
    get_win_tile_xy
    uint8_t get_win_tile_xy(uint8_t x, uint8_t y) __preserves_regs(b
    +
    stdint.h
    +
    get_sprite_data
    void get_sprite_data(uint8_t first_tile, uint8_t nb_tiles, uint8_t *data) NONBANKED __preserves_regs(b
    +
    int_handler
    void(* int_handler)(void) NONBANKED
    Definition: gb.h:119
    +
    _cpu
    uint8_t _cpu
    +
    set_sprite_1bit_data
    void set_sprite_1bit_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data) NONBANKED __preserves_regs(b
    +
    set_bkg_tiles
    void set_bkg_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *tiles) NONBANKED __preserves_regs(b
    +
    set_bkg_1bit_data
    void set_bkg_1bit_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data, uint8_t color) NONBANKED __preserves_regs(b
    +
    move_sprite
    void move_sprite(uint8_t nb, uint8_t x, uint8_t y)
    Definition: gb.h:1246
    receive_byte
    void receive_byte(void)
    -
    b
    void b
    Definition: gb.h:458
    -
    h
    UINT8 h
    Definition: gb.h:437
    -
    set_bkg_tiles
    void set_bkg_tiles(UINT8 x, UINT8 y, UINT8 w, UINT8 h, const unsigned char *tiles) NONBANKED __preserves_regs(b
    +
    b
    void b
    Definition: gb.h:457
    +
    scroll_sprite
    void scroll_sprite(uint8_t nb, int8_t x, int8_t y)
    Definition: gb.h:1262
    +
    h
    uint8_t h
    Definition: gb.h:436
    +
    set_vram_byte
    void set_vram_byte(uint8_t *addr, uint8_t v) __preserves_regs(b
    +
    vmemset
    void vmemset(void *s, uint8_t c, size_t n) NONBANKED __preserves_regs(b
    hardware.h
    -
    d
    void d
    Definition: gb.h:458
    -
    _cpu
    UINT8 _cpu
    -
    _io_status
    volatile UINT8 _io_status
    -
    get_mode
    UINT8 get_mode(void) NONBANKED __preserves_regs(b
    -
    vmemset
    void vmemset(void *s, UINT8 c, size_t n) NONBANKED __preserves_regs(b
    +
    get_bkg_tiles
    void get_bkg_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t *tiles) NONBANKED __preserves_regs(b
    +
    d
    void d
    Definition: gb.h:457
    +
    scroll_win
    void scroll_win(int8_t x, int8_t y)
    Definition: gb.h:1057
    +
    get_tiles
    void get_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t *vram_addr, uint8_t *tiles) NONBANKED __preserves_regs(b
    NONBANKED
    #define NONBANKED
    Definition: types.h:12
    -
    init_bkg
    void init_bkg(UINT8 c) NONBANKED __preserves_regs(b
    +
    waitpad
    uint8_t waitpad(uint8_t mask) NONBANKED __preserves_regs(b
    add_VBL
    void add_VBL(int_handler h) NONBANKED
    -
    set_bkg_tile_xy
    UINT8 * set_bkg_tile_xy(UBYTE x, UBYTE y, UBYTE t) __preserves_regs(b
    -
    scroll_sprite
    void scroll_sprite(UINT8 nb, INT8 x, INT8 y)
    Definition: gb.h:1263
    -
    set_win_tile_xy
    UINT8 * set_win_tile_xy(UBYTE x, UBYTE y, UBYTE t) __preserves_regs(b
    -
    get_bkg_data
    void get_bkg_data(UINT8 first_tile, UINT8 nb_tiles, unsigned char *data) NONBANKED __preserves_regs(b
    -
    set_sprite_prop
    void set_sprite_prop(UINT8 nb, UINT8 prop)
    Definition: gb.h:1220
    -
    init_win
    void init_win(UINT8 c) NONBANKED __preserves_regs(b
    -
    scroll_bkg
    void scroll_bkg(INT8 x, INT8 y)
    Definition: gb.h:860
    +
    set_sprite_tile
    void set_sprite_tile(uint8_t nb, uint8_t tile)
    Definition: gb.h:1173
    +
    hiramcpy
    void hiramcpy(uint8_t dst, const void *src, uint8_t n) NONBANKED __preserves_regs(b
    +
    OAM_item_t::tile
    uint8_t tile
    Definition: gb.h:1128
    +
    scroll_bkg
    void scroll_bkg(int8_t x, int8_t y)
    Definition: gb.h:859
    add_JOY
    void add_JOY(int_handler h) NONBANKED
    -
    UWORD
    UINT16 UWORD
    Definition: types.h:50
    -
    OAM_item_t::x
    UINT8 x
    Definition: gb.h:1128
    -
    set_bkg_1bit_data
    void set_bkg_1bit_data(UINT8 first_tile, UINT8 nb_tiles, const unsigned char *data, UINT8 color) NONBANKED __preserves_regs(b
    -
    delay
    void delay(UINT16 d) NONBANKED
    -
    hiramcpy
    void hiramcpy(UINT8 dst, const void *src, UINT8 n) NONBANKED __preserves_regs(b
    +
    get_sprite_tile
    uint8_t get_sprite_tile(uint8_t nb)
    Definition: gb.h:1184
    wait_vbl_done
    void wait_vbl_done(void) NONBANKED __preserves_regs(b
    -
    set_tiles
    void set_tiles(UINT8 x, UINT8 y, UINT8 w, UINT8 h, unsigned char *vram_addr, const unsigned char *tiles) NONBANKED __preserves_regs(b
    -
    set_sprite_data
    void set_sprite_data(UINT8 first_tile, UINT8 nb_tiles, const unsigned char *data) NONBANKED __preserves_regs(b
    +
    set_win_tiles
    void set_win_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *tiles) NONBANKED __preserves_regs(b
    +
    delay
    void delay(uint16_t d) NONBANKED
    +
    get_vram_byte
    uint8_t get_vram_byte(uint8_t *addr) __preserves_regs(b
    WX_REG
    __REG WX_REG
    Definition: hardware.h:54
    -
    get_sprite_prop
    UINT8 get_sprite_prop(UINT8 nb)
    Definition: gb.h:1230
    -
    INT8
    signed char INT8
    Definition: types.h:19
    -
    OAM_item_t
    Definition: gb.h:1127
    -
    get_bkg_xy_addr
    UINT8 * get_bkg_xy_addr(UINT8 x, UINT8 y) __preserves_regs(b
    -
    get_win_tile_xy
    UINT8 get_win_tile_xy(UBYTE x, UBYTE y) __preserves_regs(b
    -
    get_win_xy_addr
    UINT8 * get_win_xy_addr(UINT8 x, UINT8 y) __preserves_regs(b
    -
    sys_time
    volatile UINT16 sys_time
    -
    move_bkg
    void move_bkg(UINT8 x, UINT8 y)
    Definition: gb.h:846
    -
    joypad_init
    UINT8 joypad_init(UINT8 npads, joypads_t *joypads)
    +
    fill_win_rect
    void fill_win_rect(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t tile) NONBANKED __preserves_regs(b
    +
    get_bkg_xy_addr
    uint8_t * get_bkg_xy_addr(uint8_t x, uint8_t y) __preserves_regs(b
    +
    get_bkg_data
    void get_bkg_data(uint8_t first_tile, uint8_t nb_tiles, uint8_t *data) NONBANKED __preserves_regs(b
    +
    OAM_item_t
    Definition: gb.h:1126
    +
    OAM_item_t::y
    uint8_t y
    Definition: gb.h:1127
    +
    get_win_xy_addr
    uint8_t * get_win_xy_addr(uint8_t x, uint8_t y) __preserves_regs(b
    +
    init_win
    void init_win(uint8_t c) NONBANKED __preserves_regs(b
    +
    move_win
    void move_win(uint8_t x, uint8_t y)
    Definition: gb.h:1043
    +
    OAM_item_t::prop
    uint8_t prop
    Definition: gb.h:1129
    +
    hide_sprite
    void hide_sprite(uint8_t nb)
    Definition: gb.h:1272
    +
    get_win_data
    void get_win_data(uint8_t first_tile, uint8_t nb_tiles, uint8_t *data) NONBANKED __preserves_regs(b
    +
    joypads_t::joy3
    uint8_t joy3
    Definition: gb.h:468
    add_LCD
    void add_LCD(int_handler h) NONBANKED
    SCY_REG
    __REG SCY_REG
    Definition: hardware.h:45
    diff --git a/docs/api/gbdecompress_8h.html b/docs/api/gbdecompress_8h.html index 237294af..2cc31ba2 100644 --- a/docs/api/gbdecompress_8h.html +++ b/docs/api/gbdecompress_8h.html @@ -92,19 +92,20 @@ $(document).ready(function(){initNavTree('gbdecompress_8h.html',''); initResizab
    gbdecompress.h File Reference
    - +
    #include <stdint.h>
    +

    Go to the source code of this file.

    - - - - - - - - + + + + + + + +

    Functions

    void gb_decompress (const unsigned char *sour, unsigned char *dest) __preserves_regs(b
     
    void gb_decompress_bkg_data (UINT8 first_tile, const unsigned char *sour) __preserves_regs(b
     
    void gb_decompress_win_data (UINT8 first_tile, const unsigned char *sour) __preserves_regs(b
     
    void gb_decompress_sprite_data (UINT8 first_tile, const unsigned char *sour) __preserves_regs(b
     
    void gb_decompress (const uint8_t *sour, uint8_t *dest) __preserves_regs(b
     
    void gb_decompress_bkg_data (uint8_t first_tile, const uint8_t *sour) __preserves_regs(b
     
    void gb_decompress_win_data (uint8_t first_tile, const uint8_t *sour) __preserves_regs(b
     
    void gb_decompress_sprite_data (uint8_t first_tile, const uint8_t *sour) __preserves_regs(b
     
    @@ -114,8 +115,8 @@ Variables

    Detailed Description

    GB-Compress decompressor Compatible with the compression used in GBTD

    Function Documentation

    - -

    ◆ gb_decompress()

    + +

    ◆ gb_decompress()

    @@ -123,13 +124,13 @@ Variables
    - + - + @@ -147,12 +148,12 @@ Variables

    Variables

    void gb_decompress (const unsigned char * const uint8_t sour,
    unsigned char * uint8_t dest 
    -
    See also
    gb_decompress_bkg_data, gb_decompress_win_data, gb_decompress_sprite_data
    +
    See also
    gb_decompress_bkg_data, gb_decompress_win_data, gb_decompress_sprite_data
    - -

    ◆ gb_decompress_bkg_data()

    + +

    ◆ gb_decompress_bkg_data()

    @@ -160,13 +161,13 @@ Variables void gb_decompress_bkg_data ( - UINT8  + uint8_t  first_tile, - const unsigned char *  + const uint8_tsour  @@ -185,12 +186,12 @@ Variables

    Note: This function avoids writes during modes 2 & 3

    -
    See also
    gb_decompress_bkg, gb_decompress_win_data, gb_decompress_sprite_data
    +
    See also
    gb_decompress_bkg, gb_decompress_win_data, gb_decompress_sprite_data
    - -

    ◆ gb_decompress_win_data()

    + +

    ◆ gb_decompress_win_data()

    @@ -198,13 +199,13 @@ Variables void gb_decompress_win_data ( - UINT8  + uint8_t  first_tile, - const unsigned char *  + const uint8_tsour  @@ -222,14 +223,14 @@ Variables -

    This is the same as gb_decompress_bkg_data, since the Window Layer and Background Layer share the same Tile pattern data.

    +

    This is the same as gb_decompress_bkg_data, since the Window Layer and Background Layer share the same Tile pattern data.

    Note: This function avoids writes during modes 2 & 3

    -
    See also
    gb_decompress, gb_decompress_bkg_data, gb_decompress_sprite_data
    +
    See also
    gb_decompress, gb_decompress_bkg_data, gb_decompress_sprite_data
    - -

    ◆ gb_decompress_sprite_data()

    + +

    ◆ gb_decompress_sprite_data()

    @@ -237,13 +238,13 @@ Variables void gb_decompress_sprite_data ( - UINT8  + uint8_t  first_tile, - const unsigned char *  + const uint8_tsour  @@ -262,7 +263,7 @@ Variables

    Note: This function avoids writes during modes 2 & 3

    -
    See also
    gb_decompress, gb_decompress_bkg_data, gb_decompress_win_data
    +
    See also
    gb_decompress, gb_decompress_bkg_data, gb_decompress_win_data
    diff --git a/docs/api/gbdecompress_8h.js b/docs/api/gbdecompress_8h.js index 8b5d0fd2..4c57da75 100644 --- a/docs/api/gbdecompress_8h.js +++ b/docs/api/gbdecompress_8h.js @@ -1,8 +1,8 @@ var gbdecompress_8h = [ - [ "gb_decompress", "gbdecompress_8h.html#a197fa96ce7ac20d44d0c1a40e38283db", null ], - [ "gb_decompress_bkg_data", "gbdecompress_8h.html#ac3194ad258cca32cc3eb813d24ae1b0c", null ], - [ "gb_decompress_win_data", "gbdecompress_8h.html#a487d505119f770cdb138cb300174a719", null ], - [ "gb_decompress_sprite_data", "gbdecompress_8h.html#a19f6e310adcb6ab4826fa89c305b6865", null ], + [ "gb_decompress", "gbdecompress_8h.html#a6aecbb8f7d7c066edb18940363c7e9a5", null ], + [ "gb_decompress_bkg_data", "gbdecompress_8h.html#a944970c534bcaeeb3d14ebbaf154e90c", null ], + [ "gb_decompress_win_data", "gbdecompress_8h.html#a77d1475518a6b8e082515c02867372f7", null ], + [ "gb_decompress_sprite_data", "gbdecompress_8h.html#a1bf78b24168404ddd77fa2d95a5a9ee4", null ], [ "c", "gbdecompress_8h.html#a0b3366755f3276b0243c1e0497471b7a", null ] ]; \ No newline at end of file diff --git a/docs/api/gbdecompress_8h_source.html b/docs/api/gbdecompress_8h_source.html index e1a34937..d532089f 100644 --- a/docs/api/gbdecompress_8h_source.html +++ b/docs/api/gbdecompress_8h_source.html @@ -93,27 +93,30 @@ $(document).ready(function(){initNavTree('gbdecompress_8h_source.html',''); init
    7 #ifndef __GBDECOMPRESS_H_INCLUDE
    8 #define __GBDECOMPRESS_H_INCLUDE
    9 
    -
    17 void gb_decompress(const unsigned char * sour, unsigned char * dest) __preserves_regs(b, c);
    -
    18 
    -
    19 
    -
    29 void gb_decompress_bkg_data(UINT8 first_tile, const unsigned char * sour) __preserves_regs(b, c);
    -
    30 
    -
    31 
    -
    44 void gb_decompress_win_data(UINT8 first_tile, const unsigned char * sour) __preserves_regs(b, c);
    -
    45 
    -
    46 
    -
    56 void gb_decompress_sprite_data(UINT8 first_tile, const unsigned char * sour) __preserves_regs(b, c);
    -
    57 
    -
    58 #endif
    +
    10 #include <stdint.h>
    +
    11 
    +
    19 void gb_decompress(const uint8_t * sour, uint8_t * dest) __preserves_regs(b, c);
    +
    20 
    +
    21 
    +
    31 void gb_decompress_bkg_data(uint8_t first_tile, const uint8_t * sour) __preserves_regs(b, c);
    +
    32 
    +
    33 
    +
    46 void gb_decompress_win_data(uint8_t first_tile, const uint8_t * sour) __preserves_regs(b, c);
    +
    47 
    +
    48 
    +
    58 void gb_decompress_sprite_data(uint8_t first_tile, const uint8_t * sour) __preserves_regs(b, c);
    +
    59 
    +
    60 #endif
    -
    UINT8
    unsigned char UINT8
    Definition: types.h:22
    -
    gb_decompress_win_data
    void gb_decompress_win_data(UINT8 first_tile, const unsigned char *sour) __preserves_regs(b
    -
    gb_decompress
    void gb_decompress(const unsigned char *sour, unsigned char *dest) __preserves_regs(b
    -
    gb_decompress_bkg_data
    void gb_decompress_bkg_data(UINT8 first_tile, const unsigned char *sour) __preserves_regs(b
    -
    gb_decompress_sprite_data
    void gb_decompress_sprite_data(UINT8 first_tile, const unsigned char *sour) __preserves_regs(b
    -
    c
    void c
    Definition: gbdecompress.h:17
    -
    b
    void b
    Definition: gb.h:458
    +
    uint8_t
    unsigned char uint8_t
    Definition: stdint.h:51
    +
    gb_decompress_win_data
    void gb_decompress_win_data(uint8_t first_tile, const uint8_t *sour) __preserves_regs(b
    +
    gb_decompress_sprite_data
    void gb_decompress_sprite_data(uint8_t first_tile, const uint8_t *sour) __preserves_regs(b
    +
    c
    void c
    Definition: gbdecompress.h:19
    +
    stdint.h
    +
    gb_decompress_bkg_data
    void gb_decompress_bkg_data(uint8_t first_tile, const uint8_t *sour) __preserves_regs(b
    +
    b
    void b
    Definition: gb.h:457
    +
    gb_decompress
    void gb_decompress(const uint8_t *sour, uint8_t *dest) __preserves_regs(b
    diff --git a/docs/api/globals_i.html b/docs/api/globals_i.html index c3bbd7c6..02896047 100644 --- a/docs/api/globals_i.html +++ b/docs/api/globals_i.html @@ -95,16 +95,16 @@ $(document).ready(function(){initNavTree('globals_i.html',''); initResizable(); : hardware.h
  • init_bkg() -: gb.h +: gb.h
  • init_win() -: gb.h +: gb.h
  • initarand() -: rand.h +: rand.h
  • initrand() -: rand.h +: rand.h
  • INT16 : types.h @@ -251,19 +251,19 @@ $(document).ready(function(){initNavTree('globals_i.html',''); initResizable(); : gb.h
  • isalpha() -: ctype.h +: ctype.h
  • isdigit() -: ctype.h +: ctype.h
  • islower() -: ctype.h +: ctype.h
  • isspace() -: ctype.h +: ctype.h
  • isupper() -: ctype.h +: ctype.h
  • itoa() : stdlib.h diff --git a/docs/api/globals_j.html b/docs/api/globals_j.html index 0099f030..1270bab8 100644 --- a/docs/api/globals_j.html +++ b/docs/api/globals_j.html @@ -119,13 +119,13 @@ $(document).ready(function(){initNavTree('globals_j.html',''); initResizable(); : gb.h
  • joypad() -: gb.h +: gb.h
  • joypad_ex() : gb.h
  • joypad_init() -: gb.h +: gb.h
  • diff --git a/docs/api/globals_l.html b/docs/api/globals_l.html index 732dffea..02dbecbf 100644 --- a/docs/api/globals_l.html +++ b/docs/api/globals_l.html @@ -101,7 +101,7 @@ $(document).ready(function(){initNavTree('globals_l.html',''); initResizable(); : hardware.h
  • line() -: drawing.h +: drawing.h
  • LONG_MAX : limits.h diff --git a/docs/api/globals_m.html b/docs/api/globals_m.html index 3ad61b38..d3345bd7 100644 --- a/docs/api/globals_m.html +++ b/docs/api/globals_m.html @@ -125,7 +125,7 @@ $(document).ready(function(){initNavTree('globals_m.html',''); initResizable(); : malloc.h
  • malloc_heap_start -: malloc.h +: malloc.h
  • MALLOC_MAGIC : malloc.h @@ -170,28 +170,28 @@ $(document).ready(function(){initNavTree('globals_m.html',''); initResizable(); : malloc.h
  • mode() -: gb.h +: gb.h
  • move_bkg() -: gb.h +: gb.h
  • move_metasprite() -: metasprites.h +: metasprites.h
  • move_metasprite_hflip() -: metasprites.h +: metasprites.h
  • move_metasprite_hvflip() -: metasprites.h +: metasprites.h
  • move_metasprite_vflip() -: metasprites.h +: metasprites.h
  • move_sprite() -: gb.h +: gb.h
  • move_win() -: gb.h +: gb.h
  • diff --git a/docs/api/globals_p.html b/docs/api/globals_p.html index b76dca2f..7450eca3 100644 --- a/docs/api/globals_p.html +++ b/docs/api/globals_p.html @@ -92,13 +92,13 @@ $(document).ready(function(){initNavTree('globals_p.html',''); initResizable(); : hardware.h
  • play_sample() -: sample.h +: sample.h
  • plot() -: drawing.h +: drawing.h
  • plot_point() -: drawing.h +: drawing.h
  • pmfont_handle : font.h @@ -110,10 +110,10 @@ $(document).ready(function(){initNavTree('globals_p.html',''); initResizable(); : types.h
  • posx() -: console.h +: console.h
  • posy() -: console.h +: console.h
  • printf() : stdio.h diff --git a/docs/api/globals_r.html b/docs/api/globals_r.html index 9d198374..9e3c1d3f 100644 --- a/docs/api/globals_r.html +++ b/docs/api/globals_r.html @@ -89,10 +89,10 @@ $(document).ready(function(){initNavTree('globals_r.html',''); initResizable();

    - r -

    diff --git a/docs/api/globals_t.html b/docs/api/globals_t.html index 98acf0c8..82673ad9 100644 --- a/docs/api/globals_t.html +++ b/docs/api/globals_t.html @@ -101,7 +101,7 @@ $(document).ready(function(){initNavTree('globals_t.html',''); initResizable(); : time.h
  • time_t -: time.h +: time.h
  • TMA_REG : hardware.h @@ -110,7 +110,7 @@ $(document).ready(function(){initNavTree('globals_t.html',''); initResizable(); : far_ptr.h
  • to_far_ptr() -: far_ptr.h +: far_ptr.h
  • tolower() : ctype.h diff --git a/docs/api/globals_type.html b/docs/api/globals_type.html index 91de8b97..985b1237 100644 --- a/docs/api/globals_type.html +++ b/docs/api/globals_type.html @@ -89,7 +89,7 @@ $(document).ready(function(){initNavTree('globals_type.html',''); initResizable(

    - b -

    diff --git a/docs/api/globals_vars.html b/docs/api/globals_vars.html index f10d51ba..b974f07a 100644 --- a/docs/api/globals_vars.html +++ b/docs/api/globals_vars.html @@ -92,34 +92,34 @@ $(document).ready(function(){initNavTree('globals_vars.html',''); initResizable( : far_ptr.h
  • __call_banked_bank -: far_ptr.h +: far_ptr.h
  • __call_banked_ptr : far_ptr.h
  • __current_base_tile -: metasprites.h +: metasprites.h
  • __current_metasprite : metasprites.h
  • __render_shadow_OAM -: metasprites.h +: metasprites.h
  • _cpu -: gb.h +: gb.h
  • _current_bank : gb.h
  • _io_in -: gb.h +: gb.h
  • _io_out -: gb.h +: gb.h
  • _io_status -: gb.h +: gb.h
  • _shadow_OAM_base : gb.h @@ -175,19 +175,19 @@ $(document).ready(function(){initNavTree('globals_vars.html',''); initResizable(

    - f -

    @@ -252,7 +252,7 @@ $(document).ready(function(){initNavTree('globals_vars.html',''); initResizable( : malloc.h
  • malloc_heap_start -: malloc.h +: malloc.h
  • @@ -377,7 +377,7 @@ $(document).ready(function(){initNavTree('globals_vars.html',''); initResizable( : hardware.h
  • sys_time -: gb.h +: gb.h
  • diff --git a/docs/api/globals_w.html b/docs/api/globals_w.html index 41f9a956..176acdc1 100644 --- a/docs/api/globals_w.html +++ b/docs/api/globals_w.html @@ -95,7 +95,7 @@ $(document).ready(function(){initNavTree('globals_w.html',''); initResizable(); : gb.h
  • waitpad() -: gb.h +: gb.h
  • waitpadup() : gb.h diff --git a/docs/api/group__gbdk__fonts.html b/docs/api/group__gbdk__fonts.html index 64fef329..7015a641 100644 --- a/docs/api/group__gbdk__fonts.html +++ b/docs/api/group__gbdk__fonts.html @@ -95,20 +95,20 @@ $(document).ready(function(){initNavTree('group__gbdk__fonts.html',''); initResi - - - - - - - - - - + + + + + + + + + +

    Variables

    UINT8 font_spect []
     
    UINT8 font_italic []
     
    UINT8 font_ibm []
     
    UINT8 font_min []
     
    UINT8 font_ibm_fixed []
     
    uint8_t font_spect []
     
    uint8_t font_italic []
     
    uint8_t font_ibm []
     
    uint8_t font_min []
     
    uint8_t font_ibm_fixed []
     

    Variable Documentation

    - -

    ◆ font_spect

    + +

    ◆ font_spect

    @@ -117,7 +117,7 @@ Variables - +
    UINT8 font_spect[]uint8_t font_spect[]
    @@ -130,50 +130,50 @@ Variables
    - -

    ◆ font_italic

    + +

    ◆ font_italic

    - +
    UINT8 font_italic[]uint8_t font_italic[]
    - -

    ◆ font_ibm

    + +

    ◆ font_ibm

    - +
    UINT8 font_ibm[]uint8_t font_ibm[]
    - -

    ◆ font_min

    + +

    ◆ font_min

    - +
    UINT8 font_min[]uint8_t font_min[]
    - -

    ◆ font_ibm_fixed

    + +

    ◆ font_ibm_fixed

    @@ -182,7 +182,7 @@ Variables - +
    UINT8 font_ibm_fixed[]uint8_t font_ibm_fixed[]
    diff --git a/docs/api/group__gbdk__fonts.js b/docs/api/group__gbdk__fonts.js index 202b6cf3..1bfc60cf 100644 --- a/docs/api/group__gbdk__fonts.js +++ b/docs/api/group__gbdk__fonts.js @@ -1,8 +1,8 @@ var group__gbdk__fonts = [ - [ "font_spect", "group__gbdk__fonts.html#ga8864dda768d160716fb95cc8c46cb5a9", null ], - [ "font_italic", "group__gbdk__fonts.html#ga3c28d792899071492568375585a171cf", null ], - [ "font_ibm", "group__gbdk__fonts.html#gada456ea6f9f74229a178cef52471d37b", null ], - [ "font_min", "group__gbdk__fonts.html#gaa7ed899bc52aac6cd5cd7ba4c2a43215", null ], - [ "font_ibm_fixed", "group__gbdk__fonts.html#ga2d59fb8d9b95354fcc9b4541ce43f276", null ] + [ "font_spect", "group__gbdk__fonts.html#ga1b59bbd85c12436eeef52d4c32c7345d", null ], + [ "font_italic", "group__gbdk__fonts.html#ga17e825a65ba38f34a658fe0a2c99d8d4", null ], + [ "font_ibm", "group__gbdk__fonts.html#ga6dcb04fed78fc39b95171988b776e6bb", null ], + [ "font_min", "group__gbdk__fonts.html#gad8497ecbd9d845fc24a56688f157aad8", null ], + [ "font_ibm_fixed", "group__gbdk__fonts.html#gab8c52bed73e745f1ee910f2da60ddb4c", null ] ]; \ No newline at end of file diff --git a/docs/api/index.html b/docs/api/index.html index 5e5b3ce8..44b89873 100644 --- a/docs/api/index.html +++ b/docs/api/index.html @@ -102,15 +102,15 @@ $(document).ready(function(){initNavTree('index.html',''); initResizable(); });
  • GBDK Releases
  • Toolchain settings
  • -

    +

    Introduction

    Welcome to GBDK-2020! The best thing to do is head over to the Getting Started section to get up and running.

    -

    +

    About the Documentation

    This documentation is partially based on material written by the original GBDK authors in 1999 and updated for GBDK-2020. The API docs are automatically generated from the C header files using Doxygen.

    GBDK-2020 is an updated version of the original GBDK with a modernized SDCC toolchain and many API improvements and fixes. It can be found at: https://github.com/gbdk-2020/gbdk-2020/.

    The original GBDK sources, documentation and website are at: http://gbdk.sourceforge.net/

    -

    +

    About GBDK

    The GameBoy Developer's Kit (GBDK, GBDK-2020) is used to develop games and programs for the Nintendo Game Boy system in C and assembly. GBDK includes a set of libraries for the most common requirements and generates image files for use with a real GameBoy or with emulators.

    GBDK features:

    GBDK is freeware. Most of the tooling code is under the GPL. The runtime libraries should be under the LGPL. Please consider mentioning GBDK in the credits of projects made with it.


    -

    +

    Historical Info and Links

    The following is from the original GBDK documenation.

    Thanks to quang for many of the comments to the gb functions. Some of the comments are ripped directly from the Linux Programmers manual, and some directly from the pan/k00Pa document.

    diff --git a/docs/api/index.js b/docs/api/index.js index 38b83649..c1ebb9fe 100644 --- a/docs/api/index.js +++ b/docs/api/index.js @@ -1,9 +1,9 @@ var index = [ - [ "Introduction", "index.html#autotoc_md157", null ], - [ "About the Documentation", "index.html#autotoc_md158", null ], - [ "About GBDK", "index.html#autotoc_md159", null ], - [ "Historical Info and Links", "index.html#autotoc_md160", null ], + [ "Introduction", "index.html#autotoc_md159", null ], + [ "About the Documentation", "index.html#autotoc_md160", null ], + [ "About GBDK", "index.html#autotoc_md161", null ], + [ "Historical Info and Links", "index.html#autotoc_md162", null ], [ "Getting Started", "docs_getting_started.html", [ [ "1. Compile Example projects", "docs_getting_started.html#autotoc_md4", null ], [ "2. Use a Template", "docs_getting_started.html#autotoc_md5", null ], @@ -149,53 +149,55 @@ var index = ] ], [ "Migrating to new GBDK Versions", "docs_migrating_versions.html", [ [ "GBDK 2020 versions", "docs_migrating_versions.html#autotoc_md115", [ - [ "Porting to GBDK 2020 4.0.3", "docs_migrating_versions.html#autotoc_md116", null ], - [ "Porting to GBDK 2020 4.0.2", "docs_migrating_versions.html#autotoc_md117", null ], - [ "Porting to GBDK 2020 4.0.1", "docs_migrating_versions.html#autotoc_md118", null ], - [ "Porting to GBDK 2020 4.0", "docs_migrating_versions.html#autotoc_md119", null ], - [ "Porting to GBDK 2020 3.2", "docs_migrating_versions.html#autotoc_md120", null ], - [ "Porting to GBDK 2020 3.1.1", "docs_migrating_versions.html#autotoc_md121", null ], - [ "Porting to GBDK 2020 3.1", "docs_migrating_versions.html#autotoc_md122", null ], - [ "Porting to GBDK 2020 3.0.1", "docs_migrating_versions.html#autotoc_md123", null ] + [ "Porting to GBDK 2020 4.0.4", "docs_migrating_versions.html#autotoc_md116", null ], + [ "Porting to GBDK 2020 4.0.3", "docs_migrating_versions.html#autotoc_md117", null ], + [ "Porting to GBDK 2020 4.0.2", "docs_migrating_versions.html#autotoc_md118", null ], + [ "Porting to GBDK 2020 4.0.1", "docs_migrating_versions.html#autotoc_md119", null ], + [ "Porting to GBDK 2020 4.0", "docs_migrating_versions.html#autotoc_md120", null ], + [ "Porting to GBDK 2020 3.2", "docs_migrating_versions.html#autotoc_md121", null ], + [ "Porting to GBDK 2020 3.1.1", "docs_migrating_versions.html#autotoc_md122", null ], + [ "Porting to GBDK 2020 3.1", "docs_migrating_versions.html#autotoc_md123", null ], + [ "Porting to GBDK 2020 3.0.1", "docs_migrating_versions.html#autotoc_md124", null ] ] ], - [ "Historical GBDK versions", "docs_migrating_versions.html#autotoc_md125", [ - [ "GBDK 1.1 to GBDK 2.0", "docs_migrating_versions.html#autotoc_md126", null ] + [ "Historical GBDK versions", "docs_migrating_versions.html#autotoc_md126", [ + [ "GBDK 1.1 to GBDK 2.0", "docs_migrating_versions.html#autotoc_md127", null ] ] ] ] ], [ "GBDK Releases", "docs_releases.html", [ - [ "GBDK 2020 Release Notes", "docs_releases.html#autotoc_md127", [ - [ "GBDK 2020 4.0.3", "docs_releases.html#autotoc_md128", null ], - [ "GBDK 2020 4.0.2", "docs_releases.html#autotoc_md129", null ], - [ "GBDK 2020 4.0.1", "docs_releases.html#autotoc_md130", null ], - [ "GBDK 2020 4.0", "docs_releases.html#autotoc_md131", null ], - [ "GBDK 2020 3.2", "docs_releases.html#autotoc_md132", null ], - [ "GBDK 2020 3.1.1", "docs_releases.html#autotoc_md133", null ], - [ "GBDK 2020 3.1", "docs_releases.html#autotoc_md134", null ], - [ "GBDK 2020 3.0.1", "docs_releases.html#autotoc_md135", null ], - [ "GBDK 2020 3.0", "docs_releases.html#autotoc_md136", null ] + [ "GBDK 2020 Release Notes", "docs_releases.html#autotoc_md128", [ + [ "GBDK 2020 4.0.4", "docs_releases.html#autotoc_md129", null ], + [ "GBDK 2020 4.0.3", "docs_releases.html#autotoc_md130", null ], + [ "GBDK 2020 4.0.2", "docs_releases.html#autotoc_md131", null ], + [ "GBDK 2020 4.0.1", "docs_releases.html#autotoc_md132", null ], + [ "GBDK 2020 4.0", "docs_releases.html#autotoc_md133", null ], + [ "GBDK 2020 3.2", "docs_releases.html#autotoc_md134", null ], + [ "GBDK 2020 3.1.1", "docs_releases.html#autotoc_md135", null ], + [ "GBDK 2020 3.1", "docs_releases.html#autotoc_md136", null ], + [ "GBDK 2020 3.0.1", "docs_releases.html#autotoc_md137", null ], + [ "GBDK 2020 3.0", "docs_releases.html#autotoc_md138", null ] ] ], - [ "Historical GBDK Release Notes", "docs_releases.html#autotoc_md137", [ - [ "GBDK 2.96", "docs_releases.html#autotoc_md138", null ], - [ "GBDK 2.95-3", "docs_releases.html#autotoc_md139", null ], - [ "GBDK 2.95-2", "docs_releases.html#autotoc_md140", null ], - [ "GBDK 2.95", "docs_releases.html#autotoc_md141", null ], - [ "GBDK 2.94", "docs_releases.html#autotoc_md142", null ], - [ "GBDK 2.93", "docs_releases.html#autotoc_md143", null ], - [ "GBDK 2.92-2 for win32", "docs_releases.html#autotoc_md144", null ], - [ "GBDK 2.92", "docs_releases.html#autotoc_md145", null ], - [ "GBDK 2.91", "docs_releases.html#autotoc_md146", null ], - [ "GBDK 2.1.5", "docs_releases.html#autotoc_md147", null ] + [ "Historical GBDK Release Notes", "docs_releases.html#autotoc_md139", [ + [ "GBDK 2.96", "docs_releases.html#autotoc_md140", null ], + [ "GBDK 2.95-3", "docs_releases.html#autotoc_md141", null ], + [ "GBDK 2.95-2", "docs_releases.html#autotoc_md142", null ], + [ "GBDK 2.95", "docs_releases.html#autotoc_md143", null ], + [ "GBDK 2.94", "docs_releases.html#autotoc_md144", null ], + [ "GBDK 2.93", "docs_releases.html#autotoc_md145", null ], + [ "GBDK 2.92-2 for win32", "docs_releases.html#autotoc_md146", null ], + [ "GBDK 2.92", "docs_releases.html#autotoc_md147", null ], + [ "GBDK 2.91", "docs_releases.html#autotoc_md148", null ], + [ "GBDK 2.1.5", "docs_releases.html#autotoc_md149", null ] ] ] ] ], [ "Toolchain settings", "docs_toolchain_settings.html", [ - [ "lcc settings", "docs_toolchain_settings.html#autotoc_md148", null ], - [ "sdcc settings", "docs_toolchain_settings.html#autotoc_md149", null ], - [ "sdasgb settings", "docs_toolchain_settings.html#autotoc_md150", null ], - [ "bankpack settings", "docs_toolchain_settings.html#autotoc_md151", null ], - [ "sdldgb settings", "docs_toolchain_settings.html#autotoc_md152", null ], - [ "ihxcheck settings", "docs_toolchain_settings.html#autotoc_md153", null ], - [ "makebin settings", "docs_toolchain_settings.html#autotoc_md154", null ], - [ "gbcompress settings", "docs_toolchain_settings.html#autotoc_md155", null ], - [ "png2mtspr settings", "docs_toolchain_settings.html#autotoc_md156", null ] + [ "lcc settings", "docs_toolchain_settings.html#autotoc_md150", null ], + [ "sdcc settings", "docs_toolchain_settings.html#autotoc_md151", null ], + [ "sdasgb settings", "docs_toolchain_settings.html#autotoc_md152", null ], + [ "bankpack settings", "docs_toolchain_settings.html#autotoc_md153", null ], + [ "sdldgb settings", "docs_toolchain_settings.html#autotoc_md154", null ], + [ "ihxcheck settings", "docs_toolchain_settings.html#autotoc_md155", null ], + [ "makebin settings", "docs_toolchain_settings.html#autotoc_md156", null ], + [ "gbcompress settings", "docs_toolchain_settings.html#autotoc_md157", null ], + [ "png2mtspr settings", "docs_toolchain_settings.html#autotoc_md158", null ] ] ] ]; \ No newline at end of file diff --git a/docs/api/malloc_8h.html b/docs/api/malloc_8h.html index ff64a0de..2e4689fd 100644 --- a/docs/api/malloc_8h.html +++ b/docs/api/malloc_8h.html @@ -129,8 +129,8 @@ Functions - - + +

    Variables

    UBYTE malloc_heap_start
     
    uint8_t malloc_heap_start
     
    pmmalloc_hunk malloc_first
     
    @@ -261,8 +261,8 @@ Variables

    Variable Documentation

    - -

    ◆ malloc_heap_start

    + +

    ◆ malloc_heap_start

    @@ -271,7 +271,7 @@ Variables - +
    UBYTE malloc_heap_startuint8_t malloc_heap_start
    diff --git a/docs/api/malloc_8h.js b/docs/api/malloc_8h.js index 63cc3431..636b8863 100644 --- a/docs/api/malloc_8h.js +++ b/docs/api/malloc_8h.js @@ -8,6 +8,6 @@ var malloc_8h = [ "pmmalloc_hunk", "malloc_8h.html#ad521838368171a2564658d4e129d7922", null ], [ "malloc_gc", "malloc_8h.html#a5381c84316659ee9aee28b781ea72043", null ], [ "debug", "malloc_8h.html#a0d4cef44ecf687909f2c744d8420f7f0", null ], - [ "malloc_heap_start", "malloc_8h.html#a1f0de2ad46e0870a290a0541c9181054", null ], + [ "malloc_heap_start", "malloc_8h.html#a6eca780b16338166df86a9e68aa083a6", null ], [ "malloc_first", "malloc_8h.html#af62987d0746c3fd2078e3b76d67a485d", null ] ]; \ No newline at end of file diff --git a/docs/api/malloc_8h_source.html b/docs/api/malloc_8h_source.html index c94325e2..a6d28389 100644 --- a/docs/api/malloc_8h_source.html +++ b/docs/api/malloc_8h_source.html @@ -106,13 +106,13 @@ $(document).ready(function(){initNavTree('malloc_8h_source.html',''); initResiza
    25 typedef struct smalloc_hunk * pmmalloc_hunk;
    26 
    27 struct smalloc_hunk {
    -
    28  UBYTE magic; /* Magic number - indicates valid hunk header */
    +
    28  unsigned char magic; /* Magic number - indicates valid hunk header */
    29  pmmalloc_hunk next; /* Pointer to the next hunk */
    -
    30  UWORD size; /* Size in bytes of this region */
    -
    31  int status; /* One of MALLOC_FREE or MALLOC_USED */
    +
    30  unsigned int size; /* Size in bytes of this region */
    +
    31  int status; /* One of MALLOC_FREE or MALLOC_USED */
    32 };
    33 
    - +
    36 
    39 
    @@ -122,19 +122,18 @@ $(document).ready(function(){initNavTree('malloc_8h_source.html',''); initResiza
    45 #endif /* __SYS_MALLOC_H */
    +
    smalloc_hunk::size
    unsigned int size
    Definition: malloc.h:30
    +
    uint8_t
    unsigned char uint8_t
    Definition: stdint.h:51
    malloc_first
    pmmalloc_hunk malloc_first
    smalloc_hunk::next
    pmmalloc_hunk next
    Definition: malloc.h:29
    pmmalloc_hunk
    struct smalloc_hunk * pmmalloc_hunk
    Definition: malloc.h:25
    -
    malloc_heap_start
    UBYTE malloc_heap_start
    +
    smalloc_hunk::magic
    unsigned char magic
    Definition: malloc.h:28
    smalloc_hunk::status
    int status
    Definition: malloc.h:31
    -
    UBYTE
    UINT8 UBYTE
    Definition: types.h:46
    debug
    void debug(char *routine, char *msg) NONBANKED
    smalloc_hunk
    Definition: malloc.h:27
    malloc_gc
    void malloc_gc(void) NONBANKED
    +
    malloc_heap_start
    uint8_t malloc_heap_start
    NONBANKED
    #define NONBANKED
    Definition: types.h:12
    -
    UWORD
    UINT16 UWORD
    Definition: types.h:50
    -
    smalloc_hunk::size
    UWORD size
    Definition: malloc.h:30
    -
    smalloc_hunk::magic
    UBYTE magic
    Definition: malloc.h:28
    - +
    #include <stdint.h>
    +

    Go to the source code of this file.

    @@ -115,25 +116,25 @@ Typedefs

    - - - - - - - - - - + + + + + + + + + +

    Functions

    UBYTE move_metasprite (const metasprite_t *metasprite, UINT8 base_tile, UINT8 base_sprite, UINT8 x, UINT8 y)
     
    UBYTE move_metasprite_vflip (const metasprite_t *metasprite, UINT8 base_tile, UINT8 base_sprite, UINT8 x, UINT8 y)
     
    UBYTE move_metasprite_hflip (const metasprite_t *metasprite, UINT8 base_tile, UINT8 base_sprite, UINT8 x, UINT8 y)
     
    UBYTE move_metasprite_hvflip (const metasprite_t *metasprite, UINT8 base_tile, UINT8 base_sprite, UINT8 x, UINT8 y)
     
    void hide_metasprite (const metasprite_t *metasprite, UINT8 base_sprite)
     
    uint8_t move_metasprite (const metasprite_t *metasprite, uint8_t base_tile, uint8_t base_sprite, uint8_t x, uint8_t y)
     
    uint8_t move_metasprite_vflip (const metasprite_t *metasprite, uint8_t base_tile, uint8_t base_sprite, uint8_t x, uint8_t y)
     
    uint8_t move_metasprite_hflip (const metasprite_t *metasprite, uint8_t base_tile, uint8_t base_sprite, uint8_t x, uint8_t y)
     
    uint8_t move_metasprite_hvflip (const metasprite_t *metasprite, uint8_t base_tile, uint8_t base_sprite, uint8_t x, uint8_t y)
     
    void hide_metasprite (const metasprite_t *metasprite, uint8_t base_sprite)
     
    - - - - + + + +

    Variables

    const void * __current_metasprite
     
    UBYTE __current_base_tile
     
    UBYTE __render_shadow_OAM
     
    uint8_t __current_base_tile
     
    uint8_t __render_shadow_OAM
     

    Detailed Description

    @@ -149,7 +150,7 @@ Metasprites composed of variable numbers of sprites

    // Hide rest of the hardware sprites, because amount
    // of sprites differ between animation frames.
    // (where hiwater == last hardware sprite used + 1)
    -
    for (UBYTE i = hiwater; i < 40; i++) shadow_OAM[i].y = 0;
    +
    for (uint8_t i = hiwater; i < 40; i++) shadow_OAM[i].y = 0;

    Metasprites and sprite properties (including cgb palette)

    @@ -188,10 +189,10 @@ Metasprites and sprite properties (including cgb palette)

    Metasprite sub-item structure

    Parameters
    - - - - + + + +
    dy(INT8) Y coordinate of the sprite relative to the metasprite origin (pivot)
    dx(INT8) X coordinate of the sprite relative to the metasprite origin (pivot)
    dtile(UINT8) Start tile relative to the metasprites own set of tiles
    props(UINT8) Property Flags
    dy(int8_t) Y coordinate of the sprite relative to the metasprite origin (pivot)
    dx(int8_t) X coordinate of the sprite relative to the metasprite origin (pivot)
    dtile(uint8_t) Start tile relative to the metasprites own set of tiles
    props(uint8_t) Property Flags
    @@ -200,8 +201,8 @@ Metasprites and sprite properties (including cgb palette)

    Function Documentation

    - -

    ◆ move_metasprite()

    + +

    ◆ move_metasprite()

    @@ -210,7 +211,7 @@ Metasprites and sprite properties (including cgb palette) - + @@ -218,25 +219,25 @@ Metasprites and sprite properties (including cgb palette) - + - + - + - + @@ -273,8 +274,8 @@ Metasprites and sprite properties (including cgb palette) - -

    ◆ move_metasprite_vflip()

    + +

    ◆ move_metasprite_vflip()

    @@ -283,7 +284,7 @@ Metasprites and sprite properties (including cgb palette)
    - + @@ -565,8 +566,8 @@ Metasprites and sprite properties (including cgb palette) - -

    ◆ __current_base_tile

    + +

    ◆ __current_base_tile

    @@ -575,7 +576,7 @@ Metasprites and sprite properties (including cgb palette)
    @@ -587,8 +588,8 @@ Metasprites and sprite properties (including cgb palette) - -

    ◆ __render_shadow_OAM

    + +

    ◆ __render_shadow_OAM

    @@ -597,7 +598,7 @@ Metasprites and sprite properties (including cgb palette)
    @@ -611,8 +612,8 @@ Metasprites and sprite properties (including cgb palette) +
    unsigned char uint8_t
    Definition: stdint.h:51
    volatile struct OAM_item_t shadow_OAM[]
    -
    UINT8 UBYTE
    Definition: types.h:46
    -
    INT8 dx
    Definition: metasprites.h:75
    -
    unsigned char UINT8
    Definition: types.h:22
    -
    UBYTE move_metasprite_hflip(const metasprite_t *metasprite, UINT8 base_tile, UINT8 base_sprite, UINT8 x, UINT8 y)
    Definition: metasprites.h:171
    -
    UBYTE move_metasprite(const metasprite_t *metasprite, UINT8 base_tile, UINT8 base_sprite, UINT8 x, UINT8 y)
    Definition: metasprites.h:116
    -
    Definition: metasprites.h:74
    -
    void hide_metasprite(const metasprite_t *metasprite, UINT8 base_sprite)
    Definition: metasprites.h:213
    +
    unsigned char uint8_t
    Definition: stdint.h:51
    +
    signed char int8_t
    Definition: stdint.h:43
    +
    Definition: metasprites.h:76
    +
    uint8_t props
    Definition: metasprites.h:79
    +
    uint8_t move_metasprite_hflip(const metasprite_t *metasprite, uint8_t base_tile, uint8_t base_sprite, uint8_t x, uint8_t y)
    Definition: metasprites.h:173
    +
    int8_t dy
    Definition: metasprites.h:77
    const void * __current_metasprite
    -
    UBYTE move_metasprite_vflip(const metasprite_t *metasprite, UINT8 base_tile, UINT8 base_sprite, UINT8 x, UINT8 y)
    Definition: metasprites.h:143
    -
    UINT8 UBYTE
    Definition: types.h:46
    -
    UINT8 dtile
    Definition: metasprites.h:76
    -
    UBYTE __render_shadow_OAM
    -
    INT8 dy
    Definition: metasprites.h:75
    -
    UINT8 props
    Definition: metasprites.h:77
    +
    void hide_metasprite(const metasprite_t *metasprite, uint8_t base_sprite)
    Definition: metasprites.h:215
    +
    uint8_t __current_base_tile
    +
    uint8_t move_metasprite_vflip(const metasprite_t *metasprite, uint8_t base_tile, uint8_t base_sprite, uint8_t x, uint8_t y)
    Definition: metasprites.h:145
    +
    uint8_t move_metasprite_hvflip(const metasprite_t *metasprite, uint8_t base_tile, uint8_t base_sprite, uint8_t x, uint8_t y)
    Definition: metasprites.h:200
    +
    int8_t dx
    Definition: metasprites.h:77
    +
    uint8_t move_metasprite(const metasprite_t *metasprite, uint8_t base_tile, uint8_t base_sprite, uint8_t x, uint8_t y)
    Definition: metasprites.h:118
    +
    struct metasprite_t metasprite_t
    -
    UBYTE move_metasprite_hvflip(const metasprite_t *metasprite, UINT8 base_tile, UINT8 base_sprite, UINT8 x, UINT8 y)
    Definition: metasprites.h:198
    -
    UBYTE __current_base_tile
    -
    signed char INT8
    Definition: types.h:19
    +
    uint8_t __render_shadow_OAM
    +
    uint8_t dtile
    Definition: metasprites.h:78
    __REG LCDC_REG
    Definition: hardware.h:43
    diff --git a/docs/api/navtreedata.js b/docs/api/navtreedata.js index 4e144bfb..364b7025 100644 --- a/docs/api/navtreedata.js +++ b/docs/api/navtreedata.js @@ -52,9 +52,9 @@ var NAVTREE = var NAVTREEINDEX = [ "annotated.html", -"docs_toolchain_settings.html#autotoc_md148", -"globals_defs.html", -"stdint_8h.html#a181807730d4a375f848ba139813ce04f" +"docs_toolchain.html#autotoc_md87", +"globals_d.html", +"stdint_8h.html#a0fbe4a4f8dd857ee04923a901f27465f" ]; var SYNCONMSG = 'click to disable panel synchronisation'; diff --git a/docs/api/navtreeindex0.js b/docs/api/navtreeindex0.js index aca179fc..5877a7bc 100644 --- a/docs/api/navtreeindex0.js +++ b/docs/api/navtreeindex0.js @@ -39,12 +39,12 @@ var NAVTREEINDEX0 = "assert_8h.html#af576bf8ffa22a44e53018c67095ffbf0":[4,0,5,0], "assert_8h_source.html":[4,0,5], "bcd_8h.html":[4,0,6], -"bcd_8h.html#a199d4e29e267c9722768fbcbd7c4cc1d":[4,0,6,3], +"bcd_8h.html#a4813acd7f1852dd32b67175ca6aca2eb":[4,0,6,2], "bcd_8h.html#a52b446b9dd70d54bed395bf38c53e82f":[4,0,6,5], "bcd_8h.html#a5b336fcb3fc84fe505dc7e14d0ec17a7":[4,0,6,0], +"bcd_8h.html#a718f9c42a96e0a1dde983117e08f0e91":[4,0,6,3], "bcd_8h.html#a8a3023920aa103a74c7d59007bcc7b6f":[4,0,6,1], -"bcd_8h.html#a8c63f4b8b13c77782a46de2e666c7408":[4,0,6,2], -"bcd_8h.html#ad2804ad5d0c4376e7c5636e83f140889":[4,0,6,6], +"bcd_8h.html#a9bb3578354883184d3bdfa877ec65ed2":[4,0,6,6], "bcd_8h.html#afa80f8e7a7af38bf7527d8e87860a40c":[4,0,6,4], "bcd_8h_source.html":[4,0,6], "bgb__emu_8h.html":[4,0,2,0], @@ -58,52 +58,52 @@ var NAVTREEINDEX0 = "cgb_8h.html":[4,0,2,1], "cgb_8h.html#a0a85d8d0da8edc5cce98f48701f903f7":[4,0,2,1,19], "cgb_8h.html#a0eff802f1ca228046476209dc01c76ad":[4,0,2,1,5], -"cgb_8h.html#a1d751a36ceb28413e2300e1025378c8d":[4,0,2,1,23], "cgb_8h.html#a1ee7a5d8fd635e9132a2820a60f9789d":[4,0,2,1,4], "cgb_8h.html#a2727da9f8c0b09a67375575a00186e2a":[4,0,2,1,8], "cgb_8h.html#a29b47e2361025eabcdc3bcbff2308044":[4,0,2,1,14], "cgb_8h.html#a2ce30ac984869b55594447722b9d0579":[4,0,2,1,9], +"cgb_8h.html#a2f0430a99cd9df4496b3c04f49aa3f6d":[4,0,2,1,22], "cgb_8h.html#a476d06d0fe64d7c5a1ec05b8ee859a56":[4,0,2,1,25], "cgb_8h.html#a4a118ad3ee36468a3fa616977a64864e":[4,0,2,1,0], -"cgb_8h.html#a5744e7df7116e07a69713b494053675e":[4,0,2,1,21], "cgb_8h.html#a59fb596d3d65cfc4d3cb7e5044b8b10a":[4,0,2,1,11], -"cgb_8h.html#a64f00b81348b63f60bdd2cb7649b09eb":[4,0,2,1,24], "cgb_8h.html#a6b334e5e452d0650aded17199be1514a":[4,0,2,1,27], +"cgb_8h.html#a6f4e37ea7767881169d20baf6b0735ec":[4,0,2,1,24], "cgb_8h.html#a7c2a437dfb89d663a1c2f0a7a9256474":[4,0,2,1,18], "cgb_8h.html#a80efbf7b13421922fb174f3e6a3e235c":[4,0,2,1,15], "cgb_8h.html#a871b5b1aba74ab8764f72b73bc090adb":[4,0,2,1,26], "cgb_8h.html#a90ef6e9a3d95516b1fef15076b1b4999":[4,0,2,1,17], "cgb_8h.html#a9c8c3710151b2258ea8269850498703f":[4,0,2,1,20], "cgb_8h.html#a9d5a5f880df6bd4b64e6546839d41101":[4,0,2,1,12], +"cgb_8h.html#a9e90b3a0f765485234e7b4416ea194e2":[4,0,2,1,23], "cgb_8h.html#aa039288455af8a3812a35aa1e7b903e4":[4,0,2,1,1], "cgb_8h.html#ab6c97468034c02fe204fd37036d9be15":[4,0,2,1,3], "cgb_8h.html#ac1771f95d9887118764bd8a074e537e1":[4,0,2,1,16], -"cgb_8h.html#ace9a3e5d7a44d89906bfe20a722c1d14":[4,0,2,1,22], "cgb_8h.html#ad44385fc245bbabf6da787dcc8930385":[4,0,2,1,6], "cgb_8h.html#ad74a18fca945f257dc9d1b99f9edbd40":[4,0,2,1,7], "cgb_8h.html#ae168f0f9864d4ed4be7807b9783f17f1":[4,0,2,1,13], "cgb_8h.html#ae29b6947ac7dca7db513e59f1cfcbf51":[4,0,2,1,2], "cgb_8h.html#ae4fe0c6cfa46b0c4804425f23bb48f4c":[4,0,2,1,10], +"cgb_8h.html#aec5c352285ef0fb0d5a1a1d35f6e7877":[4,0,2,1,21], "cgb_8h_source.html":[4,0,2,1], "classes.html":[3,1], "console_8h.html":[4,0,2,2], +"console_8h.html#a394a8e162064a6733250b20d5ced5806":[4,0,2,2,0], "console_8h.html#a39cc3b71f4262838512c8589e755bbd3":[4,0,2,2,3], -"console_8h.html#a3cd0543b4adebf0bfb5c93a6d0a6f1a2":[4,0,2,2,0], "console_8h.html#a4826277cc150ddc0f4de4bd464a34909":[4,0,2,2,4], -"console_8h.html#a87894e0e2afb574907e2b11ef26e01cb":[4,0,2,2,2], -"console_8h.html#a87f5702d0e74f791414576f7636b4b74":[4,0,2,2,1], +"console_8h.html#a5f662e2102dbd1e10ff19ff1c73fd7d8":[4,0,2,2,1], +"console_8h.html#a6a650d5ea980a8d78ce1c706357cc54d":[4,0,2,2,2], "console_8h_source.html":[4,0,2,2], "crash__handler_8h.html":[4,0,2,3], "crash__handler_8h.html#a95aa98ab16e49eac55dcdfe42f4610cc":[4,0,2,3,0], "crash__handler_8h_source.html":[4,0,2,3], "ctype_8h.html":[4,0,7], +"ctype_8h.html#a0b70d87c74367a00d03702a44da39614":[4,0,7,2], "ctype_8h.html#a207391fc2c5fa7786d5e0b9ef8ba5e80":[4,0,7,6], -"ctype_8h.html#a5c851b201a80a43fd4e648b008e37100":[4,0,7,4], +"ctype_8h.html#a31e9b95a4c8bca65d901dca5c0c95c1f":[4,0,7,1], +"ctype_8h.html#a48644b2a9c138472af0e1c83f688bd58":[4,0,7,4], "ctype_8h.html#a811b7a0d5194feaccfacf8a7f02bb9c3":[4,0,7,5], -"ctype_8h.html#ab9ed40800d3e18a39bd07e31de16af20":[4,0,7,0], -"ctype_8h.html#ad208457578e6758bf8e9043a49cdd9c1":[4,0,7,2], -"ctype_8h.html#ae71a491d659acc84ca7e72ee88df0b2e":[4,0,7,1], -"ctype_8h.html#afe7b3895d13be3e313967576c095aa98":[4,0,7,3], +"ctype_8h.html#aa08b907b413d5f156b6214e72d0612bb":[4,0,7,0], +"ctype_8h.html#af3380cc4b95d21a135cd1b35fc9a09cc":[4,0,7,3], "ctype_8h_source.html":[4,0,7], "dir_287c0c0afb5e0fce0a7974866b95ef94.html":[4,0,0,0], "dir_49e56c817e5e54854c35e136979f97ca.html":[4,0,1], @@ -187,30 +187,32 @@ var NAVTREEINDEX0 = "docs_migrating_versions.html#autotoc_md121":[0,12,0,5], "docs_migrating_versions.html#autotoc_md122":[0,12,0,6], "docs_migrating_versions.html#autotoc_md123":[0,12,0,7], -"docs_migrating_versions.html#autotoc_md125":[0,12,1], -"docs_migrating_versions.html#autotoc_md126":[0,12,1,0], +"docs_migrating_versions.html#autotoc_md124":[0,12,0,8], +"docs_migrating_versions.html#autotoc_md126":[0,12,1], +"docs_migrating_versions.html#autotoc_md127":[0,12,1,0], "docs_releases.html":[0,13], -"docs_releases.html#autotoc_md127":[0,13,0], -"docs_releases.html#autotoc_md128":[0,13,0,0], -"docs_releases.html#autotoc_md129":[0,13,0,1], -"docs_releases.html#autotoc_md130":[0,13,0,2], -"docs_releases.html#autotoc_md131":[0,13,0,3], -"docs_releases.html#autotoc_md132":[0,13,0,4], -"docs_releases.html#autotoc_md133":[0,13,0,5], -"docs_releases.html#autotoc_md134":[0,13,0,6], -"docs_releases.html#autotoc_md135":[0,13,0,7], -"docs_releases.html#autotoc_md136":[0,13,0,8], -"docs_releases.html#autotoc_md137":[0,13,1], -"docs_releases.html#autotoc_md138":[0,13,1,0], -"docs_releases.html#autotoc_md139":[0,13,1,1], -"docs_releases.html#autotoc_md140":[0,13,1,2], -"docs_releases.html#autotoc_md141":[0,13,1,3], -"docs_releases.html#autotoc_md142":[0,13,1,4], -"docs_releases.html#autotoc_md143":[0,13,1,5], -"docs_releases.html#autotoc_md144":[0,13,1,6], -"docs_releases.html#autotoc_md145":[0,13,1,7], -"docs_releases.html#autotoc_md146":[0,13,1,8], -"docs_releases.html#autotoc_md147":[0,13,1,9], +"docs_releases.html#autotoc_md128":[0,13,0], +"docs_releases.html#autotoc_md129":[0,13,0,0], +"docs_releases.html#autotoc_md130":[0,13,0,1], +"docs_releases.html#autotoc_md131":[0,13,0,2], +"docs_releases.html#autotoc_md132":[0,13,0,3], +"docs_releases.html#autotoc_md133":[0,13,0,4], +"docs_releases.html#autotoc_md134":[0,13,0,5], +"docs_releases.html#autotoc_md135":[0,13,0,6], +"docs_releases.html#autotoc_md136":[0,13,0,7], +"docs_releases.html#autotoc_md137":[0,13,0,8], +"docs_releases.html#autotoc_md138":[0,13,0,9], +"docs_releases.html#autotoc_md139":[0,13,1], +"docs_releases.html#autotoc_md140":[0,13,1,0], +"docs_releases.html#autotoc_md141":[0,13,1,1], +"docs_releases.html#autotoc_md142":[0,13,1,2], +"docs_releases.html#autotoc_md143":[0,13,1,3], +"docs_releases.html#autotoc_md144":[0,13,1,4], +"docs_releases.html#autotoc_md145":[0,13,1,5], +"docs_releases.html#autotoc_md146":[0,13,1,6], +"docs_releases.html#autotoc_md147":[0,13,1,7], +"docs_releases.html#autotoc_md148":[0,13,1,8], +"docs_releases.html#autotoc_md149":[0,13,1,9], "docs_rombanking_mbcs.html":[0,8], "docs_rombanking_mbcs.html#autotoc_md53":[0,8,0], "docs_rombanking_mbcs.html#autotoc_md54":[0,8,0,0], @@ -247,7 +249,5 @@ var NAVTREEINDEX0 = "docs_toolchain.html#autotoc_md83":[0,9,4,6], "docs_toolchain.html#autotoc_md84":[0,9,5], "docs_toolchain.html#autotoc_md85":[0,9,5,0], -"docs_toolchain.html#autotoc_md86":[0,9,5,1], -"docs_toolchain.html#autotoc_md87":[0,9,5,1,0], -"docs_toolchain_settings.html":[0,14] +"docs_toolchain.html#autotoc_md86":[0,9,5,1] }; diff --git a/docs/api/navtreeindex1.js b/docs/api/navtreeindex1.js index 4144699d..9209c73d 100644 --- a/docs/api/navtreeindex1.js +++ b/docs/api/navtreeindex1.js @@ -1,14 +1,16 @@ var NAVTREEINDEX1 = { -"docs_toolchain_settings.html#autotoc_md148":[0,14,0], -"docs_toolchain_settings.html#autotoc_md149":[0,14,1], -"docs_toolchain_settings.html#autotoc_md150":[0,14,2], -"docs_toolchain_settings.html#autotoc_md151":[0,14,3], -"docs_toolchain_settings.html#autotoc_md152":[0,14,4], -"docs_toolchain_settings.html#autotoc_md153":[0,14,5], -"docs_toolchain_settings.html#autotoc_md154":[0,14,6], -"docs_toolchain_settings.html#autotoc_md155":[0,14,7], -"docs_toolchain_settings.html#autotoc_md156":[0,14,8], +"docs_toolchain.html#autotoc_md87":[0,9,5,1,0], +"docs_toolchain_settings.html":[0,14], +"docs_toolchain_settings.html#autotoc_md150":[0,14,0], +"docs_toolchain_settings.html#autotoc_md151":[0,14,1], +"docs_toolchain_settings.html#autotoc_md152":[0,14,2], +"docs_toolchain_settings.html#autotoc_md153":[0,14,3], +"docs_toolchain_settings.html#autotoc_md154":[0,14,4], +"docs_toolchain_settings.html#autotoc_md155":[0,14,5], +"docs_toolchain_settings.html#autotoc_md156":[0,14,6], +"docs_toolchain_settings.html#autotoc_md157":[0,14,7], +"docs_toolchain_settings.html#autotoc_md158":[0,14,8], "docs_using_gbdk.html":[0,6], "docs_using_gbdk.html#autotoc_md22":[0,6,0], "docs_using_gbdk.html#autotoc_md23":[0,6,0,0], @@ -26,56 +28,56 @@ var NAVTREEINDEX1 = "docs_using_gbdk.html#autotoc_md35":[0,6,4,0], "drawing_8h.html":[4,0,2,4], "drawing_8h.html#a08cbc66092284f7da94279f986a0aae9":[4,0,2,4,13], -"drawing_8h.html#a0fdc56b95bb27e97685c71639dd96209":[4,0,2,4,19], +"drawing_8h.html#a0d0306ae7aafbbf9439e26c85d96e02b":[4,0,2,4,22], "drawing_8h.html#a0ffe2221c8690dc80b5f9553474dd096":[4,0,2,4,7], -"drawing_8h.html#a20f022d3050cc0409b1558c02a3b47c0":[4,0,2,4,17], -"drawing_8h.html#a2dee47d4ad7d830605a63bbf5edeeed1":[4,0,2,4,27], +"drawing_8h.html#a16075b2ab6621bfc1694cc1a92e3df2b":[4,0,2,4,21], +"drawing_8h.html#a24838f0ca44f1d69ff94b8f74097015d":[4,0,2,4,24], "drawing_8h.html#a3363ca4d6d3cc0230b2804280591c991":[4,0,2,4,3], -"drawing_8h.html#a41d053b8f3a0be6f0de400dc2f0e0fd9":[4,0,2,4,22], "drawing_8h.html#a45cd11034d1a7d86c3a88d36f5e7f1ab":[4,0,2,4,4], "drawing_8h.html#a4dad87d91b9201be3b4ede372f31ae8a":[4,0,2,4,8], "drawing_8h.html#a4dec4d9b2bace4f5bc6e6337f4086837":[4,0,2,4,12], -"drawing_8h.html#a4e792560f4216fac5be9ff2a5235a2aa":[4,0,2,4,23], "drawing_8h.html#a57de178908d5dc3e574e666e4d4cb6a7":[4,0,2,4,26], +"drawing_8h.html#a5f7a0ed309f9526e9be285146559848c":[4,0,2,4,17], +"drawing_8h.html#a6b7c3151e0778846aa31682ff69b01ac":[4,0,2,4,23], +"drawing_8h.html#a73925b79fb8d1cf6c40602b113913f25":[4,0,2,4,16], "drawing_8h.html#a7b3b25cba33b07c303f3060fe41887f6":[4,0,2,4,9], +"drawing_8h.html#a7ff51a226a56b4813f595892f1ae31d3":[4,0,2,4,18], "drawing_8h.html#a87b537f5fa5c109d3c05c13d6b18f382":[4,0,2,4,6], "drawing_8h.html#a91d52443c77ee105bd68cb0b47a8ee49":[4,0,2,4,10], -"drawing_8h.html#a9869295972fdbad75ecfa9d4bff2ff21":[4,0,2,4,15], -"drawing_8h.html#a99bdf955788d991c90c0a1a80ca26e7d":[4,0,2,4,16], +"drawing_8h.html#a93ff760a96e4fbbd42487d0d97bcb3db":[4,0,2,4,25], "drawing_8h.html#a9a07c448b4d721dbec2715f51727e099":[4,0,2,4,0], "drawing_8h.html#aa8abfd58ea514228abd69d8f6330e91d":[4,0,2,4,2], "drawing_8h.html#aa9909ac8ecb03cbb763258a8f98f4170":[4,0,2,4,1], "drawing_8h.html#aad3d180e0f12d6a6e5278fe0163f4c3e":[4,0,2,4,11], -"drawing_8h.html#aaf7ed5593d7fb811f00cd241e3d97c10":[4,0,2,4,25], -"drawing_8h.html#ab6a6e4de3149941100edc6c7ed5236cf":[4,0,2,4,21], -"drawing_8h.html#ac3271bc637bab1205ed066f439ebc955":[4,0,2,4,18], -"drawing_8h.html#ac9f0e5e503be3fe11f09b28252187c55":[4,0,2,4,28], +"drawing_8h.html#aad4e32cc775320f61f61c0707aa86a23":[4,0,2,4,15], "drawing_8h.html#acd1b97556dfbbac61063a63031d2f91d":[4,0,2,4,5], -"drawing_8h.html#ad252f1952b09c3ec66bf2759b4e2dea9":[4,0,2,4,20], -"drawing_8h.html#ae867228cd30ff62fe83d184ce6d6fda8":[4,0,2,4,24], +"drawing_8h.html#aedd9c98ab95b4b4fab93bf1d00e3f01b":[4,0,2,4,20], "drawing_8h.html#aef65e5faa0adb82768fca06aafbe50e8":[4,0,2,4,14], +"drawing_8h.html#af357a92be4a6864d46c28f9530e61429":[4,0,2,4,19], +"drawing_8h.html#af36897dea18be4c65b69767be47b98e4":[4,0,2,4,28], +"drawing_8h.html#afb20967d61db0e3288edbc0c12e31728":[4,0,2,4,27], "drawing_8h_source.html":[4,0,2,4], "far__ptr_8h.html":[4,0,2,5], "far__ptr_8h.html#a048cfacb5d37ab758a74f44e86c1dbc6":[4,0,2,5,4], "far__ptr_8h.html#a0c227677a96f9bf7e84a90922f2f8708":[4,0,2,5,1], "far__ptr_8h.html#a1344c26ca298a9eadea4bcfea6442ae3":[4,0,2,5,10], "far__ptr_8h.html#a27792b7fc3796a1e1828d4c5812e5b21":[4,0,2,5,9], -"far__ptr_8h.html#a374dd0c7e00bec635f1dd24d5cbe0d35":[4,0,2,5,8], "far__ptr_8h.html#a5bebc5322a1bba1c60c8d60e9b58be14":[4,0,2,5,2], -"far__ptr_8h.html#a6f1c13e2fad9dd04645a000050d9f382":[4,0,2,5,11], +"far__ptr_8h.html#a7c6f52121dd07af29b477f4e64314842":[4,0,2,5,6], "far__ptr_8h.html#a7f4ab1893ea392f8bf042a3b97de4730":[4,0,2,5,5], +"far__ptr_8h.html#a892433d652420445a9a6aebf1a256623":[4,0,2,5,11], +"far__ptr_8h.html#a8a9dc804d06e0c5c3f96675f68a051bb":[4,0,2,5,8], "far__ptr_8h.html#aa45a2312a2584abb8733a052f66b4a90":[4,0,2,5,7], "far__ptr_8h.html#ab79586d8cc3cb926f363f4d0cf7143d5":[4,0,2,5,3], -"far__ptr_8h.html#aea7a313c991baf8e28c1d73cf6595209":[4,0,2,5,6], "far__ptr_8h_source.html":[4,0,2,5], "files.html":[4,0], "font_8h.html":[4,0,2,6], -"font_8h.html#a0356deab046e522bc369dfd4cf108e5e":[4,0,2,6,5], "font_8h.html#a2f1eb1f81be1a153bc11b1ea368fe614":[4,0,2,6,10], "font_8h.html#a305ee4387ba051bd0e372b8a6dfb6905":[4,0,2,6,2], "font_8h.html#a61b6448050030c4367eafd836598e515":[4,0,2,6,8], "font_8h.html#a63b93b85724b26151ddc2f0fc8050bd8":[4,0,2,6,1], "font_8h.html#a7c5452979723b3535d17e253beb5d604":[4,0,2,6,4], +"font_8h.html#a7c6b54e58c41763c66f15ec4528a1d4a":[4,0,2,6,5], "font_8h.html#a80d0f581e17313b62dd7824653462b55":[4,0,2,6,3], "font_8h.html#a82e0e078fc8a8b6a18538131625dba3a":[4,0,2,6,7], "font_8h.html#aae1084aacf5cfceb40d9ce8f34a3870a":[4,0,2,6,9], @@ -85,169 +87,167 @@ var NAVTREEINDEX1 = "functions_vars.html":[3,2,1], "gb_8h.html":[4,0,2,7], "gb_8h.html#a0031c07799247a6d6c1bfa3decac79d0":[4,0,2,7,31], +"gb_8h.html#a0168f90bec8aff7a826cd4aee7daad89":[4,0,2,7,113], "gb_8h.html#a024fc35ef0ad258d67c8f9dfb0751ee7":[4,0,2,7,71], +"gb_8h.html#a02f3a1585ae654444e628c1aa98ef0cf":[4,0,2,7,141], +"gb_8h.html#a03ceca65a8640bfb767886199fd8eea8":[4,0,2,7,108], "gb_8h.html#a04382de20738146fe873ddfb0585052b":[4,0,2,7,14], +"gb_8h.html#a04fa62cde2d341240a671c7af2d459e1":[4,0,2,7,133], +"gb_8h.html#a057979766e52b9f93972dad332a5be5d":[4,0,2,7,81], +"gb_8h.html#a05bf0b9f1328de7b568a19a2a428bcfe":[4,0,2,7,120], "gb_8h.html#a05ca817ab32f6da612c3ae26db5abf02":[4,0,2,7,8], -"gb_8h.html#a07d12377d67cebb9aafc0622b2054f95":[4,0,2,7,129], "gb_8h.html#a0a3d95ad0ab8ad213016101d2e9c3d3e":[4,0,2,7,147], "gb_8h.html#a0c689c5a814f1c347c4d98f28ed6c7d6":[4,0,2,7,42], +"gb_8h.html#a0cfd261bc7a94b1f6093f423bad30298":[4,0,2,7,99], "gb_8h.html#a115eb30ec86f6af039a27918ffe4cf8c":[4,0,2,7,73], -"gb_8h.html#a1174ffce8b86b8df15c1704284fde687":[4,0,2,7,109], "gb_8h.html#a1259cf3a23fd2166a9d1a2e93942e30e":[4,0,2,7,77], +"gb_8h.html#a12c2b5ac249d01caf1561cbbf3962044":[4,0,2,7,115], +"gb_8h.html#a163199ca9660b93aa18c3e4734084121":[4,0,2,7,79], "gb_8h.html#a177fadce938422926b186a8e42575d1d":[4,0,2,7,41], "gb_8h.html#a18857adb60025a986dbb44ee289b7a7c":[4,0,2,7,66], "gb_8h.html#a19558f5bbc9fea767f945001ae9cd13f":[4,0,2,7,38], "gb_8h.html#a1ad25695f4885f15325a82ec935e8579":[4,0,2,7,65], -"gb_8h.html#a1af6b32a1760e56fad768352db7c4530":[4,0,2,7,135], -"gb_8h.html#a1bfd48083278d723d0c49f487720cdd0":[4,0,2,7,136], +"gb_8h.html#a1b03711e1c95023571add37a455d5f72":[4,0,2,7,135], "gb_8h.html#a1db30aa7479be2276312f3c981553906":[4,0,2,7,84], +"gb_8h.html#a1f583f7a880daa6145ca78b086a209d1":[4,0,2,7,104], "gb_8h.html#a20895d53fe9caacb08ce8b071d57ce53":[4,0,2,7,60], +"gb_8h.html#a2120d5fbe208b26c4264111ab8e0bfa3":[4,0,2,7,136], "gb_8h.html#a2412b9f97cb59acfcb2383eb9f204ddf":[4,0,2,7,68], -"gb_8h.html#a255decf12ae0b61bd5811c9ed74e7ce5":[4,0,2,7,102], "gb_8h.html#a268cc6c704e16f3fa02dd1cf0e17070a":[4,0,2,7,34], -"gb_8h.html#a29d93722542506d0acb9b23c85ff1c5e":[4,0,2,7,142], -"gb_8h.html#a2a236e483749590877d9207e9430e6ce":[4,0,2,7,97], -"gb_8h.html#a2b4665e62849b60b579803b076661fe4":[4,0,2,7,132], +"gb_8h.html#a2a033e99ac99d6328db0dc75b4afc495":[4,0,2,7,131], "gb_8h.html#a2ca7720b9a5da9b2173e1f74dba85541":[4,0,2,7,20], -"gb_8h.html#a2ed77943cb162dc597a8813d6f0f4a98":[4,0,2,7,112], -"gb_8h.html#a2f00009081050122c11e6625ecaf0584":[4,0,2,7,104], +"gb_8h.html#a2e3415ce2f7fb63427618bd9b9cb6635":[4,0,2,7,140], "gb_8h.html#a2f829cf27d6e3e24c875e9b82dfcb280":[4,0,2,7,24], -"gb_8h.html#a2faff6aef9e272b15a1912a4f911e385":[4,0,2,7,114], -"gb_8h.html#a3044331abf61612eb333b6f409f5d571":[4,0,2,7,96], "gb_8h.html#a31af766e3b598eb7a6b63f55a4988e7a":[4,0,2,7,6], -"gb_8h.html#a320fd91d5aa12ba9d1435ab908420998":[4,0,2,7,139], -"gb_8h.html#a326a27330c5f711fcf0b5448cfa07bda":[4,0,2,7,127], "gb_8h.html#a34d6500215984e8f9a986523a2f2dadd":[4,0,2,7,78], -"gb_8h.html#a35b5f3f6ba20daff6af91876d2ccc2b0":[4,0,2,7,93], +"gb_8h.html#a3604bdce0d51550cf87a7595f60d7218":[4,0,2,7,76], "gb_8h.html#a3619f9cb1e3c92238a033ead79a0c551":[4,0,2,7,149], "gb_8h.html#a361d5055a7ae880fc1c9d6e0d1164fd6":[4,0,2,7,46], "gb_8h.html#a38ea3e4dfe02b8eae70df27f39d4a951":[4,0,2,7,39], -"gb_8h.html#a393072c2b36f11306510c69aa6efea0f":[4,0,2,7,81], "gb_8h.html#a3b3171b2e81e23b7d1bc402275a9ac71":[4,0,2,7,63], "gb_8h.html#a3bad91d11ae09ffcbb3cb0a81873d325":[4,0,2,7,10], +"gb_8h.html#a3bf7b60dd4dee0e196c601606a462ef0":[4,0,2,7,112], "gb_8h.html#a3f033f00c8d781637f9a665b06750937":[4,0,2,7,47], "gb_8h.html#a411914e5dc5f28ce0afa7cf692a18af1":[4,0,2,7,70], "gb_8h.html#a459449876dfba6299bf055c882d78334":[4,0,2,7,2], +"gb_8h.html#a47132bf7f387c2518c507a0b868cbf4c":[4,0,2,7,116], "gb_8h.html#a47607089a434dcda7a8583cfca03b604":[4,0,2,7,59], -"gb_8h.html#a48579cba9ac2d81ff7214cf3ff25563d":[4,0,2,7,95], -"gb_8h.html#a494532517bd7f26c55a87c96391611d5":[4,0,2,7,116], "gb_8h.html#a495bc9f405f916f02ad5d97e6e730134":[4,0,2,7,55], -"gb_8h.html#a4a6bb50835ab2e9294bf17ea32a1e4cd":[4,0,2,7,128], -"gb_8h.html#a4b4feb80407d4f1e80579ed932821035":[4,0,2,7,123], "gb_8h.html#a4bbb9cd6c38b2317de5256d1d889c63b":[4,0,2,7,18], "gb_8h.html#a4c2e4adef74067fdbb49005bc73de937":[4,0,2,7,146], "gb_8h.html#a4c5db32641410613d785911bafd09ac7":[4,0,2,7,64], "gb_8h.html#a4e1e0e72dd773439e333c84dd762a9c3":[4,0,2,7,137], +"gb_8h.html#a54481c53f28bc5fcfff05be28f16e976":[4,0,2,7,101], "gb_8h.html#a54572cf6791463b6d60623837e0bb5a6":[4,0,2,7,16], -"gb_8h.html#a548f19d30b2ad3edb826d045c7be6bad":[4,0,2,7,126], -"gb_8h.html#a54ffb7990fd37939bbe1a8b1e663e439":[4,0,2,7,121], -"gb_8h.html#a57ff7363a20c654a39736e33d4d08f60":[4,0,2,7,94], +"gb_8h.html#a56e2c5e58303d0f909f26f5d6f7de7b8":[4,0,2,7,105], "gb_8h.html#a5a796bbf3e4347d914b83568350143a9":[4,0,2,7,27], "gb_8h.html#a5ae6b05b3e1559c97f0d1b2daaaa0ee4":[4,0,2,7,49], -"gb_8h.html#a5b64bd185bbab708e6b6bd6ed1b9bfc2":[4,0,2,7,113], -"gb_8h.html#a5ce794b7f0c3361c79c887b500fcaf19":[4,0,2,7,118], "gb_8h.html#a5d4c9c7b61a0326a939f9109f96d7423":[4,0,2,7,37], -"gb_8h.html#a5f7178a952abc675a743686745a90892":[4,0,2,7,110], "gb_8h.html#a60191cdfa50ed9b88515f181747eaba2":[4,0,2,7,48], "gb_8h.html#a604256210ec5b90b68185e1a18efab49":[4,0,2,7,22], -"gb_8h.html#a60baa1622feae07982562dcbc243751e":[4,0,2,7,76], "gb_8h.html#a61a9e2910380de6abb34df14ef634eb4":[4,0,2,7,21], -"gb_8h.html#a69553962c85a34c7c8f7c3edbcc41688":[4,0,2,7,83], +"gb_8h.html#a6261537edc74068e3f7f057e6a3e8a57":[4,0,2,7,103], +"gb_8h.html#a63eddde1631a683fcf362e64b0595dae":[4,0,2,7,97], +"gb_8h.html#a68d88347d6f7b781432bb4861a952c87":[4,0,2,7,132], "gb_8h.html#a69ef98aee664b8abd8d1a3d45f016dda":[4,0,2,7,56], +"gb_8h.html#a6b873c807c9e2c90fb574951e85fdf88":[4,0,2,7,123], "gb_8h.html#a6c15ebc660abd3a978137493ab63ffe9":[4,0,2,7,45], -"gb_8h.html#a6c87db0b71ad17d5b242d18ed3df667b":[4,0,2,7,103], +"gb_8h.html#a6c59aa9a4f9ea42bed6ca6940b2741fe":[4,0,2,7,125], "gb_8h.html#a6cc76ea12ac894c4947f85fa1999117c":[4,0,2,7,69], "gb_8h.html#a6d25f7c43b1cbbb48b95cda7ab2c3141":[4,0,2,7,52], +"gb_8h.html#a6d63a11b7056285dfc8a390e2c3c67dc":[4,0,2,7,134], "gb_8h.html#a6dffb66ec1b1d9bb380a1af52a601ec5":[4,0,2,7,29], -"gb_8h.html#a7783f5ed79717411d55f62b8ef3f4592":[4,0,2,7,141], -"gb_8h.html#a7aa0d057d5eeb3e24e61460056750d05":[4,0,2,7,115], +"gb_8h.html#a714bbced6a4c47ae9f82f81ef3b5b357":[4,0,2,7,83], +"gb_8h.html#a78d2fd18666afec116f176d46debb4e7":[4,0,2,7,139], "gb_8h.html#a7b662ae4d83f9837bacb9fd580673054":[4,0,2,7,150], "gb_8h.html#a7e0cdfd6b9a2ae1b7f30384f132d8687":[4,0,2,7,119], -"gb_8h.html#a81654fb8ed020754dfaf20e4a98a7784":[4,0,2,7,80], "gb_8h.html#a81f1a67549d3a26dcca22367141eb21b":[4,0,2,7,72], -"gb_8h.html#a83d08d752bb2f2406084a9afa7988b98":[4,0,2,7,140], -"gb_8h.html#a8520286e663067a3f6869db4ff1b74c3":[4,0,2,7,133], -"gb_8h.html#a85710bd8f8b011e052477c90bc54f780":[4,0,2,7,130], -"gb_8h.html#a8cf949b6e2654b6a8bd9e403a49ee4b3":[4,0,2,7,134], +"gb_8h.html#a83bc12932f49f2a9e225e4acd377c882":[4,0,2,7,107], +"gb_8h.html#a845a29ae3a4ab2ba3533aae20bbc526b":[4,0,2,7,130], +"gb_8h.html#a874b9bd95b0a05d6a6072feabc879e45":[4,0,2,7,138], +"gb_8h.html#a8ca73b01888393cf2d13e7ceebd7da0b":[4,0,2,7,94], "gb_8h.html#a8e3f36aa68ac036695816757f2a1322c":[4,0,2,7,51], "gb_8h.html#a8e5ea12b86bdfc812448c2f5c4336c03":[4,0,2,7,62], "gb_8h.html#a908826e7180f94a5988ceb8633313a2e":[4,0,2,7,13], "gb_8h.html#a92d040284342702026eb19dab59b586e":[4,0,2,7,44], -"gb_8h.html#a9369a5771b340680f4af3386ac4e19b2":[4,0,2,7,99], -"gb_8h.html#a93b0cf6697ab892eda6231d26bf17fc9":[4,0,2,7,100], +"gb_8h.html#a93d486a41f2f5859d7e3b0724bc1ce63":[4,0,2,7,100], +"gb_8h.html#a94bc1276702dbe1b44df2214506f1549":[4,0,2,7,118], "gb_8h.html#a9506d04c2ec7d2442a52054f67d2b32f":[4,0,2,7,19], "gb_8h.html#a9508f919d9482d1d51534ccac212454d":[4,0,2,7,61], -"gb_8h.html#a95789b39dedda60b25e5ad4ef5cd778c":[4,0,2,7,107], "gb_8h.html#a97039b6477537c37f83e74561de78c1b":[4,0,2,7,85], "gb_8h.html#a98b848953a95ce2fff6fda643575d74a":[4,0,2,7,143], -"gb_8h.html#a9fb6ed396416150a46d47ed12fc8b251":[4,0,2,7,131], +"gb_8h.html#a99ea3252469e3614e977cce2aa1d06f7":[4,0,2,7,122], +"gb_8h.html#a9b132042678afce70ccb2d479f4133f0":[4,0,2,7,87], +"gb_8h.html#aa48d749c9b381d1c30fb864eda3eee9b":[4,0,2,7,75], "gb_8h.html#aa5d64e386a00b373f22ffdc5a152c7ba":[4,0,2,7,43], -"gb_8h.html#aa7261f0405b5e0b888c344f5ee6a698e":[4,0,2,7,117], -"gb_8h.html#aa7c0f923acfd198ec970bb2e96110f2c":[4,0,2,7,98], "gb_8h.html#aa87bec0d134136fdb727f52cb773b792":[4,0,2,7,58], -"gb_8h.html#aac2ff7566ff975530a04e6d90e760e26":[4,0,2,7,105], -"gb_8h.html#aae11e78e2a24e467e72893056f319d51":[4,0,2,7,124], -"gb_8h.html#aae19a6086cc17811759b01a6e0a3cda4":[4,0,2,7,120], +"gb_8h.html#aa8e85b82c4d347edb91c0cd2fb6c8393":[4,0,2,7,92], +"gb_8h.html#aac7f4eb7e61237f4ce3b60580ff89ff5":[4,0,2,7,129], "gb_8h.html#ab19da2ab719bb8897bc0843a84af28f8":[4,0,2,7,53], "gb_8h.html#ab416a9d96d1582490828f4bac78a8b5b":[4,0,2,7,4], +"gb_8h.html#ab42c12c1d9aed3fd963248fbea9830cd":[4,0,2,7,124], +"gb_8h.html#ab4454beccf306245a5085aafc38079be":[4,0,2,7,106], +"gb_8h.html#ab46fb4fb6dfd6123d0aa186c1c7a542f":[4,0,2,7,111], "gb_8h.html#ab69a3f7cd2c6b5eb4f518aefee099007":[4,0,2,7,35], "gb_8h.html#ab769c6e20778298be8bc3321476ceb53":[4,0,2,7,3], "gb_8h.html#aba4fa6f13f80e53daeb0caa7b1ec8afb":[4,0,2,7,144], -"gb_8h.html#abda5458df92e4c57b1ca96ab16a17e13":[4,0,2,7,101], -"gb_8h.html#abf6f5422a3c98cf440736f1491e1aa4c":[4,0,2,7,125], -"gb_8h.html#ac269dc3e0ff2d5dc7c0c0fd90e9b1608":[4,0,2,7,75], +"gb_8h.html#abb50a392ca0d0419a080413287ee5d79":[4,0,2,7,110], +"gb_8h.html#abfc6a45a8b4b212ec9cde372a16e3d6e":[4,0,2,7,96], +"gb_8h.html#ac0ef9581f691c213f9aec7a4434dfcab":[4,0,2,7,109], +"gb_8h.html#ac5ad2687d02b9815986cdac1b3121d15":[4,0,2,7,95], +"gb_8h.html#ac65cf20df1886ea11c61c1665d308d31":[4,0,2,7,127], "gb_8h.html#ac70894fecac30c1ca9917f07373cf81c":[4,0,2,7,9], "gb_8h.html#aca2855edd2d28f66be551a0f7ec23f07":[4,0,2,7,15], +"gb_8h.html#acae13736da20f9fc53e8d38934aa2119":[4,0,2,7,142], "gb_8h.html#acc9798fc62b5d626c91c8b0f20b522ff":[4,0,2,7,11], -"gb_8h.html#acd271e2c976761568d2f95900a213212":[4,0,2,7,79], +"gb_8h.html#ad1ec25843468eb57c54e0ebdcf532659":[4,0,2,7,98], +"gb_8h.html#ad22c51635d052399bbbe1777999c794d":[4,0,2,7,126], "gb_8h.html#ad2ec9831813c5e7069917aa4455af682":[4,0,2,7,50], +"gb_8h.html#ad3a2c7e0bfbc9905bd06b162127d13d9":[4,0,2,7,117], "gb_8h.html#ad57f2f8c54204687f02801d8ab1bd150":[4,0,2,7,30], "gb_8h.html#ad8d2df514d3b5d3d08db3671f0d5af14":[4,0,2,7,86], "gb_8h.html#ad90564458646c5646b3880b93db3443e":[4,0,2,7,23], "gb_8h.html#ada0cc738d27aad251151e69cb8d250e1":[4,0,2,7,25], -"gb_8h.html#adbc4b02721d3ab48caf53e0228fd3eb5":[4,0,2,7,138], +"gb_8h.html#ada5a329f1e932972ff83758bb5e62982":[4,0,2,7,102], +"gb_8h.html#adef803cdd559747ad6f36830e126e48f":[4,0,2,7,91], "gb_8h.html#adf6ef63efc4bb4950428015c623bca14":[4,0,2,7,89], "gb_8h.html#ae032c5c544196e37ec0432f6cfad7904":[4,0,2,7,7], "gb_8h.html#ae189e98d0ef9263c37869ce1ff3710a5":[4,0,2,7,26], "gb_8h.html#ae1f1358e53ec1b153f071d1e16d8ab0e":[4,0,2,7,82], "gb_8h.html#ae202f64307ec00f6970ef9225e54646c":[4,0,2,7,40], -"gb_8h.html#ae2a527ffae5cad8083726470c3f30475":[4,0,2,7,108], -"gb_8h.html#ae33fc234393ba50e8f30cbef403ded19":[4,0,2,7,87], "gb_8h.html#ae4510032b28f9f4cdaaa96b0b892cf57":[4,0,2,7,67], "gb_8h.html#ae47e59a309120f9420993f26816b5e6d":[4,0,2,7,5], -"gb_8h.html#ae7851349abd442026b49d499d6e43d79":[4,0,2,7,106], +"gb_8h.html#ae6e4ae6169648f1bf1fac9785f8f1c71":[4,0,2,7,80], "gb_8h.html#ae97793b4039609f93b0f7f8bddb18011":[4,0,2,7,17], "gb_8h.html#ae996ed4fd8bb6b308b9c8708a91df06b":[4,0,2,7,32], -"gb_8h.html#aea162a4e034d163bfd4f32a10cce4ba4":[4,0,2,7,122], -"gb_8h.html#aebd45a328b90ddda0154d5fb41b8bbc1":[4,0,2,7,111], +"gb_8h.html#aeb2f2155c7aac6bee02bb7377921394f":[4,0,2,7,128], "gb_8h.html#aed072359b42854fffae4cd29c1f34ea1":[4,0,2,7,90], "gb_8h.html#aeda4515a31485c9688c4601ac5ce2d79":[4,0,2,7,148], "gb_8h.html#aedb6e32c42d4b1d25ad11adccd7100c3":[4,0,2,7,54], "gb_8h.html#aee03efddee0f2f6fbcaec789301aaa9b":[4,0,2,7,36], "gb_8h.html#aee435a3a0dde3dbd7b6112dbb456cde8":[4,0,2,7,33], +"gb_8h.html#aeef17768c494bcd6b67f7591329f7ff5":[4,0,2,7,114], "gb_8h.html#af0e30d6af308ffe5a025fbe85da40f6f":[4,0,2,7,12], +"gb_8h.html#af1e1dffd53a01380c4bb1d491d0e08e8":[4,0,2,7,93], "gb_8h.html#af3d632ba2d7cef6619df5dfea8730909":[4,0,2,7,28], "gb_8h.html#af461d38864cfc5720f0d9f4d1113cf07":[4,0,2,7,74], "gb_8h.html#af4a728ba51de424a0bed286ac65d3242":[4,0,2,7,88], +"gb_8h.html#af5c0beff7d7a7d8641b51fd95c811b2a":[4,0,2,7,121], "gb_8h.html#af79b920bcb642bba2e652874c4f7eeff":[4,0,2,7,145], "gb_8h.html#af91d252f07f4764996154820f970c101":[4,0,2,7,57], -"gb_8h.html#afac2db0151b09291638f7a592a3d0e94":[4,0,2,7,92], -"gb_8h.html#afd45c10f4566ca284cdab4044c5645b3":[4,0,2,7,91], "gb_8h_source.html":[4,0,2,7], "gbdecompress_8h.html":[4,0,2,8], "gbdecompress_8h.html#a0b3366755f3276b0243c1e0497471b7a":[4,0,2,8,4], -"gbdecompress_8h.html#a197fa96ce7ac20d44d0c1a40e38283db":[4,0,2,8,0], -"gbdecompress_8h.html#a19f6e310adcb6ab4826fa89c305b6865":[4,0,2,8,3], -"gbdecompress_8h.html#a487d505119f770cdb138cb300174a719":[4,0,2,8,2], -"gbdecompress_8h.html#ac3194ad258cca32cc3eb813d24ae1b0c":[4,0,2,8,1], +"gbdecompress_8h.html#a1bf78b24168404ddd77fa2d95a5a9ee4":[4,0,2,8,3], +"gbdecompress_8h.html#a6aecbb8f7d7c066edb18940363c7e9a5":[4,0,2,8,0], +"gbdecompress_8h.html#a77d1475518a6b8e082515c02867372f7":[4,0,2,8,2], +"gbdecompress_8h.html#a944970c534bcaeeb3d14ebbaf154e90c":[4,0,2,8,1], "gbdecompress_8h_source.html":[4,0,2,8], "gbdk-lib_8h.html":[4,0,8], "gbdk-lib_8h_source.html":[4,0,8], -"globals.html":[4,1,0,0], "globals.html":[4,1,0], +"globals.html":[4,1,0,0], "globals_a.html":[4,1,0,1], "globals_b.html":[4,1,0,2], -"globals_c.html":[4,1,0,3], -"globals_d.html":[4,1,0,4], -"globals_defs.html":[4,1,4] +"globals_c.html":[4,1,0,3] }; diff --git a/docs/api/navtreeindex2.js b/docs/api/navtreeindex2.js index 7967aa96..297e9c34 100644 --- a/docs/api/navtreeindex2.js +++ b/docs/api/navtreeindex2.js @@ -1,5 +1,7 @@ var NAVTREEINDEX2 = { +"globals_d.html":[4,1,0,4], +"globals_defs.html":[4,1,4], "globals_defs.html":[4,1,4,0], "globals_defs_a.html":[4,1,4,1], "globals_defs_b.html":[4,1,4,2], @@ -47,16 +49,16 @@ var NAVTREEINDEX2 = "globals_w.html":[4,1,0,23], "globals_x.html":[4,1,0,24], "group__gbdk__fonts.html":[2,0], -"group__gbdk__fonts.html#ga2d59fb8d9b95354fcc9b4541ce43f276":[2,0,4], -"group__gbdk__fonts.html#ga2d59fb8d9b95354fcc9b4541ce43f276":[4,0,2,6,15], -"group__gbdk__fonts.html#ga3c28d792899071492568375585a171cf":[2,0,1], -"group__gbdk__fonts.html#ga3c28d792899071492568375585a171cf":[4,0,2,6,12], -"group__gbdk__fonts.html#ga8864dda768d160716fb95cc8c46cb5a9":[2,0,0], -"group__gbdk__fonts.html#ga8864dda768d160716fb95cc8c46cb5a9":[4,0,2,6,11], -"group__gbdk__fonts.html#gaa7ed899bc52aac6cd5cd7ba4c2a43215":[2,0,3], -"group__gbdk__fonts.html#gaa7ed899bc52aac6cd5cd7ba4c2a43215":[4,0,2,6,14], -"group__gbdk__fonts.html#gada456ea6f9f74229a178cef52471d37b":[2,0,2], -"group__gbdk__fonts.html#gada456ea6f9f74229a178cef52471d37b":[4,0,2,6,13], +"group__gbdk__fonts.html#ga17e825a65ba38f34a658fe0a2c99d8d4":[2,0,1], +"group__gbdk__fonts.html#ga17e825a65ba38f34a658fe0a2c99d8d4":[4,0,2,6,12], +"group__gbdk__fonts.html#ga1b59bbd85c12436eeef52d4c32c7345d":[2,0,0], +"group__gbdk__fonts.html#ga1b59bbd85c12436eeef52d4c32c7345d":[4,0,2,6,11], +"group__gbdk__fonts.html#ga6dcb04fed78fc39b95171988b776e6bb":[2,0,2], +"group__gbdk__fonts.html#ga6dcb04fed78fc39b95171988b776e6bb":[4,0,2,6,13], +"group__gbdk__fonts.html#gab8c52bed73e745f1ee910f2da60ddb4c":[2,0,4], +"group__gbdk__fonts.html#gab8c52bed73e745f1ee910f2da60ddb4c":[4,0,2,6,15], +"group__gbdk__fonts.html#gad8497ecbd9d845fc24a56688f157aad8":[2,0,3], +"group__gbdk__fonts.html#gad8497ecbd9d845fc24a56688f157aad8":[4,0,2,6,14], "hardware_8h.html":[4,0,2,9], "hardware_8h.html#a01c768b60853c8eecdefc2cedfc8d672":[4,0,2,9,21], "hardware_8h.html#a04c340d91842e8ee2b93922c2bcf39a4":[4,0,2,9,13], @@ -115,12 +117,12 @@ var NAVTREEINDEX2 = "hardware_8h.html#af577ba87ec3d13d7415e4c4a53cdf997":[4,0,2,9,37], "hardware_8h.html#afa1e18e47bf68ce68d7807fff6edf16b":[4,0,2,9,4], "hardware_8h_source.html":[4,0,2,9], -"index.html":[], "index.html":[0], -"index.html#autotoc_md157":[0,0], -"index.html#autotoc_md158":[0,1], -"index.html#autotoc_md159":[0,2], -"index.html#autotoc_md160":[0,3], +"index.html":[], +"index.html#autotoc_md159":[0,0], +"index.html#autotoc_md160":[0,1], +"index.html#autotoc_md161":[0,2], +"index.html#autotoc_md162":[0,3], "limits_8h.html":[4,0,9], "limits_8h.html#a174a3b1d61499b676a2ad2efc8f224c5":[4,0,9,17], "limits_8h.html#a1f758438cb1c7bcf55da2431f5e319e6":[4,0,9,8], @@ -145,24 +147,24 @@ var NAVTREEINDEX2 = "malloc_8h.html#a0ac9e31945f09f01e6b33e74d39f83ab":[4,0,2,10,4], "malloc_8h.html#a0d4cef44ecf687909f2c744d8420f7f0":[4,0,2,10,7], "malloc_8h.html#a12ca68b5ad70e18b1bb705bb83181148":[4,0,2,10,1], -"malloc_8h.html#a1f0de2ad46e0870a290a0541c9181054":[4,0,2,10,8], "malloc_8h.html#a5381c84316659ee9aee28b781ea72043":[4,0,2,10,6], +"malloc_8h.html#a6eca780b16338166df86a9e68aa083a6":[4,0,2,10,8], "malloc_8h.html#aaa516296171f3e24c0bd2c224c0221a1":[4,0,2,10,3], "malloc_8h.html#ad521838368171a2564658d4e129d7922":[4,0,2,10,5], "malloc_8h.html#ad799c724ea5f66caf6eee3f6401cf9f2":[4,0,2,10,2], "malloc_8h.html#af62987d0746c3fd2078e3b76d67a485d":[4,0,2,10,9], "malloc_8h_source.html":[4,0,2,10], "metasprites_8h.html":[4,0,2,11], -"metasprites_8h.html#a068687efbf101e8c59dbfaa4348fbfa6":[4,0,2,11,4], -"metasprites_8h.html#a14cb8235744c5f23da62bb2ae745d618":[4,0,2,11,10], -"metasprites_8h.html#a27b6e7dc523c565c69b180b2e9beec94":[4,0,2,11,6], -"metasprites_8h.html#a3c4eba6433da9892a05213bdf83090e4":[4,0,2,11,5], -"metasprites_8h.html#a7849b2b1e588dc7c01150fa5222e1316":[4,0,2,11,7], -"metasprites_8h.html#a8b44c9fffa6d4233e725a0e4b9da6e3c":[4,0,2,11,9], +"metasprites_8h.html#a27e3bb17d0458b60b1f0433f66301f46":[4,0,2,11,5], +"metasprites_8h.html#a32a61acd4a76d1de5814f7b94c8bc23f":[4,0,2,11,6], +"metasprites_8h.html#a345fa52509387bd18a4092178a18286f":[4,0,2,11,9], +"metasprites_8h.html#a4bfe4d95031b67951cf6bc342110db39":[4,0,2,11,10], +"metasprites_8h.html#a77475e913bf0a19df28bdbf9d1cf392b":[4,0,2,11,3], "metasprites_8h.html#a9f9f390a57460914e27c7604b7d8379a":[4,0,2,11,1], +"metasprites_8h.html#aa8ff2df0679ebb0b6e0a8f6d83127e1a":[4,0,2,11,4], "metasprites_8h.html#aae51f066cc5436457f62351847bfc64b":[4,0,2,11,8], -"metasprites_8h.html#ab994d938fa79cd7265b51953f5485b14":[4,0,2,11,3], "metasprites_8h.html#aba6401cc8173158a9f37ee22094c03d3":[4,0,2,11,2], +"metasprites_8h.html#af8de5a888d65448b9d34027a0e1ce906":[4,0,2,11,7], "metasprites_8h_source.html":[4,0,2,11], "modules.html":[2], "pages.html":[], @@ -172,14 +174,14 @@ var NAVTREEINDEX2 = "provides_8h.html#ac6678abba8f5929bc8b33f3202e568f0":[4,0,0,0,0,1], "provides_8h_source.html":[4,0,0,0,0], "rand_8h.html":[4,0,10], -"rand_8h.html#a3b69bdab83b46c324126a7ccdf9db973":[4,0,10,4], -"rand_8h.html#a605cafcd59528d887c1975a4e693d637":[4,0,10,3], -"rand_8h.html#ac0884b6de9f86e2413bd10de438da25c":[4,0,10,0], -"rand_8h.html#ae311e489ffa4743107bdea8db211e7fe":[4,0,10,1], -"rand_8h.html#aff9512d128c4e1435f2b83116da663b3":[4,0,10,2], +"rand_8h.html#a2c1b2cc92ec9f0c0b2fd90876ba5c8ec":[4,0,10,1], +"rand_8h.html#a3121ebb7e98dfcedbf4969b63f142bbb":[4,0,10,0], +"rand_8h.html#a78fb5ab799d1193062eee3645bae93c2":[4,0,10,2], +"rand_8h.html#ab6b156c085bb1daf9098eba18575bf03":[4,0,10,4], +"rand_8h.html#ae54bd9c3d48dfab0754499a3a7ba8a30":[4,0,10,3], "rand_8h_source.html":[4,0,10], "sample_8h.html":[4,0,2,12], -"sample_8h.html#acd2b881426ae608c513e5914e7bcd6a6":[4,0,2,12,0], +"sample_8h.html#a8078ce8a190d19529c135259f33211bd":[4,0,2,12,0], "sample_8h_source.html":[4,0,2,12], "setjmp_8h.html":[4,0,11], "setjmp_8h.html#a0239bfe1e2b75fa5757c32a90d0c140d":[4,0,11,3], @@ -196,6 +198,7 @@ var NAVTREEINDEX2 = "sgb_8h.html#a0b3366755f3276b0243c1e0497471b7a":[4,0,2,13,27], "sgb_8h.html#a1762d2df2599cf864400bac4934a5d61":[4,0,2,13,21], "sgb_8h.html#a20477d5772564b63de2d151e062dd5a7":[4,0,2,13,23], +"sgb_8h.html#a32d280961fb78aeabe1073ec0b9262d2":[4,0,2,13,25], "sgb_8h.html#a3b76bf1e9ac81da97c533fa3ab12096c":[4,0,2,13,24], "sgb_8h.html#a3d81b1e455d60d760ee58e2685953775":[4,0,2,13,12], "sgb_8h.html#a41981a213b67bdc45bf8ed78f07e7bba":[4,0,2,13,7], @@ -213,13 +216,12 @@ var NAVTREEINDEX2 = "sgb_8h.html#ac0bf9d5dc54d711fd14f44bf58eaa5db":[4,0,2,13,20], "sgb_8h.html#ac490ce8566f869727e8b00fabb1c9fc6":[4,0,2,13,11], "sgb_8h.html#acaa2f1ac9949189896582fc5ad0823b1":[4,0,2,13,1], +"sgb_8h.html#ad187ecd5608eae98ce6086f2e8e041af":[4,0,2,13,26], "sgb_8h.html#ad9023ed1d8dd4a2eebc55a376207f3d2":[4,0,2,13,10], "sgb_8h.html#adcb3f50616813637283f88bfd4d53e22":[4,0,2,13,6], "sgb_8h.html#ade5ba9723a9964e55cff72108149037a":[4,0,2,13,5], "sgb_8h.html#ae4fe10a0c9eca38d126f3a8701e3c9a2":[4,0,2,13,15], -"sgb_8h.html#aefdcea25c8e4b979dd9ff6f9853a5dc5":[4,0,2,13,26], "sgb_8h.html#af4d8b611dfdda33039038375ee95f424":[4,0,2,13,19], -"sgb_8h.html#af8c1bb504e5e626e7dce578ee43c805b":[4,0,2,13,25], "sgb_8h.html#af9e1ca804555fad619db3f38b62a49e8":[4,0,2,13,2], "sgb_8h_source.html":[4,0,2,13], "stdarg_8h.html":[4,0,3], @@ -247,7 +249,5 @@ var NAVTREEINDEX2 = "stdint_8h.html":[4,0,15], "stdint_8h.html#a00d3f5dd8a8cbd9433d74390bfb2ecef":[4,0,15,49], "stdint_8h.html#a022b9b0a3564d786244a4631847c37a3":[4,0,15,31], -"stdint_8h.html#a051084d5ebcabf282d9ca9bb2b891a78":[4,0,15,44], -"stdint_8h.html#a0fbe4a4f8dd857ee04923a901f27465f":[4,0,15,68], -"stdint_8h.html#a169460a4e2a79138723d68d99372d958":[4,0,15,19] +"stdint_8h.html#a051084d5ebcabf282d9ca9bb2b891a78":[4,0,15,44] }; diff --git a/docs/api/navtreeindex3.js b/docs/api/navtreeindex3.js index 5fa9aa49..9c513d15 100644 --- a/docs/api/navtreeindex3.js +++ b/docs/api/navtreeindex3.js @@ -1,5 +1,7 @@ var NAVTREEINDEX3 = { +"stdint_8h.html#a0fbe4a4f8dd857ee04923a901f27465f":[4,0,15,68], +"stdint_8h.html#a169460a4e2a79138723d68d99372d958":[4,0,15,19], "stdint_8h.html#a181807730d4a375f848ba139813ce04f":[4,0,15,5], "stdint_8h.html#a1b955596bdc3e4b6ef339f16e468d55f":[4,0,15,48], "stdint_8h.html#a1bae72af13d35bac8eb9424db7e27bf1":[4,0,15,60], @@ -112,35 +114,35 @@ var NAVTREEINDEX3 = "string_8h.html#af71f9ead43b3760680da8ab1bd3f783b":[4,0,19,5], "string_8h_source.html":[4,0,19], "struct_o_a_m__item__t.html":[3,0,5], -"struct_o_a_m__item__t.html#a03ef382139bd7cde2008109345e79f19":[3,0,5,3], -"struct_o_a_m__item__t.html#a48c4d7253494259403cd4597e8c19ca5":[3,0,5,0], -"struct_o_a_m__item__t.html#a7a0dc012815fd69a75347136e2a050dc":[3,0,5,1], -"struct_o_a_m__item__t.html#abe231d7583c7769e481c66ca8c6e8a10":[3,0,5,2], +"struct_o_a_m__item__t.html#a3a13fb7441f8c431d9494cd2441c6c0b":[3,0,5,1], +"struct_o_a_m__item__t.html#a435e018f3bbc0ebaa9eaf96806d386d9":[3,0,5,3], +"struct_o_a_m__item__t.html#a6c269ed01269d02bcf7e36e0de3696f6":[3,0,5,2], +"struct_o_a_m__item__t.html#ad5ad9d3d300858bf0b1cd9e210366a18":[3,0,5,0], "structatomic__flag.html":[3,0,2], "structatomic__flag.html#a4fe9312fe0abb35e9f3626dc06c89bc4":[3,0,2,0], "structjoypads__t.html":[3,0,3], -"structjoypads__t.html#a268cb19387182bb37739edff37aec0ea":[3,0,3,3], -"structjoypads__t.html#a3e384ae17e19fdb55eea5fc9c9c7201a":[3,0,3,0], -"structjoypads__t.html#a5c8034ff8781b7fad9da8bb414a4ce5f":[3,0,3,1], -"structjoypads__t.html#a9f293bf587af55f5c11b29617ca5547b":[3,0,3,4], -"structjoypads__t.html#af82f67ee80b1877732dc10cc23b5982f":[3,0,3,5], -"structjoypads__t.html#affc14b6b50eebfa0c8a85fc1554f3b25":[3,0,3,2], +"structjoypads__t.html#a032a279cf42e2737d6ce9893239d238e":[3,0,3,2], +"structjoypads__t.html#a5741138c91e93ea3203ee9e0d5d9413d":[3,0,3,3], +"structjoypads__t.html#a5e953c63dfb5148ba29f5735a735035f":[3,0,3,1], +"structjoypads__t.html#a8d181ece2d3db614ed6686cfba545238":[3,0,3,5], +"structjoypads__t.html#ab281d26e5197e49633274f412b164295":[3,0,3,4], +"structjoypads__t.html#af84e3549a0708ee0e04295e5f853e9f5":[3,0,3,0], "structmetasprite__t.html":[3,0,4], -"structmetasprite__t.html#a01b7de72e08ac14c7f28e10121dc13f6":[3,0,4,3], -"structmetasprite__t.html#a6005af579bbc6ceea5a960ffbf73d83d":[3,0,4,2], -"structmetasprite__t.html#a8dd01a7609fe347baf7995ef9eec4369":[3,0,4,1], -"structmetasprite__t.html#acc640358a5fc8e92e4d1092819cfe471":[3,0,4,0], +"structmetasprite__t.html#a2c3fea1f6b3354352823320c69a3e4bb":[3,0,4,0], +"structmetasprite__t.html#a67d2a6fb62059da39b54e975c4fbb324":[3,0,4,1], +"structmetasprite__t.html#ab61e73a65c5e8cb30d0d81bb7845d615":[3,0,4,3], +"structmetasprite__t.html#ad68b2f80c08f2f7fc603c56af2e75a6f":[3,0,4,2], "structsfont__handle.html":[3,0,6], -"structsfont__handle.html#a90292548ac5f9955f1bee0ac99fe4eea":[3,0,6,0], +"structsfont__handle.html#aa5a35bc92adbcfff5a531bf65da65630":[3,0,6,0], "structsfont__handle.html#afa826a9e7aa0dc456bd342717eea1f89":[3,0,6,1], "structsmalloc__hunk.html":[3,0,7], "structsmalloc__hunk.html#a204a0318f8d6d87cf68be18463318812":[3,0,7,3], "structsmalloc__hunk.html#a23342f9c125db8da542769cf53794a1f":[3,0,7,1], -"structsmalloc__hunk.html#a4463bb598cac05efb9cf024d4d03b6b0":[3,0,7,0], -"structsmalloc__hunk.html#a8b15039895492addf48d26ff38ec95ab":[3,0,7,2], +"structsmalloc__hunk.html#a792a3db775b88e1df1cb003122a0e6e0":[3,0,7,0], +"structsmalloc__hunk.html#ab638375e6e17c5f20bf04bfe6bc75efc":[3,0,7,2], "time_8h.html":[4,0,20], "time_8h.html#a3d9fc3c745d0880902fe3ea3d5d5f71e":[4,0,20,0], -"time_8h.html#ab3806eb1b3b24a99fcc7a2a8c6411e77":[4,0,20,1], +"time_8h.html#ac84921d4d15eedac7d7b8051a7944c84":[4,0,20,1], "time_8h.html#ae7841e681c8c9d59818568d39553642c":[4,0,20,3], "time_8h.html#aec80425d74a9644112e61b235fc9ffa9":[4,0,20,2], "time_8h_source.html":[4,0,20], @@ -175,7 +177,7 @@ var NAVTREEINDEX3 = "types_8h.html#ae51a81000f343b8ec43bca1f6a723d7b":[4,0,4,3], "types_8h_source.html":[4,0,4], "union____far__ptr.html":[3,0,0], -"union____far__ptr.html#a508575a942b502a673bc3db4970c1e0b":[3,0,0,2], +"union____far__ptr.html#a13c65a38be633a3ac219c3b5b3be5ce6":[3,0,0,2], "union____far__ptr.html#a60fef2b4efac12d73fd609373631ac4e":[3,0,0,1], "union____far__ptr.html#a8c6e2345a04a58dc76339923baffcbe3":[3,0,0,5], "union____far__ptr.html#a90065c72477187e9f9c97c07c90f6af9":[3,0,0,4], diff --git a/docs/api/rand_8h.html b/docs/api/rand_8h.html index 79763598..c5856267 100644 --- a/docs/api/rand_8h.html +++ b/docs/api/rand_8h.html @@ -92,28 +92,29 @@ $(document).ready(function(){initNavTree('rand_8h.html',''); initResizable(); })
    UBYTE move_metasprite uint8_t move_metasprite ( const metasprite_t metasprite,
    UINT8 uint8_t  base_tile,
    UINT8 uint8_t  base_sprite,
    UINT8 uint8_t  x,
    UINT8 uint8_t  y 
    - + @@ -291,25 +292,25 @@ Metasprites and sprite properties (including cgb palette) - + - + - + - + @@ -336,19 +337,19 @@ Metasprites and sprite properties (including cgb palette)
    UBYTE move_metasprite_vflip uint8_t move_metasprite_vflip ( const metasprite_t metasprite,
    UINT8 uint8_t  base_tile,
    UINT8 uint8_t  base_sprite,
    UINT8 uint8_t  x,
    UINT8 uint8_t  y 
    -

    Same as move_metasprite(), but with the metasprite flipped on the Y axis only.

    +

    Same as move_metasprite(), but with the metasprite flipped on the Y axis only.

    Sets:

    • __current_metasprite = metasprite;
    • __current_base_tile = base_tile;

    Note: Overwrites OAM sprite properties (such as CGB palette), see Metasprites and sprite properties.

    Returns
    Number of hardware sprites used to draw this metasprite
    -
    See also
    move_metasprite()
    +
    See also
    move_metasprite()
    - -

    ◆ move_metasprite_hflip()

    + +

    ◆ move_metasprite_hflip()

    @@ -357,7 +358,7 @@ Metasprites and sprite properties (including cgb palette)
    - + @@ -365,25 +366,25 @@ Metasprites and sprite properties (including cgb palette) - + - + - + - + @@ -410,19 +411,19 @@ Metasprites and sprite properties (including cgb palette)
    UBYTE move_metasprite_hflip uint8_t move_metasprite_hflip ( const metasprite_t metasprite,
    UINT8 uint8_t  base_tile,
    UINT8 uint8_t  base_sprite,
    UINT8 uint8_t  x,
    UINT8 uint8_t  y 
    -

    Same as move_metasprite(), but with the metasprite flipped on the X axis only.

    +

    Same as move_metasprite(), but with the metasprite flipped on the X axis only.

    Sets:

    • __current_metasprite = metasprite;
    • __current_base_tile = base_tile;

    Note: Overwrites OAM sprite properties (such as CGB palette), see Metasprites and sprite properties.

    Returns
    Number of hardware sprites used to draw this metasprite
    -
    See also
    move_metasprite()
    +
    See also
    move_metasprite()
    - -

    ◆ move_metasprite_hvflip()

    + +

    ◆ move_metasprite_hvflip()

    @@ -431,7 +432,7 @@ Metasprites and sprite properties (including cgb palette)
    - + @@ -439,25 +440,25 @@ Metasprites and sprite properties (including cgb palette) - + - + - + - + @@ -484,19 +485,19 @@ Metasprites and sprite properties (including cgb palette)
    UBYTE move_metasprite_hvflip uint8_t move_metasprite_hvflip ( const metasprite_t metasprite,
    UINT8 uint8_t  base_tile,
    UINT8 uint8_t  base_sprite,
    UINT8 uint8_t  x,
    UINT8 uint8_t  y 
    -

    Same as move_metasprite(), but with the metasprite flipped on both the X and Y axis.

    +

    Same as move_metasprite(), but with the metasprite flipped on both the X and Y axis.

    Sets:

    • __current_metasprite = metasprite;
    • __current_base_tile = base_tile;

    Note: Overwrites OAM sprite properties (such as CGB palette), see Metasprites and sprite properties.

    Returns
    Number of hardware sprites used to draw this metasprite
    -
    See also
    move_metasprite()
    +
    See also
    move_metasprite()
    - -

    ◆ hide_metasprite()

    + +

    ◆ hide_metasprite()

    @@ -513,7 +514,7 @@ Metasprites and sprite properties (including cgb palette)
    UINT8 uint8_t  base_sprite 
    - +
    UBYTE __current_base_tileuint8_t __current_base_tile
    - +
    UBYTE __render_shadow_OAMuint8_t __render_shadow_OAM
    - - - - - - - - - - + + + + + + + + + +

    Functions

    void initrand (UINT16 seed) NONBANKED
     
    INT8 rand (void)
     
    UINT16 randw (void)
     
    void initarand (UINT16 seed)
     
    INT8 arand (void)
     
    void initrand (uint16_t seed) NONBANKED
     
    int8_t rand (void)
     
    uint16_t randw (void)
     
    void initarand (uint16_t seed)
     
    int8_t arand (void)
     

    Detailed Description

    Random generator using the linear congruential method

    Author
    Luc Van den Borre

    Function Documentation

    - -

    ◆ initrand()

    + +

    ◆ initrand()

    @@ -121,7 +122,7 @@ Functions void initrand ( - UINT16  + uint16_t  seed) @@ -136,18 +137,18 @@ Functions

    The seed should be different each time, otherwise the same pseudo-random sequence will be generated.

    The DIV Register (DIV_REG) is sometimes used as a seed, particularly if read at some variable point in time (such as when the player presses a button).

    -

    Only needs to be called once to initialize, buy may be called again to re-initialize with the same or a different seed.

    See also
    rand(), randw()
    +

    Only needs to be called once to initialize, buy may be called again to re-initialize with the same or a different seed.

    See also
    rand(), randw()
    - -

    ◆ rand()

    + +

    ◆ rand()

    - + @@ -156,18 +157,18 @@ Functions
    INT8 rand int8_t rand ( void  )

    Returns a random byte (8 bit) value.

    -

    initrand() should be used to initialize the random number generator before using rand()

    +

    initrand() should be used to initialize the random number generator before using rand()

    - -

    ◆ randw()

    + +

    ◆ randw()

    - + @@ -176,12 +177,12 @@ Functions
    UINT16 randw uint16_t randw ( void  )

    Returns a random word (16 bit) value.

    -

    initrand() should be used to initialize the random number generator before using rand()

    +

    initrand() should be used to initialize the random number generator before using rand()

    - -

    ◆ initarand()

    + +

    ◆ initarand()

    @@ -189,7 +190,7 @@ Functions void initarand ( - UINT16  + uint16_t  seed) @@ -202,19 +203,19 @@ Functions -

    Note: initarand() calls initrand() with the same seed value, and uses rand() to initialize the random generator.

    -
    See also
    initrand() for suggestions about seed values, arand()
    +

    Note: initarand() calls initrand() with the same seed value, and uses rand() to initialize the random generator.

    +
    See also
    initrand() for suggestions about seed values, arand()
    - -

    ◆ arand()

    + +

    ◆ arand()

    - + @@ -223,7 +224,7 @@ Functions
    INT8 arand int8_t arand ( void  )

    Returns a random number generated with the linear lagged additive method.

    -

    initarand() should be used to initialize the random number generator before using arand()

    +

    initarand() should be used to initialize the random number generator before using arand()

    diff --git a/docs/api/rand_8h.js b/docs/api/rand_8h.js index 32ac4f05..fe2be299 100644 --- a/docs/api/rand_8h.js +++ b/docs/api/rand_8h.js @@ -1,8 +1,8 @@ var rand_8h = [ - [ "initrand", "rand_8h.html#ac0884b6de9f86e2413bd10de438da25c", null ], - [ "rand", "rand_8h.html#ae311e489ffa4743107bdea8db211e7fe", null ], - [ "randw", "rand_8h.html#aff9512d128c4e1435f2b83116da663b3", null ], - [ "initarand", "rand_8h.html#a605cafcd59528d887c1975a4e693d637", null ], - [ "arand", "rand_8h.html#a3b69bdab83b46c324126a7ccdf9db973", null ] + [ "initrand", "rand_8h.html#a3121ebb7e98dfcedbf4969b63f142bbb", null ], + [ "rand", "rand_8h.html#a2c1b2cc92ec9f0c0b2fd90876ba5c8ec", null ], + [ "randw", "rand_8h.html#a78fb5ab799d1193062eee3645bae93c2", null ], + [ "initarand", "rand_8h.html#ae54bd9c3d48dfab0754499a3a7ba8a30", null ], + [ "arand", "rand_8h.html#ab6b156c085bb1daf9098eba18575bf03", null ] ]; \ No newline at end of file diff --git a/docs/api/rand_8h_source.html b/docs/api/rand_8h_source.html index b7914110..af01f064 100644 --- a/docs/api/rand_8h_source.html +++ b/docs/api/rand_8h_source.html @@ -94,34 +94,36 @@ $(document).ready(function(){initNavTree('rand_8h_source.html',''); initResizabl
    7 #define RAND_INCLUDE
    8 
    9 #include <types.h>
    -
    10 
    -
    26 void
    -
    27 initrand(UINT16 seed) NONBANKED; /* Non-banked as called from asm in arand.s */
    -
    28 
    -
    33 INT8
    -
    34 rand(void);
    -
    35 
    -
    40 UINT16
    -
    41 randw(void);
    -
    42 
    -
    52 void
    - -
    54 
    -
    59 INT8
    -
    60 arand(void);
    -
    61 
    -
    62 #endif
    +
    10 #include <stdint.h>
    +
    11 
    +
    27 void
    +
    28 initrand(uint16_t seed) NONBANKED; /* Non-banked as called from asm in arand.s */
    +
    29 
    +
    34 int8_t
    +
    35 rand(void);
    +
    36 
    + +
    42 randw(void);
    +
    43 
    +
    53 void
    + +
    55 
    +
    60 int8_t
    +
    61 arand(void);
    +
    62 
    +
    63 #endif
    -
    UINT16
    unsigned int UINT16
    Definition: types.h:28
    +
    int8_t
    signed char int8_t
    Definition: stdint.h:43
    +
    randw
    uint16_t randw(void)
    types.h
    -
    rand
    INT8 rand(void)
    -
    arand
    INT8 arand(void)
    -
    initrand
    void initrand(UINT16 seed) NONBANKED
    -
    initarand
    void initarand(UINT16 seed)
    +
    uint16_t
    unsigned short int uint16_t
    Definition: stdint.h:52
    +
    initrand
    void initrand(uint16_t seed) NONBANKED
    +
    stdint.h
    +
    rand
    int8_t rand(void)
    NONBANKED
    #define NONBANKED
    Definition: types.h:12
    -
    INT8
    signed char INT8
    Definition: types.h:19
    -
    randw
    UINT16 randw(void)
    +
    arand
    int8_t arand(void)
    +
    initarand
    void initarand(uint16_t seed)
    - +
    #include <types.h>
    +#include <stdint.h>
    +

    Go to the source code of this file.

    - - + +

    Functions

    void play_sample (UINT8 *start, UINT16 len) NONBANKED
     
    void play_sample (uint8_t *start, uint16_t len) NONBANKED
     

    Detailed Description

    Playback raw sound sample with length len from start at 8192Hz rate. len defines the length of the sample in samples/32 or bytes/16. The format of the data is unsigned 4-bit samples, 2 samples per byte, upper 4-bits played before lower 4 bits.

    Adaption for GBDK by Lars Malmborg. Original code by Jeff Frohwein.

    Function Documentation

    - -

    ◆ play_sample()

    + +

    ◆ play_sample()

    @@ -112,13 +114,13 @@ Functions void play_sample ( - UINT8 *  + uint8_tstart, - UINT16  + uint16_t  len  diff --git a/docs/api/sample_8h.js b/docs/api/sample_8h.js index 74b8dd48..cf59844a 100644 --- a/docs/api/sample_8h.js +++ b/docs/api/sample_8h.js @@ -1,4 +1,4 @@ var sample_8h = [ - [ "play_sample", "sample_8h.html#acd2b881426ae608c513e5914e7bcd6a6", null ] + [ "play_sample", "sample_8h.html#a8078ce8a190d19529c135259f33211bd", null ] ]; \ No newline at end of file diff --git a/docs/api/sample_8h_source.html b/docs/api/sample_8h_source.html index 1e45500a..a857d13d 100644 --- a/docs/api/sample_8h_source.html +++ b/docs/api/sample_8h_source.html @@ -93,16 +93,19 @@ $(document).ready(function(){initNavTree('sample_8h_source.html',''); initResiza
    10 #ifndef _SAMPLE_H
    11 #define _SAMPLE_H
    12 
    -
    15 void
    - -
    17 
    -
    18 #endif /* _SAMPLE_H */
    +
    13 #include <types.h>
    +
    14 #include <stdint.h>
    +
    15 
    + +
    19 
    +
    20 #endif /* _SAMPLE_H */
    -
    UINT8
    unsigned char UINT8
    Definition: types.h:22
    -
    UINT16
    unsigned int UINT16
    Definition: types.h:28
    +
    uint8_t
    unsigned char uint8_t
    Definition: stdint.h:51
    +
    uint16_t
    unsigned short int uint16_t
    Definition: stdint.h:52
    +
    stdint.h
    NONBANKED
    #define NONBANKED
    Definition: types.h:12
    -
    play_sample
    void play_sample(UINT8 *start, UINT16 len) NONBANKED
    +
    play_sample
    void play_sample(uint8_t *start, uint16_t len) NONBANKED
    - +
    #include <types.h>
    +#include <stdint.h>
    +

    Go to the source code of this file.

    @@ -151,14 +153,14 @@ Macros

    - - - - + + + +

    Functions

    UINT8 sgb_check (void) __preserves_regs(b
     
    void sgb_transfer (unsigned char *packet) __preserves_regs(b
     
    uint8_t sgb_check (void) __preserves_regs(b
     
    void sgb_transfer (uint8_t *packet) __preserves_regs(b
     
    - +

    Variables

    UINT8 c
    uint8_t c
     

    Detailed Description

    @@ -541,14 +543,14 @@ Variables

    Function Documentation

    - -

    ◆ sgb_check()

    + +

    ◆ sgb_check()

    - + @@ -560,8 +562,8 @@ Variables - -

    ◆ sgb_transfer()

    + +

    ◆ sgb_transfer()

    @@ -569,7 +571,7 @@ Variables
    - + @@ -584,7 +586,7 @@ Variables

    The first byte of packet should be a SGB command, then up to 15 bytes of command parameter data.

    See the sgb_border GBDK example project for a demo of how to use these the sgb functions.

    -
    See also
    sgb_check()
    +
    See also
    sgb_check()
    diff --git a/docs/api/sgb_8h.js b/docs/api/sgb_8h.js index f775c098..df881f6e 100644 --- a/docs/api/sgb_8h.js +++ b/docs/api/sgb_8h.js @@ -25,7 +25,7 @@ var sgb_8h = [ "SGB_ATTR_SET", "sgb_8h.html#abf8d94c42e97e1ce640340657df70640", null ], [ "SGB_MASK_EN", "sgb_8h.html#a20477d5772564b63de2d151e062dd5a7", null ], [ "SGB_OBJ_TRN", "sgb_8h.html#a3b76bf1e9ac81da97c533fa3ab12096c", null ], - [ "sgb_check", "sgb_8h.html#af8c1bb504e5e626e7dce578ee43c805b", null ], - [ "sgb_transfer", "sgb_8h.html#aefdcea25c8e4b979dd9ff6f9853a5dc5", null ], + [ "sgb_check", "sgb_8h.html#a32d280961fb78aeabe1073ec0b9262d2", null ], + [ "sgb_transfer", "sgb_8h.html#ad187ecd5608eae98ce6086f2e8e041af", null ], [ "c", "sgb_8h.html#a0b3366755f3276b0243c1e0497471b7a", null ] ]; \ No newline at end of file diff --git a/docs/api/sgb_8h_source.html b/docs/api/sgb_8h_source.html index be591a1b..62fc660a 100644 --- a/docs/api/sgb_8h_source.html +++ b/docs/api/sgb_8h_source.html @@ -93,41 +93,46 @@ $(document).ready(function(){initNavTree('sgb_8h_source.html',''); initResizable
    6 #ifndef _SGB_H
    7 #define _SGB_H
    8 
    -
    9 #define SGB_PAL_01 0x00U
    -
    10 #define SGB_PAL_23 0x01U
    -
    11 #define SGB_PAL_03 0x02U
    -
    12 #define SGB_PAL_12 0x03U
    -
    13 #define SGB_ATTR_BLK 0x04U
    -
    14 #define SGB_ATTR_LIN 0x05U
    -
    15 #define SGB_ATTR_DIV 0x06U
    -
    16 #define SGB_ATTR_CHR 0x07U
    -
    17 #define SGB_SOUND 0x08U
    -
    18 #define SGB_SOU_TRN 0x09U
    -
    19 #define SGB_PAL_SET 0x0AU
    -
    20 #define SGB_PAL_TRN 0x0BU
    -
    21 #define SGB_ATRC_EN 0x0CU
    -
    22 #define SGB_TEST_EN 0x0DU
    -
    23 #define SGB_ICON_EN 0x0EU
    -
    24 #define SGB_DATA_SND 0x0FU
    -
    25 #define SGB_DATA_TRN 0x10U
    -
    26 #define SGB_MLT_REQ 0x11U
    -
    27 #define SGB_JUMP 0x12U
    -
    28 #define SGB_CHR_TRN 0x13U
    -
    29 #define SGB_PCT_TRN 0x14U
    -
    30 #define SGB_ATTR_TRN 0x15U
    -
    31 #define SGB_ATTR_SET 0x16U
    -
    32 #define SGB_MASK_EN 0x17U
    -
    33 #define SGB_OBJ_TRN 0x18U
    -
    37 UINT8 sgb_check(void) __preserves_regs(b, c);
    -
    38 
    -
    51 void sgb_transfer(unsigned char * packet) __preserves_regs(b, c);
    -
    52 
    -
    53 #endif /* _SGB_H */
    +
    9 #include <types.h>
    +
    10 #include <stdint.h>
    +
    11 
    +
    12 #define SGB_PAL_01 0x00U
    +
    13 #define SGB_PAL_23 0x01U
    +
    14 #define SGB_PAL_03 0x02U
    +
    15 #define SGB_PAL_12 0x03U
    +
    16 #define SGB_ATTR_BLK 0x04U
    +
    17 #define SGB_ATTR_LIN 0x05U
    +
    18 #define SGB_ATTR_DIV 0x06U
    +
    19 #define SGB_ATTR_CHR 0x07U
    +
    20 #define SGB_SOUND 0x08U
    +
    21 #define SGB_SOU_TRN 0x09U
    +
    22 #define SGB_PAL_SET 0x0AU
    +
    23 #define SGB_PAL_TRN 0x0BU
    +
    24 #define SGB_ATRC_EN 0x0CU
    +
    25 #define SGB_TEST_EN 0x0DU
    +
    26 #define SGB_ICON_EN 0x0EU
    +
    27 #define SGB_DATA_SND 0x0FU
    +
    28 #define SGB_DATA_TRN 0x10U
    +
    29 #define SGB_MLT_REQ 0x11U
    +
    30 #define SGB_JUMP 0x12U
    +
    31 #define SGB_CHR_TRN 0x13U
    +
    32 #define SGB_PCT_TRN 0x14U
    +
    33 #define SGB_ATTR_TRN 0x15U
    +
    34 #define SGB_ATTR_SET 0x16U
    +
    35 #define SGB_MASK_EN 0x17U
    +
    36 #define SGB_OBJ_TRN 0x18U
    +
    40 uint8_t sgb_check(void) __preserves_regs(b, c);
    +
    41 
    +
    54 void sgb_transfer(uint8_t * packet) __preserves_regs(b, c);
    +
    55 
    +
    56 #endif /* _SGB_H */
    -
    UINT8 c
    Definition: sgb.h:37
    -
    void sgb_transfer(unsigned char *packet) __preserves_regs(b
    -
    void b
    Definition: gb.h:458
    +
    unsigned char uint8_t
    Definition: stdint.h:51
    +
    uint8_t c
    Definition: sgb.h:40
    + +
    void b
    Definition: gb.h:457
    +
    void sgb_transfer(uint8_t *packet) __preserves_regs(b
    char getchar(void)
    -
    UINT8 c
    Definition: gb.h:278
    +
    uint8_t c
    Definition: gb.h:277
    void sprintf(char *str, const char *format,...) NONBANKED
    void putchar(char c)
    #define NONBANKED
    Definition: types.h:12
    diff --git a/docs/api/stdlib_8h.html b/docs/api/stdlib_8h.html index 3179e4a6..a30b4776 100644 --- a/docs/api/stdlib_8h.html +++ b/docs/api/stdlib_8h.html @@ -620,7 +620,7 @@ Functions -
    void d
    Definition: gb.h:458
    +
    void d
    Definition: gb.h:457
    UINT8 sgb_check uint8_t sgb_check ( void  )
    void sgb_transfer (unsigned char * uint8_t packet)
    - - - - - - - - + + + + + + + +

    Data Fields

    UINT8 y
     
    UINT8 x
     
    UINT8 tile
     
    UINT8 prop
     
    uint8_t y
     
    uint8_t x
     
    uint8_t tile
     
    uint8_t prop
     

    Detailed Description

    Sprite Attributes structure

    Parameters
    - - + +
    xX Coordinate of the sprite on screen
    yY Coordinate of the sprite on screen
    tileSprite tile number (see set_sprite_tile)
    propOAM Property Flags (see set_sprite_prop)
    tileSprite tile number (see set_sprite_tile)
    propOAM Property Flags (see set_sprite_prop)

    Field Documentation

    - -

    ◆ y

    + +

    ◆ y

    - +
    UINT8 OAM_item_t::yuint8_t OAM_item_t::y
    - -

    ◆ x

    + +

    ◆ x

    - +
    UINT8 OAM_item_t::xuint8_t OAM_item_t::x
    - -

    ◆ tile

    + +

    ◆ tile

    - +
    UINT8 OAM_item_t::tileuint8_t OAM_item_t::tile
    - -

    ◆ prop

    + +

    ◆ prop

    - +
    UINT8 OAM_item_t::propuint8_t OAM_item_t::prop
    diff --git a/docs/api/struct_o_a_m__item__t.js b/docs/api/struct_o_a_m__item__t.js index 8cb5ba67..6490f875 100644 --- a/docs/api/struct_o_a_m__item__t.js +++ b/docs/api/struct_o_a_m__item__t.js @@ -1,7 +1,7 @@ var struct_o_a_m__item__t = [ - [ "y", "struct_o_a_m__item__t.html#a48c4d7253494259403cd4597e8c19ca5", null ], - [ "x", "struct_o_a_m__item__t.html#a7a0dc012815fd69a75347136e2a050dc", null ], - [ "tile", "struct_o_a_m__item__t.html#abe231d7583c7769e481c66ca8c6e8a10", null ], - [ "prop", "struct_o_a_m__item__t.html#a03ef382139bd7cde2008109345e79f19", null ] + [ "y", "struct_o_a_m__item__t.html#ad5ad9d3d300858bf0b1cd9e210366a18", null ], + [ "x", "struct_o_a_m__item__t.html#a3a13fb7441f8c431d9494cd2441c6c0b", null ], + [ "tile", "struct_o_a_m__item__t.html#a6c269ed01269d02bcf7e36e0de3696f6", null ], + [ "prop", "struct_o_a_m__item__t.html#a435e018f3bbc0ebaa9eaf96806d386d9", null ] ]; \ No newline at end of file diff --git a/docs/api/structjoypads__t.html b/docs/api/structjoypads__t.html index 7d27fe5b..e99522e3 100644 --- a/docs/api/structjoypads__t.html +++ b/docs/api/structjoypads__t.html @@ -96,107 +96,107 @@ $(document).ready(function(){initNavTree('structjoypads__t.html',''); initResiza - - + + - - - - - - - - + + + + + + + + - - + +

    Data Fields

    UINT8 npads
     
    uint8_t npads
     
    union {
       struct {
          UINT8   joy0
     
          UINT8   joy1
     
          UINT8   joy2
     
          UINT8   joy3
     
          uint8_t   joy0
     
          uint8_t   joy1
     
          uint8_t   joy2
     
          uint8_t   joy3
     
       } 
     
       UINT8   joypads [4]
     
       uint8_t   joypads [4]
     
    }; 
     

    Detailed Description

    Multiplayer joypad structure.

    -

    Must be initialized with joypad_init() first then it may be used to poll all avaliable joypads with joypad_ex()

    +

    Must be initialized with joypad_init() first then it may be used to poll all avaliable joypads with joypad_ex()

    Field Documentation

    - -

    ◆ npads

    + +

    ◆ npads

    - +
    UINT8 joypads_t::npadsuint8_t joypads_t::npads
    - -

    ◆ joy0

    + +

    ◆ joy0

    - +
    UINT8 joypads_t::joy0uint8_t joypads_t::joy0
    - -

    ◆ joy1

    + +

    ◆ joy1

    - +
    UINT8 joypads_t::joy1uint8_t joypads_t::joy1
    - -

    ◆ joy2

    + +

    ◆ joy2

    - +
    UINT8 joypads_t::joy2uint8_t joypads_t::joy2
    - -

    ◆ joy3

    + +

    ◆ joy3

    - +
    UINT8 joypads_t::joy3uint8_t joypads_t::joy3
    - -

    ◆ joypads

    + +

    ◆ joypads

    - +
    UINT8 joypads_t::joypads[4]uint8_t joypads_t::joypads[4]
    diff --git a/docs/api/structjoypads__t.js b/docs/api/structjoypads__t.js index 6f9660d6..edc3d063 100644 --- a/docs/api/structjoypads__t.js +++ b/docs/api/structjoypads__t.js @@ -1,9 +1,9 @@ var structjoypads__t = [ - [ "npads", "structjoypads__t.html#a3e384ae17e19fdb55eea5fc9c9c7201a", null ], - [ "joy0", "structjoypads__t.html#a5c8034ff8781b7fad9da8bb414a4ce5f", null ], - [ "joy1", "structjoypads__t.html#affc14b6b50eebfa0c8a85fc1554f3b25", null ], - [ "joy2", "structjoypads__t.html#a268cb19387182bb37739edff37aec0ea", null ], - [ "joy3", "structjoypads__t.html#a9f293bf587af55f5c11b29617ca5547b", null ], - [ "joypads", "structjoypads__t.html#af82f67ee80b1877732dc10cc23b5982f", null ] + [ "npads", "structjoypads__t.html#af84e3549a0708ee0e04295e5f853e9f5", null ], + [ "joy0", "structjoypads__t.html#a5e953c63dfb5148ba29f5735a735035f", null ], + [ "joy1", "structjoypads__t.html#a032a279cf42e2737d6ce9893239d238e", null ], + [ "joy2", "structjoypads__t.html#a5741138c91e93ea3203ee9e0d5d9413d", null ], + [ "joy3", "structjoypads__t.html#ab281d26e5197e49633274f412b164295", null ], + [ "joypads", "structjoypads__t.html#a8d181ece2d3db614ed6686cfba545238", null ] ]; \ No newline at end of file diff --git a/docs/api/structmetasprite__t.html b/docs/api/structmetasprite__t.html index 50515be2..6da84013 100644 --- a/docs/api/structmetasprite__t.html +++ b/docs/api/structmetasprite__t.html @@ -96,77 +96,77 @@ $(document).ready(function(){initNavTree('structmetasprite__t.html',''); initRes - - - - - - - - + + + + + + + +

    Data Fields

    INT8 dy
     
    INT8 dx
     
    UINT8 dtile
     
    UINT8 props
     
    int8_t dy
     
    int8_t dx
     
    uint8_t dtile
     
    uint8_t props
     

    Detailed Description

    Metasprite sub-item structure

    Parameters
    - - - - + + + +
    dy(INT8) Y coordinate of the sprite relative to the metasprite origin (pivot)
    dx(INT8) X coordinate of the sprite relative to the metasprite origin (pivot)
    dtile(UINT8) Start tile relative to the metasprites own set of tiles
    props(UINT8) Property Flags
    dy(int8_t) Y coordinate of the sprite relative to the metasprite origin (pivot)
    dx(int8_t) X coordinate of the sprite relative to the metasprite origin (pivot)
    dtile(uint8_t) Start tile relative to the metasprites own set of tiles
    props(uint8_t) Property Flags

    Metasprites are built from multiple metasprite_t items (one for each sub-sprite) and a pool of tiles they reference. If a metasprite has multiple frames then each frame will be built from some number of metasprite_t items (which may vary based on how many sprites are required for that particular frame).

    Field Documentation

    - -

    ◆ dy

    + +

    ◆ dy

    - +
    INT8 metasprite_t::dyint8_t metasprite_t::dy
    - -

    ◆ dx

    + +

    ◆ dx

    - +
    INT8 metasprite_t::dxint8_t metasprite_t::dx
    - -

    ◆ dtile

    + +

    ◆ dtile

    - +
    UINT8 metasprite_t::dtileuint8_t metasprite_t::dtile
    - -

    ◆ props

    + +

    ◆ props

    - +
    UINT8 metasprite_t::propsuint8_t metasprite_t::props
    diff --git a/docs/api/structmetasprite__t.js b/docs/api/structmetasprite__t.js index 8becc753..485fd7d5 100644 --- a/docs/api/structmetasprite__t.js +++ b/docs/api/structmetasprite__t.js @@ -1,7 +1,7 @@ var structmetasprite__t = [ - [ "dy", "structmetasprite__t.html#acc640358a5fc8e92e4d1092819cfe471", null ], - [ "dx", "structmetasprite__t.html#a8dd01a7609fe347baf7995ef9eec4369", null ], - [ "dtile", "structmetasprite__t.html#a6005af579bbc6ceea5a960ffbf73d83d", null ], - [ "props", "structmetasprite__t.html#a01b7de72e08ac14c7f28e10121dc13f6", null ] + [ "dy", "structmetasprite__t.html#a2c3fea1f6b3354352823320c69a3e4bb", null ], + [ "dx", "structmetasprite__t.html#a67d2a6fb62059da39b54e975c4fbb324", null ], + [ "dtile", "structmetasprite__t.html#ad68b2f80c08f2f7fc603c56af2e75a6f", null ], + [ "props", "structmetasprite__t.html#ab61e73a65c5e8cb30d0d81bb7845d615", null ] ]; \ No newline at end of file diff --git a/docs/api/structsfont__handle.html b/docs/api/structsfont__handle.html index 862803e4..eebad9f4 100644 --- a/docs/api/structsfont__handle.html +++ b/docs/api/structsfont__handle.html @@ -96,22 +96,22 @@ $(document).ready(function(){initNavTree('structsfont__handle.html',''); initRes - - + +

    Data Fields

    UINT8 first_tile
     
    uint8_t first_tile
     
    void * font
     

    Detailed Description

    Font handle structure

    Field Documentation

    - -

    ◆ first_tile

    + +

    ◆ first_tile

    - +
    UINT8 sfont_handle::first_tileuint8_t sfont_handle::first_tile
    diff --git a/docs/api/structsfont__handle.js b/docs/api/structsfont__handle.js index c46593f2..a0180cb9 100644 --- a/docs/api/structsfont__handle.js +++ b/docs/api/structsfont__handle.js @@ -1,5 +1,5 @@ var structsfont__handle = [ - [ "first_tile", "structsfont__handle.html#a90292548ac5f9955f1bee0ac99fe4eea", null ], + [ "first_tile", "structsfont__handle.html#aa5a35bc92adbcfff5a531bf65da65630", null ], [ "font", "structsfont__handle.html#afa826a9e7aa0dc456bd342717eea1f89", null ] ]; \ No newline at end of file diff --git a/docs/api/structsmalloc__hunk.html b/docs/api/structsmalloc__hunk.html index a9668d8e..81408f4f 100644 --- a/docs/api/structsmalloc__hunk.html +++ b/docs/api/structsmalloc__hunk.html @@ -96,24 +96,24 @@ $(document).ready(function(){initNavTree('structsmalloc__hunk.html',''); initRes - - + + - - + +

    Data Fields

    UBYTE magic
     
    unsigned char magic
     
    pmmalloc_hunk next
     
    UWORD size
     
    unsigned int size
     
    int status
     

    Field Documentation

    - -

    ◆ magic

    + +

    ◆ magic

    - +
    UBYTE smalloc_hunk::magicunsigned char smalloc_hunk::magic
    @@ -134,14 +134,14 @@ Data Fields
    - -

    ◆ size

    + +

    ◆ size

    - +
    UWORD smalloc_hunk::sizeunsigned int smalloc_hunk::size
    diff --git a/docs/api/structsmalloc__hunk.js b/docs/api/structsmalloc__hunk.js index 06aeb3d3..1a9f44f0 100644 --- a/docs/api/structsmalloc__hunk.js +++ b/docs/api/structsmalloc__hunk.js @@ -1,7 +1,7 @@ var structsmalloc__hunk = [ - [ "magic", "structsmalloc__hunk.html#a4463bb598cac05efb9cf024d4d03b6b0", null ], + [ "magic", "structsmalloc__hunk.html#a792a3db775b88e1df1cb003122a0e6e0", null ], [ "next", "structsmalloc__hunk.html#a23342f9c125db8da542769cf53794a1f", null ], - [ "size", "structsmalloc__hunk.html#a8b15039895492addf48d26ff38ec95ab", null ], + [ "size", "structsmalloc__hunk.html#ab638375e6e17c5f20bf04bfe6bc75efc", null ], [ "status", "structsmalloc__hunk.html#a204a0318f8d6d87cf68be18463318812", null ] ]; \ No newline at end of file diff --git a/docs/api/time_8h.html b/docs/api/time_8h.html index 43fd32a0..3bae2858 100644 --- a/docs/api/time_8h.html +++ b/docs/api/time_8h.html @@ -94,6 +94,7 @@ $(document).ready(function(){initNavTree('time_8h.html',''); initResizable(); })
    #include <types.h>
    +#include <stdint.h>

    Go to the source code of this file.

    @@ -104,14 +105,14 @@ Macros
    - - + +

    Typedefs

    typedef UINT16 time_t
     
    typedef uint16_t time_t
     
    - +

    Functions

    clock_t clock (void) NONBANKED
     
    time_t time (time_t *t)
    time_t time (time_t *t)
     

    Detailed Description

    @@ -132,14 +133,14 @@ Functions

    Typedef Documentation

    - -

    ◆ time_t

    + +

    ◆ time_t

    - +
    typedef UINT16 time_ttypedef uint16_t time_t
    @@ -165,8 +166,8 @@ Functions

    Returns an approximation of processor time used by the program in Clocks

    The value returned is the CPU time (ticks) used so far as a clock_t.

    To get the number of seconds used, divide by CLOCKS_PER_SEC.

    -

    This is based on sys_time, which will wrap around every ~18 minutes. (unsigned 16 bits = 65535 / 60 / 60 = 18.2)

    -
    See also
    sys_time, time()
    +

    This is based on sys_time, which will wrap around every ~18 minutes. (unsigned 16 bits = 65535 / 60 / 60 = 18.2)

    +
    See also
    sys_time, time()
    @@ -177,9 +178,9 @@ Functions
    - + - + @@ -193,7 +194,7 @@ Functions

    The calculation is clock() / CLOCKS_PER_SEC

    -

    Returns: time in seconds

    See also
    sys_time, clock()
    +

    Returns: time in seconds

    See also
    sys_time, clock()
    diff --git a/docs/api/time_8h.js b/docs/api/time_8h.js index c6b359ef..f9ee28a7 100644 --- a/docs/api/time_8h.js +++ b/docs/api/time_8h.js @@ -1,7 +1,7 @@ var time_8h = [ [ "CLOCKS_PER_SEC", "time_8h.html#a3d9fc3c745d0880902fe3ea3d5d5f71e", null ], - [ "time_t", "time_8h.html#ab3806eb1b3b24a99fcc7a2a8c6411e77", null ], + [ "time_t", "time_8h.html#ac84921d4d15eedac7d7b8051a7944c84", null ], [ "clock", "time_8h.html#aec80425d74a9644112e61b235fc9ffa9", null ], [ "time", "time_8h.html#ae7841e681c8c9d59818568d39553642c", null ] ]; \ No newline at end of file diff --git a/docs/api/time_8h_source.html b/docs/api/time_8h_source.html index 0c699132..312bf0df 100644 --- a/docs/api/time_8h_source.html +++ b/docs/api/time_8h_source.html @@ -94,25 +94,27 @@ $(document).ready(function(){initNavTree('time_8h_source.html',''); initResizabl
    5 #define TIME_INCLUDE
    6 
    7 #include <types.h>
    -
    8 
    -
    9 #define CLOCKS_PER_SEC 60
    -
    10 
    -
    11 typedef UINT16 time_t;
    -
    12 
    - -
    25 
    - -
    36 
    -
    37 #endif
    +
    8 #include <stdint.h>
    +
    9 
    +
    10 #define CLOCKS_PER_SEC 60
    +
    11 
    +
    12 typedef uint16_t time_t;
    +
    13 
    + +
    26 
    + +
    37 
    +
    38 #endif
    -
    unsigned int UINT16
    Definition: types.h:28
    +
    uint16_t time_t
    Definition: time.h:12
    +
    unsigned short int uint16_t
    Definition: stdint.h:52
    UINT16 clock_t
    Definition: types.h:44
    time_t time(time_t *t)
    +
    clock_t clock(void) NONBANKED
    #define NONBANKED
    Definition: types.h:12
    -
    UINT16 time_t
    Definition: time.h:11
    time_t time time_t time (time_ttime_t t)
    - + - - + + - - + +

    Data Fields

    FAR_PTR ptr
    FAR_PTR ptr
     
    struct {
       void *   ofs
     
       unsigned int   seg
     
       uint16_t   seg
     
    segofs
     
    struct {
       void(*   fn )()
     
       unsigned int   seg
     
       uint16_t   seg
     
    segfn
     
    @@ -123,7 +123,7 @@ Data Fields
    - +
    FAR_PTR __far_ptr::ptrFAR_PTR __far_ptr::ptr
    @@ -144,14 +144,14 @@ Data Fields
    - -

    ◆ seg

    + +

    ◆ seg

    - +
    unsigned int __far_ptr::seguint16_t __far_ptr::seg
    diff --git a/docs/api/union____far__ptr.js b/docs/api/union____far__ptr.js index 109a33a6..bef997bb 100644 --- a/docs/api/union____far__ptr.js +++ b/docs/api/union____far__ptr.js @@ -2,7 +2,7 @@ var union____far__ptr = [ [ "ptr", "union____far__ptr.html#afabdeeef2b4056bc9c2d2e34b030f348", null ], [ "ofs", "union____far__ptr.html#a60fef2b4efac12d73fd609373631ac4e", null ], - [ "seg", "union____far__ptr.html#a508575a942b502a673bc3db4970c1e0b", null ], + [ "seg", "union____far__ptr.html#a13c65a38be633a3ac219c3b5b3be5ce6", null ], [ "segofs", "union____far__ptr.html#ab77baeba835fa23f6d96c641e7ee2b06", null ], [ "fn", "union____far__ptr.html#a90065c72477187e9f9c97c07c90f6af9", null ], [ "segfn", "union____far__ptr.html#a8c6e2345a04a58dc76339923baffcbe3", null ]