This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Render Glyph | |
; Args: | |
; cx, cy (coordinates) | |
; CharCode (character) | |
; GlyphData (address of glyph data) | |
; Flags: bit 7: 1 = reverse video, 0 = normal | |
; bit 6: 1 = double size, 0 = normal | |
; bit 5: 1 = transparent background mode, 0 = normal | |
; bit 4: 1 = render in background colour with transparent background | |
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* keyboard_main - Handle the keyboard presses | |
*/ | |
void keyboard_main(void) | |
{ | |
while (intuition_msg = (struct IntuiMessage *) GetMsg(myWindow->UserPort)) | |
{ | |
if (intuition_msg->Class == VANILLAKEY) | |
{ | |
io_send_byte(intuition_msg->Code); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* screen_char_draw(Coord, ch, count) - Output buffer from ch* of length count as PLATO characters | |
*/ | |
void screen_char_draw(padPt* Coord, unsigned char* ch, unsigned char count) | |
{ | |
short offset; /* due to negative offsets */ | |
unsigned short x; /* Current X and Y coordinates */ | |
unsigned short y; | |
unsigned short* px; /* Pointers to X and Y coordinates used for actual plotting */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(slowdown). | |
-export([run/0]). | |
-define(PORT_FROM, 5005). | |
-define(PORT_TO, 8005). | |
-define(BACKLOG, 10000). | |
run() -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x1b, | |
0x02, | |
0X1B, | |
0X0C, | |
0X1B, | |
0X12, | |
0X1B, | |
0XD1, | |
0XC0, | |
0X50, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <conio.h> | |
#include <stdio.h> | |
#include <spectrum.h> | |
#include <rs232.h> | |
void main(void) | |
{ | |
unsigned char inb,ch; | |
rs232_params(RS_BAUD_9600|RS_STOP_1|RS_BITS_8,RS_PAR_NONE); // Bauds tested 1200[/] 2400[/] 4800[/] 9600[/] 19200[X] 38400[X] 57600[] 115200[] | |
rs232_init(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Write 4 bytes to clipboard device. Used for headers | |
*/ | |
void clipboard_write_long(long* data) | |
{ | |
clip_ior->io_Data=(STRPTR)data; | |
clip_ior->io_Length=4; | |
clip_ior->io_Command=CMD_WRITE; | |
DoIO((struct IORequest *)clip_ior); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Write 4 bytes to clipboard device. Used for headers | |
*/ | |
void clipboard_write_long(long* data) | |
{ | |
clip_ior->io_Data=(STRPTR)data; | |
clip_ior->io_Length=4; | |
clip_ior->io_Command=CMD_WRITE; | |
DoIO((struct IORequest *)clip_ior); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
// Pulled in typedef from protocol.h | |
typedef short padWord; | |
typedef padWord charData[8]; | |
const unsigned short word_data[] = | |
{ | |
/* 0177777,0160017,0170017,0174177,0176077,0160037,0160017,0177777 */ // N | |
/* 0177777,0160017,0160017,0163717,0163717,0163717,0163717,0177777 // C */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* PLATOTerm64 - A PLATO Terminal for the Commodore 64 | |
* Based on Steve Peltz's PAD | |
* | |
* Author: Thomas Cherryhomes <thom.cherryhomes at gmail dot com> | |
* | |
* terminal_char_load.c - Character set loading routine for 5x6 font. | |
*/ | |
#include <string.h> |