GBDK 2020 Docs
4.1.1
API Documentation for GBDK 2020
|
#include <gbdk-lib/include/asm/types.h>
Data Fields | |
struct { | |
UBYTE l | |
UBYTE h | |
}; | |
struct { | |
UBYTE l | |
UBYTE h | |
} | b |
UWORD | w |
Useful definition for working with 8 bit + 8 bit fixed point values
Use .w
to access the variable as unsigned 16 bit type.
Use .b.h
and .b.l
(or just .h
and .l
) to directly access it's high and low unsigned 8 bit values.
UBYTE _fixed::l |
UBYTE _fixed::h |
struct { ... } |
struct { ... } _fixed::b |
UWORD _fixed::w |