diff options
author | Juan J. Martinez <jjm@usebox.net> | 2024-05-27 23:24:19 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2024-05-27 23:24:19 +0100 |
commit | 703ab56587aac0d79ccc0f72f2b8d9ee235e20a5 (patch) | |
tree | 32b186dc14c56fe19c004a403eeaaf7e2dd0b10f /include/ubox.h | |
parent | 420ac2c8f2307ddcbe551972544bbe11f05ee7ff (diff) | |
download | ubox-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/ubox.h')
-rw-r--r-- | include/ubox.h | 18 |
1 files changed, 9 insertions, 9 deletions
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 |