|
|
1.1 root 1: //
2: // nono
1.1.1.2 ! root 3: // Copyright (C) 2020 nono project
! 4: // Licensed under nono-license.txt
1.1 root 5: //
6:
7: #pragma once
8:
9: #include "header.h"
10:
1.1.1.2 ! root 11: // 内蔵 CGROM データへのポインタ
! 12: class BuiltinCGROM
! 13: {
! 14: public:
! 15: static const uint8 * Get8x8(uint ch = 0) {
! 16: return &data[0x3a000 + ch * 8];
! 17: }
! 18: static const uint8 * Get12x12(uint ch = 0) {
! 19: return &data[0x3b800 + ch * 24];
! 20: }
! 21:
! 22: // 1バイト半角文字
! 23: static const uint8 * Get6x12(uint ch = 0) {
! 24: return &data[0xbf400 + ch * 12];
! 25: }
! 26: static const uint8 * Get8x16(uint ch = 0) {
! 27: return &data[0x3a800 + ch * 16];
! 28: }
! 29: static const uint8 * Get12x24(uint ch = 0) {
! 30: return &data[0x3d000 + ch * 48];
! 31: }
! 32:
! 33: // 2バイト全角文字
! 34: static const uint8 * Get16x16(uint ch = 0) {
! 35: return &data[0x00000 + ch * 32];
! 36: }
! 37: static const uint8 * Get24x24(uint ch = 0) {
! 38: return &data[0x40000 + ch * 72];
! 39: }
! 40:
! 41: private:
! 42: static uint8 const data[];
! 43: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.