Whoops, I think I just accidentally (no) foramtted the entire project with clang
This commit is contained in:
parent
d76095ca85
commit
1794df45f4
6
.clang-format
Normal file
6
.clang-format
Normal file
@ -0,0 +1,6 @@
|
||||
BasedOnStyle: LLVM
|
||||
IndentWidth: 4
|
||||
ContinuationIndentWidth: 4
|
||||
TabWidth: 4
|
||||
UseTab: Never
|
||||
BreakBeforeBraces: Attach
|
||||
30
bootmain.c
30
bootmain.c
@ -5,8 +5,8 @@
|
||||
// bootmain() loads an ELF kernel image from the disk starting at
|
||||
// sector 3 and then jumps to the kernel entry routine.
|
||||
|
||||
#include "elf.h"
|
||||
#include "drivers/port.h"
|
||||
#include "elf.h"
|
||||
|
||||
#define SECTSIZE 512
|
||||
|
||||
@ -19,9 +19,7 @@ inline void stosb(uchar* addr, uchar byte, uint count) {
|
||||
asm volatile("cld; rep stosb" : "+D"(addr), "+a"(byte) : "c"(count) : "cc");
|
||||
}
|
||||
|
||||
void
|
||||
bootmain(void)
|
||||
{
|
||||
void bootmain(void) {
|
||||
Elf32_Ehdr *elf;
|
||||
Elf32_Phdr *ph, *eph;
|
||||
void (*entry)(void);
|
||||
@ -52,27 +50,21 @@ bootmain(void)
|
||||
entry();
|
||||
}
|
||||
|
||||
void
|
||||
waitdisk(void)
|
||||
{
|
||||
void waitdisk(void) {
|
||||
// Wait for disk ready.
|
||||
while ((port_byte_in(0x1F7) & 0xC0) != 0x40)
|
||||
;
|
||||
}
|
||||
|
||||
static inline void
|
||||
insl(int port, void *addr, int cnt)
|
||||
{
|
||||
asm volatile("cld; rep insl" :
|
||||
"=D" (addr), "=c" (cnt) :
|
||||
"d" (port), "0" (addr), "1" (cnt) :
|
||||
"memory", "cc");
|
||||
static inline void insl(int port, void *addr, int cnt) {
|
||||
asm volatile("cld; rep insl"
|
||||
: "=D"(addr), "=c"(cnt)
|
||||
: "d"(port), "0"(addr), "1"(cnt)
|
||||
: "memory", "cc");
|
||||
}
|
||||
|
||||
// Read a single sector at offset into dst.
|
||||
void
|
||||
readsect(void *dst, uint offset)
|
||||
{
|
||||
void readsect(void *dst, uint offset) {
|
||||
// Issue command.
|
||||
waitdisk();
|
||||
port_byte_out(0x1F2, 1); // count = 1
|
||||
@ -89,9 +81,7 @@ readsect(void *dst, uint offset)
|
||||
|
||||
// Read 'count' bytes at 'offset' from kernel into physical address 'pa'.
|
||||
// Might copy more than asked.
|
||||
void
|
||||
readseg(uchar* pa, uint count, uint offset)
|
||||
{
|
||||
void readseg(uchar *pa, uint count, uint offset) {
|
||||
uchar *epa;
|
||||
|
||||
epa = pa + count;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#include "console.h"
|
||||
#include "drivers/vga.h"
|
||||
#include "drivers/uart.h"
|
||||
#include "drivers/vga.h"
|
||||
|
||||
void printk(const char *msg) {
|
||||
vga_print_string(msg);
|
||||
|
||||
@ -3,4 +3,8 @@
|
||||
void printk(const char *msg);
|
||||
_Noreturn void panic(const char *msg);
|
||||
|
||||
#define check(expr) if (!(expr)) { panic("Assertion failed at " __FILE__ " : " " : " #expr "\n"); }
|
||||
#define check(expr) \
|
||||
if (!(expr)) { \
|
||||
panic("Assertion failed at " __FILE__ " : " \
|
||||
" : " #expr "\n"); \
|
||||
}
|
||||
40
cpu/gdt.c
40
cpu/gdt.c
@ -1,8 +1,8 @@
|
||||
#include "gdt.h"
|
||||
#include "x86.h"
|
||||
#include "memlayout.h"
|
||||
#include "../lib/string.h"
|
||||
#include "kernel/mem.h"
|
||||
#include "memlayout.h"
|
||||
#include "x86.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@ -22,14 +22,34 @@ struct seg_desc_t {
|
||||
uint8_t base_31_24; // High bits of segment base address
|
||||
} __attribute__((packed));
|
||||
|
||||
#define SEG(type, base, lim, dpl) (struct seg_desc_t) \
|
||||
{ ((lim) >> 12) & 0xffff, (uint)(base) & 0xffff, \
|
||||
((uint)(base) >> 16) & 0xff, type, 1, dpl, 1, \
|
||||
(uint)(lim) >> 28, 0, 0, 1, 1, (uint)(base) >> 24 }
|
||||
#define SEG16(type, base, lim, dpl) (struct seg_desc_t) \
|
||||
{ (lim) & 0xffff, (uint)(base) & 0xffff, \
|
||||
((uint)(base) >> 16) & 0xff, type, 1, dpl, 1, \
|
||||
(uint)(lim) >> 16, 0, 0, 1, 0, (uint)(base) >> 24 }
|
||||
#define SEG(type, base, lim, dpl) \
|
||||
(struct seg_desc_t){((lim) >> 12) & 0xffff, \
|
||||
(uint)(base) & 0xffff, \
|
||||
((uint)(base) >> 16) & 0xff, \
|
||||
type, \
|
||||
1, \
|
||||
dpl, \
|
||||
1, \
|
||||
(uint)(lim) >> 28, \
|
||||
0, \
|
||||
0, \
|
||||
1, \
|
||||
1, \
|
||||
(uint)(base) >> 24}
|
||||
#define SEG16(type, base, lim, dpl) \
|
||||
(struct seg_desc_t){(lim) & 0xffff, \
|
||||
(uint)(base) & 0xffff, \
|
||||
((uint)(base) >> 16) & 0xff, \
|
||||
type, \
|
||||
1, \
|
||||
dpl, \
|
||||
1, \
|
||||
(uint)(lim) >> 16, \
|
||||
0, \
|
||||
0, \
|
||||
1, \
|
||||
0, \
|
||||
(uint)(base) >> 24}
|
||||
|
||||
struct seg_desc_t seg_desc[6];
|
||||
|
||||
|
||||
26
cpu/idt.c
26
cpu/idt.c
@ -1,13 +1,13 @@
|
||||
#include "isr.h"
|
||||
#include "gdt.h"
|
||||
#include "memlayout.h"
|
||||
#include "../syscall.h"
|
||||
#include "../proc.h"
|
||||
#include "../drivers/keyboard.h"
|
||||
#include "../drivers/port.h"
|
||||
#include "../drivers/pit.h"
|
||||
#include "../drivers/vga.h"
|
||||
#include "../console.h"
|
||||
#include "../drivers/keyboard.h"
|
||||
#include "../drivers/pit.h"
|
||||
#include "../drivers/port.h"
|
||||
#include "../drivers/vga.h"
|
||||
#include "../proc.h"
|
||||
#include "../syscall.h"
|
||||
#include "gdt.h"
|
||||
#include "isr.h"
|
||||
#include "memlayout.h"
|
||||
|
||||
enum {
|
||||
IDT_HANDLERS = 256,
|
||||
@ -352,10 +352,6 @@ void load_idt() {
|
||||
register_interrupt_handler(T_SYSCALL, handle_syscall);
|
||||
}
|
||||
|
||||
void cli() {
|
||||
asm("cli");
|
||||
}
|
||||
void cli() { asm("cli"); }
|
||||
|
||||
void sti() {
|
||||
asm("sti");
|
||||
}
|
||||
void sti() { asm("sti"); }
|
||||
|
||||
@ -30,8 +30,10 @@ enum {
|
||||
typedef struct {
|
||||
uint32_t edi, esi, ebp, esp, ebx, edx, ecx, eax; /* Pushed by pusha. */
|
||||
uint32_t gs, fs, es, ds; /* Data segment selector */
|
||||
uint32_t int_no, err_code; /* Interrupt number and error code (if applicable) */
|
||||
uint32_t eip, cs, eflags, useresp, ss; /* Pushed by the processor automatically */
|
||||
uint32_t int_no,
|
||||
err_code; /* Interrupt number and error code (if applicable) */
|
||||
uint32_t eip, cs, eflags, useresp,
|
||||
ss; /* Pushed by the processor automatically */
|
||||
} registers_t;
|
||||
|
||||
void isr_install();
|
||||
|
||||
22
cpu/x86.h
22
cpu/x86.h
@ -1,20 +1,20 @@
|
||||
#pragma once
|
||||
#include <stdint.h>
|
||||
|
||||
static inline void
|
||||
stosl(void *addr, int data, int cnt)
|
||||
{
|
||||
asm volatile("cld; rep stosl" : : "D"(addr), "c"(cnt), "a"(data) : "memory");
|
||||
static inline void stosl(void *addr, int data, int cnt) {
|
||||
asm volatile("cld; rep stosl"
|
||||
:
|
||||
: "D"(addr), "c"(cnt), "a"(data)
|
||||
: "memory");
|
||||
}
|
||||
|
||||
static inline void
|
||||
stosb(void *addr, unsigned char data, int cnt)
|
||||
{
|
||||
asm volatile("cld; rep stosb" : : "D"(addr), "c"(cnt), "a"(data) : "memory");
|
||||
static inline void stosb(void *addr, unsigned char data, int cnt) {
|
||||
asm volatile("cld; rep stosb"
|
||||
:
|
||||
: "D"(addr), "c"(cnt), "a"(data)
|
||||
: "memory");
|
||||
}
|
||||
|
||||
static inline void
|
||||
lcr3(uint32_t val)
|
||||
{
|
||||
static inline void lcr3(uint32_t val) {
|
||||
asm volatile("mov %0,%%cr3" : : "r"(val));
|
||||
}
|
||||
|
||||
@ -19,8 +19,8 @@
|
||||
static void ATA_wait_BSY();
|
||||
static void ATA_wait_RDY();
|
||||
|
||||
void read_sectors_ATA_PIO(void* target_address, uint32_t LBA, uint8_t sector_count)
|
||||
{
|
||||
void read_sectors_ATA_PIO(void *target_address, uint32_t LBA,
|
||||
uint8_t sector_count) {
|
||||
ATA_wait_BSY();
|
||||
port_byte_out(0x1F6, 0xE0 | ((LBA >> 24) & 0xF));
|
||||
port_byte_out(0x1F2, sector_count);
|
||||
@ -31,8 +31,7 @@ void read_sectors_ATA_PIO(void* target_address, uint32_t LBA, uint8_t sector_cou
|
||||
|
||||
uint16_t *target = (uint16_t *)target_address;
|
||||
|
||||
for (int j = 0; j < sector_count; j++)
|
||||
{
|
||||
for (int j = 0; j < sector_count; j++) {
|
||||
ATA_wait_BSY();
|
||||
ATA_wait_RDY();
|
||||
for (int i = 0; i < 256; i++)
|
||||
@ -41,8 +40,8 @@ void read_sectors_ATA_PIO(void* target_address, uint32_t LBA, uint8_t sector_cou
|
||||
}
|
||||
}
|
||||
|
||||
void write_sectors_ATA_PIO(uint32_t LBA, uint8_t sector_count, uint32_t *bytes)
|
||||
{
|
||||
void write_sectors_ATA_PIO(uint32_t LBA, uint8_t sector_count,
|
||||
uint32_t *bytes) {
|
||||
ATA_wait_BSY();
|
||||
port_byte_out(0x1F6, 0xE0 | ((LBA >> 24) & 0xF));
|
||||
port_byte_out(0x1F2, sector_count);
|
||||
@ -51,12 +50,10 @@ void write_sectors_ATA_PIO(uint32_t LBA, uint8_t sector_count, uint32_t *bytes)
|
||||
port_byte_out(0x1F5, (uint8_t)(LBA >> 16));
|
||||
port_byte_out(0x1F7, 0x30); // Send the write command
|
||||
|
||||
for (int j = 0; j < sector_count; j++)
|
||||
{
|
||||
for (int j = 0; j < sector_count; j++) {
|
||||
ATA_wait_BSY();
|
||||
ATA_wait_RDY();
|
||||
for (int i = 0; i < 256; i++)
|
||||
{
|
||||
for (int i = 0; i < 256; i++) {
|
||||
port_long_out(0x1F0, bytes[i]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
#include <stdint.h>
|
||||
|
||||
void read_sectors_ATA_PIO(void* target_address, uint32_t LBA, uint8_t sector_count);
|
||||
void read_sectors_ATA_PIO(void *target_address, uint32_t LBA,
|
||||
uint8_t sector_count);
|
||||
|
||||
@ -4,290 +4,408 @@
|
||||
borrowed bits from http://files.osdev.org/mirrors/geezer/osd/graphics/modes.c
|
||||
|
||||
*/
|
||||
#include "vga.h"
|
||||
#include "cpu/x86.h"
|
||||
#include "cpu/memlayout.h"
|
||||
#include "cpu/x86.h"
|
||||
#include "port.h"
|
||||
#include "vga.h"
|
||||
|
||||
static vga_display_mode_t current_display_mode = VGA_DISPLAY_MODE_TEXT;
|
||||
|
||||
static inline char inb(int port) {
|
||||
return port_byte_in(port);
|
||||
}
|
||||
static inline char inb(int port) { return port_byte_in(port); }
|
||||
|
||||
static inline void outb(int port, char data) {
|
||||
port_byte_out(port, data);
|
||||
}
|
||||
static inline void outb(int port, char data) { port_byte_out(port, data); }
|
||||
|
||||
/* This is the standard 256-color palette, in 0xRRGGBB format. Of course the VGA registers want 6 bits, not 8 per channel, so we do a bit
|
||||
of shifting when setting the registers: much easier than writing down the values in 6-bit form!
|
||||
/* This is the standard 256-color palette, in 0xRRGGBB format. Of course the VGA
|
||||
registers want 6 bits, not 8 per channel, so we do a bit of shifting when
|
||||
setting the registers: much easier than writing down the values in 6-bit
|
||||
form!
|
||||
*/
|
||||
|
||||
int vga256_24bit[256] = { 0x000000, 0x0000a8, 0x00a800, 0x00a8a8, 0xa80000, 0xa800a8, 0xa85400, 0xa8a8a8, 0x545454, 0x5454fc, 0x54fc54, 0x54fcfc, 0xfc5454, 0xfc54fc, 0xfcfc54, 0xfcfcfc, 0x000000, 0x141414, 0x202020, 0x2c2c2c, 0x383838, 0x444444, 0x505050, 0x606060, 0x707070, 0x808080, 0x909090, 0xa0a0a0, 0xb4b4b4, 0xc8c8c8, 0xe0e0e0, 0xfcfcfc, 0x0000fc, 0x4000fc, 0x7c00fc, 0xbc00fc, 0xfc00fc, 0xfc00bc, 0xfc007c, 0xfc0040, 0xfc0000, 0xfc4000, 0xfc7c00, 0xfcbc00, 0xfcfc00, 0xbcfc00, 0x7cfc00, 0x40fc00, 0x00fc00, 0x00fc40, 0x00fc7c, 0x00fcbc, 0x00fcfc, 0x00bcfc, 0x007cfc, 0x0040fc, 0x7c7cfc, 0x9c7cfc, 0xbc7cfc, 0xdc7cfc, 0xfc7cfc, 0xfc7cdc, 0xfc7cbc, 0xfc7c9c, 0xfc7c7c, 0xfc9c7c, 0xfcbc7c, 0xfcdc7c, 0xfcfc7c, 0xdcfc7c, 0xbcfc7c, 0x9cfc7c, 0x7cfc7c, 0x7cfc9c, 0x7cfcbc, 0x7cfcdc, 0x7cfcfc, 0x7cdcfc, 0x7cbcfc, 0x7c9cfc, 0xb4b4fc, 0xc4b4fc, 0xd8b4fc, 0xe8b4fc, 0xfcb4fc, 0xfcb4e8, 0xfcb4d8, 0xfcb4c4, 0xfcb4b4, 0xfcc4b4, 0xfcd8b4, 0xfce8b4, 0xfcfcb4, 0xe8fcb4, 0xd8fcb4, 0xc4fcb4, 0xb4fcb4, 0xb4fcc4, 0xb4fcd8, 0xb4fce8, 0xb4fcfc, 0xb4e8fc, 0xb4d8fc, 0xb4c4fc, 0x000070, 0x1c0070, 0x380070, 0x540070, 0x700070, 0x700054, 0x700038, 0x70001c, 0x700000, 0x701c00, 0x703800, 0x705400, 0x707000, 0x547000, 0x387000, 0x1c7000, 0x007000, 0x00701c, 0x007038, 0x007054, 0x007070, 0x005470, 0x003870, 0x001c70, 0x383870, 0x443870, 0x543870, 0x603870, 0x703870, 0x703860, 0x703854, 0x703844, 0x703838, 0x704438, 0x705438, 0x706038, 0x707038, 0x607038, 0x547038, 0x447038, 0x387038, 0x387044, 0x387054, 0x387060, 0x387070, 0x386070, 0x385470, 0x384470, 0x505070, 0x585070, 0x605070, 0x685070, 0x705070, 0x705068, 0x705060, 0x705058, 0x705050, 0x705850, 0x706050, 0x706850, 0x707050, 0x687050, 0x607050, 0x587050, 0x507050, 0x507058, 0x507060, 0x507068, 0x507070, 0x506870, 0x506070, 0x505870, 0x000040, 0x100040, 0x200040, 0x300040, 0x400040, 0x400030, 0x400020, 0x400010, 0x400000, 0x401000, 0x402000, 0x403000, 0x404000, 0x304000, 0x204000, 0x104000, 0x004000, 0x004010, 0x004020, 0x004030, 0x004040, 0x003040, 0x002040, 0x001040, 0x202040, 0x282040, 0x302040, 0x382040, 0x402040, 0x402038, 0x402030, 0x402028, 0x402020, 0x402820, 0x403020, 0x403820, 0x404020, 0x384020, 0x304020, 0x284020, 0x204020, 0x204028, 0x204030, 0x204038, 0x204040, 0x203840, 0x203040, 0x202840, 0x2c2c40, 0x302c40, 0x342c40, 0x3c2c40, 0x402c40, 0x402c3c, 0x402c34, 0x402c30, 0x402c2c, 0x40302c, 0x40342c, 0x403c2c, 0x40402c, 0x3c402c, 0x34402c, 0x30402c, 0x2c402c, 0x2c4030, 0x2c4034, 0x2c403c, 0x2c4040, 0x2c3c40, 0x2c3440, 0x2c3040, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000 };
|
||||
|
||||
|
||||
/* VGA fonts aren't actually stored in the graphics card, they disappear when you change modes,
|
||||
so we have to keep one here to restore when we switch back to text mode. */
|
||||
static unsigned char g_8x16_font[4096] =
|
||||
{
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x7E, 0x81, 0xA5, 0x81, 0x81, 0xBD, 0x99, 0x81, 0x81, 0x7E, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x7E, 0xFF, 0xDB, 0xFF, 0xFF, 0xC3, 0xE7, 0xFF, 0xFF, 0x7E, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x6C, 0xFE, 0xFE, 0xFE, 0xFE, 0x7C, 0x38, 0x10, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x10, 0x38, 0x7C, 0xFE, 0x7C, 0x38, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x18, 0x3C, 0x3C, 0xE7, 0xE7, 0xE7, 0x99, 0x18, 0x3C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x18, 0x3C, 0x7E, 0xFF, 0xFF, 0x7E, 0x18, 0x18, 0x3C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x3C, 0x3C, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xE7, 0xC3, 0xC3, 0xE7, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x3C, 0x66, 0x42, 0x42, 0x66, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xC3, 0x99, 0xBD, 0xBD, 0x99, 0xC3, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
|
||||
0x00, 0x00, 0x1E, 0x0E, 0x1A, 0x32, 0x78, 0xCC, 0xCC, 0xCC, 0xCC, 0x78, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x3C, 0x66, 0x66, 0x66, 0x66, 0x3C, 0x18, 0x7E, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x3F, 0x33, 0x3F, 0x30, 0x30, 0x30, 0x30, 0x70, 0xF0, 0xE0, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x7F, 0x63, 0x7F, 0x63, 0x63, 0x63, 0x63, 0x67, 0xE7, 0xE6, 0xC0, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x18, 0x18, 0xDB, 0x3C, 0xE7, 0x3C, 0xDB, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x80, 0xC0, 0xE0, 0xF0, 0xF8, 0xFE, 0xF8, 0xF0, 0xE0, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x02, 0x06, 0x0E, 0x1E, 0x3E, 0xFE, 0x3E, 0x1E, 0x0E, 0x06, 0x02, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x18, 0x3C, 0x7E, 0x18, 0x18, 0x18, 0x18, 0x7E, 0x3C, 0x18, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x00, 0x66, 0x66, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x7F, 0xDB, 0xDB, 0xDB, 0x7B, 0x1B, 0x1B, 0x1B, 0x1B, 0x1B, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x7C, 0xC6, 0x60, 0x38, 0x6C, 0xC6, 0xC6, 0x6C, 0x38, 0x0C, 0xC6, 0x7C, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0xFE, 0xFE, 0xFE, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x18, 0x3C, 0x7E, 0x18, 0x18, 0x18, 0x18, 0x7E, 0x3C, 0x18, 0x7E, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x18, 0x3C, 0x7E, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x7E, 0x3C, 0x18, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x0C, 0xFE, 0x0C, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x60, 0xFE, 0x60, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0xC0, 0xC0, 0xC0, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x6C, 0xFE, 0x6C, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x10, 0x38, 0x38, 0x7C, 0x7C, 0xFE, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0xFE, 0xFE, 0x7C, 0x7C, 0x38, 0x38, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x18, 0x3C, 0x3C, 0x3C, 0x18, 0x18, 0x18, 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x66, 0x66, 0x66, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x6C, 0x6C, 0xFE, 0x6C, 0x6C, 0x6C, 0xFE, 0x6C, 0x6C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x18, 0x18, 0x7C, 0xC6, 0xC2, 0xC0, 0x7C, 0x06, 0x86, 0xC6, 0x7C, 0x18, 0x18, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0xC2, 0xC6, 0x0C, 0x18, 0x30, 0x60, 0xC6, 0x86, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x38, 0x6C, 0x6C, 0x38, 0x76, 0xDC, 0xCC, 0xCC, 0xCC, 0x76, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x30, 0x30, 0x30, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x0C, 0x18, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x18, 0x0C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x30, 0x18, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x18, 0x30, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x66, 0x3C, 0xFF, 0x3C, 0x66, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x7E, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x18, 0x30, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x02, 0x06, 0x0C, 0x18, 0x30, 0x60, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x7C, 0xC6, 0xC6, 0xCE, 0xD6, 0xD6, 0xE6, 0xC6, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x18, 0x38, 0x78, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x7E, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x7C, 0xC6, 0x06, 0x0C, 0x18, 0x30, 0x60, 0xC0, 0xC6, 0xFE, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x7C, 0xC6, 0x06, 0x06, 0x3C, 0x06, 0x06, 0x06, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x0C, 0x1C, 0x3C, 0x6C, 0xCC, 0xFE, 0x0C, 0x0C, 0x0C, 0x1E, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xFE, 0xC0, 0xC0, 0xC0, 0xFC, 0x0E, 0x06, 0x06, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x38, 0x60, 0xC0, 0xC0, 0xFC, 0xC6, 0xC6, 0xC6, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xFE, 0xC6, 0x06, 0x06, 0x0C, 0x18, 0x30, 0x30, 0x30, 0x30, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x7C, 0xC6, 0xC6, 0xC6, 0x7C, 0xC6, 0xC6, 0xC6, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x7C, 0xC6, 0xC6, 0xC6, 0x7E, 0x06, 0x06, 0x06, 0x0C, 0x78, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, 0x18, 0x18, 0x30, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x06, 0x0C, 0x18, 0x30, 0x60, 0x30, 0x18, 0x0C, 0x06, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0x00, 0x00, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x60, 0x30, 0x18, 0x0C, 0x06, 0x0C, 0x18, 0x30, 0x60, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x7C, 0xC6, 0xC6, 0x0C, 0x18, 0x18, 0x18, 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x7C, 0xC6, 0xC6, 0xDE, 0xDE, 0xDE, 0xDC, 0xC0, 0x7C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x10, 0x38, 0x6C, 0xC6, 0xC6, 0xFE, 0xC6, 0xC6, 0xC6, 0xC6, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xFC, 0x66, 0x66, 0x66, 0x7C, 0x66, 0x66, 0x66, 0x66, 0xFC, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x3C, 0x66, 0xC2, 0xC0, 0xC0, 0xC0, 0xC0, 0xC2, 0x66, 0x3C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xF8, 0x6C, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x6C, 0xF8, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xFE, 0x66, 0x62, 0x68, 0x78, 0x68, 0x60, 0x62, 0x66, 0xFE, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xFE, 0x66, 0x62, 0x68, 0x78, 0x68, 0x60, 0x60, 0x60, 0xF0, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x3C, 0x66, 0xC2, 0xC0, 0xC0, 0xDE, 0xC6, 0xC6, 0x66, 0x3A, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xC6, 0xC6, 0xC6, 0xC6, 0xFE, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x3C, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x1E, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0xCC, 0xCC, 0xCC, 0x78, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xE6, 0x66, 0x6C, 0x6C, 0x78, 0x78, 0x6C, 0x66, 0x66, 0xE6, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xF0, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x62, 0x66, 0xFE, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xC6, 0xEE, 0xFE, 0xFE, 0xD6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xC6, 0xE6, 0xF6, 0xFE, 0xDE, 0xCE, 0xC6, 0xC6, 0xC6, 0xC6, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x38, 0x6C, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x6C, 0x38, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xFC, 0x66, 0x66, 0x66, 0x7C, 0x60, 0x60, 0x60, 0x60, 0xF0, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x7C, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xD6, 0xDE, 0x7C, 0x0C, 0x0E, 0x00, 0x00,
|
||||
0x00, 0x00, 0xFC, 0x66, 0x66, 0x66, 0x7C, 0x6C, 0x66, 0x66, 0x66, 0xE6, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x7C, 0xC6, 0xC6, 0x60, 0x38, 0x0C, 0x06, 0xC6, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x7E, 0x7E, 0x5A, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x6C, 0x38, 0x10, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xD6, 0xD6, 0xFE, 0x6C, 0x6C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xC6, 0xC6, 0x6C, 0x6C, 0x38, 0x38, 0x6C, 0x6C, 0xC6, 0xC6, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x66, 0x66, 0x66, 0x66, 0x3C, 0x18, 0x18, 0x18, 0x18, 0x3C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xFE, 0xC6, 0x86, 0x0C, 0x18, 0x30, 0x60, 0xC2, 0xC6, 0xFE, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x3C, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x3C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x80, 0xC0, 0xE0, 0x70, 0x38, 0x1C, 0x0E, 0x06, 0x02, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x3C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x3C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x10, 0x38, 0x6C, 0xC6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00,
|
||||
0x30, 0x30, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x0C, 0x7C, 0xCC, 0xCC, 0xCC, 0x76, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xE0, 0x60, 0x60, 0x78, 0x6C, 0x66, 0x66, 0x66, 0x66, 0xDC, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0xC6, 0xC0, 0xC0, 0xC0, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x1C, 0x0C, 0x0C, 0x3C, 0x6C, 0xCC, 0xCC, 0xCC, 0xCC, 0x76, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0xC6, 0xFE, 0xC0, 0xC0, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x38, 0x6C, 0x64, 0x60, 0xF0, 0x60, 0x60, 0x60, 0x60, 0xF0, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0x7C, 0x0C, 0xCC, 0x78, 0x00,
|
||||
0x00, 0x00, 0xE0, 0x60, 0x60, 0x6C, 0x76, 0x66, 0x66, 0x66, 0x66, 0xE6, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x18, 0x18, 0x00, 0x38, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x06, 0x06, 0x00, 0x0E, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x66, 0x66, 0x3C, 0x00,
|
||||
0x00, 0x00, 0xE0, 0x60, 0x60, 0x66, 0x6C, 0x78, 0x78, 0x6C, 0x66, 0xE6, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x38, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xEC, 0xFE, 0xD6, 0xD6, 0xD6, 0xD6, 0xD6, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xDC, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xDC, 0x66, 0x66, 0x66, 0x66, 0x66, 0x7C, 0x60, 0x60, 0xF0, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0x7C, 0x0C, 0x0C, 0x1E, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xDC, 0x76, 0x62, 0x60, 0x60, 0x60, 0xF0, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0xC6, 0x60, 0x38, 0x0C, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x10, 0x30, 0x30, 0xFC, 0x30, 0x30, 0x30, 0x30, 0x36, 0x1C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0x76, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x66, 0x66, 0x66, 0x66, 0x66, 0x3C, 0x18, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xC6, 0xC6, 0xC6, 0xD6, 0xD6, 0xFE, 0x6C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xC6, 0x6C, 0x38, 0x38, 0x38, 0x6C, 0xC6, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x7E, 0x06, 0x0C, 0xF8, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0xCC, 0x18, 0x30, 0x60, 0xC6, 0xFE, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x0E, 0x18, 0x18, 0x18, 0x70, 0x18, 0x18, 0x18, 0x18, 0x0E, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x18, 0x18, 0x18, 0x18, 0x00, 0x18, 0x18, 0x18, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x70, 0x18, 0x18, 0x18, 0x0E, 0x18, 0x18, 0x18, 0x18, 0x70, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x76, 0xDC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x10, 0x38, 0x6C, 0xC6, 0xC6, 0xC6, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x3C, 0x66, 0xC2, 0xC0, 0xC0, 0xC0, 0xC2, 0x66, 0x3C, 0x0C, 0x06, 0x7C, 0x00, 0x00,
|
||||
0x00, 0x00, 0xCC, 0xCC, 0x00, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0x76, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x0C, 0x18, 0x30, 0x00, 0x7C, 0xC6, 0xFE, 0xC0, 0xC0, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x10, 0x38, 0x6C, 0x00, 0x78, 0x0C, 0x7C, 0xCC, 0xCC, 0xCC, 0x76, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xCC, 0xCC, 0x00, 0x78, 0x0C, 0x7C, 0xCC, 0xCC, 0xCC, 0x76, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x60, 0x30, 0x18, 0x00, 0x78, 0x0C, 0x7C, 0xCC, 0xCC, 0xCC, 0x76, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x38, 0x6C, 0x38, 0x00, 0x78, 0x0C, 0x7C, 0xCC, 0xCC, 0xCC, 0x76, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x3C, 0x66, 0x60, 0x60, 0x66, 0x3C, 0x0C, 0x06, 0x3C, 0x00, 0x00, 0x00,
|
||||
0x00, 0x10, 0x38, 0x6C, 0x00, 0x7C, 0xC6, 0xFE, 0xC0, 0xC0, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xC6, 0xC6, 0x00, 0x7C, 0xC6, 0xFE, 0xC0, 0xC0, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x60, 0x30, 0x18, 0x00, 0x7C, 0xC6, 0xFE, 0xC0, 0xC0, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x66, 0x66, 0x00, 0x38, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x18, 0x3C, 0x66, 0x00, 0x38, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x60, 0x30, 0x18, 0x00, 0x38, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0xC6, 0xC6, 0x10, 0x38, 0x6C, 0xC6, 0xC6, 0xFE, 0xC6, 0xC6, 0xC6, 0x00, 0x00, 0x00, 0x00,
|
||||
0x38, 0x6C, 0x38, 0x00, 0x38, 0x6C, 0xC6, 0xC6, 0xFE, 0xC6, 0xC6, 0xC6, 0x00, 0x00, 0x00, 0x00,
|
||||
0x18, 0x30, 0x60, 0x00, 0xFE, 0x66, 0x60, 0x7C, 0x60, 0x60, 0x66, 0xFE, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xCC, 0x76, 0x36, 0x7E, 0xD8, 0xD8, 0x6E, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x3E, 0x6C, 0xCC, 0xCC, 0xFE, 0xCC, 0xCC, 0xCC, 0xCC, 0xCE, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x10, 0x38, 0x6C, 0x00, 0x7C, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xC6, 0xC6, 0x00, 0x7C, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x60, 0x30, 0x18, 0x00, 0x7C, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x30, 0x78, 0xCC, 0x00, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0x76, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x60, 0x30, 0x18, 0x00, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0x76, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xC6, 0xC6, 0x00, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x7E, 0x06, 0x0C, 0x78, 0x00,
|
||||
0x00, 0xC6, 0xC6, 0x00, 0x38, 0x6C, 0xC6, 0xC6, 0xC6, 0xC6, 0x6C, 0x38, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0xC6, 0xC6, 0x00, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x18, 0x18, 0x3C, 0x66, 0x60, 0x60, 0x60, 0x66, 0x3C, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x38, 0x6C, 0x64, 0x60, 0xF0, 0x60, 0x60, 0x60, 0x60, 0xE6, 0xFC, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x66, 0x66, 0x3C, 0x18, 0x7E, 0x18, 0x7E, 0x18, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0xF8, 0xCC, 0xCC, 0xF8, 0xC4, 0xCC, 0xDE, 0xCC, 0xCC, 0xCC, 0xC6, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x0E, 0x1B, 0x18, 0x18, 0x18, 0x7E, 0x18, 0x18, 0x18, 0x18, 0x18, 0xD8, 0x70, 0x00, 0x00,
|
||||
0x00, 0x18, 0x30, 0x60, 0x00, 0x78, 0x0C, 0x7C, 0xCC, 0xCC, 0xCC, 0x76, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x0C, 0x18, 0x30, 0x00, 0x38, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x18, 0x30, 0x60, 0x00, 0x7C, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x18, 0x30, 0x60, 0x00, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0x76, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x76, 0xDC, 0x00, 0xDC, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x00, 0x00, 0x00, 0x00,
|
||||
0x76, 0xDC, 0x00, 0xC6, 0xE6, 0xF6, 0xFE, 0xDE, 0xCE, 0xC6, 0xC6, 0xC6, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x3C, 0x6C, 0x6C, 0x3E, 0x00, 0x7E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x38, 0x6C, 0x6C, 0x38, 0x00, 0x7C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x30, 0x30, 0x00, 0x30, 0x30, 0x60, 0xC0, 0xC6, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0xC0, 0xC0, 0xC0, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0x06, 0x06, 0x06, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0xC0, 0xC0, 0xC2, 0xC6, 0xCC, 0x18, 0x30, 0x60, 0xCE, 0x93, 0x06, 0x0C, 0x1F, 0x00, 0x00,
|
||||
0x00, 0xC0, 0xC0, 0xC2, 0xC6, 0xCC, 0x18, 0x30, 0x66, 0xCE, 0x9A, 0x3F, 0x06, 0x0F, 0x00, 0x00,
|
||||
0x00, 0x00, 0x18, 0x18, 0x00, 0x18, 0x18, 0x18, 0x3C, 0x3C, 0x3C, 0x18, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x33, 0x66, 0xCC, 0x66, 0x33, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xCC, 0x66, 0x33, 0x66, 0xCC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x11, 0x44, 0x11, 0x44, 0x11, 0x44, 0x11, 0x44, 0x11, 0x44, 0x11, 0x44, 0x11, 0x44, 0x11, 0x44,
|
||||
0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA,
|
||||
0xDD, 0x77, 0xDD, 0x77, 0xDD, 0x77, 0xDD, 0x77, 0xDD, 0x77, 0xDD, 0x77, 0xDD, 0x77, 0xDD, 0x77,
|
||||
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
|
||||
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0xF8, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
|
||||
0x18, 0x18, 0x18, 0x18, 0x18, 0xF8, 0x18, 0xF8, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
|
||||
0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0xF6, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, 0x18, 0xF8, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
|
||||
0x36, 0x36, 0x36, 0x36, 0x36, 0xF6, 0x06, 0xF6, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
|
||||
0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0x06, 0xF6, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
|
||||
0x36, 0x36, 0x36, 0x36, 0x36, 0xF6, 0x06, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x18, 0x18, 0x18, 0x18, 0x18, 0xF8, 0x18, 0xF8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
|
||||
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
|
||||
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x1F, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0xFF, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
|
||||
0x18, 0x18, 0x18, 0x18, 0x18, 0x1F, 0x18, 0x1F, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
|
||||
0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x37, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
|
||||
0x36, 0x36, 0x36, 0x36, 0x36, 0x37, 0x30, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x3F, 0x30, 0x37, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
|
||||
0x36, 0x36, 0x36, 0x36, 0x36, 0xF7, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0xF7, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
|
||||
0x36, 0x36, 0x36, 0x36, 0x36, 0x37, 0x30, 0x37, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x36, 0x36, 0x36, 0x36, 0x36, 0xF7, 0x00, 0xF7, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
|
||||
0x18, 0x18, 0x18, 0x18, 0x18, 0xFF, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0xFF, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
|
||||
0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x18, 0x18, 0x18, 0x18, 0x18, 0x1F, 0x18, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x1F, 0x18, 0x1F, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3F, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
|
||||
0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0xFF, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
|
||||
0x18, 0x18, 0x18, 0x18, 0x18, 0xFF, 0x18, 0xFF, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
|
||||
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0xF8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1F, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
|
||||
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
|
||||
0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0,
|
||||
0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F,
|
||||
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0xDC, 0xD8, 0xD8, 0xD8, 0xDC, 0x76, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xFC, 0xC6, 0xFC, 0xC6, 0xC6, 0xFC, 0xC0, 0xC0, 0xC0, 0x00, 0x00,
|
||||
0x00, 0x00, 0xFE, 0xC6, 0xC6, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x80, 0xFE, 0x6C, 0x6C, 0x6C, 0x6C, 0x6C, 0x6C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0xFE, 0xC6, 0x60, 0x30, 0x18, 0x30, 0x60, 0xC6, 0xFE, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x7E, 0xD8, 0xD8, 0xD8, 0xD8, 0xD8, 0x70, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x66, 0x66, 0x66, 0x66, 0x66, 0x7C, 0x60, 0x60, 0xC0, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x76, 0xDC, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x7E, 0x18, 0x3C, 0x66, 0x66, 0x66, 0x3C, 0x18, 0x7E, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x38, 0x6C, 0xC6, 0xC6, 0xFE, 0xC6, 0xC6, 0x6C, 0x38, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x38, 0x6C, 0xC6, 0xC6, 0xC6, 0x6C, 0x6C, 0x6C, 0x6C, 0xEE, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x1E, 0x30, 0x18, 0x0C, 0x3E, 0x66, 0x66, 0x66, 0x66, 0x3C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x7E, 0xDB, 0xDB, 0xDB, 0x7E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x03, 0x06, 0x7E, 0xCF, 0xDB, 0xF3, 0x7E, 0x60, 0xC0, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x1C, 0x30, 0x60, 0x60, 0x7C, 0x60, 0x60, 0x60, 0x30, 0x1C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x7C, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0xFE, 0x00, 0x00, 0xFE, 0x00, 0x00, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x7E, 0x18, 0x18, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x30, 0x18, 0x0C, 0x06, 0x0C, 0x18, 0x30, 0x00, 0x7E, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x0C, 0x18, 0x30, 0x60, 0x30, 0x18, 0x0C, 0x00, 0x7E, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x0E, 0x1B, 0x1B, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
|
||||
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0xD8, 0xD8, 0xD8, 0x70, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x00, 0x7E, 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0xDC, 0x00, 0x76, 0xDC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x38, 0x6C, 0x6C, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x0F, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0xEC, 0x6C, 0x6C, 0x3C, 0x1C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0xD8, 0x6C, 0x6C, 0x6C, 0x6C, 0x6C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x70, 0x98, 0x30, 0x60, 0xC8, 0xF8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x7C, 0x7C, 0x7C, 0x7C, 0x7C, 0x7C, 0x7C, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||
};
|
||||
int vga256_24bit[256] = {
|
||||
0x000000, 0x0000a8, 0x00a800, 0x00a8a8, 0xa80000, 0xa800a8, 0xa85400,
|
||||
0xa8a8a8, 0x545454, 0x5454fc, 0x54fc54, 0x54fcfc, 0xfc5454, 0xfc54fc,
|
||||
0xfcfc54, 0xfcfcfc, 0x000000, 0x141414, 0x202020, 0x2c2c2c, 0x383838,
|
||||
0x444444, 0x505050, 0x606060, 0x707070, 0x808080, 0x909090, 0xa0a0a0,
|
||||
0xb4b4b4, 0xc8c8c8, 0xe0e0e0, 0xfcfcfc, 0x0000fc, 0x4000fc, 0x7c00fc,
|
||||
0xbc00fc, 0xfc00fc, 0xfc00bc, 0xfc007c, 0xfc0040, 0xfc0000, 0xfc4000,
|
||||
0xfc7c00, 0xfcbc00, 0xfcfc00, 0xbcfc00, 0x7cfc00, 0x40fc00, 0x00fc00,
|
||||
0x00fc40, 0x00fc7c, 0x00fcbc, 0x00fcfc, 0x00bcfc, 0x007cfc, 0x0040fc,
|
||||
0x7c7cfc, 0x9c7cfc, 0xbc7cfc, 0xdc7cfc, 0xfc7cfc, 0xfc7cdc, 0xfc7cbc,
|
||||
0xfc7c9c, 0xfc7c7c, 0xfc9c7c, 0xfcbc7c, 0xfcdc7c, 0xfcfc7c, 0xdcfc7c,
|
||||
0xbcfc7c, 0x9cfc7c, 0x7cfc7c, 0x7cfc9c, 0x7cfcbc, 0x7cfcdc, 0x7cfcfc,
|
||||
0x7cdcfc, 0x7cbcfc, 0x7c9cfc, 0xb4b4fc, 0xc4b4fc, 0xd8b4fc, 0xe8b4fc,
|
||||
0xfcb4fc, 0xfcb4e8, 0xfcb4d8, 0xfcb4c4, 0xfcb4b4, 0xfcc4b4, 0xfcd8b4,
|
||||
0xfce8b4, 0xfcfcb4, 0xe8fcb4, 0xd8fcb4, 0xc4fcb4, 0xb4fcb4, 0xb4fcc4,
|
||||
0xb4fcd8, 0xb4fce8, 0xb4fcfc, 0xb4e8fc, 0xb4d8fc, 0xb4c4fc, 0x000070,
|
||||
0x1c0070, 0x380070, 0x540070, 0x700070, 0x700054, 0x700038, 0x70001c,
|
||||
0x700000, 0x701c00, 0x703800, 0x705400, 0x707000, 0x547000, 0x387000,
|
||||
0x1c7000, 0x007000, 0x00701c, 0x007038, 0x007054, 0x007070, 0x005470,
|
||||
0x003870, 0x001c70, 0x383870, 0x443870, 0x543870, 0x603870, 0x703870,
|
||||
0x703860, 0x703854, 0x703844, 0x703838, 0x704438, 0x705438, 0x706038,
|
||||
0x707038, 0x607038, 0x547038, 0x447038, 0x387038, 0x387044, 0x387054,
|
||||
0x387060, 0x387070, 0x386070, 0x385470, 0x384470, 0x505070, 0x585070,
|
||||
0x605070, 0x685070, 0x705070, 0x705068, 0x705060, 0x705058, 0x705050,
|
||||
0x705850, 0x706050, 0x706850, 0x707050, 0x687050, 0x607050, 0x587050,
|
||||
0x507050, 0x507058, 0x507060, 0x507068, 0x507070, 0x506870, 0x506070,
|
||||
0x505870, 0x000040, 0x100040, 0x200040, 0x300040, 0x400040, 0x400030,
|
||||
0x400020, 0x400010, 0x400000, 0x401000, 0x402000, 0x403000, 0x404000,
|
||||
0x304000, 0x204000, 0x104000, 0x004000, 0x004010, 0x004020, 0x004030,
|
||||
0x004040, 0x003040, 0x002040, 0x001040, 0x202040, 0x282040, 0x302040,
|
||||
0x382040, 0x402040, 0x402038, 0x402030, 0x402028, 0x402020, 0x402820,
|
||||
0x403020, 0x403820, 0x404020, 0x384020, 0x304020, 0x284020, 0x204020,
|
||||
0x204028, 0x204030, 0x204038, 0x204040, 0x203840, 0x203040, 0x202840,
|
||||
0x2c2c40, 0x302c40, 0x342c40, 0x3c2c40, 0x402c40, 0x402c3c, 0x402c34,
|
||||
0x402c30, 0x402c2c, 0x40302c, 0x40342c, 0x403c2c, 0x40402c, 0x3c402c,
|
||||
0x34402c, 0x30402c, 0x2c402c, 0x2c4030, 0x2c4034, 0x2c403c, 0x2c4040,
|
||||
0x2c3c40, 0x2c3440, 0x2c3040, 0x000000, 0x000000, 0x000000, 0x000000,
|
||||
0x000000, 0x000000, 0x000000, 0x000000};
|
||||
|
||||
/* VGA fonts aren't actually stored in the graphics card, they disappear when
|
||||
you change modes, so we have to keep one here to restore when we switch back
|
||||
to text mode. */
|
||||
static unsigned char g_8x16_font[4096] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7E, 0x81, 0xA5, 0x81, 0x81, 0xBD,
|
||||
0x99, 0x81, 0x81, 0x7E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7E, 0xFF,
|
||||
0xDB, 0xFF, 0xFF, 0xC3, 0xE7, 0xFF, 0xFF, 0x7E, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x6C, 0xFE, 0xFE, 0xFE, 0xFE, 0x7C, 0x38, 0x10,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x38, 0x7C, 0xFE,
|
||||
0x7C, 0x38, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18,
|
||||
0x3C, 0x3C, 0xE7, 0xE7, 0xE7, 0x99, 0x18, 0x3C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x18, 0x3C, 0x7E, 0xFF, 0xFF, 0x7E, 0x18, 0x18, 0x3C,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x3C,
|
||||
0x3C, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF,
|
||||
0xFF, 0xFF, 0xE7, 0xC3, 0xC3, 0xE7, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x3C, 0x66, 0x42, 0x42, 0x66, 0x3C, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xC3, 0x99, 0xBD,
|
||||
0xBD, 0x99, 0xC3, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x1E, 0x0E,
|
||||
0x1A, 0x32, 0x78, 0xCC, 0xCC, 0xCC, 0xCC, 0x78, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x3C, 0x66, 0x66, 0x66, 0x66, 0x3C, 0x18, 0x7E, 0x18, 0x18,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3F, 0x33, 0x3F, 0x30, 0x30, 0x30,
|
||||
0x30, 0x70, 0xF0, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7F, 0x63,
|
||||
0x7F, 0x63, 0x63, 0x63, 0x63, 0x67, 0xE7, 0xE6, 0xC0, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x18, 0x18, 0xDB, 0x3C, 0xE7, 0x3C, 0xDB, 0x18, 0x18,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, 0xE0, 0xF0, 0xF8, 0xFE, 0xF8,
|
||||
0xF0, 0xE0, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x06, 0x0E,
|
||||
0x1E, 0x3E, 0xFE, 0x3E, 0x1E, 0x0E, 0x06, 0x02, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x18, 0x3C, 0x7E, 0x18, 0x18, 0x18, 0x18, 0x7E, 0x3C, 0x18,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66,
|
||||
0x66, 0x00, 0x66, 0x66, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7F, 0xDB,
|
||||
0xDB, 0xDB, 0x7B, 0x1B, 0x1B, 0x1B, 0x1B, 0x1B, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x7C, 0xC6, 0x60, 0x38, 0x6C, 0xC6, 0xC6, 0x6C, 0x38, 0x0C, 0xC6,
|
||||
0x7C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xFE, 0xFE, 0xFE, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x3C,
|
||||
0x7E, 0x18, 0x18, 0x18, 0x18, 0x7E, 0x3C, 0x18, 0x7E, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x18, 0x3C, 0x7E, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
|
||||
0x18, 0x7E, 0x3C, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x18, 0x0C, 0xFE, 0x0C, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x60, 0xFE, 0x60, 0x30, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0xC0, 0xC0,
|
||||
0xC0, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x28, 0x6C, 0xFE, 0x6C, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x10, 0x38, 0x38, 0x7C, 0x7C, 0xFE, 0xFE, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0xFE, 0x7C, 0x7C,
|
||||
0x38, 0x38, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x18, 0x3C, 0x3C, 0x3C, 0x18, 0x18, 0x18, 0x00, 0x18, 0x18,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x66, 0x66, 0x66, 0x24, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6C,
|
||||
0x6C, 0xFE, 0x6C, 0x6C, 0x6C, 0xFE, 0x6C, 0x6C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x18, 0x18, 0x7C, 0xC6, 0xC2, 0xC0, 0x7C, 0x06, 0x86, 0xC6, 0x7C, 0x18,
|
||||
0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC2, 0xC6, 0x0C, 0x18,
|
||||
0x30, 0x60, 0xC6, 0x86, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x6C,
|
||||
0x6C, 0x38, 0x76, 0xDC, 0xCC, 0xCC, 0xCC, 0x76, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x30, 0x30, 0x30, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x18, 0x30, 0x30, 0x30, 0x30,
|
||||
0x30, 0x30, 0x18, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x18,
|
||||
0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x18, 0x30, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x66, 0x3C, 0xFF, 0x3C, 0x66, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x7E,
|
||||
0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x18, 0x30, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x02, 0x06, 0x0C, 0x18, 0x30, 0x60, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x7C, 0xC6, 0xC6, 0xCE, 0xD6, 0xD6, 0xE6, 0xC6, 0xC6, 0x7C,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x38, 0x78, 0x18, 0x18, 0x18,
|
||||
0x18, 0x18, 0x18, 0x7E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0xC6,
|
||||
0x06, 0x0C, 0x18, 0x30, 0x60, 0xC0, 0xC6, 0xFE, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x7C, 0xC6, 0x06, 0x06, 0x3C, 0x06, 0x06, 0x06, 0xC6, 0x7C,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x1C, 0x3C, 0x6C, 0xCC, 0xFE,
|
||||
0x0C, 0x0C, 0x0C, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0xC0,
|
||||
0xC0, 0xC0, 0xFC, 0x0E, 0x06, 0x06, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x38, 0x60, 0xC0, 0xC0, 0xFC, 0xC6, 0xC6, 0xC6, 0xC6, 0x7C,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0xC6, 0x06, 0x06, 0x0C, 0x18,
|
||||
0x30, 0x30, 0x30, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0xC6,
|
||||
0xC6, 0xC6, 0x7C, 0xC6, 0xC6, 0xC6, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x7C, 0xC6, 0xC6, 0xC6, 0x7E, 0x06, 0x06, 0x06, 0x0C, 0x78,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x00, 0x00,
|
||||
0x00, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x18, 0x18, 0x00, 0x00, 0x00, 0x18, 0x18, 0x30, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x06, 0x0C, 0x18, 0x30, 0x60, 0x30, 0x18, 0x0C, 0x06,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0x00,
|
||||
0x00, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60,
|
||||
0x30, 0x18, 0x0C, 0x06, 0x0C, 0x18, 0x30, 0x60, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x7C, 0xC6, 0xC6, 0x0C, 0x18, 0x18, 0x18, 0x00, 0x18, 0x18,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0xC6, 0xC6, 0xDE, 0xDE,
|
||||
0xDE, 0xDC, 0xC0, 0x7C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x38,
|
||||
0x6C, 0xC6, 0xC6, 0xFE, 0xC6, 0xC6, 0xC6, 0xC6, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xFC, 0x66, 0x66, 0x66, 0x7C, 0x66, 0x66, 0x66, 0x66, 0xFC,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3C, 0x66, 0xC2, 0xC0, 0xC0, 0xC0,
|
||||
0xC0, 0xC2, 0x66, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, 0x6C,
|
||||
0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x6C, 0xF8, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xFE, 0x66, 0x62, 0x68, 0x78, 0x68, 0x60, 0x62, 0x66, 0xFE,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0x66, 0x62, 0x68, 0x78, 0x68,
|
||||
0x60, 0x60, 0x60, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3C, 0x66,
|
||||
0xC2, 0xC0, 0xC0, 0xDE, 0xC6, 0xC6, 0x66, 0x3A, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xC6, 0xC6, 0xC6, 0xC6, 0xFE, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3C, 0x18, 0x18, 0x18, 0x18, 0x18,
|
||||
0x18, 0x18, 0x18, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1E, 0x0C,
|
||||
0x0C, 0x0C, 0x0C, 0x0C, 0xCC, 0xCC, 0xCC, 0x78, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xE6, 0x66, 0x6C, 0x6C, 0x78, 0x78, 0x6C, 0x66, 0x66, 0xE6,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF0, 0x60, 0x60, 0x60, 0x60, 0x60,
|
||||
0x60, 0x62, 0x66, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC6, 0xEE,
|
||||
0xFE, 0xFE, 0xD6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xC6, 0xE6, 0xF6, 0xFE, 0xDE, 0xCE, 0xC6, 0xC6, 0xC6, 0xC6,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x6C, 0xC6, 0xC6, 0xC6, 0xC6,
|
||||
0xC6, 0xC6, 0x6C, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFC, 0x66,
|
||||
0x66, 0x66, 0x7C, 0x60, 0x60, 0x60, 0x60, 0xF0, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x7C, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xD6, 0xDE, 0x7C,
|
||||
0x0C, 0x0E, 0x00, 0x00, 0x00, 0x00, 0xFC, 0x66, 0x66, 0x66, 0x7C, 0x6C,
|
||||
0x66, 0x66, 0x66, 0xE6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0xC6,
|
||||
0xC6, 0x60, 0x38, 0x0C, 0x06, 0xC6, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x7E, 0x7E, 0x5A, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3C,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6,
|
||||
0xC6, 0xC6, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC6, 0xC6,
|
||||
0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x6C, 0x38, 0x10, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xD6, 0xD6, 0xFE, 0x6C, 0x6C,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC6, 0xC6, 0x6C, 0x6C, 0x38, 0x38,
|
||||
0x6C, 0x6C, 0xC6, 0xC6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x66, 0x66,
|
||||
0x66, 0x66, 0x3C, 0x18, 0x18, 0x18, 0x18, 0x3C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xFE, 0xC6, 0x86, 0x0C, 0x18, 0x30, 0x60, 0xC2, 0xC6, 0xFE,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3C, 0x30, 0x30, 0x30, 0x30, 0x30,
|
||||
0x30, 0x30, 0x30, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
|
||||
0xC0, 0xE0, 0x70, 0x38, 0x1C, 0x0E, 0x06, 0x02, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x3C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x3C,
|
||||
0x00, 0x00, 0x00, 0x00, 0x10, 0x38, 0x6C, 0xC6, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00,
|
||||
0x30, 0x30, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x0C, 0x7C,
|
||||
0xCC, 0xCC, 0xCC, 0x76, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x60,
|
||||
0x60, 0x78, 0x6C, 0x66, 0x66, 0x66, 0x66, 0xDC, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0xC6, 0xC0, 0xC0, 0xC0, 0xC6, 0x7C,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1C, 0x0C, 0x0C, 0x3C, 0x6C, 0xCC,
|
||||
0xCC, 0xCC, 0xCC, 0x76, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x7C, 0xC6, 0xFE, 0xC0, 0xC0, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x38, 0x6C, 0x64, 0x60, 0xF0, 0x60, 0x60, 0x60, 0x60, 0xF0,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0xCC, 0xCC,
|
||||
0xCC, 0xCC, 0xCC, 0x7C, 0x0C, 0xCC, 0x78, 0x00, 0x00, 0x00, 0xE0, 0x60,
|
||||
0x60, 0x6C, 0x76, 0x66, 0x66, 0x66, 0x66, 0xE6, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x18, 0x18, 0x00, 0x38, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3C,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x06, 0x00, 0x0E, 0x06, 0x06,
|
||||
0x06, 0x06, 0x06, 0x06, 0x66, 0x66, 0x3C, 0x00, 0x00, 0x00, 0xE0, 0x60,
|
||||
0x60, 0x66, 0x6C, 0x78, 0x78, 0x6C, 0x66, 0xE6, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x38, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3C,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xEC, 0xFE, 0xD6,
|
||||
0xD6, 0xD6, 0xD6, 0xD6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0xDC, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x7C,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xDC, 0x66, 0x66,
|
||||
0x66, 0x66, 0x66, 0x7C, 0x60, 0x60, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x76, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0x7C, 0x0C, 0x0C, 0x1E, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xDC, 0x76, 0x62, 0x60, 0x60, 0x60, 0xF0,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0xC6, 0x60,
|
||||
0x38, 0x0C, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x30,
|
||||
0x30, 0xFC, 0x30, 0x30, 0x30, 0x30, 0x36, 0x1C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0x76,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x66, 0x66, 0x66,
|
||||
0x66, 0x66, 0x3C, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0xC6, 0xC6, 0xC6, 0xD6, 0xD6, 0xFE, 0x6C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xC6, 0x6C, 0x38, 0x38, 0x38, 0x6C, 0xC6,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC6, 0xC6, 0xC6,
|
||||
0xC6, 0xC6, 0xC6, 0x7E, 0x06, 0x0C, 0xF8, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0xFE, 0xCC, 0x18, 0x30, 0x60, 0xC6, 0xFE, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x0E, 0x18, 0x18, 0x18, 0x70, 0x18, 0x18, 0x18, 0x18, 0x0E,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x18, 0x18, 0x00, 0x18,
|
||||
0x18, 0x18, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x18,
|
||||
0x18, 0x18, 0x0E, 0x18, 0x18, 0x18, 0x18, 0x70, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x76, 0xDC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x38, 0x6C, 0xC6,
|
||||
0xC6, 0xC6, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3C, 0x66,
|
||||
0xC2, 0xC0, 0xC0, 0xC0, 0xC2, 0x66, 0x3C, 0x0C, 0x06, 0x7C, 0x00, 0x00,
|
||||
0x00, 0x00, 0xCC, 0xCC, 0x00, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0x76,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x18, 0x30, 0x00, 0x7C, 0xC6, 0xFE,
|
||||
0xC0, 0xC0, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x38, 0x6C,
|
||||
0x00, 0x78, 0x0C, 0x7C, 0xCC, 0xCC, 0xCC, 0x76, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xCC, 0xCC, 0x00, 0x78, 0x0C, 0x7C, 0xCC, 0xCC, 0xCC, 0x76,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x30, 0x18, 0x00, 0x78, 0x0C, 0x7C,
|
||||
0xCC, 0xCC, 0xCC, 0x76, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x6C, 0x38,
|
||||
0x00, 0x78, 0x0C, 0x7C, 0xCC, 0xCC, 0xCC, 0x76, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x3C, 0x66, 0x60, 0x60, 0x66, 0x3C, 0x0C, 0x06,
|
||||
0x3C, 0x00, 0x00, 0x00, 0x00, 0x10, 0x38, 0x6C, 0x00, 0x7C, 0xC6, 0xFE,
|
||||
0xC0, 0xC0, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC6, 0xC6,
|
||||
0x00, 0x7C, 0xC6, 0xFE, 0xC0, 0xC0, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x60, 0x30, 0x18, 0x00, 0x7C, 0xC6, 0xFE, 0xC0, 0xC0, 0xC6, 0x7C,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x66, 0x66, 0x00, 0x38, 0x18, 0x18,
|
||||
0x18, 0x18, 0x18, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x3C, 0x66,
|
||||
0x00, 0x38, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x60, 0x30, 0x18, 0x00, 0x38, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3C,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xC6, 0xC6, 0x10, 0x38, 0x6C, 0xC6, 0xC6,
|
||||
0xFE, 0xC6, 0xC6, 0xC6, 0x00, 0x00, 0x00, 0x00, 0x38, 0x6C, 0x38, 0x00,
|
||||
0x38, 0x6C, 0xC6, 0xC6, 0xFE, 0xC6, 0xC6, 0xC6, 0x00, 0x00, 0x00, 0x00,
|
||||
0x18, 0x30, 0x60, 0x00, 0xFE, 0x66, 0x60, 0x7C, 0x60, 0x60, 0x66, 0xFE,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xCC, 0x76, 0x36,
|
||||
0x7E, 0xD8, 0xD8, 0x6E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3E, 0x6C,
|
||||
0xCC, 0xCC, 0xFE, 0xCC, 0xCC, 0xCC, 0xCC, 0xCE, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x10, 0x38, 0x6C, 0x00, 0x7C, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x7C,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC6, 0xC6, 0x00, 0x7C, 0xC6, 0xC6,
|
||||
0xC6, 0xC6, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x30, 0x18,
|
||||
0x00, 0x7C, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x30, 0x78, 0xCC, 0x00, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0x76,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x30, 0x18, 0x00, 0xCC, 0xCC, 0xCC,
|
||||
0xCC, 0xCC, 0xCC, 0x76, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC6, 0xC6,
|
||||
0x00, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x7E, 0x06, 0x0C, 0x78, 0x00,
|
||||
0x00, 0xC6, 0xC6, 0x00, 0x38, 0x6C, 0xC6, 0xC6, 0xC6, 0xC6, 0x6C, 0x38,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xC6, 0xC6, 0x00, 0xC6, 0xC6, 0xC6, 0xC6,
|
||||
0xC6, 0xC6, 0xC6, 0x7C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x3C,
|
||||
0x66, 0x60, 0x60, 0x60, 0x66, 0x3C, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x38, 0x6C, 0x64, 0x60, 0xF0, 0x60, 0x60, 0x60, 0x60, 0xE6, 0xFC,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x66, 0x66, 0x3C, 0x18, 0x7E, 0x18,
|
||||
0x7E, 0x18, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, 0xCC, 0xCC,
|
||||
0xF8, 0xC4, 0xCC, 0xDE, 0xCC, 0xCC, 0xCC, 0xC6, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x0E, 0x1B, 0x18, 0x18, 0x18, 0x7E, 0x18, 0x18, 0x18, 0x18, 0x18,
|
||||
0xD8, 0x70, 0x00, 0x00, 0x00, 0x18, 0x30, 0x60, 0x00, 0x78, 0x0C, 0x7C,
|
||||
0xCC, 0xCC, 0xCC, 0x76, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x18, 0x30,
|
||||
0x00, 0x38, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x18, 0x30, 0x60, 0x00, 0x7C, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x7C,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x30, 0x60, 0x00, 0xCC, 0xCC, 0xCC,
|
||||
0xCC, 0xCC, 0xCC, 0x76, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0xDC,
|
||||
0x00, 0xDC, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x00, 0x00, 0x00, 0x00,
|
||||
0x76, 0xDC, 0x00, 0xC6, 0xE6, 0xF6, 0xFE, 0xDE, 0xCE, 0xC6, 0xC6, 0xC6,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x3C, 0x6C, 0x6C, 0x3E, 0x00, 0x7E, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x6C, 0x6C,
|
||||
0x38, 0x00, 0x7C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x30, 0x30, 0x00, 0x30, 0x30, 0x60, 0xC0, 0xC6, 0xC6, 0x7C,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0xC0,
|
||||
0xC0, 0xC0, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xFE, 0x06, 0x06, 0x06, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0xC0, 0xC0, 0xC2, 0xC6, 0xCC, 0x18, 0x30, 0x60, 0xCE, 0x93, 0x06,
|
||||
0x0C, 0x1F, 0x00, 0x00, 0x00, 0xC0, 0xC0, 0xC2, 0xC6, 0xCC, 0x18, 0x30,
|
||||
0x66, 0xCE, 0x9A, 0x3F, 0x06, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18,
|
||||
0x00, 0x18, 0x18, 0x18, 0x3C, 0x3C, 0x3C, 0x18, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x33, 0x66, 0xCC, 0x66, 0x33, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xCC, 0x66, 0x33,
|
||||
0x66, 0xCC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x44, 0x11, 0x44,
|
||||
0x11, 0x44, 0x11, 0x44, 0x11, 0x44, 0x11, 0x44, 0x11, 0x44, 0x11, 0x44,
|
||||
0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA,
|
||||
0x55, 0xAA, 0x55, 0xAA, 0xDD, 0x77, 0xDD, 0x77, 0xDD, 0x77, 0xDD, 0x77,
|
||||
0xDD, 0x77, 0xDD, 0x77, 0xDD, 0x77, 0xDD, 0x77, 0x18, 0x18, 0x18, 0x18,
|
||||
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
|
||||
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0xF8, 0x18, 0x18, 0x18, 0x18,
|
||||
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0xF8, 0x18, 0xF8,
|
||||
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x36, 0x36, 0x36, 0x36,
|
||||
0x36, 0x36, 0x36, 0xF6, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0x36, 0x36, 0x36, 0x36,
|
||||
0x36, 0x36, 0x36, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, 0x18, 0xF8,
|
||||
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x36, 0x36, 0x36, 0x36,
|
||||
0x36, 0xF6, 0x06, 0xF6, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
|
||||
0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
|
||||
0x36, 0x36, 0x36, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0x06, 0xF6,
|
||||
0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
|
||||
0x36, 0xF6, 0x06, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0xFE, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x18, 0x18, 0x18, 0xF8, 0x18, 0xF8,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0xF8, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
|
||||
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x1F, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0xFF,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0xFF, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
|
||||
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x1F, 0x18, 0x18, 0x18, 0x18,
|
||||
0x18, 0x18, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x18, 0x18,
|
||||
0x18, 0x18, 0x18, 0xFF, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
|
||||
0x18, 0x18, 0x18, 0x18, 0x18, 0x1F, 0x18, 0x1F, 0x18, 0x18, 0x18, 0x18,
|
||||
0x18, 0x18, 0x18, 0x18, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x37,
|
||||
0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
|
||||
0x36, 0x37, 0x30, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x3F, 0x30, 0x37, 0x36, 0x36, 0x36, 0x36,
|
||||
0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0xF7, 0x00, 0xFF,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0xFF, 0x00, 0xF7, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
|
||||
0x36, 0x36, 0x36, 0x36, 0x36, 0x37, 0x30, 0x37, 0x36, 0x36, 0x36, 0x36,
|
||||
0x36, 0x36, 0x36, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0xFF,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x36, 0x36, 0x36, 0x36,
|
||||
0x36, 0xF7, 0x00, 0xF7, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
|
||||
0x18, 0x18, 0x18, 0x18, 0x18, 0xFF, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0xFF,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0xFF, 0x00, 0xFF, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x36, 0x36, 0x36, 0x36,
|
||||
0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x3F,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x18, 0x18,
|
||||
0x18, 0x1F, 0x18, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x1F, 0x18, 0x1F, 0x18, 0x18, 0x18, 0x18,
|
||||
0x18, 0x18, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3F,
|
||||
0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
|
||||
0x36, 0x36, 0x36, 0xFF, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36, 0x36,
|
||||
0x18, 0x18, 0x18, 0x18, 0x18, 0xFF, 0x18, 0xFF, 0x18, 0x18, 0x18, 0x18,
|
||||
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0xF8,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x1F, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
|
||||
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
|
||||
0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF,
|
||||
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF0, 0xF0, 0xF0, 0xF0,
|
||||
0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0,
|
||||
0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F,
|
||||
0x0F, 0x0F, 0x0F, 0x0F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x76, 0xDC, 0xD8, 0xD8, 0xD8, 0xDC, 0x76, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xFC, 0xC6, 0xFC, 0xC6, 0xC6, 0xFC, 0xC0,
|
||||
0xC0, 0xC0, 0x00, 0x00, 0x00, 0x00, 0xFE, 0xC6, 0xC6, 0xC0, 0xC0, 0xC0,
|
||||
0xC0, 0xC0, 0xC0, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x80, 0xFE, 0x6C, 0x6C, 0x6C, 0x6C, 0x6C, 0x6C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0xFE, 0xC6, 0x60, 0x30, 0x18, 0x30, 0x60, 0xC6, 0xFE,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7E, 0xD8, 0xD8,
|
||||
0xD8, 0xD8, 0xD8, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x66, 0x66, 0x66, 0x66, 0x66, 0x7C, 0x60, 0x60, 0xC0, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x76, 0xDC, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7E, 0x18, 0x3C, 0x66, 0x66,
|
||||
0x66, 0x3C, 0x18, 0x7E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38,
|
||||
0x6C, 0xC6, 0xC6, 0xFE, 0xC6, 0xC6, 0x6C, 0x38, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x38, 0x6C, 0xC6, 0xC6, 0xC6, 0x6C, 0x6C, 0x6C, 0x6C, 0xEE,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1E, 0x30, 0x18, 0x0C, 0x3E, 0x66,
|
||||
0x66, 0x66, 0x66, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x7E, 0xDB, 0xDB, 0xDB, 0x7E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x03, 0x06, 0x7E, 0xCF, 0xDB, 0xF3, 0x7E, 0x60, 0xC0,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1C, 0x30, 0x60, 0x60, 0x7C, 0x60,
|
||||
0x60, 0x60, 0x30, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7C,
|
||||
0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0xC6, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0xFE, 0x00, 0x00, 0xFE, 0x00, 0x00, 0xFE, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x7E, 0x18,
|
||||
0x18, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
|
||||
0x18, 0x0C, 0x06, 0x0C, 0x18, 0x30, 0x00, 0x7E, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x0C, 0x18, 0x30, 0x60, 0x30, 0x18, 0x0C, 0x00, 0x7E,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0E, 0x1B, 0x1B, 0x18, 0x18, 0x18,
|
||||
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
|
||||
0x18, 0x18, 0x18, 0x18, 0xD8, 0xD8, 0xD8, 0x70, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x00, 0x7E, 0x00, 0x18, 0x18, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0xDC, 0x00,
|
||||
0x76, 0xDC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x6C, 0x6C,
|
||||
0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x0C, 0x0C,
|
||||
0x0C, 0x0C, 0x0C, 0xEC, 0x6C, 0x6C, 0x3C, 0x1C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0xD8, 0x6C, 0x6C, 0x6C, 0x6C, 0x6C, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x98, 0x30, 0x60, 0xC8, 0xF8, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x7C, 0x7C, 0x7C, 0x7C, 0x7C, 0x7C, 0x7C, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00};
|
||||
|
||||
#define VGA 0x3C0
|
||||
|
||||
@ -299,9 +417,7 @@ void write3C0(unsigned char index, unsigned char value) {
|
||||
outb(0x3C0, value);
|
||||
}
|
||||
|
||||
void write3C2(unsigned char value) {
|
||||
outb(0x3C2, value);
|
||||
}
|
||||
void write3C2(unsigned char value) { outb(0x3C2, value); }
|
||||
|
||||
void write3C4(unsigned char index, unsigned char value) {
|
||||
outb(0x3C4, index);
|
||||
@ -318,9 +434,7 @@ void write3D4(unsigned char index, unsigned char value) {
|
||||
outb(0x3D5, value);
|
||||
}
|
||||
|
||||
void write3C6(unsigned char value) {
|
||||
outb(0x3C6,value);
|
||||
}
|
||||
void write3C6(unsigned char value) { outb(0x3C6, value); }
|
||||
|
||||
void vgaSetPalette(int index, int r, int g, int b) {
|
||||
outb(0x3C8, index);
|
||||
@ -332,9 +446,7 @@ void vgaSetPalette(int index, int r, int g, int b) {
|
||||
void setdefaultVGApalette() {
|
||||
for (int index = 0; index < 256; index++) {
|
||||
int value = vga256_24bit[index];
|
||||
vgaSetPalette(index,
|
||||
(value>>18)&0x3f,
|
||||
(value>>10)&0x3f,
|
||||
vgaSetPalette(index, (value >> 18) & 0x3f, (value >> 10) & 0x3f,
|
||||
(value >> 2) & 0x3f);
|
||||
}
|
||||
}
|
||||
@ -354,7 +466,6 @@ void vgaMode13() {
|
||||
// see http://www.osdever.net/FreeVGA/vga/crtcreg.htm#11
|
||||
write3D4(0x11, 0x0E);
|
||||
|
||||
|
||||
write3D4(0x00, 0x5F);
|
||||
write3D4(0x01, 0x4F);
|
||||
write3D4(0x02, 0x50);
|
||||
@ -439,7 +550,6 @@ void vgaMode3() {
|
||||
write3D4(0x06, 0xBF);
|
||||
write3D4(0x07, 0x1F);
|
||||
|
||||
|
||||
write3D4(0x08, 0x00);
|
||||
write3D4(0x09, 0x4F);
|
||||
write3D4(0x0A, 0x20);
|
||||
@ -493,7 +603,6 @@ void vgaMode3() {
|
||||
write3C0(0x13, 0x08);
|
||||
write3C0(0x14, 0x00);
|
||||
|
||||
|
||||
write3C4(0x00, 0x01); // seq reset
|
||||
write3C4(0x02, 0x04); // image plane 2
|
||||
write3C4(0x04, 0x07); // disable odd/even in sequencer
|
||||
@ -525,17 +634,11 @@ void vgaMode3() {
|
||||
current_display_mode = VGA_DISPLAY_MODE_TEXT;
|
||||
}
|
||||
|
||||
void switch_to_graphics_mode() {
|
||||
vgaMode13();
|
||||
}
|
||||
void switch_to_graphics_mode() { vgaMode13(); }
|
||||
|
||||
void switch_to_text_mode() {
|
||||
vgaMode3();
|
||||
}
|
||||
void switch_to_text_mode() { vgaMode3(); }
|
||||
|
||||
vga_display_mode_t vga_get_display_mode() {
|
||||
return current_display_mode;
|
||||
}
|
||||
vga_display_mode_t vga_get_display_mode() { return current_display_mode; }
|
||||
|
||||
bool vga_is_text_mode() {
|
||||
return current_display_mode == VGA_DISPLAY_MODE_TEXT;
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
#include "keyboard.h"
|
||||
#include "console.h"
|
||||
#include "cpu/isr.h"
|
||||
#include "cpu/memlayout.h"
|
||||
#include "console.h"
|
||||
#include "port.h"
|
||||
#include "kernel/mem.h"
|
||||
#include "port.h"
|
||||
|
||||
keyboard_interrupt_shared_t kbd_state_shrd;
|
||||
|
||||
@ -14,7 +14,6 @@ static void kbd_interrupt_handler(registers_t *r) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void init_keyboard() {
|
||||
kbd_state_shrd.len = 0;
|
||||
kbd_state_shrd.buf = (uint8_t *)kalloc();
|
||||
@ -32,16 +31,17 @@ uint8_t kbd_take_from_copy_buffer() {
|
||||
uint8_t key_event_code = kbd_state_shrd.copy_buf[--kbd_state_shrd.copy_len];
|
||||
uint8_t keycode = (key_event_code & 0x7f);
|
||||
if (key_event_code & 0x80) {
|
||||
kbd_state_shrd.copy_pressed[keycode >> 3] = kbd_state_shrd.copy_pressed[keycode >> 3] & (~(1u << (keycode & 0x7)));
|
||||
kbd_state_shrd.copy_pressed[keycode >> 3] =
|
||||
kbd_state_shrd.copy_pressed[keycode >> 3] &
|
||||
(~(1u << (keycode & 0x7)));
|
||||
} else {
|
||||
kbd_state_shrd.copy_pressed[keycode >> 3] = kbd_state_shrd.copy_pressed[keycode >> 3] | (1u << (keycode & 0x7));
|
||||
kbd_state_shrd.copy_pressed[keycode >> 3] =
|
||||
kbd_state_shrd.copy_pressed[keycode >> 3] | (1u << (keycode & 0x7));
|
||||
}
|
||||
return key_event_code;
|
||||
}
|
||||
|
||||
bool kbd_can_take_from_copy_buffer() {
|
||||
return kbd_state_shrd.copy_len > 0;
|
||||
}
|
||||
bool kbd_can_take_from_copy_buffer() { return kbd_state_shrd.copy_len > 0; }
|
||||
bool kbd_is_pressed(uint8_t code) {
|
||||
check(code < 128);
|
||||
return kbd_state_shrd.copy_pressed[code >> 3] & (1u << (code & 0x7));
|
||||
|
||||
@ -20,22 +20,22 @@ typedef struct {
|
||||
|
||||
/* decoding */
|
||||
static const char keysym_mapped_ascii_lower[] = {
|
||||
0 , 0 , '1', '2', '3', '4', '5', '6',
|
||||
'7', '8', '9', '0', '-', '=', 0 , 0 , 'q', 'w', 'e', 'r', 't', 'y',
|
||||
'u', 'i', 'o', 'p', '[', ']', '\n', 0 , 'a', 's', 'd', 'f', 'g',
|
||||
'h', 'j', 'k', 'l', ';', '\'', '`', 0 , '\\', 'z', 'x', 'c', 'v',
|
||||
'b', 'n', 'm', ',', '.', '/', 0 , 0 , 0 , ' ',
|
||||
0, 0, '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '-', '=', 0,
|
||||
0, 'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', '[', ']', '\n', 0,
|
||||
'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';', '\'', '`', 0, '\\', 'z',
|
||||
'x', 'c', 'v', 'b', 'n', 'm', ',', '.', '/', 0, 0, 0, ' ',
|
||||
};
|
||||
|
||||
static const char keysym_mapped_ascii_upper[] = {
|
||||
0 , 0 , '!', '@', '#', '$', '%', '^',
|
||||
'&', '*', '(', ')', '_', '+', 0 , 0 , 'Q', 'W', 'E', 'R', 'T', 'Y',
|
||||
'U', 'I', 'O', 'P', '{', '}', '\n', 0 , 'A', 'S', 'D', 'F', 'G',
|
||||
'H', 'J', 'K', 'L', ':', '"', '~', 0 , '\\', 'Z', 'X', 'C', 'V',
|
||||
'B', 'N', 'M', '<', '>', '?' /* an actual question mark */, 0 , 0 , 0 , ' ',
|
||||
0, 0, '!', '@', '#', '$', '%', '^', '&',
|
||||
'*', '(', ')', '_', '+', 0, 0, 'Q', 'W',
|
||||
'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', '{',
|
||||
'}', '\n', 0, 'A', 'S', 'D', 'F', 'G', 'H',
|
||||
'J', 'K', 'L', ':', '"', '~', 0, '\\', 'Z',
|
||||
'X', 'C', 'V', 'B', 'N', 'M', '<', '>', '?' /* an actual question mark */,
|
||||
0, 0, 0, ' ',
|
||||
};
|
||||
|
||||
|
||||
extern keyboard_interrupt_shared_t kbd_state_shrd;
|
||||
|
||||
void init_keyboard();
|
||||
|
||||
@ -1,8 +1,7 @@
|
||||
#pragma once
|
||||
#include "port.h"
|
||||
|
||||
__attribute__((noreturn))
|
||||
static inline void qemu_shutdown() {
|
||||
__attribute__((noreturn)) static inline void qemu_shutdown() {
|
||||
port_word_out(0x604, 0x2000);
|
||||
__builtin_unreachable();
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#include "pit.h"
|
||||
#include "port.h"
|
||||
#include "../cpu/isr.h"
|
||||
#include "port.h"
|
||||
|
||||
enum {
|
||||
PIT_CRYSTAL_HZ = 1193182,
|
||||
@ -30,7 +30,6 @@ enum {
|
||||
PC_SPEAKER_PORT = 0x61,
|
||||
};
|
||||
|
||||
|
||||
// Wtf is that O_o
|
||||
static timer_callback callbacks[100];
|
||||
static int registered_callbacks = 0;
|
||||
@ -78,9 +77,7 @@ static void timer_int_callback(void) {
|
||||
sleep_counter--;
|
||||
}
|
||||
|
||||
uint32_t get_uptime_ms(void) {
|
||||
return uptime_ms;
|
||||
}
|
||||
uint32_t get_uptime_ms(void) { return uptime_ms; }
|
||||
|
||||
void set_beep_frequency_hz(uint32_t frequency_hz) {
|
||||
if (frequency_hz == 0) {
|
||||
@ -117,9 +114,7 @@ void disable_beep(void) {
|
||||
speaker_frequency_hz = 0;
|
||||
}
|
||||
|
||||
uint32_t get_beep_frequency_hz(void) {
|
||||
return speaker_frequency_hz;
|
||||
}
|
||||
uint32_t get_beep_frequency_hz(void) { return speaker_frequency_hz; }
|
||||
|
||||
void msleep(int ms) {
|
||||
sleep_counter = ms / 10;
|
||||
|
||||
@ -30,9 +30,7 @@ void uartinit() {
|
||||
port_byte_in(COM1 + 0);
|
||||
}
|
||||
|
||||
void
|
||||
uartputc(char c)
|
||||
{
|
||||
void uartputc(char c) {
|
||||
int i;
|
||||
|
||||
if (!uart)
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#include "vga.h"
|
||||
#include "port.h"
|
||||
#include "../lib/string.h"
|
||||
#include "cpu/memlayout.h"
|
||||
#include "port.h"
|
||||
|
||||
static char *const video_memory = (char *)(KERNBASE + 0xb8000);
|
||||
|
||||
@ -32,9 +32,7 @@ unsigned vga_get_offset(unsigned col, unsigned row) {
|
||||
return row * VGA_COLS + col;
|
||||
}
|
||||
|
||||
unsigned vga_get_row_from_offset(unsigned offset) {
|
||||
return offset / VGA_COLS;
|
||||
}
|
||||
unsigned vga_get_row_from_offset(unsigned offset) { return offset / VGA_COLS; }
|
||||
|
||||
void vga_set_cursor(unsigned offset) {
|
||||
port_byte_out(VGA_CTRL_REGISTER, VGA_OFFSET_HIGH);
|
||||
@ -64,7 +62,8 @@ void vga_clear_screen() {
|
||||
}
|
||||
|
||||
static unsigned scroll() {
|
||||
kmemmove(video_memory, video_memory + 2 * VGA_COLS, 2 * VGA_COLS * (VGA_ROWS-1));
|
||||
kmemmove(video_memory, video_memory + 2 * VGA_COLS,
|
||||
2 * VGA_COLS * (VGA_ROWS - 1));
|
||||
for (int col = 0; col < VGA_COLS; col++) {
|
||||
vga_set_char(vga_get_offset(col, VGA_ROWS - 1), ' ');
|
||||
}
|
||||
|
||||
@ -13,8 +13,6 @@ enum {
|
||||
VGA_OFFSET_HIGH = 0x0e,
|
||||
};
|
||||
|
||||
|
||||
|
||||
unsigned vga_get_cursor();
|
||||
unsigned vga_get_row_from_offset(unsigned offset);
|
||||
unsigned vga_get_offset(unsigned col, unsigned row);
|
||||
|
||||
2
fs/fs.c
2
fs/fs.c
@ -1,6 +1,6 @@
|
||||
#include "fs.h"
|
||||
#include "../lib/string.h"
|
||||
#include "../drivers/ata.h"
|
||||
#include "../lib/string.h"
|
||||
|
||||
enum {
|
||||
fs_start = 1, // sector where the FS starts
|
||||
|
||||
13
kernel.c
13
kernel.c
@ -1,17 +1,17 @@
|
||||
#include "console.h"
|
||||
#include "cpu/isr.h"
|
||||
#include "cpu/gdt.h"
|
||||
#include "cpu/isr.h"
|
||||
#include "cpu/memlayout.h"
|
||||
#include "drivers/keyboard.h"
|
||||
#include "drivers/vga.h"
|
||||
#include "drivers/ata.h"
|
||||
#include "drivers/keyboard.h"
|
||||
#include "drivers/misc.h"
|
||||
#include "drivers/pit.h"
|
||||
#include "drivers/uart.h"
|
||||
#include "drivers/vga.h"
|
||||
#include "fs/fs.h"
|
||||
#include "kernel/mem.h"
|
||||
#include "lib/string.h"
|
||||
#include "proc.h"
|
||||
#include "kernel/mem.h"
|
||||
|
||||
void vga_set_pixel(int x, int y, int color) {
|
||||
unsigned char *pixel = (unsigned char *)(KERNBASE + 0xA0000 + 320 * y + x);
|
||||
@ -50,8 +50,8 @@ void read_line_input(char* buf, size_t* ret_len, size_t cap) {
|
||||
len--;
|
||||
}
|
||||
} else if (keycode < keycodes) {
|
||||
char ch = shift_pressed ? keysym_mapped_ascii_upper[keycode] :
|
||||
keysym_mapped_ascii_lower[keycode];
|
||||
char ch = shift_pressed ? keysym_mapped_ascii_upper[keycode]
|
||||
: keysym_mapped_ascii_lower[keycode];
|
||||
if (ch != 0) {
|
||||
char haha[2] = {ch, 0};
|
||||
printk(haha);
|
||||
@ -81,7 +81,6 @@ void read_line_input(char* buf, size_t* ret_len, size_t cap) {
|
||||
*ret_len = len;
|
||||
}
|
||||
|
||||
|
||||
void kmain() {
|
||||
freerange(P2V(3u << 20), P2V(4u << 20));
|
||||
kvmalloc(); // map all of physical memory at KERNBASE
|
||||
|
||||
17
kernel/mem.c
17
kernel/mem.c
@ -2,11 +2,11 @@
|
||||
// memory for user processes, kernel stacks, page table pages,
|
||||
// and pipe buffers. Allocates 4096-byte pages.
|
||||
|
||||
#include <stdint.h>
|
||||
#include "mem.h"
|
||||
#include "console.h"
|
||||
#include "cpu/memlayout.h"
|
||||
#include "cpu/x86.h"
|
||||
#include <stdint.h>
|
||||
|
||||
struct run {
|
||||
struct run *next;
|
||||
@ -16,18 +16,14 @@ struct {
|
||||
struct run *freelist;
|
||||
} kmem;
|
||||
|
||||
void
|
||||
freerange(void *vstart, void *vend)
|
||||
{
|
||||
void freerange(void *vstart, void *vend) {
|
||||
char *p;
|
||||
p = (char *)PGROUNDUP((uintptr_t)vstart);
|
||||
for (; p + PGSIZE <= (char *)vend; p += PGSIZE)
|
||||
kfree(p);
|
||||
}
|
||||
|
||||
void*
|
||||
memset(void *dst, unsigned c, uint64_t n)
|
||||
{
|
||||
void *memset(void *dst, unsigned c, uint64_t n) {
|
||||
if ((uintptr_t)dst % 4 == 0 && n % 4 == 0) {
|
||||
c &= 0xFF;
|
||||
stosl(dst, (c << 24) | (c << 16) | (c << 8) | c, n / 4);
|
||||
@ -40,9 +36,7 @@ memset(void *dst, unsigned c, uint64_t n)
|
||||
// which normally should have been returned by a
|
||||
// call to kalloc(). (The exception is when
|
||||
// initializing the allocator; see kinit above.)
|
||||
void
|
||||
kfree(void *v)
|
||||
{
|
||||
void kfree(void *v) {
|
||||
struct run *r;
|
||||
|
||||
if ((uintptr_t)v % PGSIZE || V2P(v) >= PHYSTOP)
|
||||
@ -59,8 +53,7 @@ kfree(void *v)
|
||||
// Allocate one 4096-byte page of physical memory.
|
||||
// Returns a pointer that the kernel can use.
|
||||
// Returns 0 if the memory cannot be allocated.
|
||||
void* kalloc(void)
|
||||
{
|
||||
void *kalloc(void) {
|
||||
struct run *r;
|
||||
|
||||
r = kmem.freelist;
|
||||
|
||||
15
kernel/vm.c
15
kernel/vm.c
@ -1,7 +1,7 @@
|
||||
#include "mem.h"
|
||||
#include "console.h"
|
||||
#include "cpu/memlayout.h"
|
||||
#include "cpu/x86.h"
|
||||
#include "console.h"
|
||||
#include "mem.h"
|
||||
|
||||
pde_t *kvm;
|
||||
|
||||
@ -22,8 +22,7 @@ void kvmalloc() {
|
||||
switchkvm();
|
||||
}
|
||||
|
||||
void switchkvm(void)
|
||||
{
|
||||
void switchkvm(void) {
|
||||
lcr3(V2P(kvm)); // switch to the kernel page table
|
||||
}
|
||||
|
||||
@ -33,9 +32,7 @@ void switchkvm(void)
|
||||
// Return the address of the PTE in page table pgdir
|
||||
// that corresponds to virtual address va. If alloc!=0,
|
||||
// create any required page table pages.
|
||||
static pte_t *
|
||||
walkpgdir(pde_t *pgdir, const void *va, int alloc)
|
||||
{
|
||||
static pte_t *walkpgdir(pde_t *pgdir, const void *va, int alloc) {
|
||||
pde_t *pde;
|
||||
pte_t *pgtab;
|
||||
|
||||
@ -65,8 +62,8 @@ walkpgdir(pde_t *pgdir, const void *va, int alloc)
|
||||
// Create PTEs for virtual addresses starting at va that refer to
|
||||
// physical addresses starting at pa.
|
||||
// size might not be page-aligned.
|
||||
static int
|
||||
mappages(pde_t *pgdir, void *va, uintptr_t size, uintptr_t pa, int perm){
|
||||
static int mappages(pde_t *pgdir, void *va, uintptr_t size, uintptr_t pa,
|
||||
int perm) {
|
||||
if ((uintptr_t)va % PGSIZE != 0)
|
||||
panic("Why??");
|
||||
char *a = va;
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
#include "string.h"
|
||||
|
||||
|
||||
void memcpy(void *dst, const void *src, size_t size) {
|
||||
for (size_t i = 0; i < size; i++) {
|
||||
((char *)dst)[i] = ((const char *)src)[i];
|
||||
@ -8,7 +7,8 @@ void memcpy(void*dst, const void *src, size_t size) {
|
||||
}
|
||||
|
||||
void kmemmove(char *dst, char *src, size_t size) {
|
||||
if (dst == src) return;
|
||||
if (dst == src)
|
||||
return;
|
||||
if (dst > src && dst < src + size) { // s d
|
||||
// copy right-to-left
|
||||
for (; size != 0; size--) {
|
||||
@ -42,7 +42,6 @@ bool cstr_equal(const char* s1, const char* s2) {
|
||||
return *s1 == 0 && *s2 == 0;
|
||||
}
|
||||
|
||||
|
||||
bool cstr_starts_with(const char *A, const char *B) {
|
||||
while (*A && *B) {
|
||||
if (*A != *B)
|
||||
|
||||
9
proc.c
9
proc.c
@ -47,17 +47,20 @@ void run_elf(const char* name) {
|
||||
vm.user_task = kalloc();
|
||||
}
|
||||
// todo: this code contains 9999 memory leaks but I don't care
|
||||
// todo: yabloko is fucking shit made my monkeys, I want to forget this fucking nightmare
|
||||
// todo: yabloko is fucking shit made my monkeys, I want to forget this
|
||||
// fucking nightmare
|
||||
vm.user_task->pgdir = setupkvm();
|
||||
if (allocuvm(vm.user_task->pgdir, USER_BASE, USER_BASE + statbuf.size)) {
|
||||
printk("Fail: out of memory\n");
|
||||
return;
|
||||
}
|
||||
if (allocuvm(vm.user_task->pgdir, USER_STACK_BASE - 2 * PGSIZE, USER_STACK_BASE)) {
|
||||
if (allocuvm(vm.user_task->pgdir, USER_STACK_BASE - 2 * PGSIZE,
|
||||
USER_STACK_BASE)) {
|
||||
printk("Fail: out of memory\n");
|
||||
return;
|
||||
}
|
||||
switchuvm(&vm.user_task->tss, vm.user_task->stack.bottom, vm.user_task->pgdir);
|
||||
switchuvm(&vm.user_task->tss, vm.user_task->stack.bottom,
|
||||
vm.user_task->pgdir);
|
||||
|
||||
if (read_file(&statbuf, (void *)USER_BASE, 100 << 20) <= 0) {
|
||||
printk(name);
|
||||
|
||||
7
proc.h
7
proc.h
@ -1,14 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include "elf.h"
|
||||
#include "fs/fs.h"
|
||||
#include "console.h"
|
||||
#include "cpu/gdt.h"
|
||||
#include "cpu/isr.h"
|
||||
#include "cpu/memlayout.h"
|
||||
#include "elf.h"
|
||||
#include "fs/fs.h"
|
||||
#include "kernel/mem.h"
|
||||
#include "lib/string.h"
|
||||
#include "console.h"
|
||||
|
||||
|
||||
pde_t *get_user_proc_page_directory();
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
/* We still have beef with keyboard, even in userspace */
|
||||
#define KEYCODE_SHIFT 42
|
||||
|
||||
826
snake/map_data.h
826
snake/map_data.h
@ -2,183 +2,713 @@
|
||||
|
||||
#include "maps.h"
|
||||
|
||||
static const MapList map_list = {
|
||||
.maps = {
|
||||
static const MapList
|
||||
map_list = {.maps =
|
||||
{
|
||||
/* CLUSTERTRACT.png */
|
||||
[0] = {
|
||||
[0] =
|
||||
{
|
||||
.name = "CLUSTERTRACT",
|
||||
.map = {
|
||||
[0] = { tile_wall_t, tile_wall_lr, tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_wall_lr, tile_wall_b },
|
||||
[1] = { tile_wall_rb, tile_wall_lt, tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_wall_lb, tile_wall_rt },
|
||||
[2] = { tile_wall_lr, tile_wall_rb, tile_wall_lt, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lb, tile_wall_rt, tile_wall_lr },
|
||||
[3] = { tile_wall_lr, tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_wall_lr },
|
||||
[4] = { tile_wall_lr, tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_wall_lr },
|
||||
[5] = { tile_wall_lr, tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_b, tile_wall_lrt, tile_wall_lr },
|
||||
[6] = { tile_wall_lr, tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_wall_lr },
|
||||
[7] = { tile_wall_lr, tile_wall_lrb, tile_wall_rt, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_wall_lr },
|
||||
[8] = { tile_wall_lr, tile_wall_lrb, tile_wall_lt, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_rb, tile_wall_lrt, tile_wall_lr },
|
||||
[9] = { tile_wall_lr, tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lb, tile_wall_lrt, tile_wall_lr },
|
||||
[10] = { tile_wall_lr, tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_wall_lr },
|
||||
[11] = { tile_wall_lr, tile_wall_lrb, tile_wall_t, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_wall_lr },
|
||||
[12] = { tile_wall_lr, tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_wall_lr },
|
||||
[13] = { tile_wall_lr, tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_wall_lr },
|
||||
[14] = { tile_wall_lr, tile_wall_lb, tile_wall_rt, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_rb, tile_wall_lt, tile_wall_lr },
|
||||
[15] = { tile_wall_lb, tile_wall_rt, tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_wall_rb, tile_wall_lt },
|
||||
.map =
|
||||
{
|
||||
[0] = {tile_wall_t, tile_wall_lr,
|
||||
tile_wall_lr, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_wall_lr,
|
||||
tile_wall_lr, tile_wall_b},
|
||||
[1] = {tile_wall_rb, tile_wall_lt,
|
||||
tile_wall_lr, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_wall_lr,
|
||||
tile_wall_lb, tile_wall_rt},
|
||||
[2] =
|
||||
{tile_wall_lr,
|
||||
tile_wall_rb, tile_wall_lt, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lb, tile_wall_rt, tile_wall_lr},
|
||||
[3] =
|
||||
{tile_wall_lr,
|
||||
tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_wall_lr},
|
||||
[4] =
|
||||
{tile_wall_lr,
|
||||
tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_wall_lr},
|
||||
[5] =
|
||||
{tile_wall_lr,
|
||||
tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_b, tile_wall_lrt, tile_wall_lr},
|
||||
[6] =
|
||||
{tile_wall_lr,
|
||||
tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_wall_lr},
|
||||
[7] =
|
||||
{tile_wall_lr,
|
||||
tile_wall_lrb, tile_wall_rt, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_wall_lr},
|
||||
[8] =
|
||||
{tile_wall_lr,
|
||||
tile_wall_lrb, tile_wall_lt, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_rb, tile_wall_lrt, tile_wall_lr},
|
||||
[9] =
|
||||
{tile_wall_lr,
|
||||
tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lb, tile_wall_lrt, tile_wall_lr},
|
||||
[10] =
|
||||
{tile_wall_lr,
|
||||
tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr,
|
||||
tile_wall_lr},
|
||||
[11] =
|
||||
{tile_wall_lr,
|
||||
tile_wall_lrb, tile_wall_t, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr,
|
||||
tile_wall_lr},
|
||||
[12] =
|
||||
{tile_wall_lr, tile_wall_lr,
|
||||
tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr,
|
||||
tile_wall_lr},
|
||||
[13] =
|
||||
{tile_wall_lr, tile_wall_lr,
|
||||
tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr,
|
||||
tile_wall_lr},
|
||||
[14] =
|
||||
{tile_wall_lr, tile_wall_lb,
|
||||
tile_wall_rt,
|
||||
tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_rb,
|
||||
tile_wall_lt, tile_wall_lr},
|
||||
[15] =
|
||||
{tile_wall_lb, tile_wall_rt,
|
||||
tile_wall_lr,
|
||||
tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr,
|
||||
tile_wall_rb, tile_wall_lt},
|
||||
},
|
||||
},
|
||||
/* EMPTY.png */
|
||||
[1] = {
|
||||
[1] =
|
||||
{
|
||||
.name = "EMPTY",
|
||||
.map = {
|
||||
[0] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[1] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[2] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[3] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[4] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[5] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[6] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[7] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[8] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[9] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[10] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[11] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[12] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[13] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[14] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[15] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
.map =
|
||||
{
|
||||
[0] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[1] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[2] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[3] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[4] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[5] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[6] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[7] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[8] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[9] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[10] =
|
||||
{tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty},
|
||||
[11] =
|
||||
{tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty},
|
||||
[12] =
|
||||
{tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty},
|
||||
[13] =
|
||||
{tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty},
|
||||
[14] =
|
||||
{tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty},
|
||||
[15] =
|
||||
{tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty},
|
||||
},
|
||||
},
|
||||
/* GREEN DAYS.png */
|
||||
[2] = {
|
||||
[2] =
|
||||
{
|
||||
.name = "GREEN DAYS",
|
||||
.map = {
|
||||
[0] = { tile_wall_rb, tile_wall_tb, tile_wall_tb, tile_wall_t, tile_empty, tile_empty, tile_wall_b, tile_wall_tb, tile_wall_tb, tile_wall_rt },
|
||||
[1] = { tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr },
|
||||
[2] = { tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr },
|
||||
[3] = { tile_wall_l, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_l },
|
||||
[4] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[5] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[6] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[7] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[8] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[9] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[10] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[11] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[12] = { tile_wall_r, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_r },
|
||||
[13] = { tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr },
|
||||
[14] = { tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr },
|
||||
[15] = { tile_wall_lb, tile_wall_tb, tile_wall_tb, tile_wall_t, tile_empty, tile_empty, tile_wall_b, tile_wall_tb, tile_wall_tb, tile_wall_lt },
|
||||
.map =
|
||||
{
|
||||
[0] = {tile_wall_rb, tile_wall_tb,
|
||||
tile_wall_tb, tile_wall_t,
|
||||
tile_empty, tile_empty,
|
||||
tile_wall_b, tile_wall_tb,
|
||||
tile_wall_tb, tile_wall_rt},
|
||||
[1] = {tile_wall_lr, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_wall_lr},
|
||||
[2] = {tile_wall_lr, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_wall_lr},
|
||||
[3] = {tile_wall_l, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_wall_l},
|
||||
[4] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[5] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[6] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[7] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[8] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[9] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[10] =
|
||||
{tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty},
|
||||
[11] =
|
||||
{tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty},
|
||||
[12] =
|
||||
{tile_wall_r, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_wall_r},
|
||||
[13] =
|
||||
{tile_wall_lr, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_wall_lr},
|
||||
[14] =
|
||||
{tile_wall_lr, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_wall_lr},
|
||||
[15] =
|
||||
{tile_wall_lb, tile_wall_tb,
|
||||
tile_wall_tb, tile_wall_t,
|
||||
tile_empty, tile_empty,
|
||||
tile_wall_b, tile_wall_tb,
|
||||
tile_wall_tb, tile_wall_lt},
|
||||
},
|
||||
},
|
||||
/* QUARTERHOUSE.png */
|
||||
[3] = {
|
||||
[3] =
|
||||
{
|
||||
.name = "QUARTERHOUSE",
|
||||
.map = {
|
||||
[0] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[1] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[2] = { tile_empty, tile_empty, tile_empty, tile_wall_b, tile_wall_rtb, tile_wall_tb, tile_wall_t, tile_empty, tile_empty, tile_empty },
|
||||
[3] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_wall, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[4] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_wall, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[5] = { tile_wall_rt, tile_empty, tile_empty, tile_empty, tile_wall_lb, tile_wall_rt, tile_empty, tile_empty, tile_empty, tile_wall_rb },
|
||||
[6] = { tile_wall_lrt, tile_empty, tile_empty, tile_empty, tile_wall, tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_wall_lrb },
|
||||
[7] = { tile_wall_lrt, tile_wall, tile_wall_rb, tile_wall_tb, tile_wall_rtb, tile_wall_lrtb, tile_wall_tb, tile_wall_rt, tile_wall, tile_wall_lrb },
|
||||
[8] = { tile_wall_lrtb, tile_wall_tb, tile_wall_lt, tile_wall, tile_wall_lrb, tile_wall_lt, tile_wall, tile_wall_lb, tile_wall_tb, tile_wall_lrtb },
|
||||
[9] = { tile_wall_lrt, tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_wall, tile_empty, tile_empty, tile_empty, tile_wall_lrb },
|
||||
[10] = { tile_wall_lt, tile_empty, tile_empty, tile_empty, tile_wall_lb, tile_wall_rt, tile_empty, tile_empty, tile_empty, tile_wall_lb },
|
||||
[11] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_wall, tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[12] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_wall, tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[13] = { tile_empty, tile_empty, tile_empty, tile_wall_b, tile_wall_tb, tile_wall_ltb, tile_wall_t, tile_empty, tile_empty, tile_empty },
|
||||
[14] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[15] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
.map =
|
||||
{
|
||||
[0] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[1] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[2] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_wall_b,
|
||||
tile_wall_rtb, tile_wall_tb,
|
||||
tile_wall_t, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[3] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_wall_lr,
|
||||
tile_wall, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty},
|
||||
[4] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_wall_lr,
|
||||
tile_wall, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty},
|
||||
[5] = {tile_wall_rt, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_wall_lb, tile_wall_rt,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_wall_rb},
|
||||
[6] = {tile_wall_lrt, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_wall, tile_wall_lr,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_wall_lrb},
|
||||
[7] = {tile_wall_lrt,
|
||||
tile_wall, tile_wall_rb,
|
||||
tile_wall_tb, tile_wall_rtb,
|
||||
tile_wall_lrtb, tile_wall_tb,
|
||||
tile_wall_rt,
|
||||
tile_wall, tile_wall_lrb},
|
||||
[8] = {tile_wall_lrtb, tile_wall_tb,
|
||||
tile_wall_lt,
|
||||
tile_wall, tile_wall_lrb,
|
||||
tile_wall_lt,
|
||||
tile_wall, tile_wall_lb,
|
||||
tile_wall_tb, tile_wall_lrtb},
|
||||
[9] = {tile_wall_lrt, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_wall_lr,
|
||||
tile_wall, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_wall_lrb},
|
||||
[10] =
|
||||
{tile_wall_lt, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_wall_lb, tile_wall_rt,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_wall_lb},
|
||||
[11] =
|
||||
{tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_wall,
|
||||
tile_wall_lr, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty},
|
||||
[12] =
|
||||
{tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_wall,
|
||||
tile_wall_lr, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty},
|
||||
[13] =
|
||||
{tile_empty, tile_empty, tile_empty,
|
||||
tile_wall_b, tile_wall_tb,
|
||||
tile_wall_ltb, tile_wall_t,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty},
|
||||
[14] =
|
||||
{tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty},
|
||||
[15] =
|
||||
{tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty},
|
||||
},
|
||||
},
|
||||
/* SERPENTINE STRUTS.png */
|
||||
[4] = {
|
||||
[4] =
|
||||
{
|
||||
.name = "SERPENTINE STRUTS",
|
||||
.map = {
|
||||
[0] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[1] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_r, tile_empty, tile_empty, tile_wall_r, tile_empty, tile_empty },
|
||||
[2] = { tile_empty, tile_empty, tile_empty, tile_wall_b, tile_wall_lrtb, tile_wall_tb, tile_wall_tb, tile_wall_lrtb, tile_wall_t, tile_empty },
|
||||
[3] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_l, tile_empty, tile_empty, tile_wall_l, tile_empty, tile_empty },
|
||||
[4] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[5] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[6] = { tile_empty, tile_empty, tile_empty, tile_wall_r, tile_empty, tile_empty, tile_wall_r, tile_empty, tile_empty, tile_empty },
|
||||
[7] = { tile_empty, tile_empty, tile_wall_b, tile_wall_lrtb, tile_wall_tb, tile_wall_tb, tile_wall_lrtb, tile_wall_t, tile_empty, tile_empty },
|
||||
[8] = { tile_empty, tile_empty, tile_empty, tile_wall_l, tile_empty, tile_empty, tile_wall_l, tile_empty, tile_empty, tile_empty },
|
||||
[9] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[10] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[11] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[12] = { tile_empty, tile_empty, tile_wall_r, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_r, tile_empty, tile_empty },
|
||||
[13] = { tile_empty, tile_wall_b, tile_wall_lrtb, tile_wall_tb, tile_wall_tb, tile_wall_tb, tile_wall_tb, tile_wall_lrtb, tile_wall_t, tile_empty },
|
||||
[14] = { tile_empty, tile_empty, tile_wall_l, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_l, tile_empty, tile_empty },
|
||||
[15] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
.map =
|
||||
{
|
||||
[0] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[1] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_wall_r, tile_empty,
|
||||
tile_empty, tile_wall_r,
|
||||
tile_empty, tile_empty},
|
||||
[2] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_wall_b,
|
||||
tile_wall_lrtb, tile_wall_tb,
|
||||
tile_wall_tb, tile_wall_lrtb,
|
||||
tile_wall_t, tile_empty},
|
||||
[3] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_wall_l, tile_empty,
|
||||
tile_empty, tile_wall_l,
|
||||
tile_empty, tile_empty},
|
||||
[4] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[5] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[6] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_wall_r,
|
||||
tile_empty, tile_empty,
|
||||
tile_wall_r, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[7] = {tile_empty, tile_empty,
|
||||
tile_wall_b, tile_wall_lrtb,
|
||||
tile_wall_tb, tile_wall_tb,
|
||||
tile_wall_lrtb, tile_wall_t,
|
||||
tile_empty, tile_empty},
|
||||
[8] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_wall_l,
|
||||
tile_empty, tile_empty,
|
||||
tile_wall_l, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[9] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[10] =
|
||||
{tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty},
|
||||
[11] =
|
||||
{tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty},
|
||||
[12] =
|
||||
{tile_empty, tile_empty,
|
||||
tile_wall_r, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_wall_r, tile_empty,
|
||||
tile_empty},
|
||||
[13] = {tile_empty, tile_wall_b,
|
||||
tile_wall_lrtb, tile_wall_tb,
|
||||
tile_wall_tb, tile_wall_tb,
|
||||
tile_wall_tb, tile_wall_lrtb,
|
||||
tile_wall_t, tile_empty},
|
||||
[14] =
|
||||
{tile_empty, tile_empty,
|
||||
tile_wall_l, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_wall_l, tile_empty,
|
||||
tile_empty},
|
||||
[15] =
|
||||
{tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty},
|
||||
},
|
||||
},
|
||||
/* SHEER GIRTH.png */
|
||||
[5] = {
|
||||
[5] =
|
||||
{
|
||||
.name = "SHEER GIRTH",
|
||||
.map = {
|
||||
[0] = { tile_empty, tile_wall_rb, tile_wall_rtb, tile_wall_rtb, tile_wall_rtb, tile_wall_rtb, tile_wall_rtb, tile_wall_rtb, tile_wall_rt, tile_empty },
|
||||
[1] = { tile_empty, tile_wall_lrb, tile_wall_lrtb, tile_wall_lrtb, tile_wall_lrtb, tile_wall_lrtb, tile_wall_lrtb, tile_wall_lrtb, tile_wall_lrt, tile_empty },
|
||||
[2] = { tile_empty, tile_wall_lb, tile_wall_ltb, tile_wall_ltb, tile_wall_ltb, tile_wall_ltb, tile_wall_ltb, tile_wall_ltb, tile_wall_lt, tile_empty },
|
||||
[3] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[4] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[5] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[6] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[7] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[8] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[9] = { tile_empty, tile_wall_rb, tile_wall_rtb, tile_wall_rt, tile_empty, tile_empty, tile_wall_rb, tile_wall_rtb, tile_wall_rt, tile_empty },
|
||||
[10] = { tile_empty, tile_wall_lrb, tile_wall_lrtb, tile_wall_lrt, tile_empty, tile_empty, tile_wall_lrb, tile_wall_lrtb, tile_wall_lrt, tile_empty },
|
||||
[11] = { tile_empty, tile_wall_lrb, tile_wall_lrtb, tile_wall_lrt, tile_empty, tile_empty, tile_wall_lrb, tile_wall_lrtb, tile_wall_lrt, tile_empty },
|
||||
[12] = { tile_empty, tile_wall_lrb, tile_wall_lrtb, tile_wall_lrt, tile_empty, tile_empty, tile_wall_lrb, tile_wall_lrtb, tile_wall_lrt, tile_empty },
|
||||
[13] = { tile_empty, tile_wall_lb, tile_wall_ltb, tile_wall_lt, tile_empty, tile_empty, tile_wall_lb, tile_wall_ltb, tile_wall_lt, tile_empty },
|
||||
[14] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[15] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
.map =
|
||||
{
|
||||
[0] = {tile_empty, tile_wall_rb,
|
||||
tile_wall_rtb, tile_wall_rtb,
|
||||
tile_wall_rtb, tile_wall_rtb,
|
||||
tile_wall_rtb, tile_wall_rtb,
|
||||
tile_wall_rt, tile_empty},
|
||||
[1] = {tile_empty, tile_wall_lrb,
|
||||
tile_wall_lrtb, tile_wall_lrtb,
|
||||
tile_wall_lrtb, tile_wall_lrtb,
|
||||
tile_wall_lrtb, tile_wall_lrtb,
|
||||
tile_wall_lrt, tile_empty},
|
||||
[2] = {tile_empty, tile_wall_lb,
|
||||
tile_wall_ltb, tile_wall_ltb,
|
||||
tile_wall_ltb, tile_wall_ltb,
|
||||
tile_wall_ltb, tile_wall_ltb,
|
||||
tile_wall_lt, tile_empty},
|
||||
[3] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[4] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[5] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[6] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[7] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[8] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[9] = {tile_empty, tile_wall_rb,
|
||||
tile_wall_rtb, tile_wall_rt,
|
||||
tile_empty, tile_empty,
|
||||
tile_wall_rb, tile_wall_rtb,
|
||||
tile_wall_rt, tile_empty},
|
||||
[10] =
|
||||
{tile_empty, tile_wall_lrb,
|
||||
tile_wall_lrtb, tile_wall_lrt,
|
||||
tile_empty, tile_empty,
|
||||
tile_wall_lrb, tile_wall_lrtb,
|
||||
tile_wall_lrt, tile_empty},
|
||||
[11] =
|
||||
{tile_empty, tile_wall_lrb,
|
||||
tile_wall_lrtb, tile_wall_lrt,
|
||||
tile_empty, tile_empty,
|
||||
tile_wall_lrb, tile_wall_lrtb,
|
||||
tile_wall_lrt, tile_empty},
|
||||
[12] =
|
||||
{tile_empty, tile_wall_lrb,
|
||||
tile_wall_lrtb, tile_wall_lrt,
|
||||
tile_empty, tile_empty,
|
||||
tile_wall_lrb, tile_wall_lrtb,
|
||||
tile_wall_lrt, tile_empty},
|
||||
[13] =
|
||||
{tile_empty, tile_wall_lb,
|
||||
tile_wall_ltb, tile_wall_lt,
|
||||
tile_empty, tile_empty,
|
||||
tile_wall_lb, tile_wall_ltb,
|
||||
tile_wall_lt, tile_empty},
|
||||
[14] =
|
||||
{tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty},
|
||||
[15] =
|
||||
{tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty},
|
||||
},
|
||||
},
|
||||
/* VAULT.png */
|
||||
[6] = {
|
||||
[6] =
|
||||
{
|
||||
.name = "VAULT",
|
||||
.map = {
|
||||
[0] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[1] = { tile_empty, tile_empty, tile_empty, tile_wall_rb, tile_wall_tb, tile_wall_tb, tile_wall_tb, tile_wall_tb, tile_wall_rt, tile_empty },
|
||||
[2] = { tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_empty },
|
||||
[3] = { tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_empty },
|
||||
[4] = { tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_empty },
|
||||
[5] = { tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_empty },
|
||||
[6] = { tile_empty, tile_empty, tile_empty, tile_wall_lb, tile_wall_t, tile_empty, tile_empty, tile_wall_b, tile_wall_lrt, tile_empty },
|
||||
[7] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_empty },
|
||||
[8] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_empty },
|
||||
[9] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_empty },
|
||||
[10] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_empty },
|
||||
[11] = { tile_empty, tile_empty, tile_wall_rb, tile_wall_t, tile_empty, tile_empty, tile_wall_b, tile_wall_tb, tile_wall_lrt, tile_empty },
|
||||
[12] = { tile_empty, tile_empty, tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_empty },
|
||||
[13] = { tile_empty, tile_empty, tile_wall_lr, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_wall_lr, tile_empty },
|
||||
[14] = { tile_empty, tile_empty, tile_wall_lb, tile_wall_tb, tile_wall_tb, tile_wall_tb, tile_wall_tb, tile_wall_tb, tile_wall_lt, tile_empty },
|
||||
[15] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
.map =
|
||||
{
|
||||
[0] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[1] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_wall_rb,
|
||||
tile_wall_tb, tile_wall_tb,
|
||||
tile_wall_tb, tile_wall_tb,
|
||||
tile_wall_rt, tile_empty},
|
||||
[2] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_wall_lr,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_wall_lr, tile_empty},
|
||||
[3] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_wall_lr,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_wall_lr, tile_empty},
|
||||
[4] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_wall_lr,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_wall_lr, tile_empty},
|
||||
[5] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_wall_lr,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_wall_lr, tile_empty},
|
||||
[6] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_wall_lb,
|
||||
tile_wall_t, tile_empty,
|
||||
tile_empty, tile_wall_b,
|
||||
tile_wall_lrt, tile_empty},
|
||||
[7] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_wall_lr, tile_empty},
|
||||
[8] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_wall_lr, tile_empty},
|
||||
[9] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_wall_lr, tile_empty},
|
||||
[10] =
|
||||
{tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_wall_lr, tile_empty},
|
||||
[11] =
|
||||
{tile_empty, tile_empty,
|
||||
tile_wall_rb, tile_wall_t,
|
||||
tile_empty, tile_empty,
|
||||
tile_wall_b, tile_wall_tb,
|
||||
tile_wall_lrt, tile_empty},
|
||||
[12] =
|
||||
{tile_empty, tile_empty,
|
||||
tile_wall_lr, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_wall_lr,
|
||||
tile_empty},
|
||||
[13] =
|
||||
{tile_empty, tile_empty,
|
||||
tile_wall_lr, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_wall_lr,
|
||||
tile_empty},
|
||||
[14] =
|
||||
{tile_empty, tile_empty,
|
||||
tile_wall_lb, tile_wall_tb,
|
||||
tile_wall_tb, tile_wall_tb,
|
||||
tile_wall_tb, tile_wall_tb,
|
||||
tile_wall_lt, tile_empty},
|
||||
[15] =
|
||||
{tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty},
|
||||
},
|
||||
},
|
||||
/* WALLS.png */
|
||||
[7] = {
|
||||
[7] =
|
||||
{
|
||||
.name = "WALLS",
|
||||
.map = {
|
||||
[0] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[1] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[2] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[3] = { tile_wall_tb, tile_wall_t, tile_empty, tile_empty, tile_wall_b, tile_wall_tb, tile_wall_tb, tile_wall_tb, tile_wall_tb, tile_wall_tb },
|
||||
[4] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[5] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[6] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[7] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[8] = { tile_wall_tb, tile_wall_tb, tile_wall_tb, tile_wall_tb, tile_wall_t, tile_empty, tile_empty, tile_wall_b, tile_wall_tb, tile_wall_tb },
|
||||
[9] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[10] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[11] = { tile_wall_t, tile_empty, tile_empty, tile_wall_b, tile_wall_tb, tile_wall_tb, tile_wall_tb, tile_wall_tb, tile_wall_tb, tile_wall_tb },
|
||||
[12] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[13] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
[14] = { tile_wall_tb, tile_wall_tb, tile_wall_tb, tile_wall_tb, tile_wall_tb, tile_wall_tb, tile_wall_t, tile_empty, tile_empty, tile_wall_b },
|
||||
[15] = { tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty, tile_empty },
|
||||
.map =
|
||||
{
|
||||
[0] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[1] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[2] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[3] = {tile_wall_tb, tile_wall_t,
|
||||
tile_empty, tile_empty,
|
||||
tile_wall_b, tile_wall_tb,
|
||||
tile_wall_tb, tile_wall_tb,
|
||||
tile_wall_tb, tile_wall_tb},
|
||||
[4] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[5] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[6] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[7] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[8] = {tile_wall_tb, tile_wall_tb,
|
||||
tile_wall_tb, tile_wall_tb,
|
||||
tile_wall_t, tile_empty,
|
||||
tile_empty, tile_wall_b,
|
||||
tile_wall_tb, tile_wall_tb},
|
||||
[9] = {tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty,
|
||||
tile_empty, tile_empty},
|
||||
[10] =
|
||||
{tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty},
|
||||
[11] =
|
||||
{tile_wall_t, tile_empty,
|
||||
tile_empty, tile_wall_b,
|
||||
tile_wall_tb, tile_wall_tb,
|
||||
tile_wall_tb, tile_wall_tb,
|
||||
tile_wall_tb, tile_wall_tb},
|
||||
[12] =
|
||||
{tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty},
|
||||
[13] =
|
||||
{tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty},
|
||||
[14] =
|
||||
{tile_wall_tb, tile_wall_tb,
|
||||
tile_wall_tb, tile_wall_tb,
|
||||
tile_wall_tb, tile_wall_tb,
|
||||
tile_wall_t, tile_empty,
|
||||
tile_empty, tile_wall_b},
|
||||
[15] =
|
||||
{tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty, tile_empty, tile_empty,
|
||||
tile_empty},
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
}};
|
||||
|
||||
@ -11,7 +11,10 @@ void _Noreturn panic(const char* message) {
|
||||
__builtin_unreachable();
|
||||
}
|
||||
|
||||
#define check(expr) if (!(expr)){ panic( "Assertion failed at " __FILE__ ": " #expr "\n"); }
|
||||
#define check(expr) \
|
||||
if (!(expr)) { \
|
||||
panic("Assertion failed at " __FILE__ ": " #expr "\n"); \
|
||||
}
|
||||
|
||||
typedef struct {
|
||||
int x, y;
|
||||
@ -85,6 +88,4 @@ const char* StringBuilder_get_cstr(StringBuilder* self) {
|
||||
return self->buf;
|
||||
}
|
||||
|
||||
uint32_t time_ms(void) {
|
||||
return (uint32_t)syscall(SYS_time_ms, 0);
|
||||
}
|
||||
uint32_t time_ms(void) { return (uint32_t)syscall(SYS_time_ms, 0); }
|
||||
|
||||
@ -3,24 +3,20 @@
|
||||
#include <stdint.h>
|
||||
|
||||
static const uint8_t VGA_GRAY_LUT[256] = {
|
||||
16, 17, 23, 24, 20, 21, 23, 27, 22, 23, 28, 29, 25, 27, 30, 31,
|
||||
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
|
||||
18, 19, 21, 22, 23, 23, 23, 22, 22, 24, 26, 28, 30, 29, 28, 27,
|
||||
26, 27, 27, 27, 28, 26, 23, 21, 26, 26, 27, 27, 28, 28, 27, 27,
|
||||
27, 28, 29, 30, 30, 30, 30, 29, 29, 29, 29, 29, 30, 29, 28, 27,
|
||||
28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 31, 30, 30, 30,
|
||||
30, 30, 30, 30, 30, 30, 29, 29, 17, 17, 18, 18, 19, 19, 19, 18,
|
||||
18, 19, 21, 22, 23, 23, 22, 21, 21, 21, 21, 22, 22, 21, 19, 18,
|
||||
20, 21, 21, 21, 22, 22, 22, 21, 21, 22, 23, 23, 24, 23, 23, 23,
|
||||
22, 23, 23, 23, 23, 22, 22, 21, 22, 22, 22, 23, 23, 23, 23, 23,
|
||||
23, 23, 23, 23, 24, 24, 23, 23, 23, 23, 23, 23, 23, 23, 23, 22,
|
||||
16, 17, 17, 17, 18, 17, 17, 17, 17, 18, 18, 19, 20, 20, 19, 19,
|
||||
18, 19, 19, 19, 19, 18, 17, 17, 18, 18, 19, 19, 19, 19, 19, 19,
|
||||
19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 19, 19, 19,
|
||||
19, 19, 19, 20, 20, 20, 20, 20, 19, 20, 20, 20, 21, 20, 20, 20,
|
||||
20, 20, 20, 20, 20, 20, 20, 19, 16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 17, 23, 24, 20, 21, 23, 27, 22, 23, 28, 29, 25, 27, 30, 31, 16, 17, 18,
|
||||
19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 18, 19, 21, 22, 23, 23,
|
||||
23, 22, 22, 24, 26, 28, 30, 29, 28, 27, 26, 27, 27, 27, 28, 26, 23, 21, 26,
|
||||
26, 27, 27, 28, 28, 27, 27, 27, 28, 29, 30, 30, 30, 30, 29, 29, 29, 29, 29,
|
||||
30, 29, 28, 27, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 31, 30, 30,
|
||||
30, 30, 30, 30, 30, 30, 30, 29, 29, 17, 17, 18, 18, 19, 19, 19, 18, 18, 19,
|
||||
21, 22, 23, 23, 22, 21, 21, 21, 21, 22, 22, 21, 19, 18, 20, 21, 21, 21, 22,
|
||||
22, 22, 21, 21, 22, 23, 23, 24, 23, 23, 23, 22, 23, 23, 23, 23, 22, 22, 21,
|
||||
22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 23, 23, 23, 23, 23,
|
||||
23, 23, 23, 23, 22, 16, 17, 17, 17, 18, 17, 17, 17, 17, 18, 18, 19, 20, 20,
|
||||
19, 19, 18, 19, 19, 19, 19, 18, 17, 17, 18, 18, 19, 19, 19, 19, 19, 19, 19,
|
||||
19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 19, 19, 19, 19, 19, 19, 20,
|
||||
20, 20, 20, 20, 19, 20, 20, 20, 21, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20,
|
||||
19, 16, 16, 16, 16, 16, 16, 16, 16,
|
||||
};
|
||||
|
||||
static inline uint8_t vga_to_gray(uint8_t color){
|
||||
return VGA_GRAY_LUT[color];
|
||||
}
|
||||
static inline uint8_t vga_to_gray(uint8_t color) { return VGA_GRAY_LUT[color]; }
|
||||
@ -1,15 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include "misc_utils.h"
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct {
|
||||
uint32_t state;
|
||||
} RandomEngine;
|
||||
|
||||
static void RandomEngine_init(RandomEngine* self) {
|
||||
self->state = 0x6d2b79f5u;
|
||||
}
|
||||
static void RandomEngine_init(RandomEngine *self) { self->state = 0x6d2b79f5u; }
|
||||
|
||||
static uint32_t RandomEngine_rnd(RandomEngine *self) {
|
||||
uint32_t x = self->state;
|
||||
@ -27,8 +25,8 @@ static uint32_t RandomEngine_rnd(RandomEngine* self) {
|
||||
return x;
|
||||
}
|
||||
|
||||
static uint32_t RandomEngine_rnd_interval(
|
||||
RandomEngine* self, uint32_t from, uint32_t until) {
|
||||
static uint32_t RandomEngine_rnd_interval(RandomEngine *self, uint32_t from,
|
||||
uint32_t until) {
|
||||
check(from < until);
|
||||
return from + RandomEngine_rnd(self) % (until - from);
|
||||
}
|
||||
|
||||
115
snake/snake.c
115
snake/snake.c
@ -1,17 +1,16 @@
|
||||
#include "../drivers/vga.h"
|
||||
#include "../syscall.h"
|
||||
|
||||
#include "keymapping.h"
|
||||
#include "map_data.h"
|
||||
#include "maps.h"
|
||||
#include "misc_utils.h"
|
||||
#include "pause_effect.h"
|
||||
#include "random.h"
|
||||
#include "sprite_data.h"
|
||||
#include "sprites.h"
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include "misc_utils.h"
|
||||
#include "keymapping.h"
|
||||
#include "pause_effect.h"
|
||||
#include "random.h"
|
||||
#include "sprites.h"
|
||||
#include "sprite_data.h"
|
||||
#include "maps.h"
|
||||
#include "map_data.h"
|
||||
|
||||
#define FRAME_SIZE (VGA_GRAPHICS_WIDTH * VGA_GRAPHICS_HEIGHT)
|
||||
|
||||
@ -34,7 +33,6 @@ typedef enum {
|
||||
game_screen_select_apple_count,
|
||||
} game_screen_t;
|
||||
|
||||
|
||||
#define SNAKE_START_Y 2
|
||||
#define SNAKE_START_HEAD_X 4
|
||||
#define SNAKE_START_PUPA_X 6
|
||||
@ -77,7 +75,8 @@ struct Snake {
|
||||
bool have_game;
|
||||
/* from 0 to PLAYABLE_MAPS_COUNT - 1 */
|
||||
int selected_map_index;
|
||||
/* from 1 to SNAKE_GAMEMODE_MAX_APPLES, default is SNAKE_GAMEMODE_DEFAULT_APPLES */
|
||||
/* from 1 to SNAKE_GAMEMODE_MAX_APPLES, default is
|
||||
* SNAKE_GAMEMODE_DEFAULT_APPLES */
|
||||
int gamemode_apples_count;
|
||||
RandomEngine r_eng;
|
||||
|
||||
@ -90,11 +89,11 @@ struct Snake {
|
||||
/* If we are about to make a step into a wall, we start dying,
|
||||
* we enter into dying mode, where we keep making steps, but the head
|
||||
* just disappears after walking, moving back.
|
||||
* When the pupa disappears this way, we enter 'awaiting postmortum' state, where
|
||||
* nothing moves.
|
||||
* If we are about to hit ourselves, we don't even move,
|
||||
* we immediately draw one small splash and enter 'awaiting postmortum' state.
|
||||
* There is no winning state, you just raise your score until you are dead.
|
||||
* When the pupa disappears this way, we enter 'awaiting postmortum' state,
|
||||
* where nothing moves. If we are about to hit ourselves, we don't even
|
||||
* move, we immediately draw one small splash and enter 'awaiting
|
||||
* postmortum' state. There is no winning state, you just raise your score
|
||||
* until you are dead.
|
||||
*/
|
||||
bool is_dying;
|
||||
int score;
|
||||
@ -102,7 +101,6 @@ struct Snake {
|
||||
int puddle_sprite;
|
||||
ivec2 puddle_center;
|
||||
|
||||
|
||||
/* This stuff regulates game flow and animation progress */
|
||||
waiting_reason_t waiting_reason;
|
||||
uint32_t waiting_time; // Measures how much time we already accumulated
|
||||
@ -124,7 +122,8 @@ void init_snake() {
|
||||
|
||||
bool place_random_apple() {
|
||||
for (int t = 0; t < 50; t++) {
|
||||
uint32_t i = RandomEngine_rnd_interval(&snake.r_eng, 0, WORLD_WIDTH * WORLD_HEIGHT);
|
||||
uint32_t i = RandomEngine_rnd_interval(&snake.r_eng, 0,
|
||||
WORLD_WIDTH * WORLD_HEIGHT);
|
||||
if ((&snake.world[0][0])[i] == tile_empty) {
|
||||
(&snake.world[0][0])[i] = tile_apple;
|
||||
return true;
|
||||
@ -144,7 +143,8 @@ void start_snake_game() {
|
||||
snake.have_game = true;
|
||||
snake.game_screen = game_screen_gaming;
|
||||
const MapConfig *map_config = &map_list.maps[snake.selected_map_index];
|
||||
memcpy(&snake.world[0][0], &map_config->map[0][0], sizeof(tile_t) * WORLD_WIDTH * WORLD_HEIGHT);
|
||||
memcpy(&snake.world[0][0], &map_config->map[0][0],
|
||||
sizeof(tile_t) * WORLD_WIDTH * WORLD_HEIGHT);
|
||||
memset(&snake.ghost_apples, 0, sizeof(snake.ghost_apples));
|
||||
for (int tx = SNAKE_START_HEAD_X; tx < SNAKE_START_PUPA_X; tx++) {
|
||||
snake.world[tx][SNAKE_START_Y] = tile_snake_l;
|
||||
@ -155,7 +155,8 @@ void start_snake_game() {
|
||||
for (int app = 0; app < snake.gamemode_apples_count; app++) {
|
||||
place_random_apple();
|
||||
}
|
||||
snake.new_snake_direction = snake.cur_snake_direction = snake_direction_left;
|
||||
snake.new_snake_direction = snake.cur_snake_direction =
|
||||
snake_direction_left;
|
||||
snake.is_dying = false;
|
||||
snake.score = 0;
|
||||
|
||||
@ -166,12 +167,14 @@ void start_snake_game() {
|
||||
}
|
||||
|
||||
void set_tile(ivec2 pos, tile_t val) {
|
||||
check(0 <= pos.x && pos.x < WORLD_WIDTH && 0 <= pos.y && pos.y < WORLD_HEIGHT);
|
||||
check(0 <= pos.x && pos.x < WORLD_WIDTH && 0 <= pos.y &&
|
||||
pos.y < WORLD_HEIGHT);
|
||||
snake.world[pos.x][pos.y] = val;
|
||||
}
|
||||
|
||||
tile_t get_tile(ivec2 pos) {
|
||||
check(0 <= pos.x && pos.x < WORLD_WIDTH && 0 <= pos.y && pos.y < WORLD_HEIGHT);
|
||||
check(0 <= pos.x && pos.x < WORLD_WIDTH && 0 <= pos.y &&
|
||||
pos.y < WORLD_HEIGHT);
|
||||
return snake.world[pos.x][pos.y];
|
||||
}
|
||||
|
||||
@ -364,8 +367,7 @@ void put_pixel(int x, int y, uint8_t color) {
|
||||
frame[y * VGA_GRAPHICS_WIDTH + x] = color;
|
||||
}
|
||||
|
||||
void draw_sprite(
|
||||
int dst_x, int dst_y, int sprite_width, int sprite_height,
|
||||
void draw_sprite(int dst_x, int dst_y, int sprite_width, int sprite_height,
|
||||
const uint8_t *sprite) {
|
||||
for (int x = 0; x < sprite_width; x++) {
|
||||
for (int y = 0; y < sprite_height; y++) {
|
||||
@ -403,7 +405,8 @@ void draw_hud(const char *text) {
|
||||
glyph_count++;
|
||||
}
|
||||
if (glyph_count > 0) {
|
||||
const int text_width = glyph_count * FONT_WIDTH + (glyph_count - 1) * GLYPH_SPACING;
|
||||
const int text_width =
|
||||
glyph_count * FONT_WIDTH + (glyph_count - 1) * GLYPH_SPACING;
|
||||
int x0 = VGA_GRAPHICS_WIDTH - HUD_OFFSET - text_width;
|
||||
for (const char *q = line_start; q != p; q++) {
|
||||
int glyph_index;
|
||||
@ -484,7 +487,8 @@ void draw_game_world() {
|
||||
continue;
|
||||
check((uint8_t)tt < TILE_SPRITES);
|
||||
draw_sprite(TILE_WIDTH * tx, TILE_WIDTH * ty - TILE_HEIGHT_OFFSET,
|
||||
TILE_WIDTH, TILE_HEIGHT, &sprite_data.tile[tt].tex[0][0]);
|
||||
TILE_WIDTH, TILE_HEIGHT,
|
||||
&sprite_data.tile[tt].tex[0][0]);
|
||||
}
|
||||
}
|
||||
if (snake.game_screen != game_screen_gaming) {
|
||||
@ -517,9 +521,11 @@ void draw_game_text() {
|
||||
} else if (snake.game_screen == game_screen_select_map) {
|
||||
StringBuilder_append_cstr(&hud, "SELECT LEVEL\nCURRENTLY SELECTED\n");
|
||||
check(snake.selected_map_index < PLAYABLE_MAPS_COUNT);
|
||||
StringBuilder_append_cstr(&hud, map_list.maps[snake.selected_map_index].name);
|
||||
StringBuilder_append_cstr(&hud,
|
||||
map_list.maps[snake.selected_map_index].name);
|
||||
} else if (snake.game_screen == game_screen_select_apple_count) {
|
||||
StringBuilder_append_cstr(&hud, "SELECT DIFFICULTY\n"
|
||||
StringBuilder_append_cstr(&hud,
|
||||
"SELECT DIFFICULTY\n"
|
||||
"HOW MANY APPLES\nCURRENTLY SELECTED\n");
|
||||
StringBuilder_append_u32(&hud, snake.gamemode_apples_count);
|
||||
}
|
||||
@ -529,10 +535,9 @@ void draw_game_text() {
|
||||
void draw_game_puddles() {
|
||||
if (snake.puddle_sprite >= 0) {
|
||||
const PuddleSprite *sprite = &sprite_data.puddle[snake.puddle_sprite];
|
||||
draw_sprite(
|
||||
snake.puddle_center.x - PUDDLE_WIDTH / 2,
|
||||
snake.puddle_center.y - PUDDLE_WIDTH / 2,
|
||||
PUDDLE_WIDTH, PUDDLE_WIDTH, (&sprite->tex[0][0]));
|
||||
draw_sprite(snake.puddle_center.x - PUDDLE_WIDTH / 2,
|
||||
snake.puddle_center.y - PUDDLE_WIDTH / 2, PUDDLE_WIDTH,
|
||||
PUDDLE_WIDTH, (&sprite->tex[0][0]));
|
||||
}
|
||||
}
|
||||
|
||||
@ -585,7 +590,8 @@ int handle_incoming_keycode_after_halt(uint8_t keycode) {
|
||||
if (snake.game_screen == game_screen_gaming) {
|
||||
handle_gaming_keycode(keycode);
|
||||
} else if (snake.game_screen == game_screen_pause) {
|
||||
if (keycode == KEYCODE_1 || (keycode == KEYCODE_ENTER && !snake.have_game)) {
|
||||
if (keycode == KEYCODE_1 ||
|
||||
(keycode == KEYCODE_ENTER && !snake.have_game)) {
|
||||
snake.game_screen = game_screen_select_map;
|
||||
} else if (keycode == KEYCODE_ESCAPE && snake.have_game) {
|
||||
snake.game_screen = game_screen_gaming;
|
||||
@ -675,38 +681,45 @@ void handle_time_difference(uint32_t time_diff) {
|
||||
/* Step 1 */
|
||||
ivec2 old_head_pos = snake.snake_head;
|
||||
if (tile_ahead == tile_empty || tile_ahead == tile_apple) {
|
||||
set_tile(tile_pos_ahead,
|
||||
construct_straight_snake_tile(snake.new_snake_direction));
|
||||
set_tile(tile_pos_ahead, construct_straight_snake_tile(
|
||||
snake.new_snake_direction));
|
||||
snake.snake_head = tile_pos_ahead;
|
||||
}
|
||||
/* Step 2 */
|
||||
set_tile(old_head_pos, construct_snake_tile(
|
||||
get_opposite_direction(snake.cur_snake_direction), snake.new_snake_direction));
|
||||
set_tile(old_head_pos,
|
||||
construct_snake_tile(
|
||||
get_opposite_direction(snake.cur_snake_direction),
|
||||
snake.new_snake_direction));
|
||||
snake.cur_snake_direction = snake.new_snake_direction;
|
||||
|
||||
/* Steps 3... */
|
||||
if (is_tile_pupa(get_tile(snake.snake_tail))) {
|
||||
/* Step 3a */
|
||||
snake_direction_t pupa_dir = get_zero_pupa_destination(get_tile(snake.snake_tail));
|
||||
ivec2 penultimate_pos = world_walk_direction(snake.snake_tail, pupa_dir);
|
||||
snake_direction_t pupa_dir =
|
||||
get_zero_pupa_destination(get_tile(snake.snake_tail));
|
||||
ivec2 penultimate_pos =
|
||||
world_walk_direction(snake.snake_tail, pupa_dir);
|
||||
set_tile(snake.snake_tail, tile_empty);
|
||||
/* Step 4a */
|
||||
snake_direction_t penultimate_part_dir = get_snake_destination(get_tile(penultimate_pos));
|
||||
set_tile(penultimate_pos, construct_zero_pupa(penultimate_part_dir));
|
||||
snake_direction_t penultimate_part_dir =
|
||||
get_snake_destination(get_tile(penultimate_pos));
|
||||
set_tile(penultimate_pos,
|
||||
construct_zero_pupa(penultimate_part_dir));
|
||||
snake.snake_tail = penultimate_pos;
|
||||
/* WARNING: we updated snake_tail by moving pupa forward, we
|
||||
* WARNING: should check if we moved onto a ghost apple */
|
||||
// check, this is important. This is the only place where we move pupa to a new pos
|
||||
// we check for ghost apples. Clear ghost apples and enter
|
||||
// p1-waiting state (instead of remaining in step awaiting state)
|
||||
// check, this is important. This is the only place where we
|
||||
// move pupa to a new pos we check for ghost apples. Clear ghost
|
||||
// apples and enter p1-waiting state (instead of remaining in
|
||||
// step awaiting state)
|
||||
if (snake.snake_tail.x == snake.snake_head.x &&
|
||||
snake.snake_tail.y == snake.snake_head.y
|
||||
) {
|
||||
snake.snake_tail.y == snake.snake_head.y) {
|
||||
snake.waiting_reason = waiting_reason_postmortum;
|
||||
return;
|
||||
}
|
||||
if (snake.ghost_apples[penultimate_pos.x][penultimate_pos.y]) {
|
||||
snake.ghost_apples[penultimate_pos.x][penultimate_pos.y] = 0;
|
||||
snake.ghost_apples[penultimate_pos.x][penultimate_pos.y] =
|
||||
0;
|
||||
|
||||
syscall(SYS_set_beep, WEIRD_SOUND);
|
||||
snake.waiting_reason = waiting_reason_p1;
|
||||
@ -716,7 +729,8 @@ void handle_time_difference(uint32_t time_diff) {
|
||||
}
|
||||
|
||||
} else {
|
||||
snake_direction_t tail_dir = get_snake_destination(get_tile(snake.snake_tail));
|
||||
snake_direction_t tail_dir =
|
||||
get_snake_destination(get_tile(snake.snake_tail));
|
||||
set_tile(snake.snake_tail, construct_zero_pupa(tail_dir));
|
||||
|
||||
syscall(SYS_set_beep, WEIRD_SOUND);
|
||||
@ -737,7 +751,8 @@ void handle_time_difference(uint32_t time_diff) {
|
||||
snake.waiting_reason = waiting_reason_cross;
|
||||
} else if (snake.waiting_reason == waiting_reason_cross) {
|
||||
/* Finished pupa hatching */
|
||||
snake_direction_t tail_dir = get_zero_pupa_destination(get_tile(snake.snake_tail));
|
||||
snake_direction_t tail_dir =
|
||||
get_zero_pupa_destination(get_tile(snake.snake_tail));
|
||||
set_tile(snake.snake_tail, construct_straight_snake_tile(tail_dir));
|
||||
syscall(SYS_set_beep, 0);
|
||||
snake.waiting_reason = waiting_reason_step;
|
||||
@ -764,7 +779,8 @@ int main(void) {
|
||||
|
||||
uint32_t prev_time = time_ms();
|
||||
while (1) {
|
||||
/* Returned from halt, we can enjoy keyboard input and animation progress*/
|
||||
/* Returned from halt, we can enjoy keyboard input and animation
|
||||
* progress*/
|
||||
for (int ch; (ch = syscall(SYS_getc, 0)) >= 0;) {
|
||||
int ret = handle_incoming_keycode_after_halt((uint8_t)ch);
|
||||
if (ret == 1)
|
||||
@ -783,7 +799,6 @@ int main(void) {
|
||||
|
||||
prev_time = current_time;
|
||||
syscall(SYS_halt, 0);
|
||||
|
||||
}
|
||||
quit:
|
||||
syscall(SYS_switch_to_text, 0);
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
|
||||
#include "sprites.h"
|
||||
|
||||
|
||||
static const SpriteData sprite_data = {
|
||||
.tile = {
|
||||
[0] = { /* slot 0: zero-filled */
|
||||
|
||||
@ -35,4 +35,3 @@ typedef struct {
|
||||
FontSprite font[FONT_SPRITES];
|
||||
PuddleSprite puddle[PUDDLE_SPRITES];
|
||||
} SpriteData;
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
enum {
|
||||
MBR_END = 510,
|
||||
|
||||
@ -7,12 +7,9 @@ int syscall(int call, uintptr_t arg) {
|
||||
return call;
|
||||
}
|
||||
|
||||
_Noreturn
|
||||
void _exit(int exit_status) {
|
||||
_Noreturn void _exit(int exit_status) {
|
||||
syscall(SYS_exit, exit_status);
|
||||
__builtin_unreachable();
|
||||
}
|
||||
|
||||
void _start() {
|
||||
_exit(main());
|
||||
}
|
||||
void _start() { _exit(main()); }
|
||||
|
||||
@ -1,3 +1 @@
|
||||
int main() {
|
||||
return 1;
|
||||
}
|
||||
int main() { return 1; }
|
||||
|
||||
@ -1,9 +1,7 @@
|
||||
#include "../syscall.h"
|
||||
#include <stdint.h>
|
||||
|
||||
static uint32_t time_ms(void) {
|
||||
return (uint32_t)syscall(SYS_time_ms, 0);
|
||||
}
|
||||
static uint32_t time_ms(void) { return (uint32_t)syscall(SYS_time_ms, 0); }
|
||||
|
||||
static void wait_ms(uint32_t duration_ms) {
|
||||
uint32_t start = time_ms();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user