├── .gitignore ├── ESP8266-NTSC-C64 ├── ESP8266-NTSC-C64.ino ├── builtinprg_1.h ├── builtinprg_10.h ├── builtinprg_11.h ├── builtinprg_12.h ├── builtinprg_13.h ├── builtinprg_14.h ├── builtinprg_15.h ├── builtinprg_2.h ├── builtinprg_3.h ├── builtinprg_4.h ├── builtinprg_5.h ├── builtinprg_6.h ├── builtinprg_7.h ├── builtinprg_8.h ├── builtinprg_9.h ├── cpu.c ├── cpu.h ├── dmastuff.h ├── generate_video.c ├── pin_mux_register.h ├── slc_register.h └── wifi_credentials.h ├── LICENSE ├── README.md ├── doc ├── c64files_4S64LG0R0i.jpg ├── esp8266_cbvs.jpg ├── img_20180303_021351_joZ1dKHxJP.jpg ├── index.html └── untitled_zuMI9RHZkK_small.png └── prg ├── 10print.bas ├── Makefile ├── MiniTetris ├── mini-tetris.bas └── mini-tetris.txt ├── basic-10liners-2016 01SNAKE3 └── 01SNAKE3.prg ├── basic-10liners-2017 06 - GorillaX by Naufr4g0 ├── GorillaX manual.jpg ├── GorillaX_12.prg ├── code.txt ├── listing_screen.jpg ├── readme.txt └── screenshot.jpg ├── basic-10liners-2017 52 - Beerhunter by Sander Alsema ├── Commentary for Beerhunter.txt ├── beerhunter.png ├── beerhunter.prg └── beerhunter_long.prg ├── basic-10liners-2018 01 - Bomber ├── Bomber2.png ├── Bombers1.png ├── Compo2017.prg ├── compo2017 long.bas ├── compo2017.bas └── compo2017.txt ├── basic-10liners-2018 06 - Last Outpost ├── last-outpost-readme.txt ├── last-outpost.bas ├── last-outpost.png └── last-outpost.prg ├── basic-10liners-2018 11 - Duck!!! ├── Commentary for Duck!!!.txt ├── duck.prg └── duck1.png ├── basic-10liners-2018 28 - Egg Collector ├── Commentary for Egg collector.txt ├── egg1.png └── egg_collector.prg ├── basic-10liners-2018 53 - EasterShip 2018 ├── 01.png ├── 02.png ├── 03.png ├── 04.png ├── 05.png ├── 06.png ├── 07.png ├── 08.png ├── 09.png ├── 11.png ├── EasterShip 2018.docx ├── EasterShip 2018.gif ├── EasterShip 2018.prg └── EasterShip 2018_2.docx ├── hello-world.bas └── prg2h.sh /.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Compiled Object files 5 | *.slo 6 | *.lo 7 | *.o 8 | *.obj 9 | 10 | # Precompiled Headers 11 | *.gch 12 | *.pch 13 | 14 | # Compiled Dynamic libraries 15 | *.so 16 | *.dylib 17 | *.dll 18 | 19 | # Fortran module files 20 | *.mod 21 | *.smod 22 | 23 | # Compiled Static libraries 24 | *.lai 25 | *.la 26 | *.a 27 | *.lib 28 | 29 | # Executables 30 | *.exe 31 | *.out 32 | *.app 33 | -------------------------------------------------------------------------------- /ESP8266-NTSC-C64/ESP8266-NTSC-C64.ino: -------------------------------------------------------------------------------- 1 | #include 2 | const int PS2DataPin = D3; 3 | const int PS2IRQpin = D2; 4 | const int AudioPin = D1; 5 | #include "wifi_credentials.h" 6 | 7 | #define FREQUENCY 160 8 | #include "ESP8266WiFi.h" 9 | #include 10 | #include 11 | #include 12 | 13 | #define BUILTIN_PRGS 14 | #ifdef BUILTIN_PRGS 15 | #include "builtinprg_1.h" 16 | #include "builtinprg_2.h" 17 | #include "builtinprg_3.h" 18 | #include "builtinprg_4.h" 19 | #include "builtinprg_5.h" 20 | #include "builtinprg_6.h" 21 | #include "builtinprg_7.h" 22 | #include "builtinprg_8.h" 23 | #include "builtinprg_9.h" 24 | #include "builtinprg_10.h" 25 | #include "builtinprg_11.h" 26 | #include "builtinprg_12.h" 27 | #endif /* BUILTIN_PRGS */ 28 | 29 | extern "C" { 30 | #include "user_interface.h" 31 | #include "cpu.h" 32 | } 33 | 34 | void beep(int frequency, int duration = 100) { 35 | analogWriteFreq(frequency); 36 | analogWrite(AudioPin, PWMRANGE / 2); 37 | delay(duration); 38 | analogWrite(AudioPin, 0); 39 | } 40 | 41 | 42 | 43 | void load_prg(const uint8_t *data, uint16_t len) { 44 | uint16_t ptr = 0; 45 | uint16_t addr = (uint16_t)pgm_read_byte(data + ptr++) + 0x100 * pgm_read_byte(data + ptr++); 46 | while (ptr < len) { 47 | write6502(addr + ptr - 2, pgm_read_byte(data + ptr)); 48 | ++ptr; 49 | } 50 | // see mem_set_basic_text() at https://github.com/stuartcarnie/vice-emu/blob/238d23b8b7e4fe3b6077273d0c99b1d8c3fc0b8c/vice/src/autostart-prg.c 51 | uint16_t end = addr + ptr - 2; 52 | uint8_t lo = end & 0xff, hi = end >> 8; 53 | write6502(0x2d, lo); write6502(0x2f, lo); write6502(0x31, lo); write6502(0xae, lo); 54 | write6502(0x2e, hi); write6502(0x30, hi); write6502(0x32, hi); write6502(0xaf, hi); 55 | write6502(addr_keybuf+0,'R'); 56 | write6502(addr_keybuf+1,'U'); 57 | write6502(addr_keybuf+2,'N'); 58 | write6502(addr_keybuf+3,13); 59 | write6502(addr_keybuf_len,4); 60 | } 61 | 62 | 63 | //CBM Textset1 ROM 64 | unsigned char charROM [] = { 0x1C , 0x22 , 0x4A , 0x56 , 0x4C , 0x20 , 0x1E , 0x0 , 0x18 , 0x24 , 0x42 , 0x7E , 0x42 , 0x42 , 0x42 , 0x0 , 0x7C , 0x22 , 0x22 , 0x3C , 0x22 , 0x22 , 0x7C , 0x0 , 0x1C , 0x22 , 0x40 , 0x40 , 0x40 , 0x22 , 0x1C , 0x0 , 0x78 , 0x24 , 0x22 , 0x22 , 0x22 , 0x24 , 0x78 , 0x0 , 0x7E , 0x40 , 0x40 , 0x78 , 0x40 , 0x40 , 0x7E , 0x0 , 0x7E , 0x40 , 0x40 , 0x78 , 0x40 , 0x40 , 0x40 , 0x0 , 0x1C , 0x22 , 0x40 , 0x4E , 0x42 , 0x22 , 0x1C , 0x0 , 0x42 , 0x42 , 0x42 , 0x7E , 0x42 , 0x42 , 0x42 , 0x0 , 0x1C , 0x8 , 0x8 , 0x8 , 0x8 , 0x8 , 0x1C , 0x0 , 0xE , 0x4 , 0x4 , 0x4 , 0x4 , 0x44 , 0x38 , 0x0 , 0x42 , 0x44 , 0x48 , 0x70 , 0x48 , 0x44 , 0x42 , 0x0 , 0x40 , 0x40 , 0x40 , 0x40 , 0x40 , 0x40 , 0x7E , 0x0 , 0x42 , 0x66 , 0x5A , 0x5A , 0x42 , 0x42 , 0x42 , 0x0 , 0x42 , 0x62 , 0x52 , 0x4A , 0x46 , 0x42 , 0x42 , 0x0 , 0x18 , 0x24 , 0x42 , 0x42 , 0x42 , 0x24 , 0x18 , 0x0 , 0x7C , 0x42 , 0x42 , 0x7C , 0x40 , 0x40 , 0x40 , 0x0 , 0x18 , 0x24 , 0x42 , 0x42 , 0x4A , 0x24 , 0x1A , 0x0 , 0x7C , 0x42 , 0x42 , 0x7C , 0x48 , 0x44 , 0x42 , 0x0 , 0x3C , 0x42 , 0x40 , 0x3C , 0x2 , 0x42 , 0x3C , 0x0 , 0x3E , 0x8 , 0x8 , 0x8 , 0x8 , 0x8 , 0x8 , 0x0 , 0x42 , 0x42 , 0x42 , 0x42 , 0x42 , 0x42 , 0x3C , 0x0 , 0x42 , 0x42 , 0x42 , 0x24 , 0x24 , 0x18 , 0x18 , 0x0 , 0x42 , 0x42 , 0x42 , 0x5A , 0x5A , 0x66 , 0x42 , 0x0 , 0x42 , 0x42 , 0x24 , 0x18 , 0x24 , 0x42 , 0x42 , 0x0 , 0x22 , 0x22 , 0x22 , 0x1C , 0x8 , 0x8 , 0x8 , 0x0 , 0x7E , 0x2 , 0x4 , 0x18 , 0x20 , 0x40 , 0x7E , 0x0 , 0x42 , 0x18 , 0x24 , 0x42 , 0x7E , 0x42 , 0x42 , 0x0 , 0x42 , 0x18 , 0x24 , 0x42 , 0x42 , 0x24 , 0x18 , 0x0 , 0x18 , 0x24 , 0x3C , 0x42 , 0x7E , 0x42 , 0x42 , 0x0 , 0x0 , 0x8 , 0x1C , 0x2A , 0x8 , 0x8 , 0x8 , 0x8 , 0x0 , 0x0 , 0x10 , 0x20 , 0x7F , 0x20 , 0x10 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x8 , 0x8 , 0x8 , 0x8 , 0x0 , 0x0 , 0x8 , 0x0 , 0x24 , 0x24 , 0x24 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x24 , 0x24 , 0x7E , 0x24 , 0x7E , 0x24 , 0x24 , 0x0 , 0x8 , 0x1E , 0x28 , 0x1C , 0xA , 0x3C , 0x8 , 0x0 , 0x0 , 0x62 , 0x64 , 0x8 , 0x10 , 0x26 , 0x46 , 0x0 , 0x30 , 0x48 , 0x48 , 0x30 , 0x4A , 0x44 , 0x3A , 0x0 , 0x4 , 0x8 , 0x10 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x4 , 0x8 , 0x10 , 0x10 , 0x10 , 0x8 , 0x4 , 0x0 , 0x20 , 0x10 , 0x8 , 0x8 , 0x8 , 0x10 , 0x20 , 0x0 , 0x8 , 0x2A , 0x1C , 0x3E , 0x1C , 0x2A , 0x8 , 0x0 , 0x0 , 0x8 , 0x8 , 0x3E , 0x8 , 0x8 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x8 , 0x8 , 0x10 , 0x0 , 0x0 , 0x0 , 0x7E , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x18 , 0x18 , 0x0 , 0x0 , 0x2 , 0x4 , 0x8 , 0x10 , 0x20 , 0x40 , 0x0 , 0x3C , 0x42 , 0x46 , 0x5A , 0x62 , 0x42 , 0x3C , 0x0 , 0x8 , 0x18 , 0x28 , 0x8 , 0x8 , 0x8 , 0x3E , 0x0 , 0x3C , 0x42 , 0x2 , 0xC , 0x30 , 0x40 , 0x7E , 0x0 , 0x3C , 0x42 , 0x2 , 0x1C , 0x2 , 0x42 , 0x3C , 0x0 , 0x4 , 0xC , 0x14 , 0x24 , 0x7E , 0x4 , 0x4 , 0x0 , 0x7E , 0x40 , 0x78 , 0x4 , 0x2 , 0x44 , 0x38 , 0x0 , 0x1C , 0x20 , 0x40 , 0x7C , 0x42 , 0x42 , 0x3C , 0x0 , 0x7E , 0x42 , 0x4 , 0x8 , 0x10 , 0x10 , 0x10 , 0x0 , 0x3C , 0x42 , 0x42 , 0x3C , 0x42 , 0x42 , 0x3C , 0x0 , 0x3C , 0x42 , 0x42 , 0x3E , 0x2 , 0x4 , 0x38 , 0x0 , 0x0 , 0x0 , 0x8 , 0x0 , 0x0 , 0x8 , 0x0 , 0x0 , 0x0 , 0x0 , 0x8 , 0x0 , 0x0 , 0x8 , 0x8 , 0x10 , 0xE , 0x18 , 0x30 , 0x60 , 0x30 , 0x18 , 0xE , 0x0 , 0x0 , 0x0 , 0x7E , 0x0 , 0x7E , 0x0 , 0x0 , 0x0 , 0x70 , 0x18 , 0xC , 0x6 , 0xC , 0x18 , 0x70 , 0x0 , 0x3C , 0x42 , 0x2 , 0xC , 0x10 , 0x0 , 0x10 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0xFF , 0x0 , 0x0 , 0x0 , 0x8 , 0x1C , 0x3E , 0x7F , 0x7F , 0x1C , 0x3E , 0x0 , 0x10 , 0x10 , 0x10 , 0x10 , 0x10 , 0x10 , 0x10 , 0x10 , 0x0 , 0x0 , 0x0 , 0xFF , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0xFF , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0xFF , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0xFF , 0x0 , 0x0 , 0x20 , 0x20 , 0x20 , 0x20 , 0x20 , 0x20 , 0x20 , 0x20 , 0x4 , 0x4 , 0x4 , 0x4 , 0x4 , 0x4 , 0x4 , 0x4 , 0x0 , 0x0 , 0x0 , 0x0 , 0xE0 , 0x10 , 0x8 , 0x8 , 0x8 , 0x8 , 0x8 , 0x4 , 0x3 , 0x0 , 0x0 , 0x0 , 0x8 , 0x8 , 0x8 , 0x10 , 0xE0 , 0x0 , 0x0 , 0x0 , 0x80 , 0x80 , 0x80 , 0x80 , 0x80 , 0x80 , 0x80 , 0xFF , 0x80 , 0x40 , 0x20 , 0x10 , 0x8 , 0x4 , 0x2 , 0x1 , 0x1 , 0x2 , 0x4 , 0x8 , 0x10 , 0x20 , 0x40 , 0x80 , 0xFF , 0x80 , 0x80 , 0x80 , 0x80 , 0x80 , 0x80 , 0x80 , 0xFF , 0x1 , 0x1 , 0x1 , 0x1 , 0x1 , 0x1 , 0x1 , 0x0 , 0x3C , 0x7E , 0x7E , 0x7E , 0x7E , 0x3C , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0xFF , 0x0 , 0x36 , 0x7F , 0x7F , 0x7F , 0x3E , 0x1C , 0x8 , 0x0 , 0x40 , 0x40 , 0x40 , 0x40 , 0x40 , 0x40 , 0x40 , 0x40 , 0x0 , 0x0 , 0x0 , 0x0 , 0x3 , 0x4 , 0x8 , 0x8 , 0x81 , 0x42 , 0x24 , 0x18 , 0x18 , 0x24 , 0x42 , 0x81 , 0x0 , 0x3C , 0x42 , 0x42 , 0x42 , 0x42 , 0x3C , 0x0 , 0x8 , 0x1C , 0x2A , 0x77 , 0x2A , 0x8 , 0x8 , 0x0 , 0x2 , 0x2 , 0x2 , 0x2 , 0x2 , 0x2 , 0x2 , 0x2 , 0x8 , 0x1C , 0x3E , 0x7F , 0x3E , 0x1C , 0x8 , 0x0 , 0x8 , 0x8 , 0x8 , 0x8 , 0xFF , 0x8 , 0x8 , 0x8 , 0xA0 , 0x50 , 0xA0 , 0x50 , 0xA0 , 0x50 , 0xA0 , 0x50 , 0x8 , 0x8 , 0x8 , 0x8 , 0x8 , 0x8 , 0x8 , 0x8 , 0x0 , 0x0 , 0x1 , 0x3E , 0x54 , 0x14 , 0x14 , 0x0 , 0xFF , 0x7F , 0x3F , 0x1F , 0xF , 0x7 , 0x3 , 0x1 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0xF0 , 0xF0 , 0xF0 , 0xF0 , 0xF0 , 0xF0 , 0xF0 , 0xF0 , 0x0 , 0x0 , 0x0 , 0x0 , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0xFF , 0x80 , 0x80 , 0x80 , 0x80 , 0x80 , 0x80 , 0x80 , 0x80 , 0xAA , 0x55 , 0xAA , 0x55 , 0xAA , 0x55 , 0xAA , 0x55 , 0x1 , 0x1 , 0x1 , 0x1 , 0x1 , 0x1 , 0x1 , 0x1 , 0x0 , 0x0 , 0x0 , 0x0 , 0xAA , 0x55 , 0xAA , 0x55 , 0xFF , 0xFE , 0xFC , 0xF8 , 0xF0 , 0xE0 , 0xC0 , 0x80 , 0x3 , 0x3 , 0x3 , 0x3 , 0x3 , 0x3 , 0x3 , 0x3 , 0x8 , 0x8 , 0x8 , 0x8 , 0xF , 0x8 , 0x8 , 0x8 , 0x0 , 0x0 , 0x0 , 0x0 , 0xF , 0xF , 0xF , 0xF , 0x8 , 0x8 , 0x8 , 0x8 , 0xF , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0xF8 , 0x8 , 0x8 , 0x8 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0xFF , 0xFF , 0x0 , 0x0 , 0x0 , 0x0 , 0xF , 0x8 , 0x8 , 0x8 , 0x8 , 0x8 , 0x8 , 0x8 , 0xFF , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0xFF , 0x8 , 0x8 , 0x8 , 0x8 , 0x8 , 0x8 , 0x8 , 0xF8 , 0x8 , 0x8 , 0x8 , 0xC0 , 0xC0 , 0xC0 , 0xC0 , 0xC0 , 0xC0 , 0xC0 , 0xC0 , 0xE0 , 0xE0 , 0xE0 , 0xE0 , 0xE0 , 0xE0 , 0xE0 , 0xE0 , 0x7 , 0x7 , 0x7 , 0x7 , 0x7 , 0x7 , 0x7 , 0x7 , 0xFF , 0xFF , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0xFF , 0xFF , 0xFF , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0xFF , 0xFF , 0xFF , 0x1 , 0x1 , 0x1 , 0x1 , 0x1 , 0x1 , 0x1 , 0xFF , 0x0 , 0x0 , 0x0 , 0x0 , 0xF0 , 0xF0 , 0xF0 , 0xF0 , 0xF , 0xF , 0xF , 0xF , 0x0 , 0x0 , 0x0 , 0x0 , 0x8 , 0x8 , 0x8 , 0x8 , 0xF8 , 0x0 , 0x0 , 0x0 , 0xF0 , 0xF0 , 0xF0 , 0xF0 , 0x0 , 0x0 , 0x0 , 0x0 , 0xF0 , 0xF0 , 0xF0 , 0xF0 , 0xF , 0xF , 0xF , 0xF , 0xE3 , 0xDD , 0xB5 , 0xA9 , 0xB3 , 0xDF , 0xE1 , 0xFF , 0xE7 , 0xDB , 0xBD , 0x81 , 0xBD , 0xBD , 0xBD , 0xFF , 0x83 , 0xDD , 0xDD , 0xC3 , 0xDD , 0xDD , 0x83 , 0xFF , 0xE3 , 0xDD , 0xBF , 0xBF , 0xBF , 0xDD , 0xE3 , 0xFF , 0x87 , 0xDB , 0xDD , 0xDD , 0xDD , 0xDB , 0x87 , 0xFF , 0x81 , 0xBF , 0xBF , 0x87 , 0xBF , 0xBF , 0x81 , 0xFF , 0x81 , 0xBF , 0xBF , 0x87 , 0xBF , 0xBF , 0xBF , 0xFF , 0xE3 , 0xDD , 0xBF , 0xB1 , 0xBD , 0xDD , 0xE3 , 0xFF , 0xBD , 0xBD , 0xBD , 0x81 , 0xBD , 0xBD , 0xBD , 0xFF , 0xE3 , 0xF7 , 0xF7 , 0xF7 , 0xF7 , 0xF7 , 0xE3 , 0xFF , 0xF1 , 0xFB , 0xFB , 0xFB , 0xFB , 0xBB , 0xC7 , 0xFF , 0xBD , 0xBB , 0xB7 , 0x8F , 0xB7 , 0xBB , 0xBD , 0xFF , 0xBF , 0xBF , 0xBF , 0xBF , 0xBF , 0xBF , 0x81 , 0xFF , 0xBD , 0x99 , 0xA5 , 0xA5 , 0xBD , 0xBD , 0xBD , 0xFF , 0xBD , 0x9D , 0xAD , 0xB5 , 0xB9 , 0xBD , 0xBD , 0xFF , 0xE7 , 0xDB , 0xBD , 0xBD , 0xBD , 0xDB , 0xE7 , 0xFF , 0x83 , 0xBD , 0xBD , 0x83 , 0xBF , 0xBF , 0xBF , 0xFF , 0xE7 , 0xDB , 0xBD , 0xBD , 0xB5 , 0xDB , 0xE5 , 0xFF , 0x83 , 0xBD , 0xBD , 0x83 , 0xB7 , 0xBB , 0xBD , 0xFF , 0xC3 , 0xBD , 0xBF , 0xC3 , 0xFD , 0xBD , 0xC3 , 0xFF , 0xC1 , 0xF7 , 0xF7 , 0xF7 , 0xF7 , 0xF7 , 0xF7 , 0xFF , 0xBD , 0xBD , 0xBD , 0xBD , 0xBD , 0xBD , 0xC3 , 0xFF , 0xBD , 0xBD , 0xBD , 0xDB , 0xDB , 0xE7 , 0xE7 , 0xFF , 0xBD , 0xBD , 0xBD , 0xA5 , 0xA5 , 0x99 , 0xBD , 0xFF , 0xBD , 0xBD , 0xDB , 0xE7 , 0xDB , 0xBD , 0xBD , 0xFF , 0xDD , 0xDD , 0xDD , 0xE3 , 0xF7 , 0xF7 , 0xF7 , 0xFF , 0x81 , 0xFD , 0xFB , 0xE7 , 0xDF , 0xBF , 0x81 , 0xFF , 0xBD , 0xE7 , 0xDB , 0xBD , 0x81 , 0xBD , 0xBD , 0xFF , 0xBD , 0xE7 , 0xDB , 0xBD , 0xBD , 0xDB , 0xE7 , 0xFF , 0xE7 , 0xDB , 0xC3 , 0xBD , 0x81 , 0xBD , 0xBD , 0xFF , 0xFF , 0xF7 , 0xE3 , 0xD5 , 0xF7 , 0xF7 , 0xF7 , 0xF7 , 0xFF , 0xFF , 0xEF , 0xDF , 0x80 , 0xDF , 0xEF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xF7 , 0xF7 , 0xF7 , 0xF7 , 0xFF , 0xFF , 0xF7 , 0xFF , 0xDB , 0xDB , 0xDB , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xDB , 0xDB , 0x81 , 0xDB , 0x81 , 0xDB , 0xDB , 0xFF , 0xF7 , 0xE1 , 0xD7 , 0xE3 , 0xF5 , 0xC3 , 0xF7 , 0xFF , 0xFF , 0x9D , 0x9B , 0xF7 , 0xEF , 0xD9 , 0xB9 , 0xFF , 0xCF , 0xB7 , 0xB7 , 0xCF , 0xB5 , 0xBB , 0xC5 , 0xFF , 0xFB , 0xF7 , 0xEF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFB , 0xF7 , 0xEF , 0xEF , 0xEF , 0xF7 , 0xFB , 0xFF , 0xDF , 0xEF , 0xF7 , 0xF7 , 0xF7 , 0xEF , 0xDF , 0xFF , 0xF7 , 0xD5 , 0xE3 , 0xC1 , 0xE3 , 0xD5 , 0xF7 , 0xFF , 0xFF , 0xF7 , 0xF7 , 0xC1 , 0xF7 , 0xF7 , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xF7 , 0xF7 , 0xEF , 0xFF , 0xFF , 0xFF , 0x81 , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xE7 , 0xE7 , 0xFF , 0xFF , 0xFD , 0xFB , 0xF7 , 0xEF , 0xDF , 0xBF , 0xFF , 0xC3 , 0xBD , 0xB9 , 0xA5 , 0x9D , 0xBD , 0xC3 , 0xFF , 0xF7 , 0xE7 , 0xD7 , 0xF7 , 0xF7 , 0xF7 , 0xC1 , 0xFF , 0xC3 , 0xBD , 0xFD , 0xF3 , 0xCF , 0xBF , 0x81 , 0xFF , 0xC3 , 0xBD , 0xFD , 0xE3 , 0xFD , 0xBD , 0xC3 , 0xFF , 0xFB , 0xF3 , 0xEB , 0xDB , 0x81 , 0xFB , 0xFB , 0xFF , 0x81 , 0xBF , 0x87 , 0xFB , 0xFD , 0xBB , 0xC7 , 0xFF , 0xE3 , 0xDF , 0xBF , 0x83 , 0xBD , 0xBD , 0xC3 , 0xFF , 0x81 , 0xBD , 0xFB , 0xF7 , 0xEF , 0xEF , 0xEF , 0xFF , 0xC3 , 0xBD , 0xBD , 0xC3 , 0xBD , 0xBD , 0xC3 , 0xFF , 0xC3 , 0xBD , 0xBD , 0xC1 , 0xFD , 0xFB , 0xC7 , 0xFF , 0xFF , 0xFF , 0xF7 , 0xFF , 0xFF , 0xF7 , 0xFF , 0xFF , 0xFF , 0xFF , 0xF7 , 0xFF , 0xFF , 0xF7 , 0xF7 , 0xEF , 0xF1 , 0xE7 , 0xCF , 0x9F , 0xCF , 0xE7 , 0xF1 , 0xFF , 0xFF , 0xFF , 0x81 , 0xFF , 0x81 , 0xFF , 0xFF , 0xFF , 0x8F , 0xE7 , 0xF3 , 0xF9 , 0xF3 , 0xE7 , 0x8F , 0xFF , 0xC3 , 0xBD , 0xFD , 0xF3 , 0xEF , 0xFF , 0xEF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0x0 , 0xFF , 0xFF , 0xFF , 0xF7 , 0xE3 , 0xC1 , 0x80 , 0x80 , 0xE3 , 0xC1 , 0xFF , 0xEF , 0xEF , 0xEF , 0xEF , 0xEF , 0xEF , 0xEF , 0xEF , 0xFF , 0xFF , 0xFF , 0x0 , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0x0 , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0x0 , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0x0 , 0xFF , 0xFF , 0xDF , 0xDF , 0xDF , 0xDF , 0xDF , 0xDF , 0xDF , 0xDF , 0xFB , 0xFB , 0xFB , 0xFB , 0xFB , 0xFB , 0xFB , 0xFB , 0xFF , 0xFF , 0xFF , 0xFF , 0x1F , 0xEF , 0xF7 , 0xF7 , 0xF7 , 0xF7 , 0xF7 , 0xFB , 0xFC , 0xFF , 0xFF , 0xFF , 0xF7 , 0xF7 , 0xF7 , 0xEF , 0x1F , 0xFF , 0xFF , 0xFF , 0x7F , 0x7F , 0x7F , 0x7F , 0x7F , 0x7F , 0x7F , 0x0 , 0x7F , 0xBF , 0xDF , 0xEF , 0xF7 , 0xFB , 0xFD , 0xFE , 0xFE , 0xFD , 0xFB , 0xF7 , 0xEF , 0xDF , 0xBF , 0x7F , 0x0 , 0x7F , 0x7F , 0x7F , 0x7F , 0x7F , 0x7F , 0x7F , 0x0 , 0xFE , 0xFE , 0xFE , 0xFE , 0xFE , 0xFE , 0xFE , 0xFF , 0xC3 , 0x81 , 0x81 , 0x81 , 0x81 , 0xC3 , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0x0 , 0xFF , 0xC9 , 0x80 , 0x80 , 0x80 , 0xC1 , 0xE3 , 0xF7 , 0xFF , 0xBF , 0xBF , 0xBF , 0xBF , 0xBF , 0xBF , 0xBF , 0xBF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFC , 0xFB , 0xF7 , 0xF7 , 0x7E , 0xBD , 0xDB , 0xE7 , 0xE7 , 0xDB , 0xBD , 0x7E , 0xFF , 0xC3 , 0xBD , 0xBD , 0xBD , 0xBD , 0xC3 , 0xFF , 0xF7 , 0xE3 , 0xD5 , 0x88 , 0xD5 , 0xF7 , 0xF7 , 0xFF , 0xFD , 0xFD , 0xFD , 0xFD , 0xFD , 0xFD , 0xFD , 0xFD , 0xF7 , 0xE3 , 0xC1 , 0x80 , 0xC1 , 0xE3 , 0xF7 , 0xFF , 0xF7 , 0xF7 , 0xF7 , 0xF7 , 0x0 , 0xF7 , 0xF7 , 0xF7 , 0x5F , 0xAF , 0x5F , 0xAF , 0x5F , 0xAF , 0x5F , 0xAF , 0xF7 , 0xF7 , 0xF7 , 0xF7 , 0xF7 , 0xF7 , 0xF7 , 0xF7 , 0xFF , 0xFF , 0xFE , 0xC1 , 0xAB , 0xEB , 0xEB , 0xFF , 0x0 , 0x80 , 0xC0 , 0xE0 , 0xF0 , 0xF8 , 0xFC , 0xFE , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xF , 0xF , 0xF , 0xF , 0xF , 0xF , 0xF , 0xF , 0xFF , 0xFF , 0xFF , 0xFF , 0x0 , 0x0 , 0x0 , 0x0 , 0x0 , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0x0 , 0x7F , 0x7F , 0x7F , 0x7F , 0x7F , 0x7F , 0x7F , 0x7F , 0x55 , 0xAA , 0x55 , 0xAA , 0x55 , 0xAA , 0x55 , 0xAA , 0xFE , 0xFE , 0xFE , 0xFE , 0xFE , 0xFE , 0xFE , 0xFE , 0xFF , 0xFF , 0xFF , 0xFF , 0x55 , 0xAA , 0x55 , 0xAA , 0x0 , 0x1 , 0x3 , 0x7 , 0xF , 0x1F , 0x3F , 0x7F , 0xFC , 0xFC , 0xFC , 0xFC , 0xFC , 0xFC , 0xFC , 0xFC , 0xF7 , 0xF7 , 0xF7 , 0xF7 , 0xF0 , 0xF7 , 0xF7 , 0xF7 , 0xFF , 0xFF , 0xFF , 0xFF , 0xF0 , 0xF0 , 0xF0 , 0xF0 , 0xF7 , 0xF7 , 0xF7 , 0xF7 , 0xF0 , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0x7 , 0xF7 , 0xF7 , 0xF7 , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0x0 , 0x0 , 0xFF , 0xFF , 0xFF , 0xFF , 0xF0 , 0xF7 , 0xF7 , 0xF7 , 0xF7 , 0xF7 , 0xF7 , 0xF7 , 0x0 , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0x0 , 0xF7 , 0xF7 , 0xF7 , 0xF7 , 0xF7 , 0xF7 , 0xF7 , 0x7 , 0xF7 , 0xF7 , 0xF7 , 0x3F , 0x3F , 0x3F , 0x3F , 0x3F , 0x3F , 0x3F , 0x3F , 0x1F , 0x1F , 0x1F , 0x1F , 0x1F , 0x1F , 0x1F , 0x1F , 0xF8 , 0xF8 , 0xF8 , 0xF8 , 0xF8 , 0xF8 , 0xF8 , 0xF8 , 0x0 , 0x0 , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0x0 , 0x0 , 0x0 , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0x0 , 0x0 , 0x0 , 0xFE , 0xFE , 0xFE , 0xFE , 0xFE , 0xFE , 0xFE , 0x0 , 0xFF , 0xFF , 0xFF , 0xFF , 0xF , 0xF , 0xF , 0xF , 0xF0 , 0xF0 , 0xF0 , 0xF0 , 0xFF , 0xFF , 0xFF , 0xFF , 0xF7 , 0xF7 , 0xF7 , 0xF7 , 0x7 , 0xFF , 0xFF , 0xFF , 0xF , 0xF , 0xF , 0xF , 0xFF , 0xFF , 0xFF , 0xFF , 0xF , 0xF , 0xF , 0xF , 0xF0 , 0xF0 , 0xF0 , 0xF0 }; 65 | 66 | uint8_t screenmem[1000]; 67 | uint8_t colormem[1000]; 68 | uint8_t *RAM = NULL; 69 | #define RAM_size 16384 70 | uint8_t BOARDER; 71 | uint8_t BGCOLOR; 72 | uint8_t VIC_D020; 73 | uint8_t VIC_D021; 74 | 75 | 76 | extern "C" { 77 | void videoinit(); 78 | void videostop(); 79 | } 80 | 81 | 82 | PS2Keyboard keyboard; 83 | 84 | // see http://sta.c64.org/cbm64petkey.html and https://www.c64-wiki.com/wiki/Keyboard 85 | #define C64_STOP 3 86 | #define C64_RETURN 13 87 | #define C64_DOWN 17 88 | #define C64_HOME 19 89 | #define C64_DELETE 20 90 | #define C64_RIGHT 29 91 | #define C64_RUN 131 92 | #define C64_F1 133 93 | #define C64_F3 134 94 | #define C64_F5 135 95 | #define C64_F7 136 96 | #define C64_F2 137 97 | #define C64_F4 138 98 | #define C64_F6 139 99 | #define C64_F8 140 100 | #define C64_SHIFT_RETURN 141 101 | #define C64_UP 145 102 | #define C64_CLEAR 147 103 | #define C64_INSERT 148 104 | #define C64_LEFT 157 105 | 106 | #define HOTKEY_P1 224 107 | #define HOTKEY_P2 225 108 | #define HOTKEY_P3 226 109 | #define HOTKEY_P4 227 110 | #define HOTKEY_P5 228 111 | #define HOTKEY_P6 229 112 | #define HOTKEY_P7 230 113 | #define HOTKEY_P8 231 114 | #define HOTKEY_P9 232 115 | #define HOTKEY_P10 233 116 | #define HOTKEY_P11 234 117 | #define HOTKEY_P12 235 118 | 119 | #define HOTKEY_F9 248 120 | #define HOTKEY_F10 249 121 | #define HOTKEY_F11 250 122 | #define HOTKEY_F12 251 123 | #define HOTKEY_SCROLL 252 124 | #define HOTKEY_ESC 253 125 | #define HOTKEY_SHIFT_ESC 254 126 | #define HOTKEY_NUMLOCK 255 127 | 128 | const PROGMEM PS2Keymap_t PS2Keymap_German_c64 = { 129 | // without shift 130 | {0, HOTKEY_F9, 0, C64_F5, C64_F3, C64_F1, C64_F2, HOTKEY_F12, 131 | 0, HOTKEY_F10, C64_F8, C64_F6, C64_F4, C64_RUN /*PS2_TAB*/, '^', 0, 132 | 0, 0 /*Lalt*/, 0 /*Lshift*/, 0, 0 /*Lctrl*/, 'Q', '1', 0, 133 | 0, 0, 'Y', 'S', 'A', 'W', '2', 0, 134 | 0, 'C', 'X', 'D', 'E', '4', '3', 0, 135 | 0, ' ', 'V', 'F', 'T', 'R', '5', 0, 136 | 0, 'N', 'B', 'H', 'G', 'Z', '6', 0, 137 | 0, 0, 'M', 'J', 'U', '7', '8', 0, 138 | 0, ',', 'K', 'I', 'O', '0', '9', 0, 139 | 0, '.', '-', 'L', PS2_o_DIAERESIS, 'P', PS2_SHARP_S, 0, 140 | 0, 0, PS2_a_DIAERESIS, 0, PS2_u_DIAERESIS, '\'', 0, 0, 141 | 0 /*CapsLock*/, 0 /*Rshift*/, C64_RETURN /*PS2_ENTER*/ /*Enter*/, '+', 0, '#', 0, 0, 142 | 0, '<', 0, 0, 0, 0, C64_DELETE /*PS2_BACKSPACE*/, 0, 143 | 0, '1', 0, '4', '7', 0, 0, 0, 144 | '0', '.', '2', '5', '6', '8', HOTKEY_ESC, HOTKEY_NUMLOCK /*NumLock*/, 145 | HOTKEY_F11, '+', '3', '-', '*', '9', HOTKEY_SCROLL, 0, 146 | 0, 0, 0, C64_F7 }, 147 | // with shift 148 | {0, HOTKEY_P9, 0, HOTKEY_P5, HOTKEY_P3, HOTKEY_P1, HOTKEY_P2, HOTKEY_P12, 149 | 0, HOTKEY_P10, HOTKEY_P8, HOTKEY_P6, HOTKEY_P4, C64_STOP /*PS2_TAB*/, PS2_DEGREE_SIGN, 0, 150 | 0, 0 /*Lalt*/, 0 /*Lshift*/, 0, 0 /*Lctrl*/, 'q', '!', 0, 151 | 0, 0, 'y', 's', 'a', 'w', '"', 0, 152 | 0, 'c', 'x', 'd', 'e', '$', PS2_SECTION_SIGN, 0, 153 | 0, ' ', 'v', 'f', 't', 'r', '%', 0, 154 | 0, 'n', 'b', 'h', 'g', 'z', '&', 0, 155 | 0, 0, 'm', 'j', 'u', '/', '(', 0, 156 | 0, ';', 'k', 'i', 'o', '=', ')', 0, 157 | 0, ':', '_', 'l', PS2_O_DIAERESIS, 'p', '?', 0, 158 | 0, 0, PS2_A_DIAERESIS, 0, PS2_U_DIAERESIS, '`', 0, 0, 159 | 0 /*CapsLock*/, 0 /*Rshift*/, C64_SHIFT_RETURN /*PS2_ENTER*/ /*Enter*/, '*', 0, '\'', 0, 0, 160 | 0, '>', 0, 0, 0, 0, C64_DELETE /*PS2_BACKSPACE*/, 0, 161 | 0, '1', 0, '4', '7', 0, 0, 0, 162 | '0', '.', '2', '5', '6', '8', HOTKEY_SHIFT_ESC, HOTKEY_NUMLOCK /*NumLock*/, 163 | HOTKEY_P11, '+', '3', '-', '*', '9', HOTKEY_SCROLL, 0, 164 | 0, 0, 0, HOTKEY_P7 }, 165 | 0, // don't use altgr any more, because EPS crashes (not yet analyzed why) 166 | // with altgr 167 | {0, HOTKEY_F9, 0, C64_F5, C64_F3, C64_F1, C64_F2, HOTKEY_F12, 168 | 0, HOTKEY_F10, C64_F8, C64_F6, C64_F4, C64_RUN /*PS2_TAB*/, 0, 0, 169 | 0, 0 /*Lalt*/, 0 /*Lshift*/, 0, 0 /*Lctrl*/, '@', 0, 0, 170 | 0, 0, 0, 0, 0, 0, PS2_SUPERSCRIPT_TWO, 0, 171 | 0, 0, 0, 0, PS2_CURRENCY_SIGN, 0, PS2_SUPERSCRIPT_THREE, 0, 172 | 0, 0, 0, 0, 0, 0, 0, 0, 173 | 0, 0, 0, 0, 0, 0, 0, 0, 174 | 0, 0, PS2_MICRO_SIGN, 0, 0, '{', '[', 0, 175 | 0, 0, 0, 0, 0, '}', ']', 0, 176 | 0, 0, 0, 0, 0, 0, '\\', 0, 177 | 0, 0, 0, 0, 0, 0, 0, 0, 178 | 0 /*CapsLock*/, 0 /*Rshift*/, C64_RETURN /*PS2_ENTER*/ /*Enter*/, '~', 0, '#', 0, 0, 179 | 0, '|', 0, 0, 0, 0, C64_DELETE /*PS2_BACKSPACE*/, 0, 180 | 0, '1', 0, '4', '7', 0, 0, 0, 181 | '0', '.', '2', '5', '6', '8', HOTKEY_ESC, HOTKEY_NUMLOCK /*NumLock*/, 182 | HOTKEY_F11, '+', '3', '-', '*', '9', HOTKEY_SCROLL, 0, 183 | 0, 0, 0, C64_F7 } 184 | }; 185 | 186 | 187 | bool ota_mode = false; 188 | bool wifi_connected = false; 189 | bool pause = false; 190 | uint8_t pausebuf=0; 191 | 192 | ESP8266WiFiMulti WiFiMulti; 193 | 194 | void setup() { 195 | system_update_cpu_freq(FREQUENCY); 196 | beep(440,100); 197 | keyboard.begin(PS2DataPin, PS2IRQpin, PS2Keymap_German_c64); 198 | delay(1000); 199 | ota_mode = keyboard.available() && keyboard.readUnicode() == HOTKEY_ESC; 200 | Serial.begin(115200); 201 | Serial.println("\r\n\r\nDebug mode, ESP ID: " + String(ESP.getChipId(), HEX)); 202 | if (ota_mode) { 203 | WiFi.mode(WIFI_STA); 204 | WiFiMulti.addAP(WIFI_SSID, WIFI_PSK); 205 | WiFi.hostname("ESP8266-" + String(ESP.getChipId(), HEX)); 206 | ArduinoOTA.onStart([]() { 207 | ota_mode = true; 208 | if(RAM) free(RAM); 209 | Serial.println("OTA starting..."); 210 | Serial.flush(); 211 | Serial.end(); 212 | }); 213 | ArduinoOTA.begin(); 214 | beep(880,1000); 215 | } else { 216 | WiFi.forceSleepBegin(); 217 | delay(1); 218 | RAM=(uint8_t*)malloc(RAM_size); 219 | videoinit(); 220 | reset6502(); 221 | beep(220,50); 222 | } 223 | } 224 | 225 | void loop() { 226 | if (ota_mode) { 227 | if (!wifi_connected && WiFiMulti.run() == WL_CONNECTED) { 228 | Serial.print("IP address: "); 229 | Serial.println(WiFi.localIP()); 230 | wifi_connected = true; 231 | beep(880,100); 232 | } 233 | ArduinoOTA.handle(); 234 | if (keyboard.available()) { 235 | char c = keyboard.readUnicode(); 236 | Serial.println("Key: " + String(c, DEC)); 237 | if ( c == HOTKEY_SHIFT_ESC ) { 238 | ESP.restart(); 239 | } 240 | } 241 | yield(); 242 | return; 243 | } 244 | 245 | if (!pause) { 246 | exec6502(100); 247 | } 248 | 249 | if (keyboard.available()) { 250 | char c = keyboard.readUnicode(); 251 | 252 | if (c == PS2_UPARROW) { 253 | c = C64_UP; 254 | } else if (c == PS2_DOWNARROW) { 255 | c = C64_DOWN; 256 | } else if (c == PS2_LEFTARROW) { 257 | c = C64_LEFT; 258 | } else if (c == PS2_RIGHTARROW) { 259 | c = C64_RIGHT; 260 | } 261 | 262 | 263 | if (c == HOTKEY_SHIFT_ESC) { 264 | videostop(); 265 | ESP.restart(); 266 | } else if (c == HOTKEY_SCROLL) { 267 | pause = !pause; 268 | if (pause) { 269 | pausebuf = screenmem[0]; 270 | screenmem[0] = 144; // [P] 271 | } else { 272 | screenmem[0] = pausebuf; 273 | } 274 | } else if (c == C64_STOP) { 275 | //nmi6502(); 276 | write6502(addr_STKEY,STKEY_stop); 277 | exec6502(1000); 278 | write6502(addr_STKEY,STKEY_none); 279 | } else if (c == HOTKEY_ESC) { 280 | reset6502(); 281 | #ifdef BUILTIN_PRGS 282 | } else if (c == HOTKEY_P1) { 283 | load_prg(builtinprg_1_prg,builtinprg_1_prg_len); 284 | } else if (c == HOTKEY_P2) { 285 | load_prg(builtinprg_2_prg,builtinprg_2_prg_len); 286 | } else if (c == HOTKEY_P3) { 287 | load_prg(builtinprg_3_prg,builtinprg_3_prg_len); 288 | } else if (c == HOTKEY_P4) { 289 | load_prg(builtinprg_4_prg,builtinprg_4_prg_len); 290 | } else if (c == HOTKEY_P5) { 291 | load_prg(builtinprg_5_prg,builtinprg_5_prg_len); 292 | } else if (c == HOTKEY_P6) { 293 | load_prg(builtinprg_6_prg,builtinprg_6_prg_len); 294 | } else if (c == HOTKEY_P7) { 295 | load_prg(builtinprg_7_prg,builtinprg_7_prg_len); 296 | } else if (c == HOTKEY_P8) { 297 | load_prg(builtinprg_8_prg,builtinprg_8_prg_len); 298 | } else if (c == HOTKEY_P9) { 299 | load_prg(builtinprg_9_prg,builtinprg_9_prg_len); 300 | } else if (c == HOTKEY_P10) { 301 | load_prg(builtinprg_10_prg,builtinprg_10_prg_len); 302 | } else if (c == HOTKEY_P11) { 303 | load_prg(builtinprg_11_prg,builtinprg_11_prg_len); 304 | } else if (c == HOTKEY_P12) { 305 | load_prg(builtinprg_12_prg,builtinprg_12_prg_len); 306 | #endif /* BUILTIN_PRGS */ 307 | 308 | } else if (c == HOTKEY_F9) { 309 | write6502(addr_keybuf+0,'R'); 310 | write6502(addr_keybuf+1,'U'); 311 | write6502(addr_keybuf+2,'N'); 312 | write6502(addr_keybuf+3,13); 313 | write6502(addr_keybuf_len,4); 314 | } else if (c == HOTKEY_F10) { 315 | write6502(addr_keybuf+0,'L'); 316 | write6502(addr_keybuf+1,'I'); 317 | write6502(addr_keybuf+2,'S'); 318 | write6502(addr_keybuf+3,'T'); 319 | write6502(addr_keybuf+4,13); 320 | write6502(addr_keybuf_len,4); 321 | 322 | } else { 323 | write6502(addr_keybuf_len,1); 324 | write6502(addr_keybuf,c); 325 | } 326 | } 327 | } 328 | -------------------------------------------------------------------------------- /ESP8266-NTSC-C64/builtinprg_1.h: -------------------------------------------------------------------------------- 1 | const PROGMEM unsigned char builtinprg_1_prg[] = { 2 | 0x01, 0x08, 0x1c, 0x08, 0x0a, 0x00, 0x99, 0x20, 0xc7, 0x28, 0x32, 0x30, 3 | 0x35, 0x2e, 0x35, 0xaa, 0xbb, 0x28, 0x31, 0x29, 0x29, 0x3b, 0x3a, 0x20, 4 | 0x89, 0x20, 0x31, 0x30, 0x00, 0x00, 0x00 5 | }; 6 | unsigned int builtinprg_1_prg_len = 31; 7 | -------------------------------------------------------------------------------- /ESP8266-NTSC-C64/builtinprg_10.h: -------------------------------------------------------------------------------- 1 | const PROGMEM unsigned char builtinprg_10_prg[] = { 2 | 0x01, 0x08, 0x21, 0x08, 0x0a, 0x00, 0x97, 0x20, 0x35, 0x33, 0x32, 0x38, 3 | 0x30, 0x2c, 0x30, 0x3a, 0x97, 0x20, 0x35, 0x33, 0x32, 0x38, 0x31, 0x2c, 4 | 0x30, 0x3a, 0x97, 0x20, 0x36, 0x34, 0x36, 0x2c, 0x31, 0x00, 0x41, 0x08, 5 | 0x19, 0x00, 0x99, 0x22, 0x9e, 0x93, 0x54, 0x48, 0x45, 0x20, 0x43, 0x49, 6 | 0x52, 0x43, 0x4c, 0x45, 0x20, 0x4f, 0x46, 0x20, 0x4c, 0x49, 0x46, 0x45, 7 | 0x2e, 0x2e, 0x2e, 0x20, 0x22, 0x00, 0x7d, 0x08, 0x1e, 0x00, 0x99, 0x22, 8 | 0x9e, 0x20, 0x22, 0x3a, 0x81, 0x4e, 0xb2, 0x30, 0xa4, 0x37, 0xa9, 0x2e, 9 | 0x30, 0x35, 0x3a, 0x97, 0x31, 0x30, 0x32, 0x34, 0xaa, 0x34, 0x30, 0xac, 10 | 0xb5, 0x28, 0x31, 0x32, 0xab, 0xbe, 0x28, 0x4e, 0x29, 0xac, 0x31, 0x31, 11 | 0x29, 0xaa, 0x32, 0x30, 0xaa, 0xbf, 0x28, 0x4e, 0x29, 0xac, 0x31, 0x31, 12 | 0x2c, 0x39, 0x30, 0x3a, 0x82, 0x00, 0x99, 0x08, 0x23, 0x00, 0x99, 0x22, 13 | 0x93, 0x2e, 0x2e, 0x2e, 0x47, 0x4f, 0x54, 0x20, 0x44, 0x45, 0x53, 0x54, 14 | 0x52, 0x4f, 0x59, 0x45, 0x44, 0x21, 0x21, 0x21, 0x22, 0x00, 0xda, 0x08, 15 | 0x28, 0x00, 0x97, 0x35, 0x33, 0x32, 0x38, 0x31, 0x2c, 0x32, 0x3a, 0x99, 16 | 0x22, 0x9e, 0x20, 0x22, 0x3a, 0x81, 0x4e, 0xb2, 0x30, 0xa4, 0x36, 0x2e, 17 | 0x33, 0xa9, 0x2e, 0x30, 0x35, 0x3a, 0x97, 0x31, 0x35, 0x30, 0x34, 0xab, 18 | 0x34, 0x30, 0xac, 0xb5, 0x28, 0xbe, 0x28, 0x4e, 0x29, 0xac, 0x31, 0x32, 19 | 0x29, 0xaa, 0xbf, 0x28, 0x4e, 0x29, 0xac, 0x31, 0x39, 0x2c, 0x39, 0x30, 20 | 0x3a, 0x82, 0x00, 0xfe, 0x08, 0x2d, 0x00, 0x99, 0x22, 0x98, 0x93, 0x54, 21 | 0x48, 0x45, 0x20, 0x53, 0x50, 0x41, 0x43, 0x45, 0x20, 0x53, 0x48, 0x49, 22 | 0x50, 0x20, 0x49, 0x53, 0x20, 0x52, 0x45, 0x41, 0x44, 0x59, 0x2e, 0x2e, 23 | 0x2e, 0x22, 0x00, 0x42, 0x09, 0x32, 0x00, 0x97, 0x35, 0x33, 0x32, 0x38, 24 | 0x31, 0x2c, 0x30, 0x3a, 0x99, 0x22, 0x20, 0x20, 0x22, 0x3a, 0x81, 0x4e, 25 | 0xb2, 0x30, 0xa4, 0x31, 0x30, 0x30, 0xa9, 0x2e, 0x32, 0x36, 0x3a, 0x97, 26 | 0x31, 0x35, 0x30, 0x34, 0xaa, 0x34, 0x30, 0xac, 0xb5, 0x28, 0xbf, 0x28, 27 | 0x4e, 0x29, 0xac, 0x35, 0x29, 0xaa, 0x32, 0x30, 0xaa, 0xbe, 0x28, 0x4e, 28 | 0x29, 0xac, 0x4e, 0xad, 0x35, 0x2c, 0x39, 0x30, 0x3a, 0x82, 0x00, 0x66, 29 | 0x09, 0x37, 0x00, 0x99, 0x22, 0x9e, 0x93, 0x44, 0x52, 0x49, 0x56, 0x49, 30 | 0x4e, 0x47, 0x20, 0x41, 0x20, 0x53, 0x54, 0x52, 0x41, 0x4e, 0x47, 0x45, 31 | 0x20, 0x52, 0x4f, 0x55, 0x54, 0x45, 0x2e, 0x2e, 0x2e, 0x22, 0x00, 0xa0, 32 | 0x09, 0x3c, 0x00, 0x99, 0x22, 0x9e, 0x20, 0x22, 0x3a, 0x81, 0x4e, 0xb2, 33 | 0x30, 0xa4, 0x33, 0x32, 0xa9, 0x2e, 0x33, 0x35, 0x3a, 0x97, 0x31, 0x35, 34 | 0x30, 0x37, 0xaa, 0x34, 0x30, 0xac, 0xb5, 0x28, 0xbe, 0x28, 0x4e, 0x29, 35 | 0xac, 0x36, 0x20, 0x29, 0xaa, 0x4e, 0xac, 0x31, 0xaa, 0xbf, 0x28, 0x4e, 36 | 0x29, 0xac, 0x36, 0x2c, 0x34, 0x36, 0x3a, 0x82, 0x00, 0xbe, 0x09, 0x4b, 37 | 0x00, 0x99, 0x22, 0x93, 0x4c, 0x45, 0x41, 0x56, 0x49, 0x4e, 0x47, 0x20, 38 | 0x54, 0x48, 0x45, 0x20, 0x47, 0x41, 0x4c, 0x41, 0x58, 0x59, 0x2e, 0x2e, 39 | 0x2e, 0x22, 0x00, 0xf8, 0x09, 0x50, 0x00, 0x99, 0x22, 0x9e, 0x20, 0x22, 40 | 0x3a, 0x81, 0x4e, 0xb2, 0x30, 0xa4, 0x31, 0x30, 0x30, 0xa9, 0x2e, 0x33, 41 | 0x36, 0x3a, 0x97, 0x31, 0x35, 0x36, 0x34, 0xaa, 0x34, 0x30, 0xac, 0xb5, 42 | 0x28, 0xbf, 0x28, 0x4e, 0x29, 0xac, 0x4e, 0xad, 0x38, 0x29, 0xaa, 0xbe, 43 | 0x28, 0x4e, 0x29, 0xac, 0x4e, 0xad, 0x35, 0x2c, 0x34, 0x36, 0x3a, 0x82, 44 | 0x00, 0x17, 0x0a, 0x55, 0x00, 0x99, 0x22, 0x9f, 0x93, 0x50, 0x41, 0x53, 45 | 0x53, 0x49, 0x4e, 0x47, 0x20, 0x41, 0x20, 0x57, 0x4f, 0x52, 0x4d, 0x48, 46 | 0x4f, 0x4c, 0x45, 0x2e, 0x2e, 0x2e, 0x22, 0x00, 0x53, 0x0a, 0x5a, 0x00, 47 | 0x99, 0x22, 0x96, 0x20, 0x22, 0x3a, 0x81, 0x4e, 0xb2, 0x30, 0xa4, 0x35, 48 | 0x30, 0xa9, 0x2e, 0x32, 0x34, 0x3a, 0x97, 0x31, 0x30, 0x38, 0x34, 0xaa, 49 | 0x34, 0x30, 0xac, 0xb5, 0x28, 0x31, 0x32, 0xaa, 0xbf, 0x28, 0x4e, 0x29, 50 | 0xac, 0x4e, 0xad, 0x34, 0x29, 0xaa, 0xbe, 0x28, 0x4e, 0x29, 0xac, 0x4e, 51 | 0xad, 0x32, 0x2c, 0x39, 0x30, 0x3a, 0x82, 0x00, 0x79, 0x0a, 0x9b, 0x00, 52 | 0x99, 0x22, 0x93, 0x41, 0x52, 0x52, 0x49, 0x56, 0x49, 0x4e, 0x47, 0x20, 53 | 0x41, 0x54, 0x20, 0x41, 0x4e, 0x4f, 0x54, 0x48, 0x52, 0x20, 0x50, 0x4c, 54 | 0x41, 0x4e, 0x54, 0x45, 0x54, 0x2e, 0x2e, 0x2e, 0x22, 0x00, 0xb4, 0x0a, 55 | 0xa0, 0x00, 0x99, 0x22, 0x1c, 0x20, 0x22, 0x3a, 0x81, 0x4e, 0xb2, 0x30, 56 | 0xa4, 0x38, 0x30, 0xa9, 0x2e, 0x32, 0x34, 0x3a, 0x97, 0x31, 0x30, 0x34, 57 | 0x34, 0xaa, 0x34, 0x30, 0xac, 0xb5, 0x28, 0x31, 0x32, 0xaa, 0xbf, 0x28, 58 | 0x4e, 0x29, 0xac, 0x31, 0x30, 0x29, 0xaa, 0xbe, 0x28, 0x4e, 0x29, 0xac, 59 | 0x4e, 0xad, 0x35, 0x2c, 0x39, 0x30, 0x3a, 0x82, 0x00, 0xcb, 0x0a, 0xa5, 60 | 0x00, 0x99, 0x22, 0x9e, 0x93, 0x41, 0x20, 0x4e, 0x45, 0x57, 0x20, 0x4d, 61 | 0x4f, 0x4f, 0x4e, 0x2e, 0x2e, 0x2e, 0x22, 0x00, 0x06, 0x0b, 0xaa, 0x00, 62 | 0x99, 0x22, 0x9e, 0x20, 0x22, 0x3a, 0x81, 0x4e, 0xb2, 0x30, 0xa4, 0x37, 63 | 0x30, 0xa9, 0x2e, 0x32, 0x34, 0x3a, 0x97, 0x31, 0x30, 0x34, 0x34, 0xaa, 64 | 0x34, 0x30, 0xac, 0xb5, 0x28, 0x31, 0x32, 0xaa, 0xbf, 0x28, 0x4e, 0x29, 65 | 0xac, 0x31, 0x32, 0x29, 0xaa, 0xbe, 0x28, 0x4e, 0x29, 0xac, 0x4e, 0xad, 66 | 0x35, 0x2c, 0x39, 0x30, 0x3a, 0x82, 0x00, 0x24, 0x0b, 0xaf, 0x00, 0x99, 67 | 0x22, 0x9c, 0x93, 0x53, 0x54, 0x52, 0x41, 0x4e, 0x47, 0x45, 0x20, 0x4f, 68 | 0x42, 0x53, 0x54, 0x41, 0x43, 0x4c, 0x45, 0x53, 0x2e, 0x2e, 0x2e, 0x22, 69 | 0x00, 0x61, 0x0b, 0xb4, 0x00, 0x99, 0x22, 0x1f, 0x20, 0x22, 0x3a, 0x81, 70 | 0x4e, 0xb2, 0x30, 0xa4, 0x31, 0x30, 0x20, 0xa9, 0x2e, 0x30, 0x32, 0x3a, 71 | 0x97, 0x31, 0x30, 0x34, 0x33, 0xaa, 0x34, 0x30, 0xac, 0x28, 0x31, 0x32, 72 | 0xaa, 0xbe, 0x28, 0x4e, 0x29, 0xac, 0x31, 0x31, 0x29, 0xab, 0x32, 0x30, 73 | 0xab, 0xbf, 0x28, 0x4e, 0x29, 0xac, 0x32, 0x30, 0x2c, 0x39, 0x30, 0x3a, 74 | 0x82, 0x00, 0x89, 0x0b, 0xcd, 0x00, 0x99, 0x22, 0x9e, 0x93, 0x54, 0x48, 75 | 0x45, 0x59, 0x20, 0x46, 0x49, 0x4e, 0x44, 0x20, 0x54, 0x48, 0x45, 0x49, 76 | 0x52, 0x20, 0x47, 0x4f, 0x41, 0x4c, 0x2e, 0x2e, 0x2e, 0x11, 0x11, 0x11, 77 | 0x11, 0x11, 0x11, 0x11, 0x22, 0x00, 0xc2, 0x0b, 0xdc, 0x00, 0x81, 0x49, 78 | 0xb2, 0x31, 0xa4, 0x31, 0x30, 0x3a, 0x81, 0x4a, 0xb2, 0x31, 0xa4, 0x34, 79 | 0x30, 0x3a, 0x99, 0x22, 0x9e, 0xa6, 0x11, 0x9d, 0xa6, 0x91, 0x22, 0x3b, 80 | 0x3a, 0x82, 0x3a, 0x81, 0x4b, 0xb2, 0x31, 0xa4, 0x34, 0x30, 0x3a, 0x99, 81 | 0x22, 0x9d, 0x20, 0x9d, 0x11, 0x20, 0x9d, 0x91, 0x22, 0x3b, 0x3a, 0x82, 82 | 0x3a, 0x82, 0x00, 0xe5, 0x0b, 0xe1, 0x00, 0x99, 0x22, 0x9c, 0x93, 0x54, 83 | 0x48, 0x45, 0x20, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4e, 0x47, 0x20, 0x45, 84 | 0x41, 0x53, 0x54, 0x45, 0x52, 0x20, 0x45, 0x47, 0x47, 0x2e, 0x2e, 0x2e, 85 | 0x22, 0x00, 0x25, 0x0c, 0xe6, 0x00, 0x97, 0x35, 0x33, 0x32, 0x38, 0x31, 86 | 0x2c, 0x35, 0x3a, 0x99, 0x22, 0x20, 0x22, 0x3a, 0x81, 0x4e, 0xb2, 0x30, 87 | 0xa4, 0x34, 0x32, 0xa9, 0x2e, 0x32, 0x30, 0x3a, 0x97, 0x31, 0x35, 0x36, 88 | 0x34, 0xaa, 0x34, 0x30, 0xac, 0xb5, 0x28, 0xbf, 0x28, 0x4e, 0x29, 0xac, 89 | 0x31, 0x31, 0x29, 0xaa, 0xbe, 0x28, 0x4e, 0x29, 0xac, 0x4e, 0xad, 0x35, 90 | 0x2c, 0x39, 0x30, 0x3a, 0x82, 0x00, 0x49, 0x0c, 0xfa, 0x00, 0x99, 0x22, 91 | 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x28, 0x43, 0x29, 0x22, 0x3a, 0x99, 92 | 0x22, 0x4c, 0x4f, 0x47, 0x49, 0x4b, 0x45, 0x52, 0x22, 0x3a, 0x99, 0x22, 93 | 0x32, 0x30, 0x31, 0x38, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 94 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 95 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 96 | }; 97 | unsigned int builtinprg_10_prg_len = 1127; 98 | -------------------------------------------------------------------------------- /ESP8266-NTSC-C64/builtinprg_11.h: -------------------------------------------------------------------------------- 1 | const PROGMEM unsigned char builtinprg_11_prg[] = { 2 | 0x01, 0x08, 0x10, 0x08, 0x0a, 0x00, 0x81, 0x20, 0x49, 0xb2, 0x31, 0x20, 3 | 0xa4, 0x20, 0x31, 0x30, 0x00, 0x27, 0x08, 0x14, 0x00, 0x99, 0x20, 0x22, 4 | 0x48, 0x45, 0x4c, 0x4c, 0x4f, 0x20, 0x57, 0x4f, 0x52, 0x4c, 0x44, 0x21, 5 | 0x22, 0x2c, 0x49, 0x00, 0x2d, 0x08, 0x1e, 0x00, 0x82, 0x00, 0x00, 0x00 6 | }; 7 | unsigned int builtinprg_11_prg_len = 48; 8 | -------------------------------------------------------------------------------- /ESP8266-NTSC-C64/builtinprg_12.h: -------------------------------------------------------------------------------- 1 | const PROGMEM unsigned char builtinprg_12_prg[] = { 2 | 0x01, 0x08, 0x10, 0x08, 0x0a, 0x00, 0x81, 0x20, 0x49, 0xb2, 0x31, 0x20, 3 | 0xa4, 0x20, 0x31, 0x30, 0x00, 0x27, 0x08, 0x14, 0x00, 0x99, 0x20, 0x22, 4 | 0x48, 0x45, 0x4c, 0x4c, 0x4f, 0x20, 0x57, 0x4f, 0x52, 0x4c, 0x44, 0x21, 5 | 0x22, 0x2c, 0x49, 0x00, 0x2d, 0x08, 0x1e, 0x00, 0x82, 0x00, 0x00, 0x00 6 | }; 7 | unsigned int builtinprg_12_prg_len = 48; 8 | -------------------------------------------------------------------------------- /ESP8266-NTSC-C64/builtinprg_13.h: -------------------------------------------------------------------------------- 1 | const PROGMEM unsigned char builtinprg_13_prg[] = { 2 | 0x01, 0x08, 0x21, 0x08, 0x0a, 0x00, 0x97, 0x20, 0x35, 0x33, 0x32, 0x38, 3 | 0x30, 0x2c, 0x30, 0x3a, 0x97, 0x20, 0x35, 0x33, 0x32, 0x38, 0x31, 0x2c, 4 | 0x30, 0x3a, 0x97, 0x20, 0x36, 0x34, 0x36, 0x2c, 0x31, 0x00, 0x41, 0x08, 5 | 0x19, 0x00, 0x99, 0x22, 0x9e, 0x93, 0x54, 0x48, 0x45, 0x20, 0x43, 0x49, 6 | 0x52, 0x43, 0x4c, 0x45, 0x20, 0x4f, 0x46, 0x20, 0x4c, 0x49, 0x46, 0x45, 7 | 0x2e, 0x2e, 0x2e, 0x20, 0x22, 0x00, 0x7d, 0x08, 0x1e, 0x00, 0x99, 0x22, 8 | 0x9e, 0x20, 0x22, 0x3a, 0x81, 0x4e, 0xb2, 0x30, 0xa4, 0x37, 0xa9, 0x2e, 9 | 0x30, 0x35, 0x3a, 0x97, 0x31, 0x30, 0x32, 0x34, 0xaa, 0x34, 0x30, 0xac, 10 | 0xb5, 0x28, 0x31, 0x32, 0xab, 0xbe, 0x28, 0x4e, 0x29, 0xac, 0x31, 0x31, 11 | 0x29, 0xaa, 0x32, 0x30, 0xaa, 0xbf, 0x28, 0x4e, 0x29, 0xac, 0x31, 0x31, 12 | 0x2c, 0x39, 0x30, 0x3a, 0x82, 0x00, 0x99, 0x08, 0x23, 0x00, 0x99, 0x22, 13 | 0x93, 0x2e, 0x2e, 0x2e, 0x47, 0x4f, 0x54, 0x20, 0x44, 0x45, 0x53, 0x54, 14 | 0x52, 0x4f, 0x59, 0x45, 0x44, 0x21, 0x21, 0x21, 0x22, 0x00, 0xda, 0x08, 15 | 0x28, 0x00, 0x97, 0x35, 0x33, 0x32, 0x38, 0x31, 0x2c, 0x32, 0x3a, 0x99, 16 | 0x22, 0x9e, 0x20, 0x22, 0x3a, 0x81, 0x4e, 0xb2, 0x30, 0xa4, 0x36, 0x2e, 17 | 0x33, 0xa9, 0x2e, 0x30, 0x35, 0x3a, 0x97, 0x31, 0x35, 0x30, 0x34, 0xab, 18 | 0x34, 0x30, 0xac, 0xb5, 0x28, 0xbe, 0x28, 0x4e, 0x29, 0xac, 0x31, 0x32, 19 | 0x29, 0xaa, 0xbf, 0x28, 0x4e, 0x29, 0xac, 0x31, 0x39, 0x2c, 0x39, 0x30, 20 | 0x3a, 0x82, 0x00, 0xfe, 0x08, 0x2d, 0x00, 0x99, 0x22, 0x98, 0x93, 0x54, 21 | 0x48, 0x45, 0x20, 0x53, 0x50, 0x41, 0x43, 0x45, 0x20, 0x53, 0x48, 0x49, 22 | 0x50, 0x20, 0x49, 0x53, 0x20, 0x52, 0x45, 0x41, 0x44, 0x59, 0x2e, 0x2e, 23 | 0x2e, 0x22, 0x00, 0x42, 0x09, 0x32, 0x00, 0x97, 0x35, 0x33, 0x32, 0x38, 24 | 0x31, 0x2c, 0x30, 0x3a, 0x99, 0x22, 0x20, 0x20, 0x22, 0x3a, 0x81, 0x4e, 25 | 0xb2, 0x30, 0xa4, 0x31, 0x30, 0x30, 0xa9, 0x2e, 0x32, 0x36, 0x3a, 0x97, 26 | 0x31, 0x35, 0x30, 0x34, 0xaa, 0x34, 0x30, 0xac, 0xb5, 0x28, 0xbf, 0x28, 27 | 0x4e, 0x29, 0xac, 0x35, 0x29, 0xaa, 0x32, 0x30, 0xaa, 0xbe, 0x28, 0x4e, 28 | 0x29, 0xac, 0x4e, 0xad, 0x35, 0x2c, 0x39, 0x30, 0x3a, 0x82, 0x00, 0x66, 29 | 0x09, 0x37, 0x00, 0x99, 0x22, 0x9e, 0x93, 0x44, 0x52, 0x49, 0x56, 0x49, 30 | 0x4e, 0x47, 0x20, 0x41, 0x20, 0x53, 0x54, 0x52, 0x41, 0x4e, 0x47, 0x45, 31 | 0x20, 0x52, 0x4f, 0x55, 0x54, 0x45, 0x2e, 0x2e, 0x2e, 0x22, 0x00, 0xa0, 32 | 0x09, 0x3c, 0x00, 0x99, 0x22, 0x9e, 0x20, 0x22, 0x3a, 0x81, 0x4e, 0xb2, 33 | 0x30, 0xa4, 0x33, 0x32, 0xa9, 0x2e, 0x33, 0x35, 0x3a, 0x97, 0x31, 0x35, 34 | 0x30, 0x37, 0xaa, 0x34, 0x30, 0xac, 0xb5, 0x28, 0xbe, 0x28, 0x4e, 0x29, 35 | 0xac, 0x36, 0x20, 0x29, 0xaa, 0x4e, 0xac, 0x31, 0xaa, 0xbf, 0x28, 0x4e, 36 | 0x29, 0xac, 0x36, 0x2c, 0x34, 0x36, 0x3a, 0x82, 0x00, 0xbe, 0x09, 0x4b, 37 | 0x00, 0x99, 0x22, 0x93, 0x4c, 0x45, 0x41, 0x56, 0x49, 0x4e, 0x47, 0x20, 38 | 0x54, 0x48, 0x45, 0x20, 0x47, 0x41, 0x4c, 0x41, 0x58, 0x59, 0x2e, 0x2e, 39 | 0x2e, 0x22, 0x00, 0xf8, 0x09, 0x50, 0x00, 0x99, 0x22, 0x9e, 0x20, 0x22, 40 | 0x3a, 0x81, 0x4e, 0xb2, 0x30, 0xa4, 0x31, 0x30, 0x30, 0xa9, 0x2e, 0x33, 41 | 0x36, 0x3a, 0x97, 0x31, 0x35, 0x36, 0x34, 0xaa, 0x34, 0x30, 0xac, 0xb5, 42 | 0x28, 0xbf, 0x28, 0x4e, 0x29, 0xac, 0x4e, 0xad, 0x38, 0x29, 0xaa, 0xbe, 43 | 0x28, 0x4e, 0x29, 0xac, 0x4e, 0xad, 0x35, 0x2c, 0x34, 0x36, 0x3a, 0x82, 44 | 0x00, 0x17, 0x0a, 0x55, 0x00, 0x99, 0x22, 0x9f, 0x93, 0x50, 0x41, 0x53, 45 | 0x53, 0x49, 0x4e, 0x47, 0x20, 0x41, 0x20, 0x57, 0x4f, 0x52, 0x4d, 0x48, 46 | 0x4f, 0x4c, 0x45, 0x2e, 0x2e, 0x2e, 0x22, 0x00, 0x53, 0x0a, 0x5a, 0x00, 47 | 0x99, 0x22, 0x96, 0x20, 0x22, 0x3a, 0x81, 0x4e, 0xb2, 0x30, 0xa4, 0x35, 48 | 0x30, 0xa9, 0x2e, 0x32, 0x34, 0x3a, 0x97, 0x31, 0x30, 0x38, 0x34, 0xaa, 49 | 0x34, 0x30, 0xac, 0xb5, 0x28, 0x31, 0x32, 0xaa, 0xbf, 0x28, 0x4e, 0x29, 50 | 0xac, 0x4e, 0xad, 0x34, 0x29, 0xaa, 0xbe, 0x28, 0x4e, 0x29, 0xac, 0x4e, 51 | 0xad, 0x32, 0x2c, 0x39, 0x30, 0x3a, 0x82, 0x00, 0x79, 0x0a, 0x9b, 0x00, 52 | 0x99, 0x22, 0x93, 0x41, 0x52, 0x52, 0x49, 0x56, 0x49, 0x4e, 0x47, 0x20, 53 | 0x41, 0x54, 0x20, 0x41, 0x4e, 0x4f, 0x54, 0x48, 0x52, 0x20, 0x50, 0x4c, 54 | 0x41, 0x4e, 0x54, 0x45, 0x54, 0x2e, 0x2e, 0x2e, 0x22, 0x00, 0xb4, 0x0a, 55 | 0xa0, 0x00, 0x99, 0x22, 0x1c, 0x20, 0x22, 0x3a, 0x81, 0x4e, 0xb2, 0x30, 56 | 0xa4, 0x38, 0x30, 0xa9, 0x2e, 0x32, 0x34, 0x3a, 0x97, 0x31, 0x30, 0x34, 57 | 0x34, 0xaa, 0x34, 0x30, 0xac, 0xb5, 0x28, 0x31, 0x32, 0xaa, 0xbf, 0x28, 58 | 0x4e, 0x29, 0xac, 0x31, 0x30, 0x29, 0xaa, 0xbe, 0x28, 0x4e, 0x29, 0xac, 59 | 0x4e, 0xad, 0x35, 0x2c, 0x39, 0x30, 0x3a, 0x82, 0x00, 0xcb, 0x0a, 0xa5, 60 | 0x00, 0x99, 0x22, 0x9e, 0x93, 0x41, 0x20, 0x4e, 0x45, 0x57, 0x20, 0x4d, 61 | 0x4f, 0x4f, 0x4e, 0x2e, 0x2e, 0x2e, 0x22, 0x00, 0x06, 0x0b, 0xaa, 0x00, 62 | 0x99, 0x22, 0x9e, 0x20, 0x22, 0x3a, 0x81, 0x4e, 0xb2, 0x30, 0xa4, 0x37, 63 | 0x30, 0xa9, 0x2e, 0x32, 0x34, 0x3a, 0x97, 0x31, 0x30, 0x34, 0x34, 0xaa, 64 | 0x34, 0x30, 0xac, 0xb5, 0x28, 0x31, 0x32, 0xaa, 0xbf, 0x28, 0x4e, 0x29, 65 | 0xac, 0x31, 0x32, 0x29, 0xaa, 0xbe, 0x28, 0x4e, 0x29, 0xac, 0x4e, 0xad, 66 | 0x35, 0x2c, 0x39, 0x30, 0x3a, 0x82, 0x00, 0x24, 0x0b, 0xaf, 0x00, 0x99, 67 | 0x22, 0x9c, 0x93, 0x53, 0x54, 0x52, 0x41, 0x4e, 0x47, 0x45, 0x20, 0x4f, 68 | 0x42, 0x53, 0x54, 0x41, 0x43, 0x4c, 0x45, 0x53, 0x2e, 0x2e, 0x2e, 0x22, 69 | 0x00, 0x61, 0x0b, 0xb4, 0x00, 0x99, 0x22, 0x1f, 0x20, 0x22, 0x3a, 0x81, 70 | 0x4e, 0xb2, 0x30, 0xa4, 0x31, 0x30, 0x20, 0xa9, 0x2e, 0x30, 0x32, 0x3a, 71 | 0x97, 0x31, 0x30, 0x34, 0x33, 0xaa, 0x34, 0x30, 0xac, 0x28, 0x31, 0x32, 72 | 0xaa, 0xbe, 0x28, 0x4e, 0x29, 0xac, 0x31, 0x31, 0x29, 0xab, 0x32, 0x30, 73 | 0xab, 0xbf, 0x28, 0x4e, 0x29, 0xac, 0x32, 0x30, 0x2c, 0x39, 0x30, 0x3a, 74 | 0x82, 0x00, 0x89, 0x0b, 0xcd, 0x00, 0x99, 0x22, 0x9e, 0x93, 0x54, 0x48, 75 | 0x45, 0x59, 0x20, 0x46, 0x49, 0x4e, 0x44, 0x20, 0x54, 0x48, 0x45, 0x49, 76 | 0x52, 0x20, 0x47, 0x4f, 0x41, 0x4c, 0x2e, 0x2e, 0x2e, 0x11, 0x11, 0x11, 77 | 0x11, 0x11, 0x11, 0x11, 0x22, 0x00, 0xc2, 0x0b, 0xdc, 0x00, 0x81, 0x49, 78 | 0xb2, 0x31, 0xa4, 0x31, 0x30, 0x3a, 0x81, 0x4a, 0xb2, 0x31, 0xa4, 0x34, 79 | 0x30, 0x3a, 0x99, 0x22, 0x9e, 0xa6, 0x11, 0x9d, 0xa6, 0x91, 0x22, 0x3b, 80 | 0x3a, 0x82, 0x3a, 0x81, 0x4b, 0xb2, 0x31, 0xa4, 0x34, 0x30, 0x3a, 0x99, 81 | 0x22, 0x9d, 0x20, 0x9d, 0x11, 0x20, 0x9d, 0x91, 0x22, 0x3b, 0x3a, 0x82, 82 | 0x3a, 0x82, 0x00, 0xe5, 0x0b, 0xe1, 0x00, 0x99, 0x22, 0x9c, 0x93, 0x54, 83 | 0x48, 0x45, 0x20, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4e, 0x47, 0x20, 0x45, 84 | 0x41, 0x53, 0x54, 0x45, 0x52, 0x20, 0x45, 0x47, 0x47, 0x2e, 0x2e, 0x2e, 85 | 0x22, 0x00, 0x25, 0x0c, 0xe6, 0x00, 0x97, 0x35, 0x33, 0x32, 0x38, 0x31, 86 | 0x2c, 0x35, 0x3a, 0x99, 0x22, 0x20, 0x22, 0x3a, 0x81, 0x4e, 0xb2, 0x30, 87 | 0xa4, 0x34, 0x32, 0xa9, 0x2e, 0x32, 0x30, 0x3a, 0x97, 0x31, 0x35, 0x36, 88 | 0x34, 0xaa, 0x34, 0x30, 0xac, 0xb5, 0x28, 0xbf, 0x28, 0x4e, 0x29, 0xac, 89 | 0x31, 0x31, 0x29, 0xaa, 0xbe, 0x28, 0x4e, 0x29, 0xac, 0x4e, 0xad, 0x35, 90 | 0x2c, 0x39, 0x30, 0x3a, 0x82, 0x00, 0x49, 0x0c, 0xfa, 0x00, 0x99, 0x22, 91 | 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x28, 0x43, 0x29, 0x22, 0x3a, 0x99, 92 | 0x22, 0x4c, 0x4f, 0x47, 0x49, 0x4b, 0x45, 0x52, 0x22, 0x3a, 0x99, 0x22, 93 | 0x32, 0x30, 0x31, 0x38, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 94 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 95 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 96 | }; 97 | unsigned int builtinprg_13_prg_len = 1127; 98 | -------------------------------------------------------------------------------- /ESP8266-NTSC-C64/builtinprg_14.h: -------------------------------------------------------------------------------- 1 | const PROGMEM unsigned char builtinprg_14_prg[] = { 2 | 0x01, 0x08, 0x10, 0x08, 0x0a, 0x00, 0x81, 0x20, 0x49, 0xb2, 0x31, 0x20, 3 | 0xa4, 0x20, 0x31, 0x30, 0x00, 0x27, 0x08, 0x14, 0x00, 0x99, 0x20, 0x22, 4 | 0x48, 0x45, 0x4c, 0x4c, 0x4f, 0x20, 0x57, 0x4f, 0x52, 0x4c, 0x44, 0x21, 5 | 0x22, 0x2c, 0x49, 0x00, 0x2d, 0x08, 0x1e, 0x00, 0x82, 0x00, 0x00, 0x00 6 | }; 7 | unsigned int builtinprg_14_prg_len = 48; 8 | -------------------------------------------------------------------------------- /ESP8266-NTSC-C64/builtinprg_15.h: -------------------------------------------------------------------------------- 1 | const PROGMEM unsigned char builtinprg_15_prg[] = { 2 | 0x01, 0x08, 0x10, 0x08, 0x0a, 0x00, 0x81, 0x20, 0x49, 0xb2, 0x31, 0x20, 3 | 0xa4, 0x20, 0x31, 0x30, 0x00, 0x27, 0x08, 0x14, 0x00, 0x99, 0x20, 0x22, 4 | 0x48, 0x45, 0x4c, 0x4c, 0x4f, 0x20, 0x57, 0x4f, 0x52, 0x4c, 0x44, 0x21, 5 | 0x22, 0x2c, 0x49, 0x00, 0x2d, 0x08, 0x1e, 0x00, 0x82, 0x00, 0x00, 0x00 6 | }; 7 | unsigned int builtinprg_15_prg_len = 48; 8 | -------------------------------------------------------------------------------- /ESP8266-NTSC-C64/builtinprg_2.h: -------------------------------------------------------------------------------- 1 | const PROGMEM unsigned char builtinprg_2_prg[] = { 2 | 0x01, 0x08, 0x54, 0x08, 0x01, 0x00, 0x41, 0x24, 0xb2, 0x22, 0x45, 0x46, 3 | 0x49, 0x4a, 0x45, 0x46, 0x49, 0x4a, 0x45, 0x46, 0x49, 0x4a, 0x45, 0x46, 4 | 0x49, 0x4a, 0x42, 0x46, 0x4a, 0x4e, 0x48, 0x49, 0x4a, 0x4b, 0x42, 0x46, 5 | 0x4a, 0x4e, 0x48, 0x49, 0x4a, 0x4b, 0x49, 0x4a, 0x46, 0x47, 0x41, 0x45, 6 | 0x46, 0x4a, 0x49, 0x4a, 0x46, 0x47, 0x41, 0x45, 0x46, 0x4a, 0x45, 0x46, 7 | 0x4a, 0x4b, 0x49, 0x45, 0x46, 0x42, 0x45, 0x46, 0x4a, 0x4b, 0x49, 0x45, 8 | 0x46, 0x42, 0x42, 0x46, 0x4a, 0x49, 0x44, 0x45, 0x46, 0x4a, 0x22, 0x20, 9 | 0x00, 0x9d, 0x08, 0x02, 0x00, 0x41, 0x24, 0xb2, 0x41, 0x24, 0xaa, 0x22, 10 | 0x41, 0x42, 0x45, 0x49, 0x45, 0x49, 0x4a, 0x4b, 0x41, 0x45, 0x49, 0x4a, 11 | 0x49, 0x4a, 0x4b, 0x47, 0x41, 0x42, 0x46, 0x4a, 0x49, 0x45, 0x46, 0x47, 12 | 0x45, 0x48, 0x49, 0x4a, 0x45, 0x42, 0x46, 0x4a, 0x40, 0x41, 0x42, 0x45, 13 | 0x40, 0x44, 0x48, 0x45, 0x22, 0x3a, 0x4f, 0xb2, 0x32, 0x30, 0x37, 0x3a, 14 | 0x86, 0x45, 0x28, 0x4f, 0x29, 0x3a, 0x81, 0x58, 0xb2, 0x30, 0xa4, 0x35, 15 | 0x30, 0x00, 0xe0, 0x08, 0x03, 0x00, 0x99, 0x2c, 0x22, 0x20, 0x20, 0x20, 16 | 0xa7, 0x22, 0x2c, 0x22, 0x20, 0x20, 0x20, 0x20, 0xa5, 0x22, 0x3a, 0x50, 17 | 0xb2, 0xc6, 0x28, 0xca, 0x28, 0x41, 0x24, 0x2c, 0x58, 0xaa, 0x31, 0x29, 18 | 0x29, 0x3a, 0x45, 0x28, 0x58, 0x29, 0xb2, 0x28, 0x50, 0xaf, 0x33, 0x29, 19 | 0xaa, 0x28, 0x50, 0xaf, 0x31, 0x32, 0x29, 0xac, 0x31, 0x30, 0x3a, 0x82, 20 | 0x3a, 0x4d, 0xb2, 0x32, 0x30, 0x32, 0x34, 0x20, 0x00, 0xfe, 0x08, 0x04, 21 | 0x00, 0x99, 0x2c, 0x22, 0x20, 0x20, 0x20, 0x20, 0xa3, 0xa3, 0xa3, 0xa3, 22 | 0xa3, 0xa3, 0xa3, 0xa3, 0xa3, 0xa3, 0x22, 0x3a, 0x8d, 0x36, 0x3a, 0x89, 23 | 0x37, 0x20, 0x00, 0x40, 0x09, 0x05, 0x00, 0x97, 0x49, 0xaa, 0x45, 0x28, 24 | 0x52, 0x29, 0x2c, 0x43, 0x3a, 0x97, 0x49, 0xaa, 0x45, 0x28, 0x52, 0xaa, 25 | 0x31, 0x29, 0x2c, 0x43, 0x3a, 0x97, 0x49, 0xaa, 0x45, 0x28, 0x52, 0xaa, 26 | 0x32, 0x29, 0x2c, 0x43, 0x3a, 0x97, 0x49, 0xaa, 0x45, 0x28, 0x52, 0xaa, 27 | 0x33, 0x29, 0x2c, 0x43, 0x3a, 0x43, 0xb2, 0x31, 0x36, 0x30, 0x3a, 0x52, 28 | 0x24, 0xb2, 0x22, 0x44, 0x22, 0x3a, 0x8e, 0x20, 0x00, 0x7e, 0x09, 0x06, 29 | 0x00, 0x49, 0xb2, 0x31, 0x31, 0x35, 0x32, 0x3a, 0x52, 0xb2, 0x48, 0x3a, 30 | 0x43, 0xb2, 0x33, 0x32, 0x3a, 0x8d, 0x35, 0x3a, 0x4a, 0xb2, 0xb5, 0x28, 31 | 0xbb, 0x28, 0x31, 0x29, 0xac, 0x37, 0x29, 0xac, 0x31, 0x36, 0x3a, 0x52, 32 | 0xb2, 0x4a, 0x3a, 0x8d, 0x35, 0x3a, 0x52, 0xb2, 0x48, 0x3a, 0x48, 0xb2, 33 | 0x4a, 0x3a, 0x49, 0xb2, 0x49, 0xaa, 0x39, 0x3a, 0x8e, 0x20, 0x00, 0x9f, 34 | 0x09, 0x07, 0x00, 0x8d, 0x36, 0x3a, 0x57, 0xb2, 0x49, 0x3a, 0x54, 0xb2, 35 | 0x49, 0x3a, 0x47, 0xb2, 0x52, 0x3a, 0x4b, 0xb2, 0x32, 0x34, 0x30, 0x3a, 36 | 0x4c, 0xb2, 0x31, 0x32, 0x37, 0x38, 0x20, 0x00, 0xc0, 0x09, 0x08, 0x00, 37 | 0x8d, 0x31, 0x35, 0x3a, 0x43, 0xb2, 0x33, 0x32, 0x3a, 0x8d, 0x35, 0x3a, 38 | 0x52, 0xb2, 0xab, 0x52, 0xac, 0x42, 0xab, 0x47, 0xac, 0xa8, 0x42, 0x3a, 39 | 0x47, 0xb2, 0x52, 0x20, 0x00, 0xdd, 0x09, 0x09, 0x00, 0x49, 0xb2, 0x57, 40 | 0x3a, 0x57, 0xb2, 0x49, 0xaa, 0x34, 0x30, 0x3a, 0x8d, 0x35, 0x3a, 0x8d, 41 | 0x31, 0x35, 0x3a, 0x8b, 0x42, 0xa7, 0x31, 0x32, 0x20, 0x00, 0x00, 0x0a, 42 | 0x0a, 0x00, 0xa1, 0x4b, 0x24, 0x3a, 0x47, 0xb2, 0x52, 0xaf, 0x4b, 0xb0, 43 | 0x28, 0x28, 0x52, 0xab, 0x34, 0xac, 0x28, 0x4b, 0x24, 0xb2, 0x22, 0x53, 44 | 0x22, 0x29, 0x29, 0xaf, 0x31, 0x35, 0x29, 0x20, 0x00, 0x27, 0x0a, 0x0b, 45 | 0x00, 0x54, 0xb2, 0x57, 0x3a, 0x57, 0xb2, 0x57, 0xaa, 0x28, 0x4b, 0x24, 46 | 0xb2, 0x4c, 0x24, 0x29, 0xab, 0x28, 0x4b, 0x24, 0xb2, 0x52, 0x24, 0x29, 47 | 0x3a, 0x4c, 0xb2, 0x4c, 0xaa, 0x34, 0x30, 0x3a, 0x89, 0x38, 0x20, 0x00, 48 | 0x66, 0x0a, 0x0c, 0x00, 0x43, 0xb2, 0x4f, 0x3a, 0x8d, 0x35, 0x3a, 0x4d, 49 | 0xb2, 0x4d, 0xab, 0x28, 0x4c, 0xb3, 0x4d, 0x29, 0xac, 0x28, 0x4c, 0xab, 50 | 0x4d, 0x29, 0x3a, 0x81, 0x59, 0xb2, 0x30, 0xa4, 0x33, 0x3a, 0x51, 0xb2, 51 | 0x31, 0x3a, 0x81, 0x58, 0xb2, 0x30, 0xa4, 0x39, 0x3a, 0x51, 0xb2, 0x51, 52 | 0xac, 0x28, 0xc2, 0x28, 0x4c, 0xaa, 0x58, 0x29, 0xb2, 0x4f, 0x29, 0x3a, 53 | 0x82, 0x20, 0x00, 0xa6, 0x0a, 0x0d, 0x00, 0x81, 0x53, 0xb2, 0x4c, 0xa4, 54 | 0x4c, 0xaa, 0x28, 0x4d, 0xab, 0x31, 0x36, 0x30, 0xab, 0x4c, 0x29, 0xac, 55 | 0x51, 0xa9, 0xab, 0x31, 0x3a, 0x97, 0x53, 0xaa, 0x31, 0x31, 0x2c, 0xc2, 56 | 0x28, 0x53, 0xab, 0x32, 0x39, 0x29, 0x3a, 0x82, 0x3a, 0x59, 0xb2, 0x59, 57 | 0xab, 0x51, 0x3a, 0x4d, 0xb2, 0x4d, 0xaa, 0x51, 0xac, 0x34, 0x30, 0x3a, 58 | 0x5a, 0xb2, 0x5a, 0xaa, 0x51, 0x20, 0x00, 0xc2, 0x0a, 0x0e, 0x00, 0x4c, 59 | 0xb2, 0x4c, 0xaa, 0x34, 0x30, 0xac, 0xa8, 0xab, 0x51, 0x3a, 0x82, 0x3a, 60 | 0x99, 0x22, 0x13, 0x22, 0x3b, 0x5a, 0x3a, 0x89, 0x37, 0x20, 0x00, 0x00, 61 | 0x0b, 0x0f, 0x00, 0x42, 0xb2, 0x30, 0x3a, 0x81, 0x58, 0xb2, 0x30, 0xa4, 62 | 0x33, 0x3a, 0x42, 0xb2, 0x42, 0xb0, 0x31, 0xaf, 0xc2, 0x28, 0x57, 0xaa, 63 | 0x45, 0x28, 0x47, 0xaa, 0x58, 0x29, 0x29, 0x3a, 0x82, 0x3a, 0x42, 0xb2, 64 | 0x42, 0xb1, 0x30, 0x3a, 0x57, 0xb2, 0xab, 0x54, 0xac, 0x42, 0xab, 0x57, 65 | 0xac, 0xa8, 0x42, 0x3a, 0x4c, 0x24, 0xb2, 0x22, 0x41, 0x22, 0x3a, 0x8e, 66 | 0x00, 0x00, 0x00 67 | }; 68 | unsigned int builtinprg_2_prg_len = 771; 69 | -------------------------------------------------------------------------------- /ESP8266-NTSC-C64/builtinprg_3.h: -------------------------------------------------------------------------------- 1 | const PROGMEM unsigned char builtinprg_3_prg[] = { 2 | 0x01, 0x08, 0x4d, 0x08, 0x01, 0x00, 0x86, 0x4c, 0x28, 0x36, 0x33, 0x29, 3 | 0x3a, 0x41, 0x28, 0x30, 0x29, 0xb2, 0xab, 0x34, 0x30, 0x3a, 0x41, 0x28, 4 | 0x31, 0x29, 0xb2, 0x31, 0x3a, 0x41, 0x28, 0x32, 0x29, 0xb2, 0x34, 0x30, 5 | 0x3a, 0x41, 0x28, 0x33, 0x29, 0xb2, 0xab, 0x31, 0x3a, 0x99, 0x22, 0x93, 6 | 0x22, 0x3a, 0x81, 0x49, 0xb2, 0x31, 0xa4, 0x36, 0x30, 0x3a, 0x97, 0x31, 7 | 0x30, 0x32, 0x34, 0xaa, 0xbb, 0x28, 0x31, 0x29, 0xac, 0x39, 0x39, 0x39, 8 | 0x2c, 0x39, 0x30, 0x3a, 0x82, 0x00, 0x9b, 0x08, 0x02, 0x00, 0x50, 0xb2, 9 | 0x50, 0xaa, 0x41, 0x28, 0x44, 0x29, 0x3a, 0x4c, 0x28, 0x55, 0x29, 0xb2, 10 | 0x50, 0xaa, 0x31, 0x35, 0x32, 0x34, 0x3a, 0x43, 0xb2, 0xc2, 0x28, 0x4c, 11 | 0x28, 0x55, 0x29, 0x29, 0x3a, 0x91, 0xab, 0x28, 0x43, 0xb3, 0xb1, 0x33, 12 | 0x32, 0xaf, 0x43, 0xb3, 0xb1, 0x39, 0x30, 0x29, 0x89, 0x33, 0x3a, 0x97, 13 | 0x4c, 0x28, 0x55, 0x29, 0x2c, 0x38, 0x31, 0x3a, 0x97, 0x4c, 0x28, 0x55, 14 | 0xab, 0x46, 0xab, 0x33, 0xaf, 0x36, 0x33, 0x29, 0x2c, 0x33, 0x32, 0x00, 15 | 0xe7, 0x08, 0x03, 0x00, 0x46, 0xb2, 0x46, 0xab, 0x28, 0x43, 0xb2, 0x39, 16 | 0x30, 0x29, 0x3a, 0x99, 0x22, 0x13, 0x22, 0x46, 0x3a, 0x55, 0xb2, 0x55, 17 | 0xaa, 0x31, 0xaf, 0x36, 0x33, 0x3a, 0xa1, 0x41, 0x24, 0x3a, 0x44, 0xb2, 18 | 0x28, 0x44, 0xaa, 0x28, 0x41, 0x24, 0xb2, 0x22, 0x41, 0x22, 0x29, 0xab, 19 | 0x28, 0x41, 0x24, 0xb2, 0x22, 0x44, 0x22, 0x29, 0x29, 0xaf, 0x33, 0x3a, 20 | 0x91, 0xab, 0x28, 0x43, 0xb2, 0x33, 0x32, 0xb0, 0x43, 0xb2, 0x39, 0x30, 21 | 0x29, 0x89, 0x32, 0x00, 0x00, 0x00 22 | }; 23 | unsigned int builtinprg_3_prg_len = 234; 24 | -------------------------------------------------------------------------------- /ESP8266-NTSC-C64/builtinprg_4.h: -------------------------------------------------------------------------------- 1 | const PROGMEM unsigned char builtinprg_4_prg[] = { 2 | 0x01, 0x08, 0x4f, 0x08, 0x00, 0x00, 0x96, 0xa5, 0x47, 0x28, 0x58, 0x29, 3 | 0xb2, 0xb5, 0x28, 0x4a, 0x29, 0xb2, 0x41, 0x28, 0x50, 0x29, 0x3a, 0x87, 4 | 0x47, 0x2c, 0x54, 0x24, 0x28, 0x30, 0x29, 0x2c, 0x54, 0x24, 0x28, 0x31, 5 | 0x29, 0x2c, 0x44, 0x24, 0x2c, 0x52, 0x2c, 0x5a, 0x2c, 0x50, 0x24, 0x3a, 6 | 0x99, 0x22, 0x93, 0x22, 0x3a, 0x46, 0xb2, 0x31, 0x38, 0x30, 0x3a, 0x45, 7 | 0xb2, 0x32, 0x35, 0x31, 0x3a, 0x4e, 0xb2, 0xbb, 0x28, 0x30, 0x29, 0xac, 8 | 0x2e, 0x30, 0x32, 0xab, 0x2e, 0x30, 0x31, 0x00, 0x97, 0x08, 0x01, 0x00, 9 | 0x54, 0xb2, 0x31, 0x30, 0x32, 0x34, 0x3a, 0x57, 0xb2, 0xb5, 0x28, 0xbb, 10 | 0x28, 0x31, 0x29, 0xac, 0x35, 0x29, 0xaa, 0x32, 0x3a, 0x91, 0xab, 0x28, 11 | 0x4f, 0xaa, 0x57, 0xb1, 0x33, 0x39, 0x29, 0x89, 0x33, 0x3a, 0x48, 0xb2, 12 | 0xb5, 0x28, 0xbb, 0x28, 0x31, 0x29, 0xac, 0x31, 0x32, 0x29, 0x3a, 0x81, 13 | 0x59, 0xb2, 0x32, 0x34, 0xab, 0x48, 0xa4, 0x32, 0x34, 0x3a, 0x51, 0xb2, 14 | 0x54, 0xaa, 0x59, 0xac, 0x47, 0xaa, 0x4f, 0x00, 0xe4, 0x08, 0x02, 0x00, 15 | 0x81, 0x58, 0xb2, 0x30, 0xa4, 0x57, 0x3a, 0x97, 0x51, 0xaa, 0x58, 0x2c, 16 | 0x45, 0xaa, 0x32, 0x36, 0xac, 0x28, 0x58, 0xb2, 0x30, 0x29, 0x3a, 0x82, 17 | 0x3a, 0x82, 0x3a, 0x57, 0x28, 0x42, 0x29, 0xb2, 0x57, 0x3a, 0x48, 0x28, 18 | 0x42, 0x29, 0xb2, 0x48, 0x3a, 0x58, 0x28, 0x42, 0x29, 0xb2, 0x4f, 0x3a, 19 | 0x4f, 0xb2, 0x4f, 0xaa, 0x57, 0xaa, 0x31, 0x3a, 0x42, 0xb2, 0x42, 0xaa, 20 | 0x31, 0x3a, 0x48, 0xb2, 0x5a, 0x3a, 0x89, 0x31, 0x3a, 0x83, 0x34, 0x30, 21 | 0x00, 0x35, 0x09, 0x03, 0x00, 0x53, 0xb2, 0xbb, 0x28, 0x31, 0x29, 0xac, 22 | 0x42, 0xad, 0x32, 0x3a, 0x44, 0xb2, 0x42, 0xab, 0xbb, 0x28, 0x31, 0x29, 23 | 0xac, 0x42, 0xad, 0x32, 0x3a, 0x41, 0x28, 0x30, 0x29, 0xb2, 0x58, 0x28, 24 | 0x53, 0x29, 0xaa, 0x31, 0x3a, 0x41, 0x28, 0x31, 0x29, 0xb2, 0x58, 0x28, 25 | 0x44, 0x29, 0xaa, 0x57, 0x28, 0x44, 0x29, 0x3a, 0x42, 0x28, 0x30, 0x29, 26 | 0xb2, 0x32, 0x33, 0xab, 0x48, 0x28, 0x53, 0x29, 0x3a, 0x42, 0x28, 0x31, 27 | 0x29, 0xb2, 0x32, 0x33, 0xab, 0x48, 0x28, 0x44, 0x29, 0x00, 0x81, 0x09, 28 | 0x04, 0x00, 0x81, 0x49, 0xb2, 0x30, 0xa4, 0x31, 0x3a, 0x97, 0x54, 0xaa, 29 | 0x42, 0x28, 0x49, 0x29, 0xac, 0x47, 0xaa, 0x41, 0x28, 0x49, 0x29, 0x2c, 30 | 0x38, 0x36, 0x3a, 0x82, 0x3a, 0x99, 0x22, 0x13, 0x22, 0xb5, 0x28, 0x4e, 31 | 0xac, 0x31, 0x30, 0x30, 0x30, 0xaa, 0x2e, 0x35, 0x29, 0xa3, 0x31, 0x36, 32 | 0x29, 0x53, 0x28, 0x30, 0x29, 0x22, 0x2d, 0x22, 0x53, 0x28, 0x31, 0x29, 33 | 0x3a, 0x83, 0x57, 0x49, 0x4e, 0x53, 0x2c, 0x53, 0x43, 0x4f, 0x52, 0x45, 34 | 0x53, 0x00, 0xc9, 0x09, 0x05, 0x00, 0x99, 0x22, 0x13, 0x22, 0xa3, 0x32, 35 | 0x30, 0xac, 0x50, 0x29, 0x3b, 0x3a, 0x85, 0x22, 0x11, 0x11, 0x41, 0x4e, 36 | 0x47, 0x22, 0x3b, 0x57, 0x3a, 0x99, 0xa3, 0x32, 0x30, 0xac, 0x50, 0x29, 37 | 0x3b, 0x3a, 0x85, 0x22, 0x53, 0x54, 0x52, 0x22, 0x3b, 0x53, 0x3a, 0x4a, 38 | 0xb2, 0x41, 0x28, 0x50, 0x29, 0xaa, 0x2e, 0x35, 0x3a, 0x4b, 0xb2, 0x42, 39 | 0x28, 0x50, 0x29, 0xab, 0x2e, 0x35, 0x3a, 0x83, 0x22, 0x13, 0x11, 0x11, 40 | 0x22, 0x00, 0x14, 0x0a, 0x06, 0x00, 0x81, 0x49, 0xb2, 0x52, 0xa4, 0x5a, 41 | 0x3a, 0x97, 0x49, 0x2c, 0x33, 0x32, 0x3a, 0x82, 0x3a, 0x55, 0xb2, 0xbe, 42 | 0x28, 0x57, 0xac, 0xff, 0xad, 0x46, 0x29, 0xac, 0x53, 0xad, 0x38, 0x30, 43 | 0xac, 0x28, 0x31, 0xaa, 0x32, 0xac, 0x28, 0x50, 0xb2, 0x31, 0x29, 0x29, 44 | 0x3a, 0x56, 0xb2, 0xab, 0xbf, 0x28, 0x57, 0xac, 0xff, 0xad, 0x46, 0x29, 45 | 0xac, 0x53, 0xad, 0x38, 0x30, 0x3a, 0x83, 0x31, 0x31, 0x30, 0x34, 0x2c, 46 | 0x31, 0x31, 0x38, 0x33, 0x00, 0x61, 0x0a, 0x07, 0x00, 0x4a, 0xb2, 0x4a, 47 | 0xaa, 0x55, 0x3a, 0x55, 0xb2, 0x55, 0xaa, 0x4e, 0x3a, 0x4b, 0xb2, 0x4b, 48 | 0xaa, 0x56, 0x3a, 0x56, 0xb2, 0x56, 0xaa, 0x2e, 0x30, 0x32, 0x3a, 0x97, 49 | 0x48, 0x2c, 0x33, 0x32, 0x3a, 0x91, 0xab, 0x28, 0x4a, 0xb3, 0x30, 0xb0, 50 | 0x4a, 0xb1, 0x47, 0x29, 0x89, 0x39, 0x3a, 0x48, 0xb2, 0x54, 0xaa, 0xb5, 51 | 0x28, 0x4b, 0x29, 0xac, 0x47, 0xaa, 0x4a, 0x3a, 0x41, 0xb2, 0x31, 0xab, 52 | 0x41, 0x3a, 0x83, 0x50, 0x4c, 0x41, 0x59, 0x45, 0x52, 0x00, 0xad, 0x0a, 53 | 0x08, 0x00, 0x43, 0xb2, 0xc2, 0x28, 0x48, 0x29, 0x3a, 0x97, 0x48, 0x2c, 54 | 0x47, 0xaa, 0x41, 0x3a, 0x91, 0xab, 0x28, 0x43, 0xb2, 0x33, 0x32, 0x29, 55 | 0x89, 0x37, 0x3a, 0x8b, 0x43, 0xb2, 0x38, 0x36, 0xa7, 0x4d, 0xb2, 0x50, 56 | 0xab, 0xa5, 0x47, 0x28, 0x30, 0x29, 0xaf, 0x31, 0x3a, 0x53, 0x28, 0x4d, 57 | 0x29, 0xb2, 0x53, 0x28, 0x4d, 0x29, 0xaa, 0x31, 0x3a, 0x4f, 0xb2, 0x30, 58 | 0x3a, 0x42, 0xb2, 0x30, 0x3a, 0x4c, 0xb2, 0x53, 0x28, 0x4d, 0x29, 0xb3, 59 | 0x33, 0x00, 0xf3, 0x0a, 0x09, 0x00, 0x50, 0xb2, 0x31, 0xab, 0x50, 0x3a, 60 | 0x81, 0x49, 0xb2, 0x52, 0xa4, 0x5a, 0x3a, 0x97, 0x49, 0x2c, 0x33, 0x32, 61 | 0x3a, 0x82, 0x3a, 0x91, 0xab, 0x28, 0x4f, 0xb1, 0x30, 0x29, 0x89, 0x35, 62 | 0x3a, 0x99, 0x22, 0x12, 0x22, 0x44, 0x24, 0xa3, 0x31, 0x32, 0x29, 0x50, 63 | 0x24, 0x4d, 0xaa, 0x31, 0x54, 0x24, 0x28, 0xab, 0x4c, 0x29, 0x3a, 0x92, 64 | 0x31, 0x39, 0x38, 0x2c, 0x31, 0x3a, 0x8c, 0x3a, 0x8b, 0x4c, 0x89, 0x00, 65 | 0x00, 0x00 66 | }; 67 | unsigned int builtinprg_4_prg_len = 758; 68 | -------------------------------------------------------------------------------- /ESP8266-NTSC-C64/builtinprg_5.h: -------------------------------------------------------------------------------- 1 | const PROGMEM unsigned char builtinprg_5_prg[] = { 2 | 0x01, 0x08, 0x52, 0x08, 0x00, 0x00, 0x41, 0x24, 0xb2, 0x22, 0x12, 0x05, 3 | 0x20, 0x92, 0x98, 0xae, 0x9d, 0x9d, 0x11, 0x12, 0x9e, 0x20, 0x92, 0x98, 4 | 0xc2, 0x9d, 0x9d, 0x11, 0x12, 0x9e, 0x20, 0x92, 0x98, 0xcb, 0x22, 0x3a, 5 | 0x42, 0x24, 0xb2, 0x22, 0x1e, 0x20, 0x20, 0x9d, 0x9d, 0x11, 0x20, 0x20, 6 | 0x9d, 0x9d, 0x11, 0x20, 0x20, 0x22, 0x3a, 0x4c, 0xb2, 0x33, 0x3a, 0x50, 7 | 0xb2, 0x31, 0x38, 0x3a, 0x53, 0xb2, 0x31, 0x30, 0x32, 0x34, 0x3a, 0x4b, 8 | 0xb2, 0x30, 0x3a, 0x45, 0xb2, 0x35, 0x33, 0x32, 0x38, 0x30, 0x00, 0x8e, 9 | 0x08, 0x01, 0x00, 0x58, 0xb2, 0x31, 0x38, 0x3a, 0x59, 0xb2, 0x31, 0x3a, 10 | 0x52, 0xb2, 0x31, 0x38, 0x3a, 0x44, 0xb2, 0x31, 0x3a, 0x46, 0xb2, 0x30, 11 | 0x3a, 0x99, 0x22, 0x1e, 0x93, 0x22, 0x3a, 0x97, 0x45, 0x2c, 0x30, 0x3a, 12 | 0x97, 0x45, 0xaa, 0x31, 0x2c, 0x30, 0x3a, 0x97, 0x36, 0x35, 0x30, 0x2c, 13 | 0x31, 0x32, 0x38, 0x3a, 0x8b, 0x4c, 0xb3, 0x31, 0xa7, 0x8a, 0x00, 0xd0, 14 | 0x08, 0x02, 0x00, 0x97, 0x32, 0x31, 0x31, 0x2c, 0x58, 0x3a, 0x97, 0x32, 15 | 0x31, 0x34, 0x2c, 0x59, 0x3a, 0x9e, 0x35, 0x38, 0x37, 0x33, 0x32, 0x3a, 16 | 0x99, 0x41, 0x24, 0x3a, 0x49, 0xb2, 0x58, 0x3a, 0x4a, 0xb2, 0x59, 0x3a, 17 | 0x99, 0x22, 0x13, 0x05, 0x50, 0x49, 0x4e, 0x54, 0x53, 0x3a, 0x22, 0x4b, 18 | 0x22, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x4c, 0x49, 0x56, 0x45, 0x52, 19 | 0x53, 0x3a, 0x22, 0x4c, 0x00, 0x04, 0x09, 0x03, 0x00, 0x8b, 0x58, 0xb2, 20 | 0x52, 0xa7, 0x52, 0xb2, 0xb5, 0x28, 0xbb, 0x28, 0x31, 0x29, 0xac, 0x33, 21 | 0x37, 0x29, 0x3a, 0x44, 0xb2, 0xb4, 0x28, 0x52, 0xab, 0x58, 0x29, 0x3a, 22 | 0x59, 0xb2, 0x59, 0xaa, 0x31, 0x3a, 0x8b, 0x59, 0xb2, 0x32, 0x32, 0xa7, 23 | 0x4c, 0xb2, 0x4c, 0xab, 0x31, 0x3a, 0x89, 0x31, 0x00, 0x39, 0x09, 0x04, 24 | 0x00, 0x58, 0xb2, 0x58, 0xaa, 0x44, 0x3a, 0xa1, 0x43, 0x24, 0x3a, 0x8b, 25 | 0x43, 0x24, 0xb2, 0x22, 0x2c, 0x22, 0xb0, 0x43, 0x24, 0xb2, 0x22, 0x2e, 26 | 0x22, 0xa7, 0x97, 0x31, 0x39, 0x38, 0x34, 0xaa, 0x50, 0x2c, 0x33, 0x32, 27 | 0x3a, 0x50, 0xb2, 0x50, 0xaa, 0xc6, 0x28, 0x43, 0x24, 0x29, 0xab, 0x34, 28 | 0x35, 0x00, 0x56, 0x09, 0x05, 0x00, 0x8b, 0x43, 0x24, 0xb2, 0x22, 0x20, 29 | 0x22, 0xaf, 0x46, 0xb2, 0x30, 0xa7, 0x46, 0xb2, 0x31, 0x3a, 0x57, 0xb2, 30 | 0x50, 0x3a, 0x4d, 0xb2, 0x32, 0x33, 0x00, 0x80, 0x09, 0x06, 0x00, 0x8b, 31 | 0x46, 0xb2, 0x31, 0xaf, 0xc2, 0x28, 0x53, 0xaa, 0x57, 0xaa, 0x28, 0x4d, 32 | 0xab, 0x31, 0x29, 0xac, 0x34, 0x30, 0x29, 0xb3, 0xb1, 0x33, 0x32, 0xa7, 33 | 0x46, 0xb2, 0x30, 0x3a, 0x4b, 0xb2, 0x4b, 0xaa, 0x31, 0x3a, 0x89, 0x31, 34 | 0x00, 0xbd, 0x09, 0x07, 0x00, 0x8b, 0x46, 0xb2, 0x31, 0xa7, 0x97, 0x53, 35 | 0xaa, 0x57, 0xaa, 0x4d, 0xac, 0x34, 0x30, 0x2c, 0x33, 0x32, 0x3a, 0x4d, 36 | 0xb2, 0x4d, 0xab, 0x31, 0x3a, 0x97, 0x53, 0xaa, 0x57, 0xaa, 0x4d, 0xac, 37 | 0x34, 0x30, 0x2c, 0x36, 0x36, 0x3a, 0x8b, 0x4d, 0xb2, 0x31, 0xa7, 0x46, 38 | 0xb2, 0x30, 0x3a, 0x97, 0x31, 0x30, 0x36, 0x34, 0xaa, 0x57, 0x2c, 0x33, 39 | 0x32, 0x00, 0xdc, 0x09, 0x08, 0x00, 0x8b, 0x50, 0xb3, 0x30, 0xb0, 0x50, 40 | 0xb1, 0x33, 0x39, 0xa7, 0x50, 0xb2, 0x50, 0xaa, 0x31, 0x3a, 0x8b, 0x50, 41 | 0xb1, 0x33, 0x39, 0xa7, 0x50, 0xb2, 0x33, 0x39, 0x00, 0x08, 0x0a, 0x09, 42 | 0x00, 0x97, 0x32, 0x31, 0x31, 0x2c, 0x49, 0x3a, 0x97, 0x32, 0x31, 0x34, 43 | 0x2c, 0x4a, 0x3a, 0x9e, 0x35, 0x38, 0x37, 0x33, 0x32, 0x3a, 0x99, 0x42, 44 | 0x24, 0x3a, 0x97, 0x31, 0x39, 0x38, 0x34, 0xaa, 0x50, 0x2c, 0x31, 0x31, 45 | 0x33, 0x3a, 0x89, 0x32, 0x00, 0x00, 0x00 46 | }; 47 | unsigned int builtinprg_5_prg_len = 523; 48 | -------------------------------------------------------------------------------- /ESP8266-NTSC-C64/builtinprg_6.h: -------------------------------------------------------------------------------- 1 | const PROGMEM unsigned char builtinprg_6_prg[] = { 2 | 0x01, 0x08, 0x41, 0x08, 0x0a, 0x00, 0x99, 0x22, 0x97, 0x93, 0x22, 0x3a, 3 | 0x97, 0x35, 0x33, 0x32, 0x38, 0x31, 0x2c, 0x33, 0x3a, 0x81, 0x49, 0xb2, 4 | 0x30, 0xa4, 0x33, 0x39, 0x3a, 0x97, 0x31, 0x39, 0x38, 0x34, 0xaa, 0x49, 5 | 0x2c, 0x31, 0x36, 0x30, 0x3a, 0x97, 0x35, 0x36, 0x32, 0x35, 0x36, 0xaa, 6 | 0x49, 0x2c, 0x35, 0x3a, 0x48, 0xb2, 0xb5, 0x28, 0x33, 0xaa, 0xbb, 0x28, 7 | 0x31, 0x29, 0xac, 0x36, 0x29, 0x00, 0x8b, 0x08, 0x14, 0x00, 0x81, 0x4a, 8 | 0xb2, 0x31, 0xa4, 0x48, 0x3a, 0x97, 0x31, 0x39, 0x38, 0x34, 0xaa, 0x49, 9 | 0xab, 0x4a, 0xac, 0x34, 0x30, 0x2c, 0x31, 0x30, 0x32, 0x3a, 0x82, 0x4a, 10 | 0x2c, 0x49, 0x3a, 0x42, 0x24, 0xb2, 0x22, 0x9d, 0x9d, 0x9d, 0x20, 0x98, 11 | 0x12, 0xdf, 0x92, 0xa2, 0x1f, 0xaf, 0x22, 0x3a, 0x42, 0xb2, 0x30, 0x3a, 12 | 0x99, 0x22, 0x13, 0x11, 0x11, 0x1d, 0x1d, 0x22, 0x3b, 0x42, 0x24, 0x3b, 13 | 0x3a, 0x58, 0xb2, 0x31, 0x31, 0x30, 0x34, 0x00, 0xc6, 0x08, 0x1e, 0x00, 14 | 0x53, 0xb2, 0x35, 0x34, 0x32, 0x37, 0x32, 0x3a, 0x97, 0x53, 0xaa, 0x32, 15 | 0x34, 0x2c, 0x31, 0x35, 0x3a, 0x97, 0x53, 0x2c, 0x35, 0x30, 0x3a, 0x97, 16 | 0x53, 0xaa, 0x31, 0x2c, 0x32, 0x3a, 0x97, 0x53, 0xaa, 0x35, 0x2c, 0x30, 17 | 0x3a, 0x97, 0x53, 0xaa, 0x36, 0x2c, 0x32, 0x35, 0x35, 0x3a, 0x97, 0x53, 18 | 0xaa, 0x34, 0x2c, 0x31, 0x32, 0x39, 0x00, 0xe3, 0x08, 0x28, 0x00, 0x97, 19 | 0x53, 0xaa, 0x31, 0x32, 0x2c, 0x30, 0x3a, 0x97, 0x53, 0xaa, 0x31, 0x33, 20 | 0x2c, 0x32, 0x35, 0x35, 0x3a, 0x97, 0x53, 0xaa, 0x37, 0x2c, 0x30, 0x00, 21 | 0x11, 0x09, 0x32, 0x00, 0xa1, 0x41, 0x24, 0x3a, 0x8b, 0x42, 0xb2, 0x30, 22 | 0xaf, 0x41, 0x24, 0xb2, 0x22, 0x20, 0x22, 0xa7, 0x42, 0xb2, 0x31, 0x3a, 23 | 0x59, 0xb2, 0x58, 0x3a, 0x97, 0x53, 0xaa, 0x38, 0x2c, 0x32, 0x30, 0x30, 24 | 0x3a, 0x97, 0x53, 0xaa, 0x31, 0x31, 0x2c, 0x33, 0x33, 0x00, 0x54, 0x09, 25 | 0x3c, 0x00, 0x8b, 0x42, 0xa7, 0x97, 0x59, 0x2c, 0x33, 0x32, 0x3a, 0x42, 26 | 0xb2, 0x31, 0xaa, 0x28, 0x59, 0xb1, 0x31, 0x39, 0x34, 0x33, 0x29, 0x3a, 27 | 0x97, 0x53, 0xaa, 0x31, 0x31, 0x2c, 0x42, 0xac, 0x33, 0x33, 0x3a, 0x8b, 28 | 0x42, 0xa7, 0x59, 0xb2, 0x59, 0xaa, 0x34, 0x30, 0x3a, 0x97, 0x59, 0x2c, 29 | 0x38, 0x33, 0x3a, 0x97, 0x53, 0xaa, 0x38, 0x2c, 0x32, 0x35, 0x35, 0xab, 30 | 0x59, 0xad, 0x32, 0x30, 0x00, 0x69, 0x09, 0x46, 0x00, 0x46, 0xb2, 0x31, 31 | 0xab, 0x46, 0x3a, 0x91, 0xab, 0x28, 0x46, 0xb2, 0x31, 0x29, 0x89, 0x35, 32 | 0x30, 0x00, 0xaa, 0x09, 0x50, 0x00, 0x58, 0xb2, 0x58, 0xaa, 0x31, 0x3a, 33 | 0x99, 0x42, 0x24, 0x3b, 0x3a, 0x8b, 0xc2, 0x28, 0x58, 0xaa, 0x33, 0x29, 34 | 0xb3, 0xb1, 0x33, 0x32, 0xa7, 0x97, 0x53, 0xaa, 0x31, 0x2c, 0x31, 0x30, 35 | 0x3a, 0x97, 0x53, 0xaa, 0x31, 0x31, 0x2c, 0x30, 0x3a, 0x81, 0x49, 0xb2, 36 | 0x30, 0xa4, 0x32, 0x35, 0x34, 0x3a, 0x97, 0x35, 0x33, 0x32, 0x38, 0x30, 37 | 0x2c, 0x49, 0x3a, 0x82, 0x3a, 0x8a, 0x00, 0xe1, 0x09, 0x5a, 0x00, 0x91, 38 | 0x32, 0xaa, 0x28, 0x58, 0xb3, 0x31, 0x39, 0x37, 0x38, 0x29, 0x89, 0x35, 39 | 0x30, 0x3a, 0x99, 0x22, 0x93, 0x22, 0xa6, 0x37, 0x29, 0x22, 0x43, 0x4f, 40 | 0x4e, 0x47, 0x52, 0x41, 0x54, 0x55, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 41 | 0x53, 0x21, 0x20, 0x59, 0x4f, 0x55, 0x20, 0x57, 0x4f, 0x4e, 0x21, 0x21, 42 | 0x22, 0x00, 0x00, 0x00 43 | }; 44 | unsigned int builtinprg_6_prg_len = 484; 45 | -------------------------------------------------------------------------------- /ESP8266-NTSC-C64/builtinprg_7.h: -------------------------------------------------------------------------------- 1 | const PROGMEM unsigned char builtinprg_7_prg[] = { 2 | 0x01, 0x08, 0x4b, 0x08, 0x00, 0x00, 0x41, 0x30, 0xb2, 0xbb, 0x28, 0xab, 3 | 0x54, 0x49, 0x29, 0x3a, 0x58, 0xb2, 0x32, 0x30, 0x3a, 0x59, 0xb2, 0x31, 4 | 0x36, 0x3a, 0x53, 0xb2, 0xab, 0x31, 0x30, 0x30, 0x3a, 0x4c, 0xb2, 0x31, 5 | 0x3a, 0x41, 0xb2, 0x37, 0x38, 0x31, 0x3a, 0x42, 0xb2, 0x37, 0x38, 0x32, 6 | 0x3a, 0x43, 0xb2, 0x37, 0x38, 0x33, 0x3a, 0x44, 0xb2, 0x36, 0x35, 0x35, 7 | 0x32, 0x30, 0x3a, 0x56, 0xb2, 0x35, 0x33, 0x32, 0x38, 0x30, 0x3a, 0x97, 8 | 0x56, 0x2c, 0x36, 0x00, 0x9a, 0x08, 0x01, 0x00, 0x47, 0x24, 0xb2, 0x22, 9 | 0x20, 0x9f, 0xa4, 0xc6, 0xc0, 0x2d, 0xc0, 0xc6, 0xa4, 0x20, 0x22, 0x3a, 10 | 0x58, 0x24, 0xb2, 0x22, 0x20, 0x11, 0x9d, 0x9e, 0x3a, 0x22, 0x3a, 0x99, 11 | 0x22, 0x93, 0x22, 0x3a, 0x41, 0x24, 0xb2, 0x22, 0xec, 0xea, 0x22, 0x3a, 12 | 0x42, 0x24, 0xb2, 0x22, 0xec, 0xa0, 0x22, 0x3a, 0x43, 0x24, 0xb2, 0x22, 13 | 0xec, 0xfb, 0xa0, 0xea, 0x22, 0x3a, 0x44, 0x24, 0xb2, 0x22, 0x11, 0x9d, 14 | 0x9d, 0x9d, 0x9d, 0x9d, 0x9d, 0x9d, 0x9d, 0x9d, 0x9d, 0x22, 0x00, 0xe9, 15 | 0x08, 0x02, 0x00, 0x97, 0x41, 0x2c, 0x31, 0x39, 0x3a, 0x97, 0x42, 0x2c, 16 | 0x31, 0x35, 0x3a, 0x97, 0x43, 0x2c, 0x30, 0x3a, 0x9e, 0x44, 0x3a, 0x99, 17 | 0x22, 0x9b, 0x12, 0x22, 0x41, 0x24, 0x22, 0x11, 0x9d, 0x9d, 0x22, 0x42, 18 | 0x24, 0x22, 0x1d, 0x1d, 0x92, 0xaf, 0xa2, 0xa2, 0xbb, 0x12, 0xec, 0xf6, 19 | 0x22, 0x44, 0x24, 0x42, 0x24, 0x41, 0x24, 0x42, 0x24, 0x41, 0x24, 0x22, 20 | 0xec, 0xe7, 0x22, 0x44, 0x24, 0x43, 0x24, 0x43, 0x24, 0x42, 0x24, 0x44, 21 | 0x24, 0x22, 0x91, 0x91, 0x22, 0x00, 0x35, 0x09, 0x03, 0x00, 0x50, 0xb2, 22 | 0xb5, 0x28, 0xbb, 0x28, 0x31, 0x29, 0xac, 0x33, 0x38, 0xaa, 0x31, 0x29, 23 | 0x3a, 0x51, 0xb2, 0x31, 0x3a, 0x53, 0xb2, 0x53, 0xaa, 0x31, 0x30, 0x30, 24 | 0x3a, 0x4c, 0xb2, 0x4c, 0xaa, 0xb5, 0x28, 0xbb, 0x28, 0x31, 0x29, 0xac, 25 | 0x32, 0x29, 0x3a, 0x54, 0xb2, 0x30, 0x3a, 0x54, 0x4d, 0xb2, 0xb5, 0x28, 26 | 0x28, 0x31, 0x30, 0xab, 0x4c, 0x29, 0xad, 0x32, 0x29, 0x3a, 0x91, 0xab, 27 | 0x28, 0x4c, 0xb2, 0x31, 0x31, 0x29, 0x89, 0x38, 0x3a, 0x00, 0x7e, 0x09, 28 | 0x04, 0x00, 0x4b, 0xb2, 0x31, 0x35, 0x3a, 0x53, 0x49, 0xb2, 0x35, 0x34, 29 | 0x32, 0x37, 0x32, 0x3a, 0x97, 0x53, 0x49, 0xaa, 0x32, 0x34, 0x2c, 0x4b, 30 | 0x3a, 0x97, 0x53, 0x49, 0xaa, 0x33, 0x2c, 0x4b, 0x3a, 0x97, 0x53, 0x49, 31 | 0xaa, 0x32, 0x2c, 0x4b, 0x3a, 0x8d, 0x39, 0x3a, 0x99, 0x22, 0x05, 0x13, 32 | 0x53, 0x43, 0x4f, 0x52, 0x45, 0x3a, 0x20, 0x22, 0x2c, 0x53, 0x2c, 0x22, 33 | 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x3a, 0x20, 0x22, 0x2c, 0x4c, 0x00, 0xcd, 34 | 0x09, 0x05, 0x00, 0x54, 0xb2, 0x54, 0xaa, 0x31, 0x3a, 0x8b, 0x54, 0xb1, 35 | 0x54, 0x4d, 0xa7, 0x51, 0xb2, 0x51, 0xaa, 0x31, 0x3a, 0x54, 0xb2, 0x30, 36 | 0x3a, 0x97, 0x41, 0x2c, 0x51, 0x3a, 0x97, 0x42, 0x2c, 0x50, 0x3a, 0x97, 37 | 0x43, 0x2c, 0x30, 0x3a, 0x9e, 0x44, 0x3a, 0x99, 0x58, 0x24, 0x3a, 0x91, 38 | 0xab, 0x28, 0x51, 0xb2, 0x31, 0x35, 0xaf, 0x58, 0xaa, 0x38, 0xb1, 0x50, 39 | 0xaf, 0x58, 0xb3, 0x50, 0x29, 0x89, 0x33, 0x3a, 0x91, 0xab, 0x28, 0x51, 40 | 0xb1, 0x59, 0x29, 0x89, 0x37, 0x00, 0x12, 0x0a, 0x06, 0x00, 0x97, 0x41, 41 | 0x2c, 0x59, 0x3a, 0x97, 0x42, 0x2c, 0x58, 0x3a, 0x97, 0x43, 0x2c, 0x30, 42 | 0x3a, 0x9e, 0x44, 0x3a, 0x99, 0x47, 0x24, 0x3a, 0xa1, 0x41, 0x24, 0x3a, 43 | 0x58, 0xb2, 0x58, 0xaa, 0x28, 0x41, 0x24, 0xb2, 0x22, 0x9d, 0x22, 0xaf, 44 | 0x58, 0xb1, 0x30, 0x29, 0xaa, 0x28, 0x28, 0x41, 0x24, 0xb2, 0x22, 0x1d, 45 | 0x22, 0xaf, 0x58, 0xb3, 0x33, 0x31, 0x29, 0xac, 0xab, 0x31, 0x29, 0x3a, 46 | 0x89, 0x35, 0x00, 0x5e, 0x0a, 0x07, 0x00, 0x99, 0x22, 0x13, 0x11, 0x11, 47 | 0x1c, 0x20, 0x47, 0x41, 0x4d, 0x45, 0x20, 0x4f, 0x56, 0x45, 0x52, 0x21, 48 | 0x20, 0x48, 0x49, 0x54, 0x20, 0x53, 0x50, 0x41, 0x43, 0x45, 0x20, 0x54, 49 | 0x4f, 0x20, 0x52, 0x45, 0x54, 0x52, 0x59, 0x22, 0x3a, 0xa1, 0x41, 0x24, 50 | 0x3a, 0x91, 0xab, 0x28, 0x41, 0x24, 0xb2, 0x22, 0x20, 0x22, 0x29, 0x89, 51 | 0x30, 0x3a, 0x97, 0x56, 0x2c, 0x28, 0xc2, 0x28, 0x56, 0x29, 0xaa, 0x31, 52 | 0x29, 0xaf, 0x4b, 0x3a, 0x89, 0x37, 0x00, 0xae, 0x0a, 0x08, 0x00, 0x99, 53 | 0x22, 0x13, 0x11, 0x11, 0x1e, 0x20, 0x43, 0x4f, 0x4e, 0x47, 0x52, 0x41, 54 | 0x54, 0x55, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x20, 0x59, 0x4f, 0x55, 55 | 0x20, 0x57, 0x4f, 0x4e, 0x21, 0x20, 0x48, 0x49, 0x54, 0x20, 0x53, 0x50, 56 | 0x41, 0x43, 0x45, 0x22, 0x3a, 0xa1, 0x41, 0x24, 0x3a, 0x91, 0xab, 0x28, 57 | 0x41, 0x24, 0xb2, 0x22, 0x20, 0x22, 0x29, 0x89, 0x30, 0x3a, 0x97, 0x56, 58 | 0x2c, 0x28, 0xc2, 0x28, 0x56, 0x29, 0xaa, 0x31, 0x29, 0xaf, 0x4b, 0x3a, 59 | 0x89, 0x38, 0x00, 0xeb, 0x0a, 0x09, 0x00, 0x97, 0x53, 0x49, 0xaa, 0x35, 60 | 0x2c, 0x37, 0x35, 0x3a, 0x97, 0x53, 0x49, 0xaa, 0x36, 0x2c, 0x4b, 0x3a, 61 | 0x97, 0x53, 0x49, 0xaa, 0x34, 0x2c, 0x30, 0x3a, 0x97, 0x53, 0x49, 0xaa, 62 | 0x31, 0x2c, 0x32, 0x37, 0xab, 0x54, 0x4d, 0x3a, 0x97, 0x53, 0x49, 0x2c, 63 | 0x31, 0x30, 0x33, 0x3a, 0x97, 0x53, 0x49, 0xaa, 0x34, 0x2c, 0x31, 0x32, 64 | 0x39, 0x3a, 0x8e, 0x00, 0x00, 0x00 65 | }; 66 | unsigned int builtinprg_7_prg_len = 750; 67 | -------------------------------------------------------------------------------- /ESP8266-NTSC-C64/builtinprg_8.h: -------------------------------------------------------------------------------- 1 | const PROGMEM unsigned char builtinprg_8_prg[] = { 2 | 0x01, 0x08, 0x49, 0x08, 0x00, 0x00, 0x87, 0x41, 0x24, 0x2c, 0x42, 0x24, 3 | 0x3a, 0x99, 0x22, 0x05, 0x93, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 4 | 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x20, 0x20, 0x5e, 0x9d, 0x11, 0xad, 5 | 0x53, 0x54, 0x41, 0x52, 0x54, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 6 | 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 7 | 0x20, 0x20, 0x46, 0x49, 0x4e, 0x49, 0x53, 0x48, 0xbd, 0x91, 0x9d, 0x5e, 8 | 0x22, 0x00, 0x91, 0x08, 0x01, 0x00, 0x43, 0x24, 0xb2, 0x41, 0x24, 0xaa, 9 | 0x42, 0x24, 0xaa, 0x42, 0x24, 0x3a, 0x44, 0x24, 0xb2, 0x42, 0x24, 0xaa, 10 | 0x42, 0x24, 0xaa, 0x41, 0x24, 0x3a, 0x45, 0x24, 0xb2, 0x42, 0x24, 0xaa, 11 | 0x42, 0x24, 0xaa, 0x42, 0x24, 0xaa, 0xc8, 0x28, 0x41, 0x24, 0x2c, 0x32, 12 | 0x39, 0x29, 0x3a, 0x97, 0x35, 0x33, 0x32, 0x38, 0x31, 0x2c, 0x35, 0x3a, 13 | 0x99, 0x22, 0x13, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x22, 14 | 0x3b, 0x00, 0xd6, 0x08, 0x02, 0x00, 0x58, 0xb2, 0x33, 0x39, 0x3a, 0x59, 15 | 0xb2, 0xb5, 0x28, 0xbb, 0x28, 0x31, 0x29, 0xac, 0x34, 0xaa, 0x39, 0x29, 16 | 0xac, 0x34, 0x30, 0xaa, 0x31, 0x30, 0x32, 0x34, 0x3a, 0x54, 0xb2, 0x30, 17 | 0x3a, 0x46, 0x24, 0xb2, 0x44, 0x24, 0x3a, 0x8b, 0xc2, 0x28, 0x32, 0x31, 18 | 0x31, 0x29, 0xb2, 0x33, 0x34, 0xa7, 0x56, 0x24, 0xb2, 0x22, 0x59, 0x4f, 19 | 0x55, 0x20, 0x57, 0x4f, 0x4e, 0x21, 0x22, 0x3a, 0x89, 0x39, 0x00, 0x12, 20 | 0x09, 0x03, 0x00, 0x99, 0x46, 0x24, 0x22, 0x91, 0x91, 0x91, 0x91, 0x91, 21 | 0x22, 0x3b, 0x3a, 0x97, 0x35, 0x34, 0x32, 0x37, 0x32, 0xaa, 0x58, 0xaa, 22 | 0x59, 0x2c, 0x30, 0x3a, 0x97, 0x59, 0xaa, 0x58, 0x2c, 0x38, 0x31, 0x3a, 23 | 0x8b, 0xc2, 0x28, 0x59, 0xab, 0x31, 0xaa, 0x58, 0x29, 0xb3, 0xb1, 0x33, 24 | 0x32, 0xa7, 0x56, 0x24, 0xb2, 0x22, 0x22, 0x3a, 0x89, 0x39, 0x00, 0x30, 25 | 0x09, 0x04, 0x00, 0xa1, 0x47, 0x24, 0x3a, 0x8b, 0x47, 0x24, 0xb2, 0x22, 26 | 0x4a, 0x22, 0xaf, 0x54, 0xb2, 0x30, 0xa7, 0x54, 0xb2, 0x36, 0x3a, 0x46, 27 | 0x24, 0xb2, 0x43, 0x24, 0x00, 0x4a, 0x09, 0x05, 0x00, 0x8b, 0x47, 0x24, 28 | 0xb2, 0x22, 0x44, 0x22, 0xaf, 0x54, 0xb2, 0x30, 0xa7, 0x54, 0xb2, 0x36, 29 | 0x3a, 0x46, 0x24, 0xb2, 0x45, 0x24, 0x00, 0x64, 0x09, 0x06, 0x00, 0x8b, 30 | 0x54, 0xb1, 0x30, 0xa7, 0x54, 0xb2, 0x54, 0xab, 0x31, 0x3a, 0x8b, 0x54, 31 | 0xb2, 0x30, 0xa7, 0x46, 0x24, 0xb2, 0x44, 0x24, 0x00, 0x84, 0x09, 0x07, 32 | 0x00, 0x97, 0x59, 0xaa, 0x58, 0x2c, 0x33, 0x32, 0x3a, 0x58, 0xb2, 0x58, 33 | 0xab, 0x31, 0x3a, 0x8b, 0x58, 0xb3, 0x30, 0xa7, 0x99, 0x22, 0x20, 0x22, 34 | 0x3b, 0x3a, 0x89, 0x32, 0x00, 0xc6, 0x09, 0x08, 0x00, 0x89, 0x33, 0x3a, 35 | 0x83, 0x22, 0x20, 0x20, 0x20, 0x12, 0x9e, 0xd7, 0x92, 0x81, 0x3d, 0x9d, 36 | 0x9d, 0x9d, 0x9d, 0x9d, 0x11, 0x20, 0x9e, 0xbc, 0x12, 0x20, 0x20, 0x92, 37 | 0x20, 0x9d, 0x9d, 0x9d, 0x9d, 0x9d, 0x11, 0x20, 0x20, 0x81, 0xad, 0x20, 38 | 0x20, 0x9d, 0x9d, 0x9d, 0x9d, 0x9d, 0x11, 0x22, 0x2c, 0x22, 0x20, 0x20, 39 | 0x20, 0x20, 0x20, 0x9d, 0x9d, 0x9d, 0x9d, 0x9d, 0x11, 0x22, 0x00, 0x0c, 40 | 0x0a, 0x09, 0x00, 0x99, 0x22, 0x81, 0x93, 0x11, 0x11, 0x11, 0x11, 0x11, 41 | 0x11, 0x11, 0x11, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 42 | 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x47, 0x41, 0x4d, 0x45, 0x20, 0x4f, 43 | 0x56, 0x45, 0x52, 0x9d, 0x9d, 0x9d, 0x9d, 0x9d, 0x9d, 0x9d, 0x9d, 0x11, 44 | 0x11, 0x11, 0x9c, 0x22, 0x56, 0x24, 0x3a, 0x81, 0x54, 0xb2, 0x31, 0xa4, 45 | 0x32, 0x30, 0x30, 0x30, 0x3a, 0x82, 0x3a, 0x8a, 0x00, 0x00, 0x00 46 | }; 47 | unsigned int builtinprg_8_prg_len = 527; 48 | -------------------------------------------------------------------------------- /ESP8266-NTSC-C64/builtinprg_9.h: -------------------------------------------------------------------------------- 1 | const PROGMEM unsigned char builtinprg_9_prg[] = { 2 | 0x01, 0x08, 0x4c, 0x08, 0x00, 0x00, 0x58, 0x24, 0xb2, 0x22, 0x22, 0x3a, 3 | 0x59, 0x24, 0xb2, 0x22, 0x22, 0x3a, 0x48, 0x24, 0xb2, 0x22, 0x93, 0x22, 4 | 0x3a, 0x81, 0x58, 0xb2, 0x31, 0xa4, 0x34, 0x30, 0x3a, 0x58, 0x24, 0xb2, 5 | 0x58, 0x24, 0xaa, 0x22, 0x1d, 0x22, 0x3a, 0x59, 0x24, 0xb2, 0x59, 0x24, 6 | 0xaa, 0x22, 0x11, 0x22, 0x3a, 0x82, 0x3a, 0x58, 0xb2, 0x31, 0x38, 0x3a, 7 | 0x59, 0xb2, 0x31, 0x37, 0x3a, 0x52, 0xb2, 0x59, 0x3a, 0x5a, 0xb2, 0x30, 8 | 0x3a, 0x53, 0xb2, 0x30, 0x00, 0x6d, 0x08, 0x01, 0x00, 0x87, 0x41, 0x24, 9 | 0x2c, 0x42, 0x24, 0x3a, 0x4c, 0xb2, 0x30, 0x3a, 0x97, 0x35, 0x33, 0x32, 10 | 0x38, 0x30, 0x2c, 0x34, 0x3a, 0x97, 0x35, 0x33, 0x32, 0x38, 0x31, 0x2c, 11 | 0x36, 0x00, 0xab, 0x08, 0x02, 0x00, 0x46, 0x24, 0xb2, 0x22, 0x13, 0x22, 12 | 0xaa, 0xc8, 0x28, 0x58, 0x24, 0x2c, 0x58, 0x29, 0xaa, 0xc8, 0x28, 0x59, 13 | 0x24, 0x2c, 0x32, 0x32, 0x29, 0x3a, 0x47, 0x24, 0xb2, 0x22, 0x13, 0x22, 14 | 0xaa, 0xc8, 0x28, 0x58, 0x24, 0x2c, 0x59, 0x29, 0x3a, 0x99, 0x48, 0x24, 15 | 0x42, 0x24, 0x47, 0x24, 0x41, 0x24, 0x46, 0x24, 0x22, 0x9e, 0xa6, 0xa6, 16 | 0xa6, 0x22, 0x3b, 0x00, 0xd6, 0x08, 0x03, 0x00, 0x8b, 0x59, 0xb2, 0x52, 17 | 0xa7, 0x52, 0xb2, 0xb5, 0x28, 0xbb, 0x28, 0x31, 0x29, 0xac, 0x33, 0x36, 18 | 0x29, 0x3a, 0x8b, 0x5a, 0xb2, 0x30, 0xa7, 0x5a, 0xb2, 0x32, 0x3a, 0x41, 19 | 0xb2, 0x59, 0x3a, 0x8b, 0x4c, 0xb1, 0x34, 0xa7, 0x89, 0x39, 0x00, 0x03, 20 | 0x09, 0x04, 0x00, 0x8b, 0x5a, 0xb2, 0x32, 0x31, 0xaf, 0xc2, 0x28, 0x31, 21 | 0x39, 0x30, 0x34, 0xaa, 0x41, 0x29, 0xb3, 0xb1, 0x33, 0x32, 0xa7, 0x5a, 22 | 0xb2, 0x30, 0x3a, 0x97, 0x31, 0x38, 0x36, 0x34, 0xaa, 0x41, 0x2c, 0x33, 23 | 0x32, 0x3a, 0x53, 0xb2, 0x53, 0xaa, 0x31, 0x00, 0x3d, 0x09, 0x05, 0x00, 24 | 0x8b, 0x5a, 0xb1, 0x30, 0xa7, 0x99, 0x22, 0x13, 0x22, 0xc8, 0x28, 0x58, 25 | 0x24, 0x2c, 0x41, 0x29, 0xc8, 0x28, 0x59, 0x24, 0x2c, 0x5a, 0x29, 0x22, 26 | 0x20, 0x9d, 0x11, 0x05, 0xd1, 0x22, 0x3b, 0x3a, 0x5a, 0xb2, 0x5a, 0xaa, 27 | 0x31, 0x3a, 0x8b, 0x5a, 0xb1, 0x32, 0x33, 0xa7, 0x5a, 0xb2, 0x30, 0x3a, 28 | 0x4c, 0xb2, 0x4c, 0xaa, 0x31, 0x00, 0x79, 0x09, 0x06, 0x00, 0xa1, 0x45, 29 | 0x24, 0x3a, 0x8b, 0x45, 0x24, 0xb2, 0x22, 0x2c, 0x22, 0xb0, 0x45, 0x24, 30 | 0xb2, 0x22, 0x2e, 0x22, 0xa7, 0x99, 0x46, 0x24, 0x22, 0x20, 0x20, 0x20, 31 | 0x22, 0x3a, 0x58, 0xb2, 0x58, 0xaa, 0xc6, 0x28, 0x45, 0x24, 0x29, 0xab, 32 | 0x34, 0x35, 0x3a, 0x8b, 0x58, 0xb3, 0x30, 0xb0, 0x58, 0xb1, 0x33, 0x37, 33 | 0xa7, 0x58, 0xb2, 0x31, 0x38, 0x00, 0x94, 0x09, 0x07, 0x00, 0x8b, 0x59, 34 | 0xb3, 0xb1, 0x52, 0xa7, 0x59, 0xb2, 0x59, 0xab, 0x31, 0x3a, 0x8b, 0x59, 35 | 0xb3, 0x52, 0xa7, 0x59, 0xb2, 0x59, 0xaa, 0x32, 0x00, 0xd4, 0x09, 0x08, 36 | 0x00, 0x48, 0x24, 0xb2, 0x47, 0x24, 0x3a, 0x89, 0x32, 0x3a, 0x83, 0x22, 37 | 0x20, 0x20, 0x20, 0x12, 0x05, 0xd7, 0x81, 0xdf, 0x9d, 0x9d, 0x11, 0x05, 38 | 0xaa, 0x9d, 0x9d, 0x9d, 0x9d, 0x11, 0x92, 0xdf, 0x12, 0x20, 0x20, 0x20, 39 | 0x92, 0x22, 0x2c, 0x22, 0x92, 0x20, 0x20, 0x20, 0x20, 0x20, 0x9d, 0x9d, 40 | 0x11, 0x20, 0x9d, 0x9d, 0x9d, 0x9d, 0x11, 0x20, 0x20, 0x20, 0x20, 0x22, 41 | 0x00, 0x1b, 0x0a, 0x09, 0x00, 0x99, 0x22, 0x05, 0x93, 0x11, 0x11, 0x11, 42 | 0x1d, 0x1d, 0x1d, 0x1d, 0x1d, 0x1d, 0x1d, 0x1d, 0x1d, 0x1d, 0x1d, 0x1d, 43 | 0x1d, 0x1d, 0x1d, 0x47, 0x41, 0x4d, 0x45, 0x20, 0x4f, 0x56, 0x45, 0x52, 44 | 0x11, 0x11, 0x11, 0x9d, 0x9d, 0x9d, 0x9d, 0x9d, 0x9d, 0x9d, 0x9d, 0x9d, 45 | 0x43, 0x41, 0x55, 0x47, 0x48, 0x54, 0x3a, 0x22, 0x53, 0x3a, 0x81, 0x54, 46 | 0xb2, 0x31, 0xa4, 0x33, 0x30, 0x30, 0x30, 0x3a, 0x82, 0x3a, 0x8a, 0x00, 47 | 0x00, 0x00 48 | }; 49 | unsigned int builtinprg_9_prg_len = 542; 50 | -------------------------------------------------------------------------------- /ESP8266-NTSC-C64/cpu.h: -------------------------------------------------------------------------------- 1 | extern void exec6502(int32_t tickcount); 2 | extern void reset6502(); 3 | extern void nmi6502(); 4 | 5 | extern uint8_t read6502(uint16_t address); 6 | extern void write6502(uint16_t address, uint8_t value); 7 | 8 | // compare to https://www.c64-wiki.de/wiki/C128-Zeropagebelegung 9 | const uint16_t addr_cursor_x=211; 10 | const uint16_t addr_cursor_y=214; 11 | const uint16_t addr_cursor_flash=204; 12 | 13 | const uint16_t addr_keybuf_len=198; 14 | const uint16_t addr_keybuf=631; 15 | 16 | const uint16_t addr_STKEY=145; 17 | const uint16_t STKEY_stop=127; 18 | const uint16_t STKEY_none=255; 19 | -------------------------------------------------------------------------------- /ESP8266-NTSC-C64/dmastuff.h: -------------------------------------------------------------------------------- 1 | #ifndef _DMASTUFF_H 2 | #define _DMASTUFF_H 3 | 4 | #ifndef i2c_bbpll 5 | #define i2c_bbpll 0x67 6 | #define i2c_bbpll_en_audio_clock_out 4 7 | #define i2c_bbpll_en_audio_clock_out_msb 7 8 | #define i2c_bbpll_en_audio_clock_out_lsb 7 9 | #define i2c_bbpll_hostid 4 10 | 11 | #define i2c_writeReg_Mask(block, host_id, reg_add, Msb, Lsb, indata) rom_i2c_writeReg_Mask(block, host_id, reg_add, Msb, Lsb, indata) 12 | #define i2c_readReg_Mask(block, host_id, reg_add, Msb, Lsb) rom_i2c_readReg_Mask(block, host_id, reg_add, Msb, Lsb) 13 | #define i2c_writeReg_Mask_def(block, reg_add, indata) \ 14 | i2c_writeReg_Mask(block, block##_hostid, reg_add, reg_add##_msb, reg_add##_lsb, indata) 15 | #define i2c_readReg_Mask_def(block, reg_add) \ 16 | i2c_readReg_Mask(block, block##_hostid, reg_add, reg_add##_msb, reg_add##_lsb) 17 | #endif 18 | #ifndef ETS_SLC_INUM 19 | #define ETS_SLC_INUM 1 20 | #endif 21 | 22 | 23 | 24 | //From i2s_reg.h 25 | #define DR_REG_I2S_BASE (0x60000e00) 26 | 27 | #define I2STXFIFO (DR_REG_I2S_BASE + 0x0000) 28 | #define I2SRXFIFO (DR_REG_I2S_BASE + 0x0004) 29 | #define I2SCONF (DR_REG_I2S_BASE + 0x0008) 30 | #define I2S_BCK_DIV_NUM 0x0000003F 31 | #define I2S_BCK_DIV_NUM_S 22 32 | #define I2S_CLKM_DIV_NUM 0x0000003F 33 | #define I2S_CLKM_DIV_NUM_S 16 34 | #define I2S_BITS_MOD 0x0000000F 35 | #define I2S_BITS_MOD_S 12 36 | #define I2S_RECE_MSB_SHIFT (BIT(11)) 37 | #define I2S_TRANS_MSB_SHIFT (BIT(10)) 38 | #define I2S_I2S_RX_START (BIT(9)) 39 | #define I2S_I2S_TX_START (BIT(8)) 40 | #define I2S_MSB_RIGHT (BIT(7)) 41 | #define I2S_RIGHT_FIRST (BIT(6)) 42 | #define I2S_RECE_SLAVE_MOD (BIT(5)) 43 | #define I2S_TRANS_SLAVE_MOD (BIT(4)) 44 | #define I2S_I2S_RX_FIFO_RESET (BIT(3)) 45 | #define I2S_I2S_TX_FIFO_RESET (BIT(2)) 46 | #define I2S_I2S_RX_RESET (BIT(1)) 47 | #define I2S_I2S_TX_RESET (BIT(0)) 48 | #define I2S_I2S_RESET_MASK 0xf 49 | 50 | #define I2SINT_RAW (DR_REG_I2S_BASE + 0x000c) 51 | #define I2S_I2S_TX_REMPTY_INT_RAW (BIT(5)) 52 | #define I2S_I2S_TX_WFULL_INT_RAW (BIT(4)) 53 | #define I2S_I2S_RX_REMPTY_INT_RAW (BIT(3)) 54 | #define I2S_I2S_RX_WFULL_INT_RAW (BIT(2)) 55 | #define I2S_I2S_TX_PUT_DATA_INT_RAW (BIT(1)) 56 | #define I2S_I2S_RX_TAKE_DATA_INT_RAW (BIT(0)) 57 | 58 | 59 | #define I2SINT_ST (DR_REG_I2S_BASE + 0x0010) 60 | #define I2S_I2S_TX_REMPTY_INT_ST (BIT(5)) 61 | #define I2S_I2S_TX_WFULL_INT_ST (BIT(4)) 62 | #define I2S_I2S_RX_REMPTY_INT_ST (BIT(3)) 63 | #define I2S_I2S_RX_WFULL_INT_ST (BIT(2)) 64 | #define I2S_I2S_TX_PUT_DATA_INT_ST (BIT(1)) 65 | #define I2S_I2S_RX_TAKE_DATA_INT_ST (BIT(0)) 66 | 67 | #define I2SINT_ENA (DR_REG_I2S_BASE + 0x0014) 68 | #define I2S_I2S_TX_REMPTY_INT_ENA (BIT(5)) 69 | #define I2S_I2S_TX_WFULL_INT_ENA (BIT(4)) 70 | #define I2S_I2S_RX_REMPTY_INT_ENA (BIT(3)) 71 | #define I2S_I2S_RX_WFULL_INT_ENA (BIT(2)) 72 | #define I2S_I2S_TX_PUT_DATA_INT_ENA (BIT(1)) 73 | #define I2S_I2S_RX_TAKE_DATA_INT_ENA (BIT(0)) 74 | 75 | #define I2SINT_CLR (DR_REG_I2S_BASE + 0x0018) 76 | #define I2S_I2S_TX_REMPTY_INT_CLR (BIT(5)) 77 | #define I2S_I2S_TX_WFULL_INT_CLR (BIT(4)) 78 | #define I2S_I2S_RX_REMPTY_INT_CLR (BIT(3)) 79 | #define I2S_I2S_RX_WFULL_INT_CLR (BIT(2)) 80 | #define I2S_I2S_PUT_DATA_INT_CLR (BIT(1)) 81 | #define I2S_I2S_TAKE_DATA_INT_CLR (BIT(0)) 82 | 83 | #define I2STIMING (DR_REG_I2S_BASE + 0x001c) 84 | #define I2S_TRANS_BCK_IN_INV (BIT(22)) 85 | #define I2S_RECE_DSYNC_SW (BIT(21)) 86 | #define I2S_TRANS_DSYNC_SW (BIT(20)) 87 | #define I2S_RECE_BCK_OUT_DELAY 0x00000003 88 | #define I2S_RECE_BCK_OUT_DELAY_S 18 89 | #define I2S_RECE_WS_OUT_DELAY 0x00000003 90 | #define I2S_RECE_WS_OUT_DELAY_S 16 91 | #define I2S_TRANS_SD_OUT_DELAY 0x00000003 92 | #define I2S_TRANS_SD_OUT_DELAY_S 14 93 | #define I2S_TRANS_WS_OUT_DELAY 0x00000003 94 | #define I2S_TRANS_WS_OUT_DELAY_S 12 95 | #define I2S_TRANS_BCK_OUT_DELAY 0x00000003 96 | #define I2S_TRANS_BCK_OUT_DELAY_S 10 97 | #define I2S_RECE_SD_IN_DELAY 0x00000003 98 | #define I2S_RECE_SD_IN_DELAY_S 8 99 | #define I2S_RECE_WS_IN_DELAY 0x00000003 100 | #define I2S_RECE_WS_IN_DELAY_S 6 101 | #define I2S_RECE_BCK_IN_DELAY 0x00000003 102 | #define I2S_RECE_BCK_IN_DELAY_S 4 103 | #define I2S_TRANS_WS_IN_DELAY 0x00000003 104 | #define I2S_TRANS_WS_IN_DELAY_S 2 105 | #define I2S_TRANS_BCK_IN_DELAY 0x00000003 106 | #define I2S_TRANS_BCK_IN_DELAY_S 0 107 | 108 | #define I2S_FIFO_CONF (DR_REG_I2S_BASE + 0x0020) 109 | #define I2S_I2S_RX_FIFO_MOD 0x00000007 110 | #define I2S_I2S_RX_FIFO_MOD_S 16 111 | #define I2S_I2S_TX_FIFO_MOD 0x00000007 112 | #define I2S_I2S_TX_FIFO_MOD_S 13 113 | #define I2S_I2S_DSCR_EN (BIT(12)) 114 | #define I2S_I2S_TX_DATA_NUM 0x0000003F 115 | #define I2S_I2S_TX_DATA_NUM_S 6 116 | #define I2S_I2S_RX_DATA_NUM 0x0000003F 117 | #define I2S_I2S_RX_DATA_NUM_S 0 118 | 119 | 120 | #define I2SRXEOF_NUM (DR_REG_I2S_BASE + 0x0024) 121 | #define I2S_I2S_RX_EOF_NUM 0xFFFFFFFF 122 | #define I2S_I2S_RX_EOF_NUM_S 0 123 | 124 | #define I2SCONF_SIGLE_DATA (DR_REG_I2S_BASE + 0x0028) 125 | #define I2S_I2S_SIGLE_DATA 0xFFFFFFFF 126 | #define I2S_I2S_SIGLE_DATA_S 0 127 | 128 | #define I2SCONF_CHAN (DR_REG_I2S_BASE + 0x002c) 129 | #define I2S_RX_CHAN_MOD 0x00000003 130 | #define I2S_RX_CHAN_MOD_S 3 131 | #define I2S_TX_CHAN_MOD 0x00000007 132 | #define I2S_TX_CHAN_MOD_S 0 133 | 134 | 135 | //From sdio_slv.h 136 | 137 | 138 | struct sdio_queue 139 | { 140 | uint32 blocksize:12; 141 | uint32 datalen:12; 142 | uint32 unused:5; 143 | uint32 sub_sof:1; 144 | uint32 eof:1; 145 | uint32 owner:1; 146 | 147 | uint32 buf_ptr; 148 | uint32 next_link_ptr; 149 | }; 150 | 151 | struct sdio_slave_status_element 152 | { 153 | uint32 wr_busy:1; 154 | uint32 rd_empty :1; 155 | uint32 comm_cnt :3; 156 | uint32 intr_no :3; 157 | uint32 rx_length:16; 158 | uint32 res:8; 159 | }; 160 | 161 | union sdio_slave_status 162 | { 163 | struct sdio_slave_status_element elm_value; 164 | uint32 word_value; 165 | }; 166 | 167 | #define RX_AVAILIBLE 2 168 | #define TX_AVAILIBLE 1 169 | #define INIT_STAGE 0 170 | 171 | #define SDIO_QUEUE_LEN 8 172 | #define MOSI 0 173 | #define MISO 1 174 | #define SDIO_DATA_ERROR 6 175 | 176 | #define SLC_INTEREST_EVENT (SLC_TX_EOF_INT_ENA | SLC_RX_EOF_INT_ENA | SLC_RX_UDF_INT_ENA | SLC_TX_DSCR_ERR_INT_ENA) 177 | #define TRIG_TOHOST_INT() SET_PERI_REG_MASK(SLC_INTVEC_TOHOST , BIT0);\ 178 | CLEAR_PERI_REG_MASK(SLC_INTVEC_TOHOST , BIT0) 179 | 180 | 181 | 182 | #endif 183 | 184 | -------------------------------------------------------------------------------- /ESP8266-NTSC-C64/generate_video.c: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * Copyright 2013-2015 Espressif Systems 3 | * 2015 <>< Charles Lohr 4 | * 2017 Hrvoje Cavrak 5 | * 2018 Jan Ostman 6 | * 7 | * This has been rewritten to generate hires NTSC mono graphics 8 | */ 9 | 10 | #include "slc_register.h" 11 | #include 12 | #include "user_interface.h" 13 | #include "pin_mux_register.h" 14 | #include "dmastuff.h" 15 | #include "cpu.h" 16 | 17 | #define WS_I2S_BCK 1 18 | #define WS_I2S_DIV 2 19 | 20 | #define LINE_BUFFER_LENGTH 159 21 | #define NTSC_LINES 525 22 | #define LINETYPES 6 23 | 24 | #define XRES320 //320x200 resolution 25 | #define YOFFS 0 26 | 27 | #define SYNC_LEVEL 0x00000000 28 | #define WHITE_LEVEL 0xffffffff 29 | #define BLACK_LEVEL 0x88888888 30 | 31 | //1111 1111 1110 0000 0000 0011 1111 1111 32 | //1000 0000 0000 1111 1111 1110 0000 0000 33 | //0001 1111 1111 1100 0000 0000 0111 1111 34 | //1111 0000 0000 0001 1111 1111 1100 0000 35 | //0000 0011 1111 1111 1000 0000 0000 1111 36 | //1111 1110 0000 0000 0011 1111 1111 1000 37 | 38 | 39 | 40 | #define colorburst1 0xffe003ff&0xaaaaaaaa|0x88888888 41 | #define colorburst2 0x800ffe00&0xaaaaaaaa|0x88888888 42 | #define colorburst3 0x1ffc007f&0xaaaaaaaa|0x88888888 43 | #define colorburst4 0xf001ffc0&0xaaaaaaaa|0x88888888 44 | #define colorburst5 0x03ff800f&0xaaaaaaaa|0x88888888 45 | #define colorburst6 0xfe003ff8&0xaaaaaaaa|0x80808080 46 | 47 | 48 | 49 | 50 | 51 | 52 | #define colorburst 53 | 54 | extern uint8_t charROM[1024]; 55 | extern uint8_t screenmem[1000]; 56 | extern uint8_t colormem[1000]; 57 | 58 | uint16_t offset; 59 | 60 | uint32_t i2s_dma_buffer[LINE_BUFFER_LENGTH*LINETYPES]; 61 | static struct sdio_queue i2sBufDesc[NTSC_LINES]; 62 | 63 | int current_pixel_line; 64 | 65 | LOCAL void slc_isr(void) { 66 | struct sdio_queue *finishedDesc; 67 | uint32 slc_intr_status; 68 | uint8_t x; 69 | 70 | //Grab int status 71 | slc_intr_status = READ_PERI_REG(SLC_INT_STATUS); 72 | 73 | //clear all intr flags 74 | WRITE_PERI_REG(SLC_INT_CLR, 0xffffffff); 75 | 76 | if (slc_intr_status & SLC_RX_EOF_INT_ST) { 77 | //The DMA subsystem is done with this block: Push it on the queue so it can be re-used. 78 | finishedDesc=(struct sdio_queue*)READ_PERI_REG(SLC_RX_EOF_DES_ADDR); 79 | 80 | struct sdio_queue * next = (struct sdio_queue *)finishedDesc->next_link_ptr; 81 | uint32_t * buffer_pointer = (uint32_t*)next->buf_ptr; 82 | /* 83 | buffer_pointer[17]=0x88888888; 84 | buffer_pointer[18]=0x88888888; 85 | buffer_pointer[19]=0x88888888; 86 | buffer_pointer[20]=0x88888888; 87 | buffer_pointer[21]=0x88888888; 88 | buffer_pointer[22]=0x88888888; 89 | */ 90 | if( next->unused > 1) { 91 | 92 | current_pixel_line = 0; 93 | offset=0; 94 | if ( next->unused == 2) { 95 | #ifdef XRES320 96 | offset=0; 97 | #endif 98 | } 99 | } 100 | 101 | else if( next->unused ) 102 | { 103 | 104 | #ifdef XRES320 105 | uint8_t pixel_column = 30; 106 | uint8_t y = current_pixel_line>>3; 107 | uint8_t *video_line = &screenmem[y*40]; 108 | uint8_t *char_rom = &charROM[0]; 109 | 110 | //buffer_pointer[17]=colorburst1; 111 | //buffer_pointer[18]=colorburst2; 112 | //buffer_pointer[19]=colorburst3; 113 | //buffer_pointer[20]=colorburst4; 114 | //buffer_pointer[21]=colorburst5; 115 | //buffer_pointer[22]=colorburst6; 116 | 117 | 118 | /* For each byte in the line */ 119 | for( x = 0; x < 40; x++ ) 120 | { 121 | 122 | /* encode each 32bit word for the video bytes */ 123 | uint8_t charbyte = video_line[x]; 124 | uint8_t gfxbyte = char_rom[(current_pixel_line&0x07)+(charbyte<<3)]; 125 | if (read6502(addr_cursor_x) == x && 126 | read6502(addr_cursor_y) == y && 127 | read6502(addr_cursor_flash) == 0 ) { 128 | gfxbyte^=0xff; 129 | } 130 | uint32_t character = 0x88888888; 131 | if (gfxbyte&128) character |= 0xfff00000; 132 | if (gfxbyte&64) character |= 0x000fff00; 133 | if (gfxbyte&32) character |= 0x000000ff; 134 | buffer_pointer[pixel_column++] = character; 135 | 136 | character = 0x88888888; 137 | if (gfxbyte&32) character |=0xf0000000; 138 | if (gfxbyte&16) character |=0x0fff0000; 139 | if (gfxbyte&8) character |= 0x0000fff0; 140 | if (gfxbyte&4) character |= 0x0000000f; 141 | buffer_pointer[pixel_column++] = character; 142 | 143 | character = 0x88888888; 144 | if (gfxbyte&4) character |= 0xff000000; 145 | if (gfxbyte&2) character |= 0x00fff000; 146 | if (gfxbyte&1) character |= 0x00000fff; 147 | buffer_pointer[pixel_column++] = character; 148 | 149 | } 150 | 151 | current_pixel_line++; 152 | } 153 | #endif 154 | 155 | } 156 | } 157 | 158 | 159 | /* NTSC signals */ 160 | #define SHORT_SYNC_INTERVAL 6 161 | #define LONG_SYNC_INTERVAL 73 162 | #define SERRATION_PULSE_INT 67 163 | #define BACK_PORCH 20 164 | #define NORMAL_SYNC_INTERVAL 12 165 | #define LINE_SIGNAL_INTERVAL 147 166 | #define PIXEL_LINE_RESET_EVEN 38-12 167 | #define PIXEL_LINE_RESET_ODD 299-12 168 | 169 | 170 | #define SHORT_SYNC 0 171 | #define LONG_SYNC 1 172 | #define BLACK_SIGNAL 2 173 | #define SHORT_TO_LONG 3 174 | #define LONG_TO_SHORT 4 175 | #define LINE_SIGNAL 5 176 | 177 | //Initialize I2S subsystem for DMA circular buffer use 178 | void ICACHE_FLASH_ATTR videoinit() { 179 | int x, y; 180 | 181 | uint32_t * line = i2s_dma_buffer; 182 | 183 | uint8_t single_line_timings[20] = { 184 | SHORT_SYNC_INTERVAL, LONG_SYNC_INTERVAL, SHORT_SYNC_INTERVAL, LONG_SYNC_INTERVAL + 1, 185 | SERRATION_PULSE_INT, NORMAL_SYNC_INTERVAL, SERRATION_PULSE_INT, NORMAL_SYNC_INTERVAL + 1, 186 | NORMAL_SYNC_INTERVAL, LINE_SIGNAL_INTERVAL, 187 | SHORT_SYNC_INTERVAL, LONG_SYNC_INTERVAL, SERRATION_PULSE_INT, NORMAL_SYNC_INTERVAL + 1, 188 | SERRATION_PULSE_INT, NORMAL_SYNC_INTERVAL, SHORT_SYNC_INTERVAL, LONG_SYNC_INTERVAL + 1, 189 | NORMAL_SYNC_INTERVAL, LINE_SIGNAL_INTERVAL, 190 | 191 | }; 192 | 193 | 194 | uint32_t single_line_levels[20] = { 195 | SYNC_LEVEL, BLACK_LEVEL, SYNC_LEVEL, BLACK_LEVEL, 196 | SYNC_LEVEL, BLACK_LEVEL, SYNC_LEVEL, BLACK_LEVEL, 197 | SYNC_LEVEL, BLACK_LEVEL, 198 | SYNC_LEVEL, BLACK_LEVEL, SYNC_LEVEL, BLACK_LEVEL, 199 | SYNC_LEVEL, BLACK_LEVEL, SYNC_LEVEL, BLACK_LEVEL, 200 | SYNC_LEVEL, BLACK_LEVEL, 201 | }; 202 | 203 | 204 | uint8_t i, signal; 205 | 206 | for (signal = 0; signal < 20; signal++) { 207 | for (i=0; i < single_line_timings[signal]; i++, *line++ = single_line_levels[signal]); 208 | if (signal==9||signal==19) { 209 | /* 210 | line[-142]=colorburst1; 211 | line[-141]=colorburst2; 212 | line[-140]=colorburst3; 213 | line[-139]=colorburst4; 214 | line[-138]=colorburst5; 215 | line[-137]=colorburst6; 216 | */ 217 | } 218 | 219 | } 220 | 221 | 222 | 223 | /* Reference: http://martin.hinner.info/vga/pal_tv_diagram_interlace.jpg */ 224 | 225 | uint16_t ntsc_lines[48] = { 226 | /* Even Field */ 227 | 228 | 229 | 3, SHORT_SYNC, 0, 230 | 6, LONG_SYNC, 0, 231 | 9, SHORT_SYNC, 0, 232 | 233 | 234 | 40-YOFFS+1, BLACK_SIGNAL, 0, 235 | 240+YOFFS+1, LINE_SIGNAL, 1, 236 | 263, BLACK_SIGNAL, 0, 237 | 238 | /* Odd Field */ 239 | 240 | 241 | 265, SHORT_SYNC, 0, 242 | 266, SHORT_TO_LONG, 0, 243 | 268, LONG_SYNC, 0, 244 | 269, LONG_TO_SHORT, 0, 245 | 271, SHORT_SYNC, 0, 246 | 247 | 248 | 302-YOFFS+1, BLACK_SIGNAL, 0, 249 | 502+YOFFS+1, LINE_SIGNAL, 1, 250 | 525, BLACK_SIGNAL, 0, 251 | }; 252 | 253 | 254 | uint16_t *ntsc_line = ntsc_lines; 255 | 256 | //Initialize DMA buffer descriptors in such a way that they will form a circular 257 | //buffer. 258 | for (x=0; x 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # esp8266-ntsc-c64-emulator 2 | C64 emulator running on the ESP8266 with NTSC video output and PS/2 keyboard input. 3 | 4 | Original author: Jan Ostman. 5 | Published November 12, 2018 on https://www.hackster.io/janost/esp8266-ntsc-c64-emulator-b91a35 under GPL3+. 6 | 7 | Enhancements by Matthias Goebl at https://github.com/matgoebl/esp8266-ntsc-c64-emulator/ 8 | - PS/2 keyboard input with hotkeys 9 | - Cursor display 10 | - Wifi and OTA update 11 | - Load builtin PRGs with hotkeys 12 | 13 | 14 | ## Limitations 15 | 16 | This simple emulator is a proof-of-concept. 17 | 18 | It only emulates the 6502 CPU of a C64 with basic video output for [PETSCII](https://en.wikipedia.org/wiki/PETSCII) characters. 19 | It lacks emulation of the [SID chip](https://en.wikipedia.org/wiki/MOS_Technology_6582) for sound output and 20 | the [VIC chip](https://en.wikipedia.org/wiki/MOS_Technology_VIC) for sprites and graphics output. 21 | It provides only 16KB of RAM (C64 has 64KB), it shows 14335 basic bytes free (C64: 38911 bytes free). 22 | There is no joystick support, only keyboard input into the basic keyboard buffer, 23 | so many assembly programs that access hardware keyboard registers wont work. 24 | Therefore it is only usable for short commodore basic programs with PETSCII output and no PEEKs and POKEs. 25 | 26 | 27 | ## Used libraries 28 | 29 | The following arduino esp8266 packages are needed: 30 | - WiFiManager 31 | - ArduinoOTA 32 | - PS2Keyboard 33 | 34 | PS2Keyboard requires a small fix: Add the following lines to `packages/esp8266/hardware/esp8266/2.4.2/variants/generic/common.h`: 35 | 36 | #ifndef CORE_INT_EVERY_PIN 37 | #define CORE_INT_EVERY_PIN 38 | #endif /* CORE_INT_EVERY_PIN */ 39 | 40 | 41 | ## OTA mode 42 | 43 | Add your wifi ssid and psk to `wifi_credentials.h`. 44 | Press escape within 1 second after ESP full reset (power-on or shift-escape). 45 | ESP will then enter wifi OTA mode. 46 | Press shift-escape again to boot to C64 mode. 47 | 48 | 49 | ## Keyboard layout 50 | 51 | I used an old PS/2 keyboard with a german layout, for other layouts you have to adapt `PS2Keymap_German_c64`. 52 | 53 | The following keys have a special function: 54 | 55 | | Key | Function | 56 | |-------------|----------------| 57 | | Scroll-lock | Pause on/off | 58 | | Esc | C64 reset | 59 | | Shift-Esc | ESP full reset | 60 | | Tab | Run | 61 | | Shift-Tab | Stop | 62 | | Shift-F1 .. Shift-F12 | Load builtin PRG #1 .. #12 | 63 | 64 | 65 | ## How to compile-in PRGs 66 | 67 | - create e.g. hello-world.bas 68 | - compile basic source into token: `petcat -w2 -o hello-world.prg hello-world.bas` (petcat comes with [VICE](http://vice-emu.sourceforge.net/) 69 | - convert binary into a C include file: `xxd -i hello-world.prg > hello-world.h` 70 | - adapt hello-world.h: change `unsigned char` into `const PROGMEM unsigned char` 71 | 72 | This is automatically performed by the script `prg/prg2h.sh`, that creates `ESP8266-NTSC-C64/builtinprg_X.h`. 73 | 74 | For extracting PRGs from a D64 file use `c1541 -attach *.d64 -extract`. 75 | 76 | 77 | ## Hardware circuitry 78 | 79 | ### Video signal 80 | 81 | This adaptor generates the CVBS video output signal from ESP RX pi. 82 | When connected, flashing via serial doesn'n work - that's the reason OTA has been added. 83 | 84 | ![adaptor for CVBS video signal](doc/esp8266_cbvs.jpg?raw=true "adaptor for CVBS video signal") 85 | 86 | ### PS/2 keyboard 87 | 88 | This simple level shifter limits the 5V output from PS/2 keyboard to 3.3V ESP inputs: 89 | 90 | PS/2 Data -----<|----- ESP D3 91 | 1N4148 92 | 93 | PS/2 Clock -----<|----- ESP D2 94 | 1N4148 95 | (some keyboards might need an additional pullup to 5V at keyboard side) 96 | 97 | ### Audio output 98 | 99 | Audio output is so far only used for beep output at startup, no SID emulation yet. 100 | 101 | GND -------#####---------||----- ESP D1 102 | Mini-Speaker 4u7 103 | 104 | 105 | 106 | ## Builtin PRGs for demonstation 107 | 108 | 109 | When looking for suitable demonstration programs, I found the [BASIC 10Liners contest](http://gkanold.wixsite.com/homeputerium/basic-10liners-2018): 110 | - It allows only short basic programs with no assembler and limited POKEs. 111 | - I found several programs with keyboard input and PETSCII output. 112 | 113 | There is no well-known open source license given for the 10liners, however the authors agreed on publication of the source code. 114 | 115 | I added my selection of working games into the [folder prg/](prg/). 116 | This set is automatically built into the emulator and quickly loaded by pressing function keys (shift + F1..F12). 117 | 118 | 119 | 120 | ### 1. 10 Print 121 | 122 | A one-liner that prints a labyrinth. [https://10print.org/](more) 123 | 124 | 125 | ### 2. Mini Tetris 126 | 127 | by marcosj, Buenos Aires, Argentina 128 | 129 | Keys: A S D 130 | 131 | posted on https://www.lemon64.com/forum/viewtopic.php?t=30998 ( public domain according to [gamebase64](http://www.gamebase64.com/game.php?id=24258&d=45) ) 132 | 133 | edited: changed `rnd(0)` to `rnd(1)` 134 | 135 | 136 | ### 3. Snake 137 | 138 | by Davide Fichera @Naufr4g0 (assumed, as this is also available [here](goo.gl/JGWFqs) pointed from https://twitter.com/naufr4g0 139 | 140 | Keys: A D 141 | 142 | Downloaded from [basic 10liners 2016 for C64](http://gkanold.wixsite.com/homeputerium/blog) and [NOMAM2016 Dropbox](https://www.dropbox.com/sh/vigwx5pko1mbies/AAAH81tgcGzhhUlHEakmUXS6a/C64) 143 | 144 | 145 | ### 4. GorillaX 146 | 147 | by Davide Fichera @Naufr4g0 148 | 149 | Keys: enter number, return 150 | 151 | Downloaded from [basic 10liners 2017 for C64](http://gkanold.wixsite.com/homeputerium/games-list-2017) and [Dropbox](https://www.dropbox.com/sh/6osm1dr46eev4wj/AABCwVsPRGhMffYNZyAAT8e-a/C64) 152 | 153 | 154 | ### 5. Beer Hunter 155 | 156 | by Sander Alsema 157 | 158 | Keys: , . space 159 | 160 | Downloaded from [basic 10liners 2017 for C64](http://gkanold.wixsite.com/homeputerium/games-list-2017) and [Dropbox](https://www.dropbox.com/sh/6osm1dr46eev4wj/AABCwVsPRGhMffYNZyAAT8e-a/C64) 161 | 162 | 163 | ### 6. Bomber 164 | 165 | by Georg "Endurion" Rottensteiner 166 | 167 | Keys: Space 168 | 169 | Downloaded from [basic 10liners 2018 for C64](http://gkanold.wixsite.com/homeputerium/kopie-von-games-list-2018-work) and [Dropbox](https://www.dropbox.com/sh/uufbtdvy6ipqds3/AAAaM_yW_Ifyk_EqFkeNtLDCa/C64) 170 | 171 | 172 | ### 7. Last Outpost 173 | 174 | by 5ace 175 | 176 | Keys: Left Right 177 | 178 | Downloaded from [basic 10liners 2018 for C64](http://gkanold.wixsite.com/homeputerium/kopie-von-games-list-2018-work) and [Dropbox](https://www.dropbox.com/sh/uufbtdvy6ipqds3/AAAaM_yW_Ifyk_EqFkeNtLDCa/C64) 179 | 180 | 181 | ### 8. Duck!!! 182 | 183 | by Sander Alsema 184 | 185 | Keys: J D 186 | 187 | Downloaded from [basic 10liners 2018 for C64](http://gkanold.wixsite.com/homeputerium/kopie-von-games-list-2018-work) and [Dropbox](https://www.dropbox.com/sh/uufbtdvy6ipqds3/AAAaM_yW_Ifyk_EqFkeNtLDCa/C64) 188 | 189 | 190 | ### 9. Egg Collector 191 | 192 | by Sander Alsema 193 | 194 | Keys: , . 195 | 196 | Downloaded from [basic 10liners 2018 for C64](http://gkanold.wixsite.com/homeputerium/kopie-von-games-list-2018-work) and [Dropbox](https://www.dropbox.com/sh/uufbtdvy6ipqds3/AAAaM_yW_Ifyk_EqFkeNtLDCa/C64) 197 | 198 | 199 | ### 10. EasterShip 200 | 201 | by Logiker 202 | 203 | Keys: none, just watch demo 204 | 205 | Downloaded from [basic 10liners 2018 for C64](http://gkanold.wixsite.com/homeputerium/kopie-von-games-list-2018-work) and [Dropbox](https://www.dropbox.com/sh/uufbtdvy6ipqds3/AAAaM_yW_Ifyk_EqFkeNtLDCa/C64) 206 | 207 | 208 | ### 11. Hello World 209 | 210 | just to fill empty slots. 211 | 212 | -------------------------------------------------------------------------------- /doc/c64files_4S64LG0R0i.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/doc/c64files_4S64LG0R0i.jpg -------------------------------------------------------------------------------- /doc/esp8266_cbvs.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/doc/esp8266_cbvs.jpg -------------------------------------------------------------------------------- /doc/img_20180303_021351_joZ1dKHxJP.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/doc/img_20180303_021351_joZ1dKHxJP.jpg -------------------------------------------------------------------------------- /doc/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | [this is a copy of the original page at 5 | https://www.hackster.io/janost/esp8266-ntsc-c64-emulator-b91a35 6 | published under GPL3+] 7 |

