gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 8cf112460b22e147c6d70fca6b6176e183ee646c parent e679322a5351c522a84cd03e17474fabe4c2e2a9 Author: Toxa <untoxa@mail.ru> Date: Tue, 12 Sep 2023 20:16:58 +0300 NES: remove OLDCALL attribute from the function declarations in the nes.h which has no sense Diffstat:
| M | gbdk-lib/include/nes/nes.h | 64 | ++++++++++++++++++++++++++++++++-------------------------------- |
1 file changed, 32 insertions(+), 32 deletions(-)
diff --git a/gbdk-lib/include/nes/nes.h b/gbdk-lib/include/nes/nes.h @@ -54,13 +54,13 @@ typedef uint8_t palette_color_t; -void set_bkg_palette(uint8_t first_palette, uint8_t nb_palettes, const palette_color_t *rgb_data) OLDCALL; +void set_bkg_palette(uint8_t first_palette, uint8_t nb_palettes, const palette_color_t *rgb_data); -void set_sprite_palette(uint8_t first_palette, uint8_t nb_palettes, const palette_color_t *rgb_data) OLDCALL; +void set_sprite_palette(uint8_t first_palette, uint8_t nb_palettes, const palette_color_t *rgb_data); -void set_bkg_palette_entry(uint8_t palette, uint8_t entry, palette_color_t rgb_data) OLDCALL; +void set_bkg_palette_entry(uint8_t palette, uint8_t entry, palette_color_t rgb_data); -void set_sprite_palette_entry(uint8_t palette, uint8_t entry, palette_color_t rgb_data) OLDCALL; +void set_sprite_palette_entry(uint8_t palette, uint8_t entry, palette_color_t rgb_data); /** Joypad bits. A logical OR of these is used in the wait_pad and joypad @@ -247,13 +247,13 @@ void add_LCD(int_handler h); @see M_DRAWING, M_TEXT_OUT, M_TEXT_INOUT, M_NO_SCROLL, M_NO_INTERP */ -void mode(uint8_t m) OLDCALL; +void mode(uint8_t m); /** Returns the current mode @see M_DRAWING, M_TEXT_OUT, M_TEXT_INOUT, M_NO_SCROLL, M_NO_INTERP */ -uint8_t get_mode(void) OLDCALL; +uint8_t get_mode(void); /** Global Time Counter in VBL periods (60Hz) @@ -357,7 +357,7 @@ __endasm; \ Uses no timers or interrupts, and can be called with interrupts disabled */ -void delay(uint16_t d) OLDCALL; +void delay(uint16_t d); /** Reads and returns the current state of the joypad. Return value is an OR of J_* @@ -368,7 +368,7 @@ void delay(uint16_t d) OLDCALL; @see J_START, J_SELECT, J_A, J_B, J_UP, J_DOWN, J_LEFT, J_RIGHT */ -uint8_t joypad(void) OLDCALL; +uint8_t joypad(void); /** Waits until at least one of the buttons given in mask are pressed. @@ -378,7 +378,7 @@ uint8_t joypad(void) OLDCALL; @see joypad @see J_START, J_SELECT, J_A, J_B, J_UP, J_DOWN, J_LEFT, J_RIGHT */ -uint8_t waitpad(uint8_t mask) OLDCALL; +uint8_t waitpad(uint8_t mask); /** Waits for the directional pad and all buttons to be released. @@ -408,13 +408,13 @@ typedef struct { @returns number of joypads avaliable @see joypad_ex(), joypads_t */ -uint8_t joypad_init(uint8_t npads, joypads_t * joypads) OLDCALL; +uint8_t joypad_init(uint8_t npads, joypads_t * joypads); /** Polls all avaliable joypads @see joypad_init(), joypads_t */ -void joypad_ex(joypads_t * joypads) OLDCALL; +void joypad_ex(joypads_t * joypads); @@ -546,12 +546,12 @@ void refresh_OAM(void); * @param addr address to write to * @param v value */ -void set_vram_byte(uint8_t * addr, uint8_t v) OLDCALL; +void set_vram_byte(uint8_t * addr, uint8_t v); /** * Get address of X,Y tile of background map */ -uint8_t * get_bkg_xy_addr(uint8_t x, uint8_t y) OLDCALL; +uint8_t * get_bkg_xy_addr(uint8_t x, uint8_t y); #define COMPAT_PALETTE(C0,C1,C2,C3) ((uint8_t)(((C3) << 6) | ((C2) << 4) | ((C1) << 2) | (C0))) @@ -562,7 +562,7 @@ inline void set_2bpp_palette(uint16_t palette) { } extern uint16_t _current_1bpp_colors; -void set_1bpp_colors_ex(uint8_t fgcolor, uint8_t bgcolor, uint8_t mode) OLDCALL; +void set_1bpp_colors_ex(uint8_t fgcolor, uint8_t bgcolor, uint8_t mode); inline void set_1bpp_colors(uint8_t fgcolor, uint8_t bgcolor) { set_1bpp_colors_ex(fgcolor, bgcolor, 0); } @@ -576,7 +576,7 @@ inline void set_1bpp_colors(uint8_t fgcolor, uint8_t bgcolor) { @see set_tile_data */ -void set_bkg_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data) OLDCALL; +void set_bkg_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data); #define set_bkg_2bpp_data set_bkg_data /** Sets VRAM Tile Pattern data for the Background using 1bpp source data @@ -590,7 +590,7 @@ void set_bkg_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data) OLD @see SHOW_BKG, HIDE_BKG, set_bkg_tiles */ -void set_bkg_1bpp_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data) OLDCALL; +void set_bkg_1bpp_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data); /** Sets a rectangular region of Background Tile Map. @@ -610,7 +610,7 @@ void set_bkg_1bpp_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data @see SHOW_BKG @see set_bkg_data, set_bkg_submap, set_win_tiles, set_tiles */ -void set_bkg_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *tiles) OLDCALL; +void set_bkg_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *tiles); #define set_tile_map set_bkg_tiles /** Sets a rectangular region of Background Tile Map Attributes. @@ -636,7 +636,7 @@ void set_bkg_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *ti @see SHOW_BKG @see set_bkg_data, set_bkg_submap_attributes, set_win_tiles, set_tiles */ -void set_bkg_attributes_nes16x16(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *attributes) OLDCALL; +void set_bkg_attributes_nes16x16(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *attributes); /** Sets a rectangular region of Background Tile Map Attributes. @@ -710,7 +710,7 @@ inline void set_bkg_attributes(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const @see SHOW_BKG @see set_bkg_data, set_bkg_tiles, set_win_submap, set_tiles */ -void set_bkg_submap_attributes_nes16x16(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *map, uint8_t map_w) OLDCALL; +void set_bkg_submap_attributes_nes16x16(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *map, uint8_t map_w); /** Sets a rectangular area of the Background Tile Map attributes using a sub-region from a source tile map. Useful for scrolling implementations @@ -785,7 +785,7 @@ inline void set_bkg_based_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, cons @see SHOW_BKG @see set_bkg_data, set_bkg_tiles, set_win_submap, set_tiles */ -void set_bkg_submap(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *map, uint8_t map_w) OLDCALL; +void set_bkg_submap(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *map, uint8_t map_w); #define set_tile_submap set_bkg_submap @@ -828,7 +828,7 @@ inline void set_bkg_based_submap(uint8_t x, uint8_t y, uint8_t w, uint8_t h, con @see get_bkg_tile_xy, get_tiles */ -void get_bkg_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t *tiles) OLDCALL; +void get_bkg_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t *tiles); /** @@ -838,7 +838,7 @@ void get_bkg_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t *tiles) O * @param t tile index * @return returns the address of tile, so you may use faster set_vram_byte() later */ -uint8_t * set_bkg_tile_xy(uint8_t x, uint8_t y, uint8_t t) OLDCALL; +uint8_t * set_bkg_tile_xy(uint8_t x, uint8_t y, uint8_t t); #define set_tile_xy set_bkg_tile_xy /** @@ -874,7 +874,7 @@ inline void set_bkg_attribute_xy(uint8_t x, uint8_t y, uint8_t a) * @param y Y-coordinate * @return returns tile index */ -uint8_t get_bkg_tile_xy(uint8_t x, uint8_t y) OLDCALL; +uint8_t get_bkg_tile_xy(uint8_t x, uint8_t y); /** Moves the Background Layer to the position specified in __x__ and __y__ in pixels. @@ -920,7 +920,7 @@ inline void scroll_bkg(int8_t x, int8_t y) { \li VBK_REG=0 indicates the first bank \li VBK_REG=1 indicates the second */ -void set_sprite_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data) OLDCALL; +void set_sprite_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data); #define set_sprite_2bpp_data set_sprite_data /** Sets VRAM Tile Pattern data for Sprites using 1bpp source data @@ -934,7 +934,7 @@ void set_sprite_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data) @see SHOW_SPRITES, HIDE_SPRITES, set_sprite_tile */ -void set_sprite_1bpp_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data) OLDCALL; +void set_sprite_1bpp_data(uint8_t first_tile, uint8_t nb_tiles, const uint8_t *data); /** Sprite Attributes structure @param x X Coordinate of the sprite on screen @@ -1112,7 +1112,7 @@ inline void hide_sprite(uint8_t nb) { @see set_bkg_data, set_win_data, set_bkg_tiles, set_win_tiles, set_tile_data, set_tiles */ -void set_data(uint8_t *vram_addr, const uint8_t *data, uint16_t len) OLDCALL; +void set_data(uint8_t *vram_addr, const uint8_t *data, uint16_t len); /** Sets a rectangular region of Tile Map entries at a given VRAM Address. @@ -1133,7 +1133,7 @@ void set_data(uint8_t *vram_addr, const uint8_t *data, uint16_t len) OLDCALL; @see set_bkg_tiles */ -void set_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t *vram_addr, const uint8_t *tiles) OLDCALL; +void set_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t *vram_addr, const uint8_t *tiles); /** Sets VRAM Tile Pattern data starting from given base address without taking into account the state of PPUMASK. @@ -1202,7 +1202,7 @@ inline void set_native_tile_data(uint16_t first_tile, uint8_t nb_tiles, const ui Note: This function avoids writes during modes 2 & 3 */ -void init_bkg(uint8_t c) OLDCALL; +void init_bkg(uint8_t c); /** Fills the VRAM memory region __s__ of size __n__ with Tile Number __c__ @param s Start address in VRAM @@ -1211,7 +1211,7 @@ void init_bkg(uint8_t c) OLDCALL; Note: This function avoids writes during modes 2 & 3 */ -void vmemset (void *s, uint8_t c, size_t n) OLDCALL; +void vmemset (void *s, uint8_t c, size_t n); /** Fills a rectangular region of Tile Map entries for the Background layer with tile. @@ -1221,7 +1221,7 @@ void vmemset (void *s, uint8_t c, size_t n) OLDCALL; @param h Height of area to set in tiles. Range 0 - 31 @param tile Fill value */ -void fill_bkg_rect(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t tile) OLDCALL; +void fill_bkg_rect(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t tile); #define fill_rect fill_bkg_rect /** "Flushes" the updates to the shadow attributes so they are written @@ -1231,8 +1231,8 @@ void fill_bkg_rect(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t tile) OLD on the NES target. But it will automatically be called by @ref vsync(), so the use-cases for calling it manually are rare in practice. */ -void flush_shadow_attributes(void) OLDCALL; +void flush_shadow_attributes(void); -uint8_t _switch_prg0(uint8_t bank) OLDCALL; +uint8_t _switch_prg0(uint8_t bank); #endif /* _NES_H */
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.