namcos22.h: update prev commit

This commit is contained in:
hap 2022-11-15 19:05:45 +01:00
parent b7b78e3ac1
commit 345ec031f5
2 changed files with 7 additions and 5 deletions

View File

@ -2865,7 +2865,7 @@ void alpine_state::alpine_mcu_port4_w(u8 data)
}
// Prop Cycle
// Prop Cycle pedal
TIMER_DEVICE_CALLBACK_MEMBER(propcycl_state::pedal_interrupt)
{
@ -2901,7 +2901,7 @@ TIMER_DEVICE_CALLBACK_MEMBER(propcycl_state::pedal_update)
}
// Armadillo Racing
// Armadillo Racing trackball
TIMER_DEVICE_CALLBACK_MEMBER(adillor_state::trackball_interrupt)
{
@ -3738,6 +3738,7 @@ void alpine_state::machine_start()
}
// System22
void namcos22_state::namcos22(machine_config &config)
{
/* basic machine hardware */
@ -3808,6 +3809,7 @@ void namcos22_state::cybrcomm(machine_config &config)
}
// System Super22
void namcos22s_state::namcos22s(machine_config &config)
{
namcos22(config);

View File

@ -161,8 +161,8 @@ private:
float m_clipy = 0.0;
rectangle m_cliprect;
inline u8 nthbyte(const u32 *src, int n) { return (src[n / 4] << ((n & 3) * 8)) >> 24; }
inline u16 nthword(const u32 *src, int n) { return (src[n / 2] << ((n & 1) * 16)) >> 16; }
static u8 nthbyte(const u32 *src, int n) { return util::big_endian_cast<u8>(src)[n]; }
static u16 nthword(const u32 *src, int n) { return util::big_endian_cast<u16>(src)[n]; }
void render_scene_nodes(screen_device &screen, bitmap_rgb32 &bitmap, struct namcos22_scenenode *node);
void render_sprite(screen_device &screen, bitmap_rgb32 &bitmap, struct namcos22_scenenode *node);
@ -329,7 +329,7 @@ protected:
void mcu_speedup_w(offs_t offset, u16 data, u16 mem_mask = ~0);
static u8 nthbyte(const u32 *src, int n) { return util::big_endian_cast<u8>(src)[n]; }
static u16 nthword(const u32 *src, int n) { return util::big_endian_cast<u16>(src)[n];; }
static u16 nthword(const u32 *src, int n) { return util::big_endian_cast<u16>(src)[n]; }
static constexpr s32 signed12(s32 val) { return util::sext(val, 12); }
static constexpr s32 signed18(s32 val) { return util::sext(val, 18); }