mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2026-01-22 23:16:23 +00:00
sg1000: fonts.s, fixed pixel editor with ;; delimiters
This commit is contained in:
@@ -24,7 +24,7 @@ import { TMS9918A } from "../video/tms9918a";
|
||||
// https://github.com/tursilion/convert9918
|
||||
// http://www.harmlesslion.com/cgi-bin/showprog.cgi?ColecoVision
|
||||
|
||||
var ColecoVision_PRESETS = [
|
||||
export var ColecoVision_PRESETS = [
|
||||
{id:'text.c', name:'Text Mode'},
|
||||
{id:'hello.c', name:'Scrolling Text'},
|
||||
{id:'text32.c', name:'32-Column Color Text'},
|
||||
|
||||
@@ -5,11 +5,16 @@ import { PLATFORMS, RAM, newAddressDecoder, padBytes, noise, setKeyboardFromMap,
|
||||
import { hex, lzgmini, stringToByteArray } from "../util";
|
||||
import { MasterAudio, SN76489_Audio } from "../audio";
|
||||
import { TMS9918A } from "../video/tms9918a";
|
||||
import { ColecoVision_PRESETS } from "./coleco";
|
||||
|
||||
// http://www.smspower.org/Development/Index
|
||||
// http://www.smspower.org/uploads/Development/sg1000.txt
|
||||
|
||||
var SG1000_PRESETS = [
|
||||
// TODO: merge w/ coleco
|
||||
export var SG1000_PRESETS = [
|
||||
{id:'text.c', name:'Text Mode'},
|
||||
{id:'hello.c', name:'Scrolling Text'},
|
||||
{id:'text32.c', name:'32-Column Color Text'},
|
||||
{id:'stars.c', name:'Scrolling Starfield'},
|
||||
{id:'cursorsmooth.c', name:'Moving Cursor'},
|
||||
{id:'simplemusic.c', name:'Simple Music'},
|
||||
@@ -18,8 +23,12 @@ var SG1000_PRESETS = [
|
||||
{id:'mode2compressed.c', name:'Mode 2 Bitmap (LZG)'},
|
||||
{id:'lines.c', name:'Mode 2 Lines'},
|
||||
{id:'multicolor.c', name:'Multicolor Mode'},
|
||||
{id:'siegegame.c', name:'Siege Game'},
|
||||
{id:'shoot.c', name:'Solarian Game'},
|
||||
{id:'climber.c', name:'Platform Game'},
|
||||
];
|
||||
|
||||
|
||||
var SG1000_KEYCODE_MAP = makeKeycodeMap([
|
||||
[Keys.VK_UP, 0, 0x1],
|
||||
[Keys.VK_DOWN, 0, 0x2],
|
||||
|
||||
@@ -375,6 +375,8 @@ export class SourceEditor implements ProjectView {
|
||||
var endsection;
|
||||
if (platform_id == 'verilog')
|
||||
endsection = l.indexOf('end') >= pos0;
|
||||
else if (s.startsWith(';;'))
|
||||
endsection = l.indexOf(';;') >= pos0;
|
||||
else
|
||||
endsection = l.indexOf(';') >= pos0;
|
||||
if (endsection) {
|
||||
|
||||
Reference in New Issue
Block a user