ESP8266 NTSC C64 Emulator

8 |

A C64 emulator on the ESP8266 with NTSC output.

9 |

Author: Jan 10 | Ostman

11 |

Published November 12, 2018 on 13 | https://www.hackster.io/janost/esp8266-ntsc-c64-emulator-b91a35 14 | under GPL3+.

17 |

Things used in this project

18 |

Hardware components

Everything 20 | ESP Wemos D1 Mini 21 |

Story

22 |

Can you run a C64 emulation with 40x25 text composite video on 23 | a Wemos D1 Mini without additional components?

24 |

The CPU emulator is a port of Mike Chambers 6502. And the 25 | composite video is based on the work of Cnlohr and Hrvoje Cavrak

29 |

The video is output using DMA i2s and uses only about 10% of 30 | the CPU.The components makes a lowpass filter at 7MHz and a 31 | correct NTSC CVBS signal.

32 |

The video has a resolution of 320x200 and is a subset of the 33 | upcoming ESP8266 TVout library.

34 |

Here is the source code for the C64 emulator.

35 |

These files are required for compiling it on the 36 | Arduino-IDE:

37 |

(A ZIP-file with the source code is attached for download) 38 | [copied into this repository]

40 |

The emulation has 16K free RAM for basic and only support for 41 | the 40x25 text mode.

