-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathTRS80Coco.java
More file actions
57 lines (46 loc) · 1.73 KB
/
TRS80Coco.java
File metadata and controls
57 lines (46 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/**
* Java Grinder
* Author: Michael Kohn
* Email: mike@mikekohn.net
* Web: https://www.mikekohn.net/
* License: GPL
*
* Copyright 2014-2016 by Michael Kohn
*
*/
package net.mikekohn.java_grinder;
abstract public class TRS80Coco
{
public static final int MODE_3 = 3;
public static final int COLOR_BLACK = 0x80;
public static final int COLOR_GREEN = 0x8f;
public static final int COLOR_YELLOW = 0x9f;
public static final int COLOR_BLUE = 0xaf;
public static final int COLOR_RED = 0xbf;
public static final int COLOR_WHITE = 0xcf;
public static final int COLOR_CYAN = 0xdf;
public static final int COLOR_PURPLE = 0xef;
public static final int COLOR_ORANGE = 0xff;
protected TRS80Coco() { }
public static void clearScreenLores() { }
public static void clearScreenMidres() { }
//public static void setBackgroundColor(int color) { }
public static void setText(int address, int value) { }
public static void setGraphicsMode() { }
public static void setTextMode() { }
public static void print(String text) { }
/** Plot a colored block. x can be between 0 and 31, y between 0 and 15 */
public static void plotLores(int x, int y, int color) { }
/** Plot a mid-res block (text mode). x can be between 0 and 63 and y
can be between 0 and 31 */
public static void plotMidres(int x, int y, int color) { }
public static void initVideoFlags() { }
//public static void disableVsyncListener() { }
public static void waitForHsync() { }
public static void waitForVsync() { }
/** Must be called before sound is used. */
public static void initSound() { }
/** Play the passed-in waveform through the 6 bit DAC or if NULL
turn off sound */
public static void setSound(byte[] waveform) { }
}