libtonc
|
Modules | |
BIOS functions | |
Data Structures | |
struct | BUP |
BitUpPack ( for swi 10h) More... | |
struct | MultiBootParam |
Multiboot struct. More... | |
Multiboot modes | |
typedef struct BUP | BUP |
BitUpPack ( for swi 10h) | |
#define | MBOOT_NORMAL 0x00 |
BIOS calls from C. | |
#define | MBOOT_MULTI 0x01 |
BIOS calls from C. | |
#define | MBOOT_FAST 0x02 |
BIOS calls from C. | |
#define | swi_call(x) __asm("swi\t"#x"<<16" ::: "r0", "r1", "r2", "r3") |
BIOS calls from C. | |
SoftReset flags | |
#define | ROM_RESTART 0x00 |
Restart from ROM entry point. | |
#define | RAM_RESTART 0x01 |
Restart from RAM entry point. | |
Cpu(Fast)Set flags | |
#define | CS_CPY 0 |
Copy mode. | |
#define | CS_FILL (1<<24) |
Fill mode. | |
#define | CS_CPY16 0 |
Copy in halfwords. | |
#define | CS_CPY32 (1<<26) |
Copy words. | |
#define | CS_FILL32 (5<<24) |
Fill words. | |
#define | CFS_CPY CS_CPY |
Copy words. | |
#define | CFS_FILL CS_FILL |
Fill words. | |
ObjAffineSet P-element offsets | |
#define | BG_AFF_OFS 2 |
BgAffineDest offsets. | |
#define | OBJ_AFF_OFS 8 |
ObjAffineDest offsets. | |
#define MBOOT_FAST 0x02 |
BIOS calls from C.
You can use this macro in a C BIOS-call wrapper. The wrapper should declare the flags, then this call will do the rest.
x | Number of swi call (THUMB number) |
#define MBOOT_MULTI 0x01 |
BIOS calls from C.
You can use this macro in a C BIOS-call wrapper. The wrapper should declare the flags, then this call will do the rest.
x | Number of swi call (THUMB number) |
#define MBOOT_NORMAL 0x00 |
BIOS calls from C.
You can use this macro in a C BIOS-call wrapper. The wrapper should declare the flags, then this call will do the rest.
x | Number of swi call (THUMB number) |
#define swi_call | ( | x | ) | __asm("swi\t"#x"<<16" ::: "r0", "r1", "r2", "r3") |
BIOS calls from C.
You can use this macro in a C BIOS-call wrapper. The wrapper should declare the flags, then this call will do the rest.
x | Number of swi call (THUMB number) |