aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2024-05-27 23:24:19 +0100
committerJuan J. Martinez <jjm@usebox.net>2024-05-27 23:24:19 +0100
commit703ab56587aac0d79ccc0f72f2b8d9ee235e20a5 (patch)
tree32b186dc14c56fe19c004a403eeaaf7e2dd0b10f /include
parent420ac2c8f2307ddcbe551972544bbe11f05ee7ff (diff)
downloadubox-msx-lib-703ab56587aac0d79ccc0f72f2b8d9ee235e20a5.tar.gz
ubox-msx-lib-703ab56587aac0d79ccc0f72f2b8d9ee235e20a5.zip
Use SDCC's new calling convention
(this is an ABI breaking change, and will require changes to user-written asm functions or their declarations)
Diffstat (limited to 'include')
-rw-r--r--include/mplayer.h6
-rw-r--r--include/ubox.h18
2 files changed, 12 insertions, 12 deletions
diff --git a/include/mplayer.h b/include/mplayer.h
index c13ac56..3ec66db 100644
--- a/include/mplayer.h
+++ b/include/mplayer.h
@@ -77,7 +77,7 @@ void mplayer_init(const uint8_t *song, uint8_t sub_song);
* See [exporting songs and effects](#exporting-songs-and-effects) for details
* on how to add effects to your project.
*/
-void mplayer_init_effects(const uint8_t *effects) __z88dk_fastcall;
+void mplayer_init_effects(const uint8_t *effects);
// @Playback
@@ -170,12 +170,12 @@ void mplayer_play_effect_p(uint8_t effect_no, uint8_t chan, uint8_t inv_vol);
/**
* Stops the effect being played on `chan` channel.
*/
-void mplayer_stop_effect_channel(uint8_t chan) __z88dk_fastcall;
+void mplayer_stop_effect_channel(uint8_t chan);
/**
* Returns 0 if there's no sound effect being played on `chan` channel, or
* a value different than 0 otherwise.
*/
-uint8_t mplayer_is_sound_effect_on(uint8_t chan) __z88dk_fastcall;
+uint8_t mplayer_is_sound_effect_on(uint8_t chan);
#endif // _MPLAYER_H
diff --git a/include/ubox.h b/include/ubox.h
index fa56741..ed8f651 100644
--- a/include/ubox.h
+++ b/include/ubox.h
@@ -64,7 +64,7 @@
* ubox_set_mode(2);
* ```
*/
-void ubox_set_mode(uint8_t mode) __z88dk_fastcall;
+void ubox_set_mode(uint8_t mode);
/**
* Enables the screen.
@@ -193,7 +193,7 @@ uint8_t ubox_get_vsync_freq(void);
* All the tiles functions use an index in this tile set (usually via a `tile`
* parameter).
*/
-void ubox_set_tiles(const uint8_t *tiles) __z88dk_fastcall;
+void ubox_set_tiles(const uint8_t *tiles);
/**
* Sets the current color table for current tile set to the color table pointed
@@ -203,7 +203,7 @@ void ubox_set_tiles(const uint8_t *tiles) __z88dk_fastcall;
* of the tiles table (8 rows, 8 bytes per tile). The colors will be loaded into
* the VDP in all three screen sections.
*/
-void ubox_set_tiles_colors(const uint8_t *colors) __z88dk_fastcall;
+void ubox_set_tiles_colors(const uint8_t *colors);
/**
* Puts a tile from current tile set on the screen. The tile is identified by
@@ -246,7 +246,7 @@ uint8_t ubox_get_tile(uint8_t x, uint8_t y);
* See [ubox_set_tiles](#ubox_set_tiles) for for information on how to set a
* tile set.
*/
-void ubox_fill_screen(uint8_t tile) __z88dk_fastcall;
+void ubox_fill_screen(uint8_t tile);
// @Interrupt and clock functions
@@ -286,7 +286,7 @@ void ubox_fill_screen(uint8_t tile) __z88dk_fastcall;
* are disabled, and because of that some BIOS functions, such as `CHGET`,
* won't work.
*/
-void ubox_init_isr(uint8_t wait_ticks) __z88dk_fastcall;
+void ubox_init_isr(uint8_t wait_ticks);
/**
* Installs a user interrupt handler.
@@ -311,7 +311,7 @@ void ubox_init_isr(uint8_t wait_ticks) __z88dk_fastcall;
* ubox_set_user_isr(my_isr);
* ```
*/
-void ubox_set_user_isr(void (*fn)(void)) __z88dk_fastcall;
+void ubox_set_user_isr(void (*fn)(void));
/**
* Waits for a maximum `wait_ticks` interrupts (see [ubox_init_isr](#ubox_init_isr)).
@@ -364,7 +364,7 @@ void ubox_wait(void);
* ubox_wait_for(250);
* ```
*/
-void ubox_wait_for(uint8_t frames) __z88dk_fastcall;
+void ubox_wait_for(uint8_t frames);
extern uint8_t ubox_tick;
@@ -519,7 +519,7 @@ uint8_t ubox_select_ctl(void);
* }
* ```
*/
-uint8_t ubox_read_ctl(uint8_t control) __z88dk_fastcall;
+uint8_t ubox_read_ctl(uint8_t control);
#define UBOX_MSX_CTL_CURSOR 0
#define UBOX_MSX_CTL_PORT1 1
@@ -554,7 +554,7 @@ uint8_t ubox_read_ctl(uint8_t control) __z88dk_fastcall;
* }
* ```
*/
-uint8_t ubox_read_keys(uint8_t row) __z88dk_fastcall;
+uint8_t ubox_read_keys(uint8_t row);
// row 0
#define UBOX_MSX_KEY_7 0x80