42 |

Keyboard code needs to be added and keys typed poked into the 43 | keyboard buffer.

44 |

Otherwise it is fully functional.

45 |

Have fun!

46 |

11/12/2018 update:

47 |

I'm in the process of porting my emulators to the ESP32.

48 |

It has better native support for memory and video.

49 | 50 | 51 | -------------------------------------------------------------------------------- /doc/untitled_zuMI9RHZkK_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/doc/untitled_zuMI9RHZkK_small.png -------------------------------------------------------------------------------- /prg/10print.bas: -------------------------------------------------------------------------------- 1 | 10 print chr$(205.5+rnd(1));: goto 10 2 | -------------------------------------------------------------------------------- /prg/Makefile: -------------------------------------------------------------------------------- 1 | BAS=hello-world.bas 10print.bas 2 | #BAS=hello-world.bas mini-tetris_v2.bas print10.bas 3 | #PRG=Compo2017.prg GorillaX_12.prg last-outpost.prg tetrispd.prg mazo.prg bitcoinminer.prg 4 | 5 | all: $(BAS) $(PRG) 6 | n=1; for f in $^; do \ 7 | echo $$n: $$f; \ 8 | echo make $^.h; \ 9 | echo cp $$f preloaded_$$n.$(suffix $f); \ 10 | echo make preloaded_$$n.h; \ 11 | n=`expr $$n + 1`; \ 12 | done 13 | 14 | 15 | %.h: %.prg 16 | xxd -i $< | sed -e 's/unsigned char/const PROGMEM unsigned char/' > $@ 17 | 18 | %.prg: %.bas 19 | petcat -w2 -o $@ $< 20 | 21 | clean: 22 | rm -f *.h preloaded_* #.prg 23 | -------------------------------------------------------------------------------- /prg/MiniTetris/mini-tetris.bas: -------------------------------------------------------------------------------- 1 | 1 a$="efijefijefijefijbfjnhijkbfjnhijkijfgaefjijfgaefjefjkiefbefjkiefbbfjidefj" 2 | 2 a$=a$+"abeieijkaeijijkgabfjiefgehijebfj@abe@dhe":o=207:dime(o):forx=0to50 3 | 3 print," {CBM-M}"," {CBM-G}":p=asc(mid$(a$,x+1)):e(x)=(pand3)+(pand12)*10:next:m=2024 4 | 4 print," {CBM-T}{CBM-T}{CBM-T}{CBM-T}{CBM-T}{CBM-T}{CBM-T}{CBM-T}{CBM-T}{CBM-T}":gosub6:goto7 5 | 5 pokei+e(r),c:pokei+e(r+1),c:pokei+e(r+2),c:pokei+e(r+3),c:c=160:r$="d":return 6 | 6 i=1152:r=h:c=32:gosub5:j=int(rnd(1)*7)*16:r=j:gosub5:r=h:h=j:i=i+9:return 7 | 7 gosub6:w=i:t=i:g=r:k=240:l=1278 8 | 8 gosub15:c=32:gosub5:r=-r*b-g*notb:g=r 9 | 9 i=w:w=i+40:gosub5:gosub15:ifbthen12 10 | 10 getk$:g=randkor((r-4*(k$="s"))and15) 11 | 11 t=w:w=w+(k$=l$)-(k$=r$):l=l+40:goto8 12 | 12 c=o:gosub5:m=m-(l0:w=-t*b-w*notb:l$="a":return 16 | -------------------------------------------------------------------------------- /prg/MiniTetris/mini-tetris.txt: -------------------------------------------------------------------------------- 1 | https://www.lemon64.com/forum/viewtopic.php?t=30998 2 | 3 | marcosj 4 | Location: Buenos Aires, Argentina 5 | 6 | Posted: Thu Aug 13, 2009 3:31 am Post subject: Really tiny Basic Tetris 7 | 8 | Some months ago I wrote this Tetris in C64's Basic with the goal beeing to fit the listing in a single screen. 9 | After some maniac optimization work I achieved it, so the next goal was to make it a full tetris (that means, it needs to show the next piece in a corner). This was no easy, but painfully it worked. But it still was very slow, so then I optimized for speed, and lose some precious space and needed more damn optimizacion to get it. 10 | 11 | So, this is it, enjoy it. At some point I suffered a lot doing it, but I'm kinda proud of this little unusefull crap. 12 | 13 | You command it from keyboard (it used the joystick, but the peek to the CIA and the ANDs wasted a lot of space, and also there is no joystick buffer so some inputs were lost). 14 | A: to move to the left 15 | D: move to the rigth 16 | S: rotate 17 | 18 | MARCOS 19 | -------------------------------------------------------------------------------- /prg/basic-10liners-2016 01SNAKE3/01SNAKE3.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2016 01SNAKE3/01SNAKE3.prg -------------------------------------------------------------------------------- /prg/basic-10liners-2017 06 - GorillaX by Naufr4g0/GorillaX manual.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2017 06 - GorillaX by Naufr4g0/GorillaX manual.jpg -------------------------------------------------------------------------------- /prg/basic-10liners-2017 06 - GorillaX by Naufr4g0/GorillaX_12.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2017 06 - GorillaX by Naufr4g0/GorillaX_12.prg -------------------------------------------------------------------------------- /prg/basic-10liners-2017 06 - GorillaX by Naufr4g0/code.txt: -------------------------------------------------------------------------------- 1 | 0 deffng(x)=int(j)=a(p):readg,t$(0),t$(1),d$,r,z,p$:print"{clear}":f=180:e=251:n=rnd(0)*.02-.01 2 | 1 t=1024:w=int(rnd(1)*5)+2:on-(o+w>39)goto3:h=int(rnd(1)*12):fory=24-hto24:q=t+y*g+o 3 | 2 forx=0tow:pokeq+x,e+26*(x=0):next:next:w(b)=w:h(b)=h:x(b)=o:o=o+w+1:b=b+1:h=z:goto1:data40 4 | 3 s=rnd(1)*b/2:d=b-rnd(1)*b/2:a(0)=x(s)+1:a(1)=x(d)+w(d):b(0)=23-h(s):b(1)=23-h(d) 5 | 4 fori=0to1:poket+b(i)*g+a(i),86:next:print"{home}"int(n*1000+.5)tab(16)s(0)"-"s(1):datawins,scores 6 | 5 print"{home}"tab(20*p);:input"{down*2}ang";w:printtab(20*p);:input"str";s:j=a(p)+.5:k=b(p)-.5:data"{home}{down*2}" 7 | 6 fori=rtoz:pokei,32:next:u=cos(w*{pi}/f)*s/80*(1+2*(p=1)):v=-sin(w*{pi}/f)*s/80:data1104,1183 8 | 7 j=j+u:u=u+n:k=k+v:v=v+.02:pokeh,32:on-(j<0orj>g)goto9:h=t+int(k)*g+j:a=1-a:dataplayer 9 | 8 c=peek(h):pokeh,g+a:on-(c=32)goto7:ifc=86thenm=p-fng(0)and1:s(m)=s(m)+1:o=0:b=0:l=s(m)<3 10 | 9 p=1-p:fori=rtoz:pokei,32:next:on-(o>0)goto5:print"{reverse on}"d$tab(12)p$m+1t$(-l):wait198,1:restore:iflgoto -------------------------------------------------------------------------------- /prg/basic-10liners-2017 06 - GorillaX by Naufr4g0/listing_screen.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2017 06 - GorillaX by Naufr4g0/listing_screen.jpg -------------------------------------------------------------------------------- /prg/basic-10liners-2017 06 - GorillaX by Naufr4g0/readme.txt: -------------------------------------------------------------------------------- 1 | GorillaX by Naufr4g0 2 | ==================== 3 | 4 | Platform: Commodore64 5 | Language: Microsoft BASIC V2 6 | 7 | Description: 8 | This is a classic game for two players. 9 | Your goal is to hit your opponent with a banana using the two variables 10 | at your disposal: angle (ANG) and force (STR) of the shot. 11 | The player who first scores 3 points wins. 12 | 13 | Instructions: 14 | Players use alternately the keyboard to input shot values. 15 | Look at the attached image for more details. 16 | -------------------------------------------------------------------------------- /prg/basic-10liners-2017 06 - GorillaX by Naufr4g0/screenshot.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2017 06 - GorillaX by Naufr4g0/screenshot.jpg -------------------------------------------------------------------------------- /prg/basic-10liners-2017 52 - Beerhunter by Sander Alsema/Commentary for Beerhunter.txt: -------------------------------------------------------------------------------- 1 | --- BEERHUNTER --- 2 | 3 | Written by Sander Alsema for the 10-liner competition 2017. 4 | Language: Commodore 64 Basic v2 5 | Category: PUR-80 6 | 7 | 8 | I prefer VICE, but you can use any emulator that works with *.d64 files. 9 | If you haven't installed it yet, it can be downloaded from their website. 10 | 11 | Here's how to use it: 12 | Click : - File 13 | - Attach disk image -> Drive 8 14 | Select: Beerhunter.d64 15 | Click : Attach 16 | 17 | Now, just as you would with a normal Commodore 64, you can type: 18 | LOAD"$",8 (to load the directory) 19 | LOAD"BEERHUNTER",8 (to load the BEERHUNTER game) 20 | LOAD"BEERHUNTER(LONG)",8 (to load the LONGVERSION of the BEERHUNTER game) 21 | LIST (to view the directory or game listing) 22 | RUN (to run the game) 23 | 24 | Be aware that you are now using a virtual Commodore 64 keyboard. 25 | Therefore the keys will differ slightly from your physical keyboard: 26 | use '2' to display quotation marks. 27 | use '8' to display '('. 28 | use '9' to display ')'. 29 | 30 | --- 31 | 32 | BEERHUNTER is a shooter game for alcoholics. 33 | 34 | A glass of beer descends from the top of the screen. 35 | Your task is to intercept it before it reaches the bottom: 36 | - If you succeed, you will score a pint (instead of a point). 37 | - If you fail, you will lose a liver (instead of a live). 38 | 39 | The game automatically restarts when all livers are gone. 40 | 41 | You can move your hunter to the left and to the right with the '<' and '>' keys. 42 | You can fire with the bar. 43 | 44 | Only one shot can be fired at a time. 45 | 46 | --- 47 | 48 | In this program I used SYS-statements to position the cursor. 49 | However, I did NOT write the machine language routine they call. 50 | It is already present in memory when the computer is turned on. 51 | 52 | 53 | Line 0: Define a string that displays a glass of beer. 54 | Define a string that erases a glass of beer. 55 | Begin with 3 livers. 56 | Horizontally position the hunter in the middle. 57 | Use a variable to access screen memory to reduce code elsewhere. 58 | Begin with zero pints. 59 | Use a variable to access background colour memory to reduce code elsewhere. 60 | 61 | Line 1: Position the glass of beer in the top middle of the screen. 62 | Set the horizontal position it moves to. 63 | Set the direction it moves in. 64 | Shot has not been fired yet (FALSE). 65 | Set character colour to green and clear screen. 66 | Set background and border colour to black. 67 | Set repeat function for all keys. 68 | If all livers gone then restart. 69 | 70 | Line 2: Position cursor to X and Y values. 71 | Display glass of beer. 72 | Remember the X and Y values. 73 | Display game status (pints and livers). 74 | 75 | Line 3: If the glass of beer has reached the horizontal destination then: 76 | - Pick a new horizontal destination at random. 77 | - Find out in what direction that is. 78 | - Move 1 step down. 79 | - If the bottom has been reached then decrease livers and jump to line 1. 80 | 81 | Line 4: Move towards horizontal destination. 82 | Read the keyboard. 83 | If key is ',' or '.' then: 84 | - Clear the hunter. 85 | - Move hunter to the left or the right, depending on key pressed. 86 | 87 | Line 5: If key is bar and shot is NOT fired then: 88 | - Shot is fired (TRUE). 89 | - Set missile coordinates above hunter. 90 | 91 | Line 6: If shot is fired and area above missile is not clear then: 92 | - Shot is not fired (FALSE). 93 | - Increase pints. 94 | - Jump to line 1. 95 | 96 | Line 7: If shot is fired then: 97 | - Clear missile position. 98 | - Move missile up. 99 | - Display missile. 100 | - If missile has reached the top then: 101 | - Shot is not fired anymore (FALSE). 102 | - Clear final missile position. 103 | 104 | Line 8: Make sure the hunter does not go beyond the borders of the screen. 105 | 106 | Line 9: Position cursor to old X and Y values, remembered in line 2. 107 | Erase the glass of beer. 108 | Display the hunter on the bottom of the screen. 109 | Jump to line 2. 110 | -------------------------------------------------------------------------------- /prg/basic-10liners-2017 52 - Beerhunter by Sander Alsema/beerhunter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2017 52 - Beerhunter by Sander Alsema/beerhunter.png -------------------------------------------------------------------------------- /prg/basic-10liners-2017 52 - Beerhunter by Sander Alsema/beerhunter.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2017 52 - Beerhunter by Sander Alsema/beerhunter.prg -------------------------------------------------------------------------------- /prg/basic-10liners-2017 52 - Beerhunter by Sander Alsema/beerhunter_long.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2017 52 - Beerhunter by Sander Alsema/beerhunter_long.prg -------------------------------------------------------------------------------- /prg/basic-10liners-2018 01 - Bomber/Bomber2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2018 01 - Bomber/Bomber2.png -------------------------------------------------------------------------------- /prg/basic-10liners-2018 01 - Bomber/Bombers1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2018 01 - Bomber/Bombers1.png -------------------------------------------------------------------------------- /prg/basic-10liners-2018 01 - Bomber/Compo2017.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2018 01 - Bomber/Compo2017.prg -------------------------------------------------------------------------------- /prg/basic-10liners-2018 01 - Bomber/compo2017 long.bas: -------------------------------------------------------------------------------- 1 | 100 ?"{GREY 1}{CLR}" 2 | POKE53281,3 3 | FORI=0TO39 4 | POKE1984+I,160 5 | POKE56256+I,5 6 | H=INT(3+RND(1)*6) 7 | 200 FORJ=1TOH 8 | POKE1984+I-J*40,102 9 | NEXTJ,I 10 | B$="{LEFT}{LEFT}{LEFT} {GREY 2}{RVSON}{CBM-*}{RVSOFF}{CBM-I}{BLUE}{CBM-P}" 11 | B=0 12 | ?"{HOME}{DOWN}{DOWN}{RIGHT}{RIGHT}";B$; 13 | X=1104 14 | 300 S=54272 15 | POKES+24,15 16 | POKES,50 17 | POKES+1,2 18 | POKES+5,0 19 | POKES+6,255 20 | POKES+4,129 21 | 400 POKES+12,0 22 | POKES+13,255 23 | POKES+7,0 24 | 500 GETA$ 25 | IFB=0ANDA$=" "THEN 26 | B=1 27 | Y=X 28 | POKES+8,200 29 | POKES+11,33 30 | 600 IFBTHEN 31 | POKEY,32 32 | B=1+(Y>1943) 33 | POKES+11,B*33 34 | IFBTHEN 35 | Y=Y+40 36 | POKEY,83 37 | POKES+8,255-Y/20 38 | 700 F=1-F 39 | ON-(F=1)GOTO500 40 | 800 X=X+1 41 | ?B$; 42 | IFPEEK(X+3)<>32THEN 43 | POKES+1,10 44 | POKES+11,0 45 | FORI=0TO254 46 | POKE53280,I 47 | NEXT 48 | RUN 49 | 900 ON2+(X<1978)GOTO500 50 | ?"{CLR}"SPC(7)"CONGRATULATIONS! YOU WON!!" 51 | 52 | 53 | -------------------------------------------------------------------------------- /prg/basic-10liners-2018 01 - Bomber/compo2017.bas: -------------------------------------------------------------------------------- 1 | 10?"{GREY 1}{CLR}":POKE53281,3:FORI=0TO39:POKE1984+I,160:POKE56256+I,5:H=INT(3+RND(1)*6) 2 | 20FORJ=1TOH:POKE1984+I-J*40,102:NEXTJ,I:B$="{LEFT}{LEFT}{LEFT} {GREY 2}{RVSON}{CBM-*}{RVSOFF}{CBM-I}{BLUE}{CBM-P}":B=0:?"{HOME}{DOWN}{DOWN}{RIGHT}{RIGHT}";B$;:X=1104 3 | 30S=54272:POKES+24,15:POKES,50:POKES+1,2:POKES+5,0:POKES+6,255:POKES+4,129 4 | 40POKES+12,0:POKES+13,255:POKES+7,0 5 | 50GETA$:IFB=0ANDA$=" "THENB=1:Y=X:POKES+8,200:POKES+11,33 6 | 60IFBTHENPOKEY,32:B=1+(Y>1943):POKES+11,B*33:IFBTHENY=Y+40:POKEY,83:POKES+8,255-Y/20 7 | 70F=1-F:ON-(F=1)GOTO50 8 | 80X=X+1:?B$;:IFPEEK(X+3)<>32THENPOKES+1,10:POKES+11,0:FORI=0TO254:POKE53280,I:NEXT:RUN 9 | 90ON2+(X<1978)GOTO50:?"{CLR}"SPC(7)"CONGRATULATIONS! YOU WON!!" 10 | 11 | 12 | -------------------------------------------------------------------------------- /prg/basic-10liners-2018 01 - Bomber/compo2017.txt: -------------------------------------------------------------------------------- 1 | This game is a simple Bomber clone. 2 | Your bomber jet is damaged and unfortunately no clear landing area is about. While you're 3 | slowly falling bomb the rocks to get a clear landing. Press SPACE to drop a bomb. You need 4 | all the ground clear to win! -------------------------------------------------------------------------------- /prg/basic-10liners-2018 06 - Last Outpost/last-outpost-readme.txt: -------------------------------------------------------------------------------- 1 | Last Outpost by 5ace 2 | -------------------- 3 | 4 | "PUR-80", Commodore64, Microsoft BASIC V2 5 | 6 | 7 | Story: 8 | ------ 9 | 10 | In a distant future, humans were attacked and almost exterminated by an alien race. 11 | On Planet X there are only a handful of survivors left. 12 | You were chosen as commander of the last outpost to secure the survival of the rest of humanity. 13 | Are you in a position to navigate through your skill and your ability to react the protective screen and thus avert the extraterrestrial threat? 14 | 15 | Humanity is counting on you! 16 | 17 | 18 | 19 | Instructions: 20 | ------------- 21 | 22 | Use cursor left and cursor right to navigate the protective shield. 23 | 24 | Every successfully repelled shot adds a score of 100 points. 25 | After a random number of attacks your level and so the speed of the attack is increased. 26 | You win if you survive level 10. 27 | You loose if you miss a shot. 28 | 29 | Space restarts the game then. 30 | 31 | 32 | 33 | 34 | How to start this game in the emulator: 35 | --------------------------------------- 36 | 1.) Download "vice" emulator from http://vice-emu.sourceforge.net/ 37 | 2.) Execute "vice" and Drag and Drop "last-outpost.prg" into the "vice" window. 38 | This will autostart the game. 39 | 40 | Alternatively select "File"->"Autostart Disk/Tape Image" from the menu. 41 | Select the file "last-outpost.prg" and click on attach. 42 | 43 | 44 | 45 | 46 | Code: 47 | ------------- 48 | 49 | 0 a0=rnd(-ti):x=20:y=16:s=-100:l=1:a=781:b=782:c=783:d=65520:v=53280:pokev,6 50 | 1 g$=" {cyan}{cm @}F{sh asterisk}-{sh asterisk}F{cm @} ":x$=" {down}{left}{yellow}:":print"{clear}":a$="{236}{234}":b$="{236}{160}":c$="{236}{251}{160}{234}":d$="{down}{left*10}" 51 | 2 POKEa,19:POKEb,15:POKEc,0:SYSd:print"{light gray}{reverse on}"a$"{down}{left}{left}"b$"{right}{right}{reverse off}{cm p}{cm i}{cm i}{cm f}{reverse on}{236}{246}"d$b$a$b$a$"{236}{231}"d$c$c$b$d$"{up}{up}" 52 | 3 p=int(rnd(1)*38+1):q=1:s=s+100:l=l+int(rnd(1)*2):t=0:tm=int((10-l)/2):on-(l=11)goto8: 53 | 4 k=15:si=54272:pokesi+24,k:pokesi+3,k:pokesi+2,k:gosub9:print"{white}{home}score: ",s,"level: ",l 54 | 5 t=t+1:ift>tmthenq=q+1:t=0:pokea,q:pokeb,p:pokec,0:sysd:printx$:on-(q=15andx+8>pandxy)goto7 55 | 6 pokea,y:pokeb,x:pokec,0:sysd:printg$:geta$:x=x+(a$="{left}"andx>0)+((a$="{right}"andx<31)*-1):goto5 56 | 7 print"{home}{down}{down}{red} game over! hit space to retry":geta$:on-(a$=" ")goto0:pokev,(peek(v)+1)andk:goto7 57 | 8 print"{home}{down}{down}{green} congratulation you won! hit space":geta$:on-(a$=" ")goto0:pokev,(peek(v)+1)andk:goto8 58 | 9 pokesi+5,75:pokesi+6,k:pokesi+4,0:pokesi+1,27-tm:pokesi,103:pokesi+4,129:return 59 | 60 | 61 | Code-Description: 62 | ------------- 63 | line 0-2: intialize variables and draw background 64 | 65 | line 3: add a score of 100 and potentially increase level. if level 10 (l=11) is over goto the congratulations screen (line 8) 66 | 67 | line 4: intitalize some of the sid-soundchip registers. Jump to Subroutine in line 9 to play a sound. print score and level on screen. 68 | 69 | line 5: draws the bomb and checks if it caught (jump to line 3 "increase level") or it is missed (if so jump to line 7 "game over") 70 | 71 | line 6: Read the keyboard, moves the shield between the boundaries. then goes back to line 5 72 | 73 | line 7: displays game over and waits for space to jump to line 0. 74 | 75 | line 8: displays "you have won!" and waits for space to jump to line 0. 76 | 77 | line 9: Subroutine: Plays a sound and returns 78 | -------------------------------------------------------------------------------- /prg/basic-10liners-2018 06 - Last Outpost/last-outpost.bas: -------------------------------------------------------------------------------- 1 | 0 a0=rnd(-ti):x=20:y=16:s=-100:l=1:a=781:b=782:c=783:d=65520:v=53280:pokev,6 2 | 1 g$=" {cyan}{cm @}F{sh asterisk}-{sh asterisk}F{cm @} ":x$=" {down}{left}{yellow}:":print"{clear}":a$="{236}{234}":b$="{236}{160}":c$="{236}{251}{160}{234}":d$="{down}{left*10}" 3 | 2 POKEa,19:POKEb,15:POKEc,0:SYSd:print"{light gray}{reverse on}"a$"{down}{left}{left}"b$"{right}{right}{reverse off}{cm p}{cm i}{cm i}{cm f}{reverse on}{236}{246}"d$b$a$b$a$"{236}{231}"d$c$c$b$d$"{up}{up}" 4 | 3 p=int(rnd(1)*38+1):q=1:s=s+100:l=l+int(rnd(1)*2):t=0:tm=int((10-l)/2):on-(l=11)goto8: 5 | 4 k=15:si=54272:pokesi+24,k:pokesi+3,k:pokesi+2,k:gosub9:print"{white}{home}score: ",s,"level: ",l 6 | 5 t=t+1:ift>tmthenq=q+1:t=0:pokea,q:pokeb,p:pokec,0:sysd:printx$:on-(q=15andx+8>pandxy)goto7 7 | 6 pokea,y:pokeb,x:pokec,0:sysd:printg$:geta$:x=x+(a$="{left}"andx>0)+((a$="{right}"andx<31)*-1):goto5 8 | 7 print"{home}{down}{down}{red} game over! hit space to retry":geta$:on-(a$=" ")goto0:pokev,(peek(v)+1)andk:goto7 9 | 8 print"{home}{down}{down}{green} congratulation you won! hit space":geta$:on-(a$=" ")goto0:pokev,(peek(v)+1)andk:goto8 10 | 9 pokesi+5,75:pokesi+6,k:pokesi+4,0:pokesi+1,27-tm:pokesi,103:pokesi+4,129:return -------------------------------------------------------------------------------- /prg/basic-10liners-2018 06 - Last Outpost/last-outpost.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2018 06 - Last Outpost/last-outpost.png -------------------------------------------------------------------------------- /prg/basic-10liners-2018 06 - Last Outpost/last-outpost.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2018 06 - Last Outpost/last-outpost.prg -------------------------------------------------------------------------------- /prg/basic-10liners-2018 11 - Duck!!!/Commentary for Duck!!!.txt: -------------------------------------------------------------------------------- 1 | --- Duck!!! --- 2 | 3 | Written by Sander Alsema for the 10-liner competition 2018. 4 | Language: Commodore 64 Basic v2 5 | Category: PUR-80 6 | 7 | 8 | I prefer VICE, but you can use any emulator that works with *.d64 files. 9 | If you haven't installed it yet, it can be downloaded from their website. 10 | 11 | Here's how to use it: 12 | Click : File -> Attach disk image -> Drive 8 13 | Select: Duck!!!.d64 14 | Click : Attach 15 | 16 | Now, just as you would with a normal Commodore 64, you can type: 17 | LOAD"$",8 (to load the directory) 18 | LOAD"DUCK!!!",8 (to load the game) 19 | LIST (to view the directory or game listing) 20 | RUN (to run the game) 21 | 22 | Be aware that you are now using a virtual Commodore 64 keyboard. 23 | Therefore the keys will differ slightly from your physical keyboard. 24 | Use '2' to display quotation marks. 25 | 26 | --- 27 | 28 | In this game you have to help a little duckling dodge cannon balls, while 29 | it's trying to cross the screen. 30 | Every time you successfully dodge a cannon ball, the duckling will move a 31 | step forward, giving you less reaction time to dodge the next one. 32 | If the duckling gets hit, you lose the game. If the duckling reaches the 33 | finish however, you win! 34 | 35 | To dodge: 36 | Press 'J' to jump. 37 | Press 'D' to duck. 38 | 39 | Unlike games that are in an infinite loop, where you just score points 40 | until you die, this game actually has a victory condition. 41 | This means you can win and feel really proud of what you have accomplished! 42 | 43 | --- 44 | 45 | Line 0: Read two strings from a data statement elsewhere in the program, to 46 | make efficient use of the available program space. 47 | These strings will be used to form the 'image' strings. 48 | 49 | Clear the screen and display the start and finish markers in white. 50 | 51 | 52 | Line 1: Create the jump-image-string by adding two empty screen lines under 53 | the duckling. 54 | 55 | Create the stand-image-string by adding two empty screen lines 56 | above the duckling. 57 | 58 | Create the duck-image-string by adding three empty screen lines 59 | above part of the duckling, omitting the leg screen line. 60 | 61 | Set screen color to green. 62 | 63 | Bring the cursor to its starting position. 64 | 65 | 66 | Line 2: Set the horizontal position of the cannon ball to the right of the 67 | Screen. 68 | 69 | Calculate the screen memory position using the vertical position 70 | of the cannon ball, chosen at random from four possible screen 71 | lines. 72 | 73 | Clear the jump/duck timer. 74 | 75 | Set the display-string to the stand-image-string. 76 | 77 | Check to see if the horizonal position of the cursor has reached 78 | the finish. If so then set the victory message and jump to line 9. 79 | 80 | 81 | Line 3: Display the display-string and return the cursor to its original 82 | position. 83 | 84 | Set the color of the cannon ball to black. 85 | 86 | Display the cannon ball. 87 | 88 | Check to see if the screen position to the left of the cannon ball 89 | is blank. If not then clear the victory message and jump to line 9. 90 | 91 | 92 | Line 4: Read the keyboard. 93 | 94 | If 'J' was pressed and the timer was not yet set, then set the 95 | timer to six iterations and set the display-string to the 96 | jump-image-string. 97 | 98 | 99 | Line 5: If 'D' was pressed and the timer was not yet set, then set the 100 | timer to six iterations and set the display-string to the 101 | duck-image-string. 102 | 103 | 104 | Line 6: If the timer is set, then decrease the timer. If in doing so the 105 | timer has cleared, then set the display-string to the 106 | stand-image-string. 107 | 108 | 109 | Line 7: Clear the old cannon ball position. 110 | 111 | Set the new cannon ball position to the left. 112 | 113 | If the cannon ball has reached the left of the screen, then move 114 | the cursor (and therefore the duckling) to the right and jump to 115 | line 2. 116 | 117 | 118 | Line 8: Jump to line 3. 119 | 120 | This line also contains the data for the duckling-string and the 121 | empty-screen-line-string. 122 | 123 | 124 | Line 9: Clear the screen, display 'GAME OVER' in orange and the victory 125 | message (if any) in purple. 126 | 127 | Wait for a while. 128 | 129 | Restart the game. 130 | 131 | --- -------------------------------------------------------------------------------- /prg/basic-10liners-2018 11 - Duck!!!/duck.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2018 11 - Duck!!!/duck.prg -------------------------------------------------------------------------------- /prg/basic-10liners-2018 11 - Duck!!!/duck1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2018 11 - Duck!!!/duck1.png -------------------------------------------------------------------------------- /prg/basic-10liners-2018 28 - Egg Collector/Commentary for Egg collector.txt: -------------------------------------------------------------------------------- 1 | --- Egg collector --- 2 | 3 | Written by Sander Alsema for the 10-liner competition 2018. 4 | Language: Commodore 64 Basic v2 5 | Category: PUR-80 6 | 7 | 8 | I prefer VICE, but you can use any emulator that works with *.d64 files. 9 | If you haven't installed it yet, it can be downloaded from their website. 10 | 11 | Here's how to use it: 12 | Click : File -> Attach disk image -> Drive 8 13 | Select: Egg collector.d64 14 | Click : Attach 15 | 16 | Now, just as you would with a normal Commodore 64, you can type: 17 | LOAD"$",8 (to load the directory) 18 | LOAD"EGG COLLECTOR",8 (to load the game) 19 | LIST (to view the directory or game listing) 20 | RUN (to run the game) 21 | 22 | Be aware that you are now using a virtual Commodore 64 keyboard. 23 | Therefore the keys will differ slightly from your physical keyboard. 24 | Use '2' to display quotation marks. 25 | 26 | --- 27 | 28 | In this game you work on a farm, and it's your job to collect freshly laid 29 | goose eggs. The goose, however, is loose!!! It will not come down from the 30 | ceiling, but continues to lay eggs. You have no other option but to try to 31 | catch them in a little nest. 32 | 33 | You can move the nest: 34 | to the left by pressing '<' 35 | to the right by pressing '>' 36 | 37 | If you move the nest offscreen, it will reappear in the center. 38 | 39 | When you have dropped five eggs, the game is over. 40 | 41 | --- 42 | 43 | Line 0: Clear the horizontal and vertical 'orientation' strings. 44 | 45 | Make sure that a clear screen is the first thing that is displayed. 46 | 47 | Build the orientation strings with cursor movements, right and down. 48 | 49 | Set the nest to begin in the center. 50 | 51 | Set the goose to begin in the center. 52 | 53 | Set the goose's destination to begin in the same place. 54 | 55 | No eggs falling yet. 56 | 57 | Clear the number of eggs caught. 58 | 59 | 60 | Line 1: Read the goose-string and the clear-goose-string from somewhere 61 | else in the program to make efficient use of available space. 62 | 63 | Clear the number of eggs dropped. 64 | 65 | Set the border colour to purple. 66 | 67 | Set the background colour to blue. 68 | 69 | 70 | Line 2: Build the 'position' string for the nest, by making use of parts of 71 | the orientation strings. 72 | 73 | Build the 'position' string for the goose, by making use of parts 74 | of the orientation strings. 75 | 76 | Clear the old goose. 77 | 78 | Display the new goose. 79 | 80 | Display the nest. (without carriage return) 81 | 82 | 83 | Line 3: If the goose has reached its destination: 84 | 85 | - Randomly choose a new destination. 86 | 87 | - If no egg is currently falling then start laying an egg. 88 | 89 | - If five eggs have been dropped, then jump to line 9. 90 | 91 | 92 | Line 4: If the falling egg has reached the level of the nest, and the nest 93 | is actually there: 94 | 95 | - Stop the egg from falling. 96 | 97 | - Clear the egg. 98 | 99 | - Increase the number of eggs caught. 100 | 101 | 102 | Line 5: If the egg is falling: 103 | 104 | - Display the egg, by making use of parts of the orientation 105 | strings. (without carriage return) 106 | 107 | - The next egg will be one screen line lower. 108 | 109 | - If the egg has reached the bottom, then stop the egg from 110 | falling and increase the number of eggs dropped. 111 | 112 | 113 | Line 6: Read the keyboard. 114 | 115 | If the pressed key was ',' or '.' (meaning '<' or '>'): 116 | 117 | - Clear the nest. 118 | 119 | - Calculate the new position of the nest using the ascii value of 120 | the pressed key. 121 | 122 | - If the nest goes offscreen then reposition it in the center. 123 | 124 | 125 | Line 7: If the goose is not at its destination, then move one step towards 126 | it. 127 | 128 | 129 | Line 8: Set the position string for clearing the old goose to the current 130 | position string of the goose. 131 | 132 | Jump to line 2. 133 | 134 | This line also holds the data for the goose string and its clearing 135 | string. 136 | 137 | 138 | Line 9: Display "GAME OVER" and the number of eggs caught. 139 | 140 | Wait a little while. 141 | 142 | Restart the game. 143 | 144 | --- -------------------------------------------------------------------------------- /prg/basic-10liners-2018 28 - Egg Collector/egg1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2018 28 - Egg Collector/egg1.png -------------------------------------------------------------------------------- /prg/basic-10liners-2018 28 - Egg Collector/egg_collector.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2018 28 - Egg Collector/egg_collector.prg -------------------------------------------------------------------------------- /prg/basic-10liners-2018 53 - EasterShip 2018/01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2018 53 - EasterShip 2018/01.png -------------------------------------------------------------------------------- /prg/basic-10liners-2018 53 - EasterShip 2018/02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2018 53 - EasterShip 2018/02.png -------------------------------------------------------------------------------- /prg/basic-10liners-2018 53 - EasterShip 2018/03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2018 53 - EasterShip 2018/03.png -------------------------------------------------------------------------------- /prg/basic-10liners-2018 53 - EasterShip 2018/04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2018 53 - EasterShip 2018/04.png -------------------------------------------------------------------------------- /prg/basic-10liners-2018 53 - EasterShip 2018/05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2018 53 - EasterShip 2018/05.png -------------------------------------------------------------------------------- /prg/basic-10liners-2018 53 - EasterShip 2018/06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2018 53 - EasterShip 2018/06.png -------------------------------------------------------------------------------- /prg/basic-10liners-2018 53 - EasterShip 2018/07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2018 53 - EasterShip 2018/07.png -------------------------------------------------------------------------------- /prg/basic-10liners-2018 53 - EasterShip 2018/08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2018 53 - EasterShip 2018/08.png -------------------------------------------------------------------------------- /prg/basic-10liners-2018 53 - EasterShip 2018/09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2018 53 - EasterShip 2018/09.png -------------------------------------------------------------------------------- /prg/basic-10liners-2018 53 - EasterShip 2018/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2018 53 - EasterShip 2018/11.png -------------------------------------------------------------------------------- /prg/basic-10liners-2018 53 - EasterShip 2018/EasterShip 2018.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2018 53 - EasterShip 2018/EasterShip 2018.docx -------------------------------------------------------------------------------- /prg/basic-10liners-2018 53 - EasterShip 2018/EasterShip 2018.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2018 53 - EasterShip 2018/EasterShip 2018.gif -------------------------------------------------------------------------------- /prg/basic-10liners-2018 53 - EasterShip 2018/EasterShip 2018.prg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2018 53 - EasterShip 2018/EasterShip 2018.prg -------------------------------------------------------------------------------- /prg/basic-10liners-2018 53 - EasterShip 2018/EasterShip 2018_2.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matgoebl/esp8266-ntsc-c64-emulator/91f351980fc4f557200c5655babb12576f87cd32/prg/basic-10liners-2018 53 - EasterShip 2018/EasterShip 2018_2.docx -------------------------------------------------------------------------------- /prg/hello-world.bas: -------------------------------------------------------------------------------- 1 | 10 for i=1 to 10 2 | 20 print "hello world!",i 3 | 30 next 4 | -------------------------------------------------------------------------------- /prg/prg2h.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | [ $# = 0 ] && set \ 4 | 10print.bas \ 5 | "MiniTetris/mini-tetris.bas" \ 6 | "basic-10liners-2016 01SNAKE3/01SNAKE3.prg" \ 7 | "basic-10liners-2017 06 - GorillaX by Naufr4g0/GorillaX_12.prg" \ 8 | "basic-10liners-2017 52 - Beerhunter by Sander Alsema/beerhunter.prg" \ 9 | "basic-10liners-2018 01 - Bomber/Compo2017.prg" \ 10 | "basic-10liners-2018 06 - Last Outpost/last-outpost.prg" \ 11 | 'basic-10liners-2018 11 - Duck!!!/duck.prg' \ 12 | 'basic-10liners-2018 28 - Egg Collector/egg_collector.prg' \ 13 | 'basic-10liners-2018 53 - EasterShip 2018/EasterShip 2018.prg' \ 14 | hello-world.bas \ 15 | hello-world.bas \ 16 | 17 | n=1 18 | for f in "$@"; do 19 | echo "$n. $f" 20 | prg="builtinprg_$n.prg" 21 | code="../ESP8266-NTSC-C64/builtinprg_$n.h" 22 | case "$f" in 23 | *.bas) petcat -w2 -o "$prg" "$f" ;; 24 | *.prg) cp "$f" "$prg" ;; 25 | *) echo "cannot convert $f"; exit 1 ;; 26 | esac 27 | xxd -i "$prg" | sed -e 's/unsigned char/const PROGMEM unsigned char/' > "$code" 28 | n=`expr "$n" + 1` 29 | done 30 | 31 | rm -f builtinprg_* 32 | --------------------------------------------------------------------------------