Annotation of nono/vm/builtinrom.h, revision 1.1.1.1

1.1       root        1: //
                      2: // nono
                      3: // Copyright (C) 2020 nono project
                      4: // Licensed under nono-license.txt
                      5: //
                      6: 
                      7: //
                      8: // 内蔵 ROM イメージ
                      9: //
                     10: 
                     11: #pragma once
                     12: 
                     13: #include "header.h"
                     14: 
                     15: class Builtin
                     16: {
                     17:  public:
                     18:        // cgrom.cpp
                     19:        static uint8 const CGROM[];
                     20: 
                     21:        // iplrom30.cpp
                     22:        static uint8 const IPLROM30[];
                     23: 
                     24:  public:
                     25:        // CGROM の特定のフォント/文字の開始アドレスを返す便利関数
                     26: 
                     27:        // 1バイト全角文字
                     28:        static const uint8 *CGROM8x8(uint ch = 0) {
                     29:                return &CGROM[0x3a000 + ch * 8];
                     30:        }
                     31:        static const uint8 *CGROM12x12(uint ch = 0) {
                     32:                return &CGROM[0x3b800 + ch * 24];
                     33:        }
                     34: 
                     35:        // 1バイト半角文字
                     36:        static const uint8 *CGROM6x12(uint ch = 0) {
                     37:                return &CGROM[0xbf400 + ch * 12];
                     38:        }
                     39:        static const uint8 *CGROM8x16(uint ch = 0) {
                     40:                return &CGROM[0x3a800 + ch * 16];
                     41:        }
                     42:        static const uint8 *CGROM12x24(uint ch = 0) {
                     43:                return &CGROM[0x3d000 + ch * 48];
                     44:        }
                     45: 
                     46:        // 2バイト全角文字
                     47:        static const uint8 *CGROM16x16(uint ch = 0) {
                     48:                return &CGROM[0x00000 + ch * 32];
                     49:        }
                     50:        static const uint8 *CGROM24x24(uint ch = 0) {
                     51:                return &CGROM[0x40000 + ch * 72];
                     52:        }
                     53: };

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.