File:  [Isaki's NoNo m68k/m88k emulator] / nono / vm / cgrom.h
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs
Wed Apr 29 17:04:35 2026 UTC (2 months, 3 weeks ago) by root
Branches: MAIN, Isaki
CVS tags: v015, v014, v013, v012, v011, v010, v009, v008, v007, v006, v005, v004, HEAD
nono 0.1.0

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

#pragma once

#include "header.h"

// 内蔵 CGROM データへのポインタ
class BuiltinCGROM
{
 public:
	static const uint8 * Get8x8(uint ch = 0) {
		return &data[0x3a000 + ch * 8];
	}
	static const uint8 * Get12x12(uint ch = 0) {
		return &data[0x3b800 + ch * 24];
	}

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

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

 private:
	static uint8 const data[];
};

unix.superglobalmegacorp.com

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