Introduce LookUpColor4
This commit is contained in:
@@ -93,21 +93,12 @@ namespace JabyEngine {
|
||||
|
||||
void setup() {
|
||||
asm("# Planschi1");
|
||||
auto test = LookUpColor8::from_ids(0xAA, 0xBB);
|
||||
test.force_read();
|
||||
auto value = LookUpColor4::from_id(0xA, 0xB, 0xC, 0xF);
|
||||
|
||||
for(size_t n = 0; n < 4; n++) {
|
||||
printf(">>> %i\n", value.get_lu_id(n));
|
||||
}
|
||||
asm("# Planschi2");
|
||||
test.set_lu_id(0xCC, 0);
|
||||
test.set_lu_id(0xDD, 1);
|
||||
test.force_read();
|
||||
asm("# Planschi3");
|
||||
test.set_lu_id(*reinterpret_cast<uint8_t*>(0xAA), 0);
|
||||
test.set_lu_id(*reinterpret_cast<uint8_t*>(0xDD), 1);
|
||||
test.force_read();
|
||||
asm("# Planschi4");
|
||||
test.set_lu_id(*reinterpret_cast<uint8_t*>(0xAA), *reinterpret_cast<uint8_t*>(0xAE));
|
||||
test.set_lu_id(*reinterpret_cast<uint8_t*>(0xDD), *reinterpret_cast<uint8_t*>(0xDE));
|
||||
test.force_read();
|
||||
asm("# Planschi5");
|
||||
|
||||
GPU_IO::GP1.write(GPU_IO::Command::Reset());
|
||||
configurate_display();
|
||||
|
Reference in New Issue
Block a user