Mercurial > hg > dmlib
comparison tools/lib64gfx.c @ 1923:42cd527a01b9
Remove mostly unused DM_GET_ADDR_{LO,HI} macros.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 28 Jun 2018 01:24:38 +0300 |
parents | 3c6f638ce402 |
children | 1c5ea4fa8788 |
comparison
equal
deleted
inserted
replaced
1922:3c6f638ce402 | 1923:42cd527a01b9 |
---|---|
140 | 140 |
141 BOOL dmCompareAddr16(const DMGrowBuf *buf, const size_t offs, const Uint16 addr) | 141 BOOL dmCompareAddr16(const DMGrowBuf *buf, const size_t offs, const Uint16 addr) |
142 { | 142 { |
143 return | 143 return |
144 offs + 1 < buf->len && | 144 offs + 1 < buf->len && |
145 buf->data[offs ] == DM_GET_ADDR_LO(addr) && | 145 buf->data[offs ] == (addr & 0xff) && |
146 buf->data[offs + 1] == DM_GET_ADDR_HI(addr); | 146 buf->data[offs + 1] == ((addr >> 8) & 0xff); |
147 } | 147 } |
148 | 148 |
149 | 149 |
150 int dmC64ImageGetNumBanks(const DMC64ImageFormat *fmt) | 150 int dmC64ImageGetNumBanks(const DMC64ImageFormat *fmt) |
151 { | 151 { |