File:  [Isaki's NoNo m68k/m88k emulator] / nono / vm / builtinrom.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed Apr 29 17:05:14 2026 UTC (3 months ago) by root
Branches: MAIN, Isaki
CVS tags: v027, v026, v025, v024, v023, v022, v021, v020, v019, v018, v017, v016, HEAD
nono 0.4.0

//
// nono
// Copyright (C) 2020 nono project
// Licensed under nono-license.txt
//

//
// 内蔵 ROM イメージ
//

#pragma once

#include "header.h"

class Builtin
{
 public:
	// cgrom.cpp
	static uint8 const CGROM[];

	// iplrom30.cpp
	static uint8 const IPLROM30[];

 public:
	// CGROM の特定のフォント/文字の開始アドレスを返す便利関数

	// 1バイト全角文字
	static const uint8 *CGROM8x8(uint ch = 0) {
		return &CGROM[0x3a000 + ch * 8];
	}
	static const uint8 *CGROM12x12(uint ch = 0) {
		return &CGROM[0x3b800 + ch * 24];
	}

	// 1バイト半角文字
	static const uint8 *CGROM6x12(uint ch = 0) {
		return &CGROM[0xbf400 + ch * 12];
	}
	static const uint8 *CGROM8x16(uint ch = 0) {
		return &CGROM[0x3a800 + ch * 16];
	}
	static const uint8 *CGROM12x24(uint ch = 0) {
		return &CGROM[0x3d000 + ch * 48];
	}

	// 2バイト全角文字
	static const uint8 *CGROM16x16(uint ch = 0) {
		return &CGROM[0x00000 + ch * 32];
	}
	static const uint8 *CGROM24x24(uint ch = 0) {
		return &CGROM[0x40000 + ch * 72];
	}
};

unix.superglobalmegacorp.com

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