|
| 1 | +; ------------------------------------------------------------------------------ |
| 2 | +; LM80C - FIRMWARE - R2.2 |
| 3 | +; ------------------------------------------------------------------------------ |
| 4 | +; The following code is intended to be used with LM80C Z80-based computer |
| 5 | +; designed by Leonardo Miliani. More info at |
| 6 | +; www DOT leonardomiliani DOT com |
| 7 | +; ------------------------------------------------------------------------------ |
| 8 | +; Coding/Editing/Compiling: |
| 9 | +; Original init code for MC68B05 by Grant Searle |
| 10 | +; Original SIO/CTC/PIO init code by Mario Blunk |
| 11 | +; NASCOM BASIC originally modified by Gran Searle |
| 12 | +; Code modified and adapted for LM80C by Leonardo Miliani |
| 13 | +; |
| 14 | +; Edited with Atom Editor |
| 15 | +; |
| 16 | +; Compiled with ZASM assembler 4.2.4 |
| 17 | +; https://k1.spdns.de/Develop/Projects/zasm-4.0/Distributions/ |
| 18 | +; ------------------------------------------------------------------------------ |
| 19 | +; Copyright notes: |
| 20 | +; Parts of the code (c) Grant Searle - free for non commercial use |
| 21 | +; Please include this advice and the note to the attribution of the original |
| 22 | +; version to Grant Searle if you intend to redistribuite it |
| 23 | +; http://searle.hostei.com/grant/index.html |
| 24 | + |
| 25 | +; |
| 26 | +; Parts of the code (c) Mario Blunk |
| 27 | +; http://www.trainz.de |
| 28 | +; |
| 29 | +; NASCOM ROM BASIC Ver 4.7, (C) 1978 Microsoft |
| 30 | +; Scanned from source published in 80-BUS NEWS from Vol 2, Issue 3 |
| 31 | +; (May-June 1983) to Vol 3, Issue 3 (May-June 1984) |
| 32 | +; Adapted for the freeware Zilog Macro Assembler 2.10 to produce |
| 33 | +; the original ROM code (checksum A934H). PA |
| 34 | +; |
| 35 | +; Parts of the code by Leonardo Miliani |
| 36 | +; www DOT leonardomiliani DOT com |
| 37 | +; ------------------------------------------------------------------------------ |
| 38 | +; Code Revision: |
| 39 | +; R1.3 - 20190521 - Added preliminary support for video cursor management |
| 40 | +; R1.4 - 20190524 - Added scrolling capabilities |
| 41 | +; R1.5 - 20190525 - Added backspace functionality |
| 42 | +; R1.6 - 20190601 - Fixed scrolling bugs |
| 43 | +; R1.7 - 20190606 - Added "screen" command; code revision |
| 44 | +; R1.8 - 20190615 - Better cursor integration; added VPOKE & VPEEK statements; 6x8 & 8x8 fonts |
| 45 | +; R1.9 - 20190620 - New VREG, VSTAT, & LOCATE statement; 8x8 pixels font completed |
| 46 | +; R2.0 - 20190714 - Added SREG & SSTAT to write to/read from PSG |
| 47 | +; R2.1 - 20190818 - Added SOUND command to play simple tones and VOLUME command |
| 48 | +; R2.1a - 20190908 - Cursor management improvements |
| 49 | +; R2.2 - 20190920 - Fixed cursor bug within SCREEN statement; new command PAUSE |
| 50 | +; |
| 51 | +; ----------------------------------------------------------------------------- |
| 52 | + |
| 53 | +; this line instructs the assembler to prepare a file for a ROM target |
| 54 | +; meaning that blank cells will be filled up with 0xff |
| 55 | +#target rom |
| 56 | + |
| 57 | +; this line instructs the assembler to compile taking account that code |
| 58 | +; starts at $0000 (the address reached by Z80 upon reset) |
| 59 | +#code BOOT, 0000h |
| 60 | + |
| 61 | +; ------------------------------------------------------------------------------ |
| 62 | +; include the latest version of the bootloader: this sets up the address aliases |
| 63 | +; configure the hardware, checks if warm or cold startup and loads the BASIC interpreter |
| 64 | +#include "../include/bootloader/bootloader-r22.asm" |
| 65 | + |
| 66 | +; incude the latest version of the VDP module |
| 67 | +#include "../include/vdp/vdp-r22.asm" |
| 68 | + |
| 69 | +; incude the latest version of the PSG module |
| 70 | +#include "../include/psg/psg-r22.asm" |
| 71 | + |
| 72 | +; include the latest version of the NASCOM BASIC interpreter |
| 73 | +#include "../include/basic/basic32k-r22.asm" |
| 74 | + |
| 75 | +; include the latest version of the font sets |
| 76 | +#include "../include/vdp/6x8fonts.asm" |
| 77 | +#include "../include/vdp/8x8fonts.asm" |
| 78 | + |
| 79 | +; END OF ASSEMBLY SOURCE |
| 80 | +#end |
| 81 | + |
| 82 | +;------------------------------------------------------------------------------- |
0 commit